From f8fd62c5bd0b93c828c38e6a7d2bac33e2931546 Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Sat, 11 Apr 2026 16:42:46 +0200 Subject: [PATCH 1/6] build(flutter): Bump jni to 1.0.0 and jnigen to 0.16.0 Migrate all JNI binding usage to the new API: - Java setters/getters are now Dart property setters/getters - Collection factories changed (JList.array -> JArrayList, JMap.hash -> JHashMap) - Type checks use isA()/as() instead of $Type marker classes - Conversion methods renamed (intValue -> toDartInt, etc.) - JByteArray.from -> JByteArray.of - Generic type params replace runtime T: named parameter Add tool/generate_jni.dart with a custom jnigen visitor to exclude getter/setter pairs with nullability mismatches (jnigen 0.16.0 bug where getters return T? but setters accept T). Co-Authored-By: Claude Opus 4.6 (1M context) --- .../integration_test/integration_test.dart | 107 +- .../native_jni_utils_test.dart | 56 +- .../native/java/android_envelope_sender.dart | 2 +- .../native/java/android_replay_recorder.dart | 3 +- .../flutter/lib/src/native/java/binding.dart | 24993 ++++++---------- .../src/native/java/sentry_native_java.dart | 35 +- .../native/java/sentry_native_java_init.dart | 190 +- packages/flutter/pubspec.yaml | 4 +- packages/flutter/tool/generate_jni.dart | 61 + 9 files changed, 8833 insertions(+), 16618 deletions(-) create mode 100644 packages/flutter/tool/generate_jni.dart diff --git a/packages/flutter/example/integration_test/integration_test.dart b/packages/flutter/example/integration_test/integration_test.dart index 7772a759ed..df1581bdd9 100644 --- a/packages/flutter/example/integration_test/integration_test.dart +++ b/packages/flutter/example/integration_test/integration_test.dart @@ -8,6 +8,7 @@ import 'package:flutter/widgets.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:http/http.dart'; import 'package:integration_test/integration_test.dart'; +import 'package:jni/jni.dart'; import 'package:package_info_plus/package_info_plus.dart'; import 'package:sentry_flutter/sentry_flutter.dart'; import 'package:sentry_flutter_example/main.dart'; @@ -221,57 +222,56 @@ void main() { }); }); - final ref = jni.ScopesAdapter.getInstance()?.getOptions().reference; - expect(ref, isNotNull); - final androidOptions = jni.SentryAndroidOptions.fromReference(ref!); + final scopesAdapter = jni.ScopesAdapter.instance; + expect(scopesAdapter, isNotNull); + final androidOptions = + scopesAdapter!.options.as(jni.SentryAndroidOptions.type); expect(androidOptions, isNotNull); - expect(androidOptions.getDsn()?.toDartString(), fakeDsn); - expect(androidOptions.isDebug(), isTrue); - final diagnostic = androidOptions.getDiagnosticLevel(); + expect(androidOptions.dsn?.toDartString(), fakeDsn); + expect(androidOptions.isDebug, isTrue); + final diagnostic = androidOptions.diagnosticLevel; expect( diagnostic, jni.SentryLevel.ERROR, ); - expect(androidOptions.getEnvironment()?.toDartString(), 'init-test-env'); - expect(androidOptions.getRelease()?.toDartString(), '1.2.3+9'); - expect(androidOptions.getDist()?.toDartString(), '42'); - expect(androidOptions.isSendDefaultPii(), isTrue); - expect(androidOptions.isAttachStacktrace(), isFalse); - expect(androidOptions.isAttachThreads(), isTrue); - expect(androidOptions.getMaxBreadcrumbs(), 7); - expect(androidOptions.getMaxCacheItems(), 77); - expect(androidOptions.getMaxAttachmentSize(), 512); - expect(androidOptions.isEnableScopeSync(), isTrue); - expect(androidOptions.isAnrEnabled(), isFalse); - expect(androidOptions.getAnrTimeoutIntervalMillis(), 2000); - expect(androidOptions.isEnableActivityLifecycleBreadcrumbs(), isFalse); - expect(androidOptions.isEnableAppLifecycleBreadcrumbs(), isFalse); - expect(androidOptions.isEnableSystemEventBreadcrumbs(), isFalse); - expect(androidOptions.isEnableAppComponentBreadcrumbs(), isFalse); - expect(androidOptions.isEnableUserInteractionBreadcrumbs(), isFalse); - expect(androidOptions.getConnectionTimeoutMillis(), 1234); - expect(androidOptions.getReadTimeoutMillis(), 2345); - expect(androidOptions.isEnableSpotlight(), isTrue); - expect(androidOptions.isSendClientReports(), isFalse); + expect(androidOptions.environment?.toDartString(), 'init-test-env'); + expect(androidOptions.release$1?.toDartString(), '1.2.3+9'); + expect(androidOptions.dist?.toDartString(), '42'); + expect(androidOptions.isSendDefaultPii, isTrue); + expect(androidOptions.isAttachStacktrace, isFalse); + expect(androidOptions.isAttachThreads, isTrue); + expect(androidOptions.maxBreadcrumbs, 7); + expect(androidOptions.maxCacheItems, 77); + expect(androidOptions.maxAttachmentSize, 512); + expect(androidOptions.isEnableScopeSync, isTrue); + expect(androidOptions.isAnrEnabled, isFalse); + expect(androidOptions.anrTimeoutIntervalMillis, 2000); + expect(androidOptions.isEnableActivityLifecycleBreadcrumbs, isFalse); + expect(androidOptions.isEnableAppLifecycleBreadcrumbs, isFalse); + expect(androidOptions.isEnableSystemEventBreadcrumbs, isFalse); + expect(androidOptions.isEnableAppComponentBreadcrumbs, isFalse); + expect(androidOptions.isEnableUserInteractionBreadcrumbs, isFalse); + expect(androidOptions.connectionTimeoutMillis, 1234); + expect(androidOptions.readTimeoutMillis, 2345); + expect(androidOptions.isEnableSpotlight, isTrue); + expect(androidOptions.isSendClientReports, isFalse); expect( - androidOptions.getSpotlightConnectionUrl()?.toDartString(), + androidOptions.spotlightConnectionUrl?.toDartString(), Sentry.currentHub.options.spotlight.url, ); - expect(androidOptions.getSentryClientName()?.toDartString(), + expect(androidOptions.sentryClientName?.toDartString(), '$androidSdkName/${jni.BuildConfig.VERSION_NAME?.toDartString()}'); - expect(androidOptions.getNativeSdkName()?.toDartString(), nativeSdkName); - expect(androidOptions.getSdkVersion()?.getName().toDartString(), - androidSdkName); - expect(androidOptions.getSdkVersion()?.getVersion().toDartString(), + expect(androidOptions.nativeSdkName?.toDartString(), nativeSdkName); + expect(androidOptions.sdkVersion?.name.toDartString(), androidSdkName); + expect(androidOptions.sdkVersion?.version.toDartString(), jni.BuildConfig.VERSION_NAME?.toDartString()); - final allPackages = androidOptions - .getSdkVersion() - ?.getPackageSet() + final allPackages = androidOptions.sdkVersion?.packageSet + .asDart() .map((pkg) { if (pkg == null) return null; return SentryPackage( - pkg.getName().toDartString(), pkg.getVersion().toDartString()); + pkg.name.toDartString(), pkg.version.toDartString()); }) .nonNulls .toList(); @@ -280,21 +280,21 @@ void main() { (p) => p.name == package.name && p.version == package.version); expect(findMatchingPackage, isNotNull); } - expect(androidOptions.isEnableAutoTraceIdGeneration(), isFalse); - expect(androidOptions.isTombstoneEnabled(), isTrue); + expect(androidOptions.isEnableAutoTraceIdGeneration, isFalse); + expect(androidOptions.isTombstoneEnabled, isTrue); - final androidProxy = androidOptions.getProxy(); + final androidProxy = androidOptions.proxy; expect(androidProxy, isNotNull); - expect(androidProxy!.getHost()?.toDartString(), 'proxy.local'); - expect(androidProxy.getPort()?.toDartString(), '8084'); - expect(androidProxy.getUser()?.toDartString(), 'u'); - expect(androidProxy.getPass()?.toDartString(), 'p'); - - final r = androidOptions.getSessionReplay(); - expect(r.getQuality(), jni.SentryReplayOptions$SentryReplayQuality.HIGH); - expect(r.getSessionSampleRate(), isNotNull); - expect(r.getOnErrorSampleRate(), isNotNull); - expect(r.isTrackConfiguration(), isFalse); + expect(androidProxy!.host?.toDartString(), 'proxy.local'); + expect(androidProxy.port?.toDartString(), '8084'); + expect(androidProxy.user?.toDartString(), 'u'); + expect(androidProxy.pass?.toDartString(), 'p'); + + final r = androidOptions.sessionReplay; + expect(r.quality, jni.SentryReplayOptions$SentryReplayQuality.HIGH); + expect(r.sessionSampleRate, isNotNull); + expect(r.onErrorSampleRate, isNotNull); + expect(r.isTrackConfiguration, isFalse); }, skip: !Platform.isAndroid); testWidgets('loads native contexts through loadContexts', (tester) async { @@ -1079,10 +1079,10 @@ void main() { final dartTraceId = Sentry.currentHub.scope.propagationContext.traceId.toString(); - final traceParent = jni.Sentry.getTraceparent(); + final traceParent = jni.Sentry.traceparent; expect(traceParent, isNotNull, reason: 'Native traceparent should not be null'); - final traceHeader = traceParent!.getValue().toDartString(); + final traceHeader = traceParent!.value.toDartString(); final nativeTraceId = traceHeader.split('-').first; expect(nativeTraceId, dartTraceId, @@ -1095,8 +1095,7 @@ void main() { // Allow the fire-and-forget dispatch to complete await Future.delayed(const Duration(milliseconds: 100)); - final newTraceParent = - jni.Sentry.getTraceparent()?.getValue().toDartString(); + final newTraceParent = jni.Sentry.traceparent?.value.toDartString(); final newTraceHeader = newTraceParent!.toString(); final newNativeTraceId = newTraceHeader.split('-').first; diff --git a/packages/flutter/example/integration_test/native_jni_utils_test.dart b/packages/flutter/example/integration_test/native_jni_utils_test.dart index 21c5bdbccf..fa501119e7 100644 --- a/packages/flutter/example/integration_test/native_jni_utils_test.dart +++ b/packages/flutter/example/integration_test/native_jni_utils_test.dart @@ -84,7 +84,8 @@ void main() { test('dartToJObject converts list (drops nulls)', () { using((arena) { - final javaList = dartToJObject(inputList).as(JList.type(JObject.type)) + final javaList = dartToJObject(inputList).as(JList.type) + as JList ..releasedBy(arena); _expectJniList(javaList, expectedList, arena); }); @@ -92,8 +93,8 @@ void main() { test('dartToJObject converts map (drops null values)', () { using((arena) { - final javaMap = dartToJObject(inputMap) - .as(JMap.type(JString.type, JObject.type)) + final javaMap = dartToJObject(inputMap).as(JMap.type) + as JMap ..releasedBy(arena); _expectJniMap(javaMap, expectedMap, arena); }); @@ -124,45 +125,45 @@ void _expectJniStringEquals(JObject? javaObject, String expected) { void _expectJniLongEquals(JObject? javaObject, int expected) { expect(javaObject, isNotNull); final javaLong = javaObject!.as(JLong.type); - expect(javaLong.longValue(releaseOriginal: true), expected); + expect(javaLong.toDartInt(releaseOriginal: true), expected); } void _expectJniDoubleEquals(JObject? javaObject, double expected) { expect(javaObject, isNotNull); final javaDouble = javaObject!.as(JDouble.type); - expect(javaDouble.doubleValue(releaseOriginal: true), expected); + expect(javaDouble.toDartDouble(releaseOriginal: true), expected); } void _expectJniBoolEquals(JObject? javaObject, bool expected) { expect(javaObject, isNotNull); final javaBoolean = javaObject!.as(JBoolean.type); - expect(javaBoolean.booleanValue(releaseOriginal: true), expected); + expect(javaBoolean.toDartBool(releaseOriginal: true), expected); } JObject? _get(JMap javaMap, String key, Arena arena) => - javaMap[key.toJString()..releasedBy(arena)]; + javaMap.get(key.toJString()..releasedBy(arena)); void _expectJniList( JList javaList, List expectedListValues, Arena arena, ) { - expect(javaList.length, expectedListValues.length); + expect(javaList.size(), expectedListValues.length); - _expectJniStringEquals(javaList[0], expectedListValues[0] as String); - _expectJniLongEquals(javaList[1], expectedListValues[1] as int); - _expectJniDoubleEquals(javaList[2], expectedListValues[2] as double); - _expectJniBoolEquals(javaList[3], expectedListValues[3] as bool); - _expectJniStringEquals(javaList[4], expectedListValues[4] as String); + _expectJniStringEquals(javaList.get(0), expectedListValues[0] as String); + _expectJniLongEquals(javaList.get(1), expectedListValues[1] as int); + _expectJniDoubleEquals(javaList.get(2), expectedListValues[2] as double); + _expectJniBoolEquals(javaList.get(3), expectedListValues[3] as bool); + _expectJniStringEquals(javaList.get(4), expectedListValues[4] as String); - final nestedList = javaList[5].as(JList.type(JObject.type)) + final nestedList = javaList.get(5)!.as(JList.type) as JList ..releasedBy(arena); final expectedNestedList = expectedListValues[5] as List; - expect(nestedList.length, expectedNestedList.length); - _expectJniStringEquals(nestedList[0], expectedNestedList[0] as String); - _expectJniLongEquals(nestedList[1], expectedNestedList[1] as int); + expect(nestedList.size(), expectedNestedList.length); + _expectJniStringEquals(nestedList.get(0), expectedNestedList[0] as String); + _expectJniLongEquals(nestedList.get(1), expectedNestedList[1] as int); - final nestedMap = javaList[6].as(JMap.type(JString.type, JObject.type)) + final nestedMap = javaList.get(6)!.as(JMap.type) as JMap ..releasedBy(arena); _expectJniNestedMap( nestedMap, @@ -177,7 +178,7 @@ void _expectJniMap( Map expectedMapValues, Arena arena, ) { - expect(javaMap.length, expectedMapValues.length); + expect(javaMap.size(), expectedMapValues.length); final expectedList = expectedMapValues['list']! as List; final expectedNestedList = expectedList[5] as List; @@ -195,12 +196,13 @@ void _expectJniMap( _expectJniStringEquals( _get(javaMap, 'key5', arena), expectedMapValues['key5'] as String); - final nestedList = _get(javaMap, 'list', arena)!.as(JList.type(JObject.type)) + final nestedList = _get(javaMap, 'list', arena)!.as(JList.type) + as JList ..releasedBy(arena); _expectJniList(nestedList, expectedList, arena); - final nestedMap = _get(javaMap, 'nestedMap', arena)! - .as(JMap.type(JString.type, JObject.type)) + final nestedMap = _get(javaMap, 'nestedMap', arena)!.as(JMap.type) + as JMap ..releasedBy(arena); _expectJniNestedMap( nestedMap, expectedNestedMap, expectedNestedList.length, arena); @@ -217,13 +219,13 @@ void _expectJniNestedMap( _expectJniStringEquals(_get(javaNestedMap, 'innerString', arena), expectedNestedMapValues['innerString'] as String); - final innerList = _get(javaNestedMap, 'innerList', arena)! - .as(JList.type(JObject.type)) + final innerList = _get(javaNestedMap, 'innerList', arena)!.as(JList.type) + as JList ..releasedBy(arena); - expect(innerList.length, expectedNestedListLength); - _expectJniLongEquals(innerList[0], + expect(innerList.size(), expectedNestedListLength); + _expectJniLongEquals(innerList.get(0), (expectedNestedMapValues['innerList']! as List)[0] as int); - _expectJniLongEquals(innerList[1], + _expectJniLongEquals(innerList.get(1), (expectedNestedMapValues['innerList']! as List)[1] as int); expect(_get(javaNestedMap, 'innerNull', arena), isNull); diff --git a/packages/flutter/lib/src/native/java/android_envelope_sender.dart b/packages/flutter/lib/src/native/java/android_envelope_sender.dart index c5bf9669a6..3091e40d0c 100644 --- a/packages/flutter/lib/src/native/java/android_envelope_sender.dart +++ b/packages/flutter/lib/src/native/java/android_envelope_sender.dart @@ -99,7 +99,7 @@ void _captureEnvelope(Uint8List envelopeData, bool containsUnhandledException, JObject? id; JByteArray? byteArray; try { - byteArray = JByteArray.from(envelopeData); + byteArray = JByteArray.of(envelopeData); id = native.InternalSentrySdk.captureEnvelope( byteArray, containsUnhandledException); diff --git a/packages/flutter/lib/src/native/java/android_replay_recorder.dart b/packages/flutter/lib/src/native/java/android_replay_recorder.dart index c80f1dd7e1..3f05913e38 100644 --- a/packages/flutter/lib/src/native/java/android_replay_recorder.dart +++ b/packages/flutter/lib/src/native/java/android_replay_recorder.dart @@ -122,8 +122,7 @@ class _AndroidReplayHandler extends WorkerHandler { try { if (_bitmap != null) { - if (_bitmap!.getWidth() != item.width || - _bitmap!.getHeight() != item.height) { + if (_bitmap!.width != item.width || _bitmap!.height != item.height) { _bitmap!.release(); _bitmap = null; } diff --git a/packages/flutter/lib/src/native/java/binding.dart b/packages/flutter/lib/src/native/java/binding.dart index ca4974fafb..7d957c65e7 100644 --- a/packages/flutter/lib/src/native/java/binding.dart +++ b/packages/flutter/lib/src/native/java/binding.dart @@ -1,4 +1,4 @@ -// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.16.0. DO NOT EDIT! // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable @@ -30,30 +30,21 @@ // ignore_for_file: unused_shown_name // ignore_for_file: use_super_parameters -import 'dart:core' show Object, String, bool, double, int; import 'dart:core' as core$_; +import 'dart:core' show Object, String; import 'package:jni/_internal.dart' as jni$_; import 'package:jni/jni.dart' as jni$_; -/// from: `io.sentry.android.core.SentryAndroid` -class SentryAndroid extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryAndroid.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); +const _$jniVersionCheck = jni$_.JniVersionCheck(1, 0); +/// from: `io.sentry.android.core.SentryAndroid` +extension type SentryAndroid._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/android/core/SentryAndroid'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryAndroid$NullableType(); - static const type = $SentryAndroid$Type(); + static const jni$_.JType type = $SentryAndroid$Type$(); static final _id_init = _class.staticMethodId( r'init', r'(Landroid/content/Context;)V', @@ -75,8 +66,7 @@ class SentryAndroid extends jni$_.JObject { Context context, ) { final _$context = context.reference; - _init(_class.reference.pointer, _id_init as jni$_.JMethodIDPtr, - _$context.pointer) + _init(_class.reference.pointer, _id_init.pointer, _$context.pointer) .check(); } @@ -109,8 +99,8 @@ class SentryAndroid extends jni$_.JObject { ) { final _$context = context.reference; final _$iLogger = iLogger.reference; - _init$1(_class.reference.pointer, _id_init$1 as jni$_.JMethodIDPtr, - _$context.pointer, _$iLogger.pointer) + _init$1(_class.reference.pointer, _id_init$1.pointer, _$context.pointer, + _$iLogger.pointer) .check(); } @@ -143,8 +133,8 @@ class SentryAndroid extends jni$_.JObject { ) { final _$context = context.reference; final _$optionsConfiguration = optionsConfiguration.reference; - _init$2(_class.reference.pointer, _id_init$2 as jni$_.JMethodIDPtr, - _$context.pointer, _$optionsConfiguration.pointer) + _init$2(_class.reference.pointer, _id_init$2.pointer, _$context.pointer, + _$optionsConfiguration.pointer) .check(); } @@ -181,151 +171,37 @@ class SentryAndroid extends jni$_.JObject { final _$context = context.reference; final _$iLogger = iLogger.reference; final _$optionsConfiguration = optionsConfiguration.reference; - _init$3( - _class.reference.pointer, - _id_init$3 as jni$_.JMethodIDPtr, - _$context.pointer, - _$iLogger.pointer, - _$optionsConfiguration.pointer) + _init$3(_class.reference.pointer, _id_init$3.pointer, _$context.pointer, + _$iLogger.pointer, _$optionsConfiguration.pointer) .check(); } } -final class $SentryAndroid$NullableType extends jni$_.JObjType { +final class $SentryAndroid$Type$ extends jni$_.JType { @jni$_.internal - const $SentryAndroid$NullableType(); + const $SentryAndroid$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/android/core/SentryAndroid;'; - - @jni$_.internal - @core$_.override - SentryAndroid? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : SentryAndroid.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryAndroid$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryAndroid$NullableType) && - other is $SentryAndroid$NullableType; - } -} - -final class $SentryAndroid$Type extends jni$_.JObjType { - @jni$_.internal - const $SentryAndroid$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/android/core/SentryAndroid;'; - - @jni$_.internal - @core$_.override - SentryAndroid fromReference(jni$_.JReference reference) => - SentryAndroid.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryAndroid$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryAndroid$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryAndroid$Type) && - other is $SentryAndroid$Type; - } } /// from: `io.sentry.android.core.SentryAndroidOptions$BeforeCaptureCallback` -class SentryAndroidOptions$BeforeCaptureCallback extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryAndroidOptions$BeforeCaptureCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryAndroidOptions$BeforeCaptureCallback._( + jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName( r'io/sentry/android/core/SentryAndroidOptions$BeforeCaptureCallback'); /// The type which includes information such as the signature of this class. - static const nullableType = - $SentryAndroidOptions$BeforeCaptureCallback$NullableType(); - static const type = $SentryAndroidOptions$BeforeCaptureCallback$Type(); - static final _id_execute = _class.instanceMethodId( - r'execute', - r'(Lio/sentry/SentryEvent;Lio/sentry/Hint;Z)Z', - ); - - static final _execute = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32 - )>)>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer, - int)>(); - - /// from: `public abstract boolean execute(io.sentry.SentryEvent sentryEvent, io.sentry.Hint hint, boolean z)` - bool execute( - SentryEvent sentryEvent, - Hint hint, - bool z, - ) { - final _$sentryEvent = sentryEvent.reference; - final _$hint = hint.reference; - return _execute(reference.pointer, _id_execute as jni$_.JMethodIDPtr, - _$sentryEvent.pointer, _$hint.pointer, z ? 1 : 0) - .boolean; - } + static const jni$_.JType type = + $SentryAndroidOptions$BeforeCaptureCallback$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map + static final core$_ + .Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -346,7 +222,7 @@ class SentryAndroidOptions$BeforeCaptureCallback extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -354,13 +230,11 @@ class SentryAndroidOptions$BeforeCaptureCallback extends jni$_.JObject { final $a = $i.args; if ($d == r'execute(Lio/sentry/SentryEvent;Lio/sentry/Hint;Z)Z') { final $r = _$impls[$p]!.execute( - $a![0]!.as(const $SentryEvent$Type(), releaseOriginal: true), - $a![1]!.as(const $Hint$Type(), releaseOriginal: true), - $a![2]! - .as(const jni$_.JBooleanType(), releaseOriginal: true) - .booleanValue(releaseOriginal: true), + ($a![0] as SentryEvent), + ($a![1] as Hint), + ($a![2] as jni$_.JBoolean).toDartBool(releaseOriginal: true), ); - return jni$_.JBoolean($r).reference.toPointer(); + return $r.toJBoolean().reference.toPointer(); } } catch (e) { return jni$_.ProtectedJniExtensions.newDartException(e); @@ -398,138 +272,97 @@ class SentryAndroidOptions$BeforeCaptureCallback extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return SentryAndroidOptions$BeforeCaptureCallback.fromReference( - $i.implementReference(), - ); + return $i.implement(); + } +} + +extension SentryAndroidOptions$BeforeCaptureCallback$$Methods + on SentryAndroidOptions$BeforeCaptureCallback { + static final _id_execute = + SentryAndroidOptions$BeforeCaptureCallback._class.instanceMethodId( + r'execute', + r'(Lio/sentry/SentryEvent;Lio/sentry/Hint;Z)Z', + ); + + static final _execute = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32 + )>)>>('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + core$_.int)>(); + + /// from: `public abstract boolean execute(io.sentry.SentryEvent sentryEvent, io.sentry.Hint hint, boolean z)` + core$_.bool execute( + SentryEvent sentryEvent, + Hint hint, + core$_.bool z, + ) { + final _$sentryEvent = sentryEvent.reference; + final _$hint = hint.reference; + return _execute(reference.pointer, _id_execute.pointer, + _$sentryEvent.pointer, _$hint.pointer, z ? 1 : 0) + .boolean; } } abstract base mixin class $SentryAndroidOptions$BeforeCaptureCallback { factory $SentryAndroidOptions$BeforeCaptureCallback({ - required bool Function(SentryEvent sentryEvent, Hint hint, bool z) execute, + required core$_.bool Function( + SentryEvent sentryEvent, Hint hint, core$_.bool z) + execute, }) = _$SentryAndroidOptions$BeforeCaptureCallback; - bool execute(SentryEvent sentryEvent, Hint hint, bool z); + core$_.bool execute(SentryEvent sentryEvent, Hint hint, core$_.bool z); } final class _$SentryAndroidOptions$BeforeCaptureCallback with $SentryAndroidOptions$BeforeCaptureCallback { _$SentryAndroidOptions$BeforeCaptureCallback({ - required bool Function(SentryEvent sentryEvent, Hint hint, bool z) execute, + required core$_.bool Function( + SentryEvent sentryEvent, Hint hint, core$_.bool z) + execute, }) : _execute = execute; - final bool Function(SentryEvent sentryEvent, Hint hint, bool z) _execute; + final core$_.bool Function(SentryEvent sentryEvent, Hint hint, core$_.bool z) + _execute; - bool execute(SentryEvent sentryEvent, Hint hint, bool z) { + core$_.bool execute(SentryEvent sentryEvent, Hint hint, core$_.bool z) { return _execute(sentryEvent, hint, z); } } -final class $SentryAndroidOptions$BeforeCaptureCallback$NullableType - extends jni$_.JObjType { +final class $SentryAndroidOptions$BeforeCaptureCallback$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryAndroidOptions$BeforeCaptureCallback$NullableType(); + const $SentryAndroidOptions$BeforeCaptureCallback$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/android/core/SentryAndroidOptions$BeforeCaptureCallback;'; - - @jni$_.internal - @core$_.override - SentryAndroidOptions$BeforeCaptureCallback? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : SentryAndroidOptions$BeforeCaptureCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType - get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($SentryAndroidOptions$BeforeCaptureCallback$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryAndroidOptions$BeforeCaptureCallback$NullableType) && - other is $SentryAndroidOptions$BeforeCaptureCallback$NullableType; - } -} - -final class $SentryAndroidOptions$BeforeCaptureCallback$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryAndroidOptions$BeforeCaptureCallback$Type(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lio/sentry/android/core/SentryAndroidOptions$BeforeCaptureCallback;'; - - @jni$_.internal - @core$_.override - SentryAndroidOptions$BeforeCaptureCallback fromReference( - jni$_.JReference reference) => - SentryAndroidOptions$BeforeCaptureCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType - get nullableType => - const $SentryAndroidOptions$BeforeCaptureCallback$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($SentryAndroidOptions$BeforeCaptureCallback$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryAndroidOptions$BeforeCaptureCallback$Type) && - other is $SentryAndroidOptions$BeforeCaptureCallback$Type; - } } /// from: `io.sentry.android.core.SentryAndroidOptions` -class SentryAndroidOptions extends SentryOptions { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryAndroidOptions.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryAndroidOptions._(jni$_.JObject _$this) + implements SentryOptions { static final _class = jni$_.JClass.forName(r'io/sentry/android/core/SentryAndroidOptions'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryAndroidOptions$NullableType(); - static const type = $SentryAndroidOptions$Type(); + static const jni$_.JType type = + $SentryAndroidOptions$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -549,17 +382,19 @@ class SentryAndroidOptions extends SentryOptions { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryAndroidOptions() { - return SentryAndroidOptions.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_isAnrEnabled = _class.instanceMethodId( +extension SentryAndroidOptions$$Methods on SentryAndroidOptions { + static final _id_get$isAnrEnabled = + SentryAndroidOptions._class.instanceMethodId( r'isAnrEnabled', r'()Z', ); - static final _isAnrEnabled = jni$_.ProtectedJniExtensions.lookup< + static final _get$isAnrEnabled = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -572,18 +407,18 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isAnrEnabled()` - bool isAnrEnabled() { - return _isAnrEnabled( - reference.pointer, _id_isAnrEnabled as jni$_.JMethodIDPtr) + core$_.bool get isAnrEnabled { + return _get$isAnrEnabled(reference.pointer, _id_get$isAnrEnabled.pointer) .boolean; } - static final _id_setAnrEnabled = _class.instanceMethodId( + static final _id_set$anrEnabled = + SentryAndroidOptions._class.instanceMethodId( r'setAnrEnabled', r'(Z)V', ); - static final _setAnrEnabled = jni$_.ProtectedJniExtensions.lookup< + static final _set$anrEnabled = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -591,23 +426,21 @@ class SentryAndroidOptions extends SentryOptions { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setAnrEnabled(boolean z)` - void setAnrEnabled( - bool z, - ) { - _setAnrEnabled(reference.pointer, _id_setAnrEnabled as jni$_.JMethodIDPtr, - z ? 1 : 0) + set anrEnabled(core$_.bool z) { + _set$anrEnabled(reference.pointer, _id_set$anrEnabled.pointer, z ? 1 : 0) .check(); } - static final _id_getAnrTimeoutIntervalMillis = _class.instanceMethodId( + static final _id_get$anrTimeoutIntervalMillis = + SentryAndroidOptions._class.instanceMethodId( r'getAnrTimeoutIntervalMillis', r'()J', ); - static final _getAnrTimeoutIntervalMillis = + static final _get$anrTimeoutIntervalMillis = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -621,18 +454,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public long getAnrTimeoutIntervalMillis()` - int getAnrTimeoutIntervalMillis() { - return _getAnrTimeoutIntervalMillis(reference.pointer, - _id_getAnrTimeoutIntervalMillis as jni$_.JMethodIDPtr) + core$_.int get anrTimeoutIntervalMillis { + return _get$anrTimeoutIntervalMillis( + reference.pointer, _id_get$anrTimeoutIntervalMillis.pointer) .long; } - static final _id_setAnrTimeoutIntervalMillis = _class.instanceMethodId( + static final _id_set$anrTimeoutIntervalMillis = + SentryAndroidOptions._class.instanceMethodId( r'setAnrTimeoutIntervalMillis', r'(J)V', ); - static final _setAnrTimeoutIntervalMillis = + static final _set$anrTimeoutIntervalMillis = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -640,23 +474,22 @@ class SentryAndroidOptions extends SentryOptions { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setAnrTimeoutIntervalMillis(long j)` - void setAnrTimeoutIntervalMillis( - int j, - ) { - _setAnrTimeoutIntervalMillis(reference.pointer, - _id_setAnrTimeoutIntervalMillis as jni$_.JMethodIDPtr, j) + set anrTimeoutIntervalMillis(core$_.int j) { + _set$anrTimeoutIntervalMillis( + reference.pointer, _id_set$anrTimeoutIntervalMillis.pointer, j) .check(); } - static final _id_isAnrReportInDebug = _class.instanceMethodId( + static final _id_get$isAnrReportInDebug = + SentryAndroidOptions._class.instanceMethodId( r'isAnrReportInDebug', r'()Z', ); - static final _isAnrReportInDebug = jni$_.ProtectedJniExtensions.lookup< + static final _get$isAnrReportInDebug = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -669,18 +502,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isAnrReportInDebug()` - bool isAnrReportInDebug() { - return _isAnrReportInDebug( - reference.pointer, _id_isAnrReportInDebug as jni$_.JMethodIDPtr) + core$_.bool get isAnrReportInDebug { + return _get$isAnrReportInDebug( + reference.pointer, _id_get$isAnrReportInDebug.pointer) .boolean; } - static final _id_setAnrReportInDebug = _class.instanceMethodId( + static final _id_set$anrReportInDebug = + SentryAndroidOptions._class.instanceMethodId( r'setAnrReportInDebug', r'(Z)V', ); - static final _setAnrReportInDebug = jni$_.ProtectedJniExtensions.lookup< + static final _set$anrReportInDebug = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -688,23 +522,22 @@ class SentryAndroidOptions extends SentryOptions { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setAnrReportInDebug(boolean z)` - void setAnrReportInDebug( - bool z, - ) { - _setAnrReportInDebug(reference.pointer, - _id_setAnrReportInDebug as jni$_.JMethodIDPtr, z ? 1 : 0) + set anrReportInDebug(core$_.bool z) { + _set$anrReportInDebug( + reference.pointer, _id_set$anrReportInDebug.pointer, z ? 1 : 0) .check(); } - static final _id_setTombstoneEnabled = _class.instanceMethodId( + static final _id_set$tombstoneEnabled = + SentryAndroidOptions._class.instanceMethodId( r'setTombstoneEnabled', r'(Z)V', ); - static final _setTombstoneEnabled = jni$_.ProtectedJniExtensions.lookup< + static final _set$tombstoneEnabled = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -712,23 +545,22 @@ class SentryAndroidOptions extends SentryOptions { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setTombstoneEnabled(boolean z)` - void setTombstoneEnabled( - bool z, - ) { - _setTombstoneEnabled(reference.pointer, - _id_setTombstoneEnabled as jni$_.JMethodIDPtr, z ? 1 : 0) + set tombstoneEnabled(core$_.bool z) { + _set$tombstoneEnabled( + reference.pointer, _id_set$tombstoneEnabled.pointer, z ? 1 : 0) .check(); } - static final _id_isTombstoneEnabled = _class.instanceMethodId( + static final _id_get$isTombstoneEnabled = + SentryAndroidOptions._class.instanceMethodId( r'isTombstoneEnabled', r'()Z', ); - static final _isTombstoneEnabled = jni$_.ProtectedJniExtensions.lookup< + static final _get$isTombstoneEnabled = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -741,19 +573,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isTombstoneEnabled()` - bool isTombstoneEnabled() { - return _isTombstoneEnabled( - reference.pointer, _id_isTombstoneEnabled as jni$_.JMethodIDPtr) + core$_.bool get isTombstoneEnabled { + return _get$isTombstoneEnabled( + reference.pointer, _id_get$isTombstoneEnabled.pointer) .boolean; } - static final _id_isEnableActivityLifecycleBreadcrumbs = - _class.instanceMethodId( + static final _id_get$isEnableActivityLifecycleBreadcrumbs = + SentryAndroidOptions._class.instanceMethodId( r'isEnableActivityLifecycleBreadcrumbs', r'()Z', ); - static final _isEnableActivityLifecycleBreadcrumbs = + static final _get$isEnableActivityLifecycleBreadcrumbs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -767,19 +599,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isEnableActivityLifecycleBreadcrumbs()` - bool isEnableActivityLifecycleBreadcrumbs() { - return _isEnableActivityLifecycleBreadcrumbs(reference.pointer, - _id_isEnableActivityLifecycleBreadcrumbs as jni$_.JMethodIDPtr) + core$_.bool get isEnableActivityLifecycleBreadcrumbs { + return _get$isEnableActivityLifecycleBreadcrumbs(reference.pointer, + _id_get$isEnableActivityLifecycleBreadcrumbs.pointer) .boolean; } - static final _id_setEnableActivityLifecycleBreadcrumbs = - _class.instanceMethodId( + static final _id_set$enableActivityLifecycleBreadcrumbs = + SentryAndroidOptions._class.instanceMethodId( r'setEnableActivityLifecycleBreadcrumbs', r'(Z)V', ); - static final _setEnableActivityLifecycleBreadcrumbs = + static final _set$enableActivityLifecycleBreadcrumbs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -787,25 +619,22 @@ class SentryAndroidOptions extends SentryOptions { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableActivityLifecycleBreadcrumbs(boolean z)` - void setEnableActivityLifecycleBreadcrumbs( - bool z, - ) { - _setEnableActivityLifecycleBreadcrumbs( - reference.pointer, - _id_setEnableActivityLifecycleBreadcrumbs as jni$_.JMethodIDPtr, - z ? 1 : 0) + set enableActivityLifecycleBreadcrumbs(core$_.bool z) { + _set$enableActivityLifecycleBreadcrumbs(reference.pointer, + _id_set$enableActivityLifecycleBreadcrumbs.pointer, z ? 1 : 0) .check(); } - static final _id_isEnableAppLifecycleBreadcrumbs = _class.instanceMethodId( + static final _id_get$isEnableAppLifecycleBreadcrumbs = + SentryAndroidOptions._class.instanceMethodId( r'isEnableAppLifecycleBreadcrumbs', r'()Z', ); - static final _isEnableAppLifecycleBreadcrumbs = + static final _get$isEnableAppLifecycleBreadcrumbs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -819,18 +648,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isEnableAppLifecycleBreadcrumbs()` - bool isEnableAppLifecycleBreadcrumbs() { - return _isEnableAppLifecycleBreadcrumbs(reference.pointer, - _id_isEnableAppLifecycleBreadcrumbs as jni$_.JMethodIDPtr) + core$_.bool get isEnableAppLifecycleBreadcrumbs { + return _get$isEnableAppLifecycleBreadcrumbs( + reference.pointer, _id_get$isEnableAppLifecycleBreadcrumbs.pointer) .boolean; } - static final _id_setEnableAppLifecycleBreadcrumbs = _class.instanceMethodId( + static final _id_set$enableAppLifecycleBreadcrumbs = + SentryAndroidOptions._class.instanceMethodId( r'setEnableAppLifecycleBreadcrumbs', r'(Z)V', ); - static final _setEnableAppLifecycleBreadcrumbs = + static final _set$enableAppLifecycleBreadcrumbs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -838,25 +668,22 @@ class SentryAndroidOptions extends SentryOptions { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableAppLifecycleBreadcrumbs(boolean z)` - void setEnableAppLifecycleBreadcrumbs( - bool z, - ) { - _setEnableAppLifecycleBreadcrumbs( - reference.pointer, - _id_setEnableAppLifecycleBreadcrumbs as jni$_.JMethodIDPtr, - z ? 1 : 0) + set enableAppLifecycleBreadcrumbs(core$_.bool z) { + _set$enableAppLifecycleBreadcrumbs(reference.pointer, + _id_set$enableAppLifecycleBreadcrumbs.pointer, z ? 1 : 0) .check(); } - static final _id_isEnableSystemEventBreadcrumbs = _class.instanceMethodId( + static final _id_get$isEnableSystemEventBreadcrumbs = + SentryAndroidOptions._class.instanceMethodId( r'isEnableSystemEventBreadcrumbs', r'()Z', ); - static final _isEnableSystemEventBreadcrumbs = + static final _get$isEnableSystemEventBreadcrumbs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -870,18 +697,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isEnableSystemEventBreadcrumbs()` - bool isEnableSystemEventBreadcrumbs() { - return _isEnableSystemEventBreadcrumbs(reference.pointer, - _id_isEnableSystemEventBreadcrumbs as jni$_.JMethodIDPtr) + core$_.bool get isEnableSystemEventBreadcrumbs { + return _get$isEnableSystemEventBreadcrumbs( + reference.pointer, _id_get$isEnableSystemEventBreadcrumbs.pointer) .boolean; } - static final _id_setEnableSystemEventBreadcrumbs = _class.instanceMethodId( + static final _id_set$enableSystemEventBreadcrumbs = + SentryAndroidOptions._class.instanceMethodId( r'setEnableSystemEventBreadcrumbs', r'(Z)V', ); - static final _setEnableSystemEventBreadcrumbs = + static final _set$enableSystemEventBreadcrumbs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -889,25 +717,22 @@ class SentryAndroidOptions extends SentryOptions { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableSystemEventBreadcrumbs(boolean z)` - void setEnableSystemEventBreadcrumbs( - bool z, - ) { - _setEnableSystemEventBreadcrumbs( - reference.pointer, - _id_setEnableSystemEventBreadcrumbs as jni$_.JMethodIDPtr, - z ? 1 : 0) + set enableSystemEventBreadcrumbs(core$_.bool z) { + _set$enableSystemEventBreadcrumbs(reference.pointer, + _id_set$enableSystemEventBreadcrumbs.pointer, z ? 1 : 0) .check(); } - static final _id_isEnableAppComponentBreadcrumbs = _class.instanceMethodId( + static final _id_get$isEnableAppComponentBreadcrumbs = + SentryAndroidOptions._class.instanceMethodId( r'isEnableAppComponentBreadcrumbs', r'()Z', ); - static final _isEnableAppComponentBreadcrumbs = + static final _get$isEnableAppComponentBreadcrumbs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -921,18 +746,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isEnableAppComponentBreadcrumbs()` - bool isEnableAppComponentBreadcrumbs() { - return _isEnableAppComponentBreadcrumbs(reference.pointer, - _id_isEnableAppComponentBreadcrumbs as jni$_.JMethodIDPtr) + core$_.bool get isEnableAppComponentBreadcrumbs { + return _get$isEnableAppComponentBreadcrumbs( + reference.pointer, _id_get$isEnableAppComponentBreadcrumbs.pointer) .boolean; } - static final _id_setEnableAppComponentBreadcrumbs = _class.instanceMethodId( + static final _id_set$enableAppComponentBreadcrumbs = + SentryAndroidOptions._class.instanceMethodId( r'setEnableAppComponentBreadcrumbs', r'(Z)V', ); - static final _setEnableAppComponentBreadcrumbs = + static final _set$enableAppComponentBreadcrumbs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -940,25 +766,22 @@ class SentryAndroidOptions extends SentryOptions { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableAppComponentBreadcrumbs(boolean z)` - void setEnableAppComponentBreadcrumbs( - bool z, - ) { - _setEnableAppComponentBreadcrumbs( - reference.pointer, - _id_setEnableAppComponentBreadcrumbs as jni$_.JMethodIDPtr, - z ? 1 : 0) + set enableAppComponentBreadcrumbs(core$_.bool z) { + _set$enableAppComponentBreadcrumbs(reference.pointer, + _id_set$enableAppComponentBreadcrumbs.pointer, z ? 1 : 0) .check(); } - static final _id_isEnableNetworkEventBreadcrumbs = _class.instanceMethodId( + static final _id_get$isEnableNetworkEventBreadcrumbs = + SentryAndroidOptions._class.instanceMethodId( r'isEnableNetworkEventBreadcrumbs', r'()Z', ); - static final _isEnableNetworkEventBreadcrumbs = + static final _get$isEnableNetworkEventBreadcrumbs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -972,18 +795,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isEnableNetworkEventBreadcrumbs()` - bool isEnableNetworkEventBreadcrumbs() { - return _isEnableNetworkEventBreadcrumbs(reference.pointer, - _id_isEnableNetworkEventBreadcrumbs as jni$_.JMethodIDPtr) + core$_.bool get isEnableNetworkEventBreadcrumbs { + return _get$isEnableNetworkEventBreadcrumbs( + reference.pointer, _id_get$isEnableNetworkEventBreadcrumbs.pointer) .boolean; } - static final _id_setEnableNetworkEventBreadcrumbs = _class.instanceMethodId( + static final _id_set$enableNetworkEventBreadcrumbs = + SentryAndroidOptions._class.instanceMethodId( r'setEnableNetworkEventBreadcrumbs', r'(Z)V', ); - static final _setEnableNetworkEventBreadcrumbs = + static final _set$enableNetworkEventBreadcrumbs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -991,20 +815,17 @@ class SentryAndroidOptions extends SentryOptions { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableNetworkEventBreadcrumbs(boolean z)` - void setEnableNetworkEventBreadcrumbs( - bool z, - ) { - _setEnableNetworkEventBreadcrumbs( - reference.pointer, - _id_setEnableNetworkEventBreadcrumbs as jni$_.JMethodIDPtr, - z ? 1 : 0) + set enableNetworkEventBreadcrumbs(core$_.bool z) { + _set$enableNetworkEventBreadcrumbs(reference.pointer, + _id_set$enableNetworkEventBreadcrumbs.pointer, z ? 1 : 0) .check(); } - static final _id_enableAllAutoBreadcrumbs = _class.instanceMethodId( + static final _id_enableAllAutoBreadcrumbs = + SentryAndroidOptions._class.instanceMethodId( r'enableAllAutoBreadcrumbs', r'(Z)V', ); @@ -1017,23 +838,24 @@ class SentryAndroidOptions extends SentryOptions { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void enableAllAutoBreadcrumbs(boolean z)` void enableAllAutoBreadcrumbs( - bool z, + core$_.bool z, ) { - _enableAllAutoBreadcrumbs(reference.pointer, - _id_enableAllAutoBreadcrumbs as jni$_.JMethodIDPtr, z ? 1 : 0) + _enableAllAutoBreadcrumbs( + reference.pointer, _id_enableAllAutoBreadcrumbs.pointer, z ? 1 : 0) .check(); } - static final _id_getDebugImagesLoader = _class.instanceMethodId( + static final _id_get$debugImagesLoader = + SentryAndroidOptions._class.instanceMethodId( r'getDebugImagesLoader', r'()Lio/sentry/android/core/IDebugImagesLoader;', ); - static final _getDebugImagesLoader = jni$_.ProtectedJniExtensions.lookup< + static final _get$debugImagesLoader = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -1047,18 +869,19 @@ class SentryAndroidOptions extends SentryOptions { /// from: `public io.sentry.android.core.IDebugImagesLoader getDebugImagesLoader()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getDebugImagesLoader() { - return _getDebugImagesLoader( - reference.pointer, _id_getDebugImagesLoader as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get debugImagesLoader { + return _get$debugImagesLoader( + reference.pointer, _id_get$debugImagesLoader.pointer) + .object(); } - static final _id_setDebugImagesLoader = _class.instanceMethodId( + static final _id_set$debugImagesLoader = + SentryAndroidOptions._class.instanceMethodId( r'setDebugImagesLoader', r'(Lio/sentry/android/core/IDebugImagesLoader;)V', ); - static final _setDebugImagesLoader = jni$_.ProtectedJniExtensions.lookup< + static final _set$debugImagesLoader = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -1070,24 +893,20 @@ class SentryAndroidOptions extends SentryOptions { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setDebugImagesLoader(io.sentry.android.core.IDebugImagesLoader iDebugImagesLoader)` - void setDebugImagesLoader( - jni$_.JObject iDebugImagesLoader, - ) { + set debugImagesLoader(jni$_.JObject iDebugImagesLoader) { final _$iDebugImagesLoader = iDebugImagesLoader.reference; - _setDebugImagesLoader( - reference.pointer, - _id_setDebugImagesLoader as jni$_.JMethodIDPtr, + _set$debugImagesLoader(reference.pointer, _id_set$debugImagesLoader.pointer, _$iDebugImagesLoader.pointer) .check(); } - static final _id_isEnableAutoActivityLifecycleTracing = - _class.instanceMethodId( + static final _id_get$isEnableAutoActivityLifecycleTracing = + SentryAndroidOptions._class.instanceMethodId( r'isEnableAutoActivityLifecycleTracing', r'()Z', ); - static final _isEnableAutoActivityLifecycleTracing = + static final _get$isEnableAutoActivityLifecycleTracing = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -1101,19 +920,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isEnableAutoActivityLifecycleTracing()` - bool isEnableAutoActivityLifecycleTracing() { - return _isEnableAutoActivityLifecycleTracing(reference.pointer, - _id_isEnableAutoActivityLifecycleTracing as jni$_.JMethodIDPtr) + core$_.bool get isEnableAutoActivityLifecycleTracing { + return _get$isEnableAutoActivityLifecycleTracing(reference.pointer, + _id_get$isEnableAutoActivityLifecycleTracing.pointer) .boolean; } - static final _id_setEnableAutoActivityLifecycleTracing = - _class.instanceMethodId( + static final _id_set$enableAutoActivityLifecycleTracing = + SentryAndroidOptions._class.instanceMethodId( r'setEnableAutoActivityLifecycleTracing', r'(Z)V', ); - static final _setEnableAutoActivityLifecycleTracing = + static final _set$enableAutoActivityLifecycleTracing = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -1121,26 +940,22 @@ class SentryAndroidOptions extends SentryOptions { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableAutoActivityLifecycleTracing(boolean z)` - void setEnableAutoActivityLifecycleTracing( - bool z, - ) { - _setEnableAutoActivityLifecycleTracing( - reference.pointer, - _id_setEnableAutoActivityLifecycleTracing as jni$_.JMethodIDPtr, - z ? 1 : 0) + set enableAutoActivityLifecycleTracing(core$_.bool z) { + _set$enableAutoActivityLifecycleTracing(reference.pointer, + _id_set$enableAutoActivityLifecycleTracing.pointer, z ? 1 : 0) .check(); } - static final _id_isEnableActivityLifecycleTracingAutoFinish = - _class.instanceMethodId( + static final _id_get$isEnableActivityLifecycleTracingAutoFinish = + SentryAndroidOptions._class.instanceMethodId( r'isEnableActivityLifecycleTracingAutoFinish', r'()Z', ); - static final _isEnableActivityLifecycleTracingAutoFinish = + static final _get$isEnableActivityLifecycleTracingAutoFinish = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -1154,21 +969,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isEnableActivityLifecycleTracingAutoFinish()` - bool isEnableActivityLifecycleTracingAutoFinish() { - return _isEnableActivityLifecycleTracingAutoFinish( - reference.pointer, - _id_isEnableActivityLifecycleTracingAutoFinish - as jni$_.JMethodIDPtr) + core$_.bool get isEnableActivityLifecycleTracingAutoFinish { + return _get$isEnableActivityLifecycleTracingAutoFinish(reference.pointer, + _id_get$isEnableActivityLifecycleTracingAutoFinish.pointer) .boolean; } - static final _id_setEnableActivityLifecycleTracingAutoFinish = - _class.instanceMethodId( + static final _id_set$enableActivityLifecycleTracingAutoFinish = + SentryAndroidOptions._class.instanceMethodId( r'setEnableActivityLifecycleTracingAutoFinish', r'(Z)V', ); - static final _setEnableActivityLifecycleTracingAutoFinish = + static final _set$enableActivityLifecycleTracingAutoFinish = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -1176,26 +989,22 @@ class SentryAndroidOptions extends SentryOptions { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableActivityLifecycleTracingAutoFinish(boolean z)` - void setEnableActivityLifecycleTracingAutoFinish( - bool z, - ) { - _setEnableActivityLifecycleTracingAutoFinish( - reference.pointer, - _id_setEnableActivityLifecycleTracingAutoFinish - as jni$_.JMethodIDPtr, - z ? 1 : 0) + set enableActivityLifecycleTracingAutoFinish(core$_.bool z) { + _set$enableActivityLifecycleTracingAutoFinish(reference.pointer, + _id_set$enableActivityLifecycleTracingAutoFinish.pointer, z ? 1 : 0) .check(); } - static final _id_isAttachScreenshot = _class.instanceMethodId( + static final _id_get$isAttachScreenshot = + SentryAndroidOptions._class.instanceMethodId( r'isAttachScreenshot', r'()Z', ); - static final _isAttachScreenshot = jni$_.ProtectedJniExtensions.lookup< + static final _get$isAttachScreenshot = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -1208,18 +1017,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isAttachScreenshot()` - bool isAttachScreenshot() { - return _isAttachScreenshot( - reference.pointer, _id_isAttachScreenshot as jni$_.JMethodIDPtr) + core$_.bool get isAttachScreenshot { + return _get$isAttachScreenshot( + reference.pointer, _id_get$isAttachScreenshot.pointer) .boolean; } - static final _id_setAttachScreenshot = _class.instanceMethodId( + static final _id_set$attachScreenshot = + SentryAndroidOptions._class.instanceMethodId( r'setAttachScreenshot', r'(Z)V', ); - static final _setAttachScreenshot = jni$_.ProtectedJniExtensions.lookup< + static final _set$attachScreenshot = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -1227,23 +1037,22 @@ class SentryAndroidOptions extends SentryOptions { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setAttachScreenshot(boolean z)` - void setAttachScreenshot( - bool z, - ) { - _setAttachScreenshot(reference.pointer, - _id_setAttachScreenshot as jni$_.JMethodIDPtr, z ? 1 : 0) + set attachScreenshot(core$_.bool z) { + _set$attachScreenshot( + reference.pointer, _id_set$attachScreenshot.pointer, z ? 1 : 0) .check(); } - static final _id_isAttachViewHierarchy = _class.instanceMethodId( + static final _id_get$isAttachViewHierarchy = + SentryAndroidOptions._class.instanceMethodId( r'isAttachViewHierarchy', r'()Z', ); - static final _isAttachViewHierarchy = jni$_.ProtectedJniExtensions.lookup< + static final _get$isAttachViewHierarchy = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -1256,18 +1065,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isAttachViewHierarchy()` - bool isAttachViewHierarchy() { - return _isAttachViewHierarchy( - reference.pointer, _id_isAttachViewHierarchy as jni$_.JMethodIDPtr) + core$_.bool get isAttachViewHierarchy { + return _get$isAttachViewHierarchy( + reference.pointer, _id_get$isAttachViewHierarchy.pointer) .boolean; } - static final _id_setAttachViewHierarchy = _class.instanceMethodId( + static final _id_set$attachViewHierarchy = + SentryAndroidOptions._class.instanceMethodId( r'setAttachViewHierarchy', r'(Z)V', ); - static final _setAttachViewHierarchy = jni$_.ProtectedJniExtensions.lookup< + static final _set$attachViewHierarchy = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -1275,23 +1085,22 @@ class SentryAndroidOptions extends SentryOptions { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setAttachViewHierarchy(boolean z)` - void setAttachViewHierarchy( - bool z, - ) { - _setAttachViewHierarchy(reference.pointer, - _id_setAttachViewHierarchy as jni$_.JMethodIDPtr, z ? 1 : 0) + set attachViewHierarchy(core$_.bool z) { + _set$attachViewHierarchy( + reference.pointer, _id_set$attachViewHierarchy.pointer, z ? 1 : 0) .check(); } - static final _id_isCollectAdditionalContext = _class.instanceMethodId( + static final _id_get$isCollectAdditionalContext = + SentryAndroidOptions._class.instanceMethodId( r'isCollectAdditionalContext', r'()Z', ); - static final _isCollectAdditionalContext = + static final _get$isCollectAdditionalContext = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -1305,18 +1114,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isCollectAdditionalContext()` - bool isCollectAdditionalContext() { - return _isCollectAdditionalContext(reference.pointer, - _id_isCollectAdditionalContext as jni$_.JMethodIDPtr) + core$_.bool get isCollectAdditionalContext { + return _get$isCollectAdditionalContext( + reference.pointer, _id_get$isCollectAdditionalContext.pointer) .boolean; } - static final _id_setCollectAdditionalContext = _class.instanceMethodId( + static final _id_set$collectAdditionalContext = + SentryAndroidOptions._class.instanceMethodId( r'setCollectAdditionalContext', r'(Z)V', ); - static final _setCollectAdditionalContext = + static final _set$collectAdditionalContext = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -1324,23 +1134,22 @@ class SentryAndroidOptions extends SentryOptions { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setCollectAdditionalContext(boolean z)` - void setCollectAdditionalContext( - bool z, - ) { - _setCollectAdditionalContext(reference.pointer, - _id_setCollectAdditionalContext as jni$_.JMethodIDPtr, z ? 1 : 0) + set collectAdditionalContext(core$_.bool z) { + _set$collectAdditionalContext(reference.pointer, + _id_set$collectAdditionalContext.pointer, z ? 1 : 0) .check(); } - static final _id_isCollectExternalStorageContext = _class.instanceMethodId( + static final _id_get$isCollectExternalStorageContext = + SentryAndroidOptions._class.instanceMethodId( r'isCollectExternalStorageContext', r'()Z', ); - static final _isCollectExternalStorageContext = + static final _get$isCollectExternalStorageContext = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -1354,18 +1163,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isCollectExternalStorageContext()` - bool isCollectExternalStorageContext() { - return _isCollectExternalStorageContext(reference.pointer, - _id_isCollectExternalStorageContext as jni$_.JMethodIDPtr) + core$_.bool get isCollectExternalStorageContext { + return _get$isCollectExternalStorageContext( + reference.pointer, _id_get$isCollectExternalStorageContext.pointer) .boolean; } - static final _id_setCollectExternalStorageContext = _class.instanceMethodId( + static final _id_set$collectExternalStorageContext = + SentryAndroidOptions._class.instanceMethodId( r'setCollectExternalStorageContext', r'(Z)V', ); - static final _setCollectExternalStorageContext = + static final _set$collectExternalStorageContext = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -1373,49 +1183,48 @@ class SentryAndroidOptions extends SentryOptions { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setCollectExternalStorageContext(boolean z)` - void setCollectExternalStorageContext( - bool z, - ) { - _setCollectExternalStorageContext( - reference.pointer, - _id_setCollectExternalStorageContext as jni$_.JMethodIDPtr, - z ? 1 : 0) + set collectExternalStorageContext(core$_.bool z) { + _set$collectExternalStorageContext(reference.pointer, + _id_set$collectExternalStorageContext.pointer, z ? 1 : 0) .check(); } - static final _id_isEnableFramesTracking = _class.instanceMethodId( + static final _id_get$isEnableFramesTracking = + SentryAndroidOptions._class.instanceMethodId( r'isEnableFramesTracking', r'()Z', ); - static final _isEnableFramesTracking = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$isEnableFramesTracking = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public boolean isEnableFramesTracking()` - bool isEnableFramesTracking() { - return _isEnableFramesTracking( - reference.pointer, _id_isEnableFramesTracking as jni$_.JMethodIDPtr) + core$_.bool get isEnableFramesTracking { + return _get$isEnableFramesTracking( + reference.pointer, _id_get$isEnableFramesTracking.pointer) .boolean; } - static final _id_setEnableFramesTracking = _class.instanceMethodId( + static final _id_set$enableFramesTracking = + SentryAndroidOptions._class.instanceMethodId( r'setEnableFramesTracking', r'(Z)V', ); - static final _setEnableFramesTracking = jni$_.ProtectedJniExtensions.lookup< + static final _set$enableFramesTracking = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -1423,24 +1232,22 @@ class SentryAndroidOptions extends SentryOptions { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableFramesTracking(boolean z)` - void setEnableFramesTracking( - bool z, - ) { - _setEnableFramesTracking(reference.pointer, - _id_setEnableFramesTracking as jni$_.JMethodIDPtr, z ? 1 : 0) + set enableFramesTracking(core$_.bool z) { + _set$enableFramesTracking( + reference.pointer, _id_set$enableFramesTracking.pointer, z ? 1 : 0) .check(); } - static final _id_getStartupCrashDurationThresholdMillis = - _class.instanceMethodId( + static final _id_get$startupCrashDurationThresholdMillis = + SentryAndroidOptions._class.instanceMethodId( r'getStartupCrashDurationThresholdMillis', r'()J', ); - static final _getStartupCrashDurationThresholdMillis = + static final _get$startupCrashDurationThresholdMillis = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -1454,18 +1261,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public long getStartupCrashDurationThresholdMillis()` - int getStartupCrashDurationThresholdMillis() { - return _getStartupCrashDurationThresholdMillis(reference.pointer, - _id_getStartupCrashDurationThresholdMillis as jni$_.JMethodIDPtr) + core$_.int get startupCrashDurationThresholdMillis { + return _get$startupCrashDurationThresholdMillis(reference.pointer, + _id_get$startupCrashDurationThresholdMillis.pointer) .long; } - static final _id_setNativeSdkName = _class.instanceMethodId( + static final _id_set$nativeSdkName = + SentryAndroidOptions._class.instanceMethodId( r'setNativeSdkName', r'(Ljava/lang/String;)V', ); - static final _setNativeSdkName = jni$_.ProtectedJniExtensions.lookup< + static final _set$nativeSdkName = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -1477,21 +1285,20 @@ class SentryAndroidOptions extends SentryOptions { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setNativeSdkName(java.lang.String string)` - void setNativeSdkName( - jni$_.JString? string, - ) { + set nativeSdkName(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setNativeSdkName(reference.pointer, - _id_setNativeSdkName as jni$_.JMethodIDPtr, _$string.pointer) + _set$nativeSdkName( + reference.pointer, _id_set$nativeSdkName.pointer, _$string.pointer) .check(); } - static final _id_setNativeHandlerStrategy = _class.instanceMethodId( + static final _id_set$nativeHandlerStrategy = + SentryAndroidOptions._class.instanceMethodId( r'setNativeHandlerStrategy', r'(Lio/sentry/android/core/NdkHandlerStrategy;)V', ); - static final _setNativeHandlerStrategy = jni$_.ProtectedJniExtensions.lookup< + static final _set$nativeHandlerStrategy = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -1503,23 +1310,20 @@ class SentryAndroidOptions extends SentryOptions { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setNativeHandlerStrategy(io.sentry.android.core.NdkHandlerStrategy ndkHandlerStrategy)` - void setNativeHandlerStrategy( - jni$_.JObject ndkHandlerStrategy, - ) { + set nativeHandlerStrategy(jni$_.JObject ndkHandlerStrategy) { final _$ndkHandlerStrategy = ndkHandlerStrategy.reference; - _setNativeHandlerStrategy( - reference.pointer, - _id_setNativeHandlerStrategy as jni$_.JMethodIDPtr, - _$ndkHandlerStrategy.pointer) + _set$nativeHandlerStrategy(reference.pointer, + _id_set$nativeHandlerStrategy.pointer, _$ndkHandlerStrategy.pointer) .check(); } - static final _id_getNdkHandlerStrategy = _class.instanceMethodId( + static final _id_get$ndkHandlerStrategy = + SentryAndroidOptions._class.instanceMethodId( r'getNdkHandlerStrategy', r'()I', ); - static final _getNdkHandlerStrategy = jni$_.ProtectedJniExtensions.lookup< + static final _get$ndkHandlerStrategy = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -1532,18 +1336,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public int getNdkHandlerStrategy()` - int getNdkHandlerStrategy() { - return _getNdkHandlerStrategy( - reference.pointer, _id_getNdkHandlerStrategy as jni$_.JMethodIDPtr) + core$_.int get ndkHandlerStrategy { + return _get$ndkHandlerStrategy( + reference.pointer, _id_get$ndkHandlerStrategy.pointer) .integer; } - static final _id_getNativeSdkName = _class.instanceMethodId( + static final _id_get$nativeSdkName = + SentryAndroidOptions._class.instanceMethodId( r'getNativeSdkName', r'()Ljava/lang/String;', ); - static final _getNativeSdkName = jni$_.ProtectedJniExtensions.lookup< + static final _get$nativeSdkName = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -1557,18 +1362,18 @@ class SentryAndroidOptions extends SentryOptions { /// from: `public java.lang.String getNativeSdkName()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getNativeSdkName() { - return _getNativeSdkName( - reference.pointer, _id_getNativeSdkName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get nativeSdkName { + return _get$nativeSdkName(reference.pointer, _id_get$nativeSdkName.pointer) + .object(); } - static final _id_isEnableRootCheck = _class.instanceMethodId( + static final _id_get$isEnableRootCheck = + SentryAndroidOptions._class.instanceMethodId( r'isEnableRootCheck', r'()Z', ); - static final _isEnableRootCheck = jni$_.ProtectedJniExtensions.lookup< + static final _get$isEnableRootCheck = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -1581,18 +1386,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isEnableRootCheck()` - bool isEnableRootCheck() { - return _isEnableRootCheck( - reference.pointer, _id_isEnableRootCheck as jni$_.JMethodIDPtr) + core$_.bool get isEnableRootCheck { + return _get$isEnableRootCheck( + reference.pointer, _id_get$isEnableRootCheck.pointer) .boolean; } - static final _id_setEnableRootCheck = _class.instanceMethodId( + static final _id_set$enableRootCheck = + SentryAndroidOptions._class.instanceMethodId( r'setEnableRootCheck', r'(Z)V', ); - static final _setEnableRootCheck = jni$_.ProtectedJniExtensions.lookup< + static final _set$enableRootCheck = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -1600,139 +1406,22 @@ class SentryAndroidOptions extends SentryOptions { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableRootCheck(boolean z)` - void setEnableRootCheck( - bool z, - ) { - _setEnableRootCheck(reference.pointer, - _id_setEnableRootCheck as jni$_.JMethodIDPtr, z ? 1 : 0) - .check(); - } - - static final _id_getBeforeScreenshotCaptureCallback = _class.instanceMethodId( - r'getBeforeScreenshotCaptureCallback', - r'()Lio/sentry/android/core/SentryAndroidOptions$BeforeCaptureCallback;', - ); - - static final _getBeforeScreenshotCaptureCallback = - jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public io.sentry.android.core.SentryAndroidOptions$BeforeCaptureCallback getBeforeScreenshotCaptureCallback()` - /// The returned object must be released after use, by calling the [release] method. - SentryAndroidOptions$BeforeCaptureCallback? - getBeforeScreenshotCaptureCallback() { - return _getBeforeScreenshotCaptureCallback(reference.pointer, - _id_getBeforeScreenshotCaptureCallback as jni$_.JMethodIDPtr) - .object( - const $SentryAndroidOptions$BeforeCaptureCallback$NullableType()); - } - - static final _id_setBeforeScreenshotCaptureCallback = _class.instanceMethodId( - r'setBeforeScreenshotCaptureCallback', - r'(Lio/sentry/android/core/SentryAndroidOptions$BeforeCaptureCallback;)V', - ); - - static final _setBeforeScreenshotCaptureCallback = - jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public void setBeforeScreenshotCaptureCallback(io.sentry.android.core.SentryAndroidOptions$BeforeCaptureCallback beforeCaptureCallback)` - void setBeforeScreenshotCaptureCallback( - SentryAndroidOptions$BeforeCaptureCallback beforeCaptureCallback, - ) { - final _$beforeCaptureCallback = beforeCaptureCallback.reference; - _setBeforeScreenshotCaptureCallback( - reference.pointer, - _id_setBeforeScreenshotCaptureCallback as jni$_.JMethodIDPtr, - _$beforeCaptureCallback.pointer) - .check(); - } - - static final _id_getBeforeViewHierarchyCaptureCallback = - _class.instanceMethodId( - r'getBeforeViewHierarchyCaptureCallback', - r'()Lio/sentry/android/core/SentryAndroidOptions$BeforeCaptureCallback;', - ); - - static final _getBeforeViewHierarchyCaptureCallback = - jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public io.sentry.android.core.SentryAndroidOptions$BeforeCaptureCallback getBeforeViewHierarchyCaptureCallback()` - /// The returned object must be released after use, by calling the [release] method. - SentryAndroidOptions$BeforeCaptureCallback? - getBeforeViewHierarchyCaptureCallback() { - return _getBeforeViewHierarchyCaptureCallback(reference.pointer, - _id_getBeforeViewHierarchyCaptureCallback as jni$_.JMethodIDPtr) - .object( - const $SentryAndroidOptions$BeforeCaptureCallback$NullableType()); - } - - static final _id_setBeforeViewHierarchyCaptureCallback = - _class.instanceMethodId( - r'setBeforeViewHierarchyCaptureCallback', - r'(Lio/sentry/android/core/SentryAndroidOptions$BeforeCaptureCallback;)V', - ); - - static final _setBeforeViewHierarchyCaptureCallback = - jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public void setBeforeViewHierarchyCaptureCallback(io.sentry.android.core.SentryAndroidOptions$BeforeCaptureCallback beforeCaptureCallback)` - void setBeforeViewHierarchyCaptureCallback( - SentryAndroidOptions$BeforeCaptureCallback beforeCaptureCallback, - ) { - final _$beforeCaptureCallback = beforeCaptureCallback.reference; - _setBeforeViewHierarchyCaptureCallback( - reference.pointer, - _id_setBeforeViewHierarchyCaptureCallback as jni$_.JMethodIDPtr, - _$beforeCaptureCallback.pointer) + set enableRootCheck(core$_.bool z) { + _set$enableRootCheck( + reference.pointer, _id_set$enableRootCheck.pointer, z ? 1 : 0) .check(); } - static final _id_isEnableNdk = _class.instanceMethodId( + static final _id_get$isEnableNdk = + SentryAndroidOptions._class.instanceMethodId( r'isEnableNdk', r'()Z', ); - static final _isEnableNdk = jni$_.ProtectedJniExtensions.lookup< + static final _get$isEnableNdk = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -1745,18 +1434,17 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isEnableNdk()` - bool isEnableNdk() { - return _isEnableNdk( - reference.pointer, _id_isEnableNdk as jni$_.JMethodIDPtr) + core$_.bool get isEnableNdk { + return _get$isEnableNdk(reference.pointer, _id_get$isEnableNdk.pointer) .boolean; } - static final _id_setEnableNdk = _class.instanceMethodId( + static final _id_set$enableNdk = SentryAndroidOptions._class.instanceMethodId( r'setEnableNdk', r'(Z)V', ); - static final _setEnableNdk = jni$_.ProtectedJniExtensions.lookup< + static final _set$enableNdk = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -1764,23 +1452,21 @@ class SentryAndroidOptions extends SentryOptions { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableNdk(boolean z)` - void setEnableNdk( - bool z, - ) { - _setEnableNdk(reference.pointer, _id_setEnableNdk as jni$_.JMethodIDPtr, - z ? 1 : 0) + set enableNdk(core$_.bool z) { + _set$enableNdk(reference.pointer, _id_set$enableNdk.pointer, z ? 1 : 0) .check(); } - static final _id_isEnableScopeSync = _class.instanceMethodId( + static final _id_get$isEnableScopeSync = + SentryAndroidOptions._class.instanceMethodId( r'isEnableScopeSync', r'()Z', ); - static final _isEnableScopeSync = jni$_.ProtectedJniExtensions.lookup< + static final _get$isEnableScopeSync = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -1793,18 +1479,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isEnableScopeSync()` - bool isEnableScopeSync() { - return _isEnableScopeSync( - reference.pointer, _id_isEnableScopeSync as jni$_.JMethodIDPtr) + core$_.bool get isEnableScopeSync { + return _get$isEnableScopeSync( + reference.pointer, _id_get$isEnableScopeSync.pointer) .boolean; } - static final _id_setEnableScopeSync = _class.instanceMethodId( + static final _id_set$enableScopeSync = + SentryAndroidOptions._class.instanceMethodId( r'setEnableScopeSync', r'(Z)V', ); - static final _setEnableScopeSync = jni$_.ProtectedJniExtensions.lookup< + static final _set$enableScopeSync = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -1812,47 +1499,48 @@ class SentryAndroidOptions extends SentryOptions { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableScopeSync(boolean z)` - void setEnableScopeSync( - bool z, - ) { - _setEnableScopeSync(reference.pointer, - _id_setEnableScopeSync as jni$_.JMethodIDPtr, z ? 1 : 0) + set enableScopeSync(core$_.bool z) { + _set$enableScopeSync( + reference.pointer, _id_set$enableScopeSync.pointer, z ? 1 : 0) .check(); } - static final _id_isReportHistoricalAnrs = _class.instanceMethodId( + static final _id_get$isReportHistoricalAnrs = + SentryAndroidOptions._class.instanceMethodId( r'isReportHistoricalAnrs', r'()Z', ); - static final _isReportHistoricalAnrs = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$isReportHistoricalAnrs = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public boolean isReportHistoricalAnrs()` - bool isReportHistoricalAnrs() { - return _isReportHistoricalAnrs( - reference.pointer, _id_isReportHistoricalAnrs as jni$_.JMethodIDPtr) + core$_.bool get isReportHistoricalAnrs { + return _get$isReportHistoricalAnrs( + reference.pointer, _id_get$isReportHistoricalAnrs.pointer) .boolean; } - static final _id_setReportHistoricalAnrs = _class.instanceMethodId( + static final _id_set$reportHistoricalAnrs = + SentryAndroidOptions._class.instanceMethodId( r'setReportHistoricalAnrs', r'(Z)V', ); - static final _setReportHistoricalAnrs = jni$_.ProtectedJniExtensions.lookup< + static final _set$reportHistoricalAnrs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -1860,23 +1548,22 @@ class SentryAndroidOptions extends SentryOptions { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setReportHistoricalAnrs(boolean z)` - void setReportHistoricalAnrs( - bool z, - ) { - _setReportHistoricalAnrs(reference.pointer, - _id_setReportHistoricalAnrs as jni$_.JMethodIDPtr, z ? 1 : 0) + set reportHistoricalAnrs(core$_.bool z) { + _set$reportHistoricalAnrs( + reference.pointer, _id_set$reportHistoricalAnrs.pointer, z ? 1 : 0) .check(); } - static final _id_isReportHistoricalTombstones = _class.instanceMethodId( + static final _id_get$isReportHistoricalTombstones = + SentryAndroidOptions._class.instanceMethodId( r'isReportHistoricalTombstones', r'()Z', ); - static final _isReportHistoricalTombstones = + static final _get$isReportHistoricalTombstones = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -1890,18 +1577,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isReportHistoricalTombstones()` - bool isReportHistoricalTombstones() { - return _isReportHistoricalTombstones(reference.pointer, - _id_isReportHistoricalTombstones as jni$_.JMethodIDPtr) + core$_.bool get isReportHistoricalTombstones { + return _get$isReportHistoricalTombstones( + reference.pointer, _id_get$isReportHistoricalTombstones.pointer) .boolean; } - static final _id_setReportHistoricalTombstones = _class.instanceMethodId( + static final _id_set$reportHistoricalTombstones = + SentryAndroidOptions._class.instanceMethodId( r'setReportHistoricalTombstones', r'(Z)V', ); - static final _setReportHistoricalTombstones = + static final _set$reportHistoricalTombstones = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -1909,23 +1597,22 @@ class SentryAndroidOptions extends SentryOptions { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setReportHistoricalTombstones(boolean z)` - void setReportHistoricalTombstones( - bool z, - ) { - _setReportHistoricalTombstones(reference.pointer, - _id_setReportHistoricalTombstones as jni$_.JMethodIDPtr, z ? 1 : 0) + set reportHistoricalTombstones(core$_.bool z) { + _set$reportHistoricalTombstones(reference.pointer, + _id_set$reportHistoricalTombstones.pointer, z ? 1 : 0) .check(); } - static final _id_isAttachAnrThreadDump = _class.instanceMethodId( + static final _id_get$isAttachAnrThreadDump = + SentryAndroidOptions._class.instanceMethodId( r'isAttachAnrThreadDump', r'()Z', ); - static final _isAttachAnrThreadDump = jni$_.ProtectedJniExtensions.lookup< + static final _get$isAttachAnrThreadDump = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -1938,18 +1625,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isAttachAnrThreadDump()` - bool isAttachAnrThreadDump() { - return _isAttachAnrThreadDump( - reference.pointer, _id_isAttachAnrThreadDump as jni$_.JMethodIDPtr) + core$_.bool get isAttachAnrThreadDump { + return _get$isAttachAnrThreadDump( + reference.pointer, _id_get$isAttachAnrThreadDump.pointer) .boolean; } - static final _id_setAttachAnrThreadDump = _class.instanceMethodId( + static final _id_set$attachAnrThreadDump = + SentryAndroidOptions._class.instanceMethodId( r'setAttachAnrThreadDump', r'(Z)V', ); - static final _setAttachAnrThreadDump = jni$_.ProtectedJniExtensions.lookup< + static final _set$attachAnrThreadDump = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -1957,23 +1645,22 @@ class SentryAndroidOptions extends SentryOptions { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setAttachAnrThreadDump(boolean z)` - void setAttachAnrThreadDump( - bool z, - ) { - _setAttachAnrThreadDump(reference.pointer, - _id_setAttachAnrThreadDump as jni$_.JMethodIDPtr, z ? 1 : 0) + set attachAnrThreadDump(core$_.bool z) { + _set$attachAnrThreadDump( + reference.pointer, _id_set$attachAnrThreadDump.pointer, z ? 1 : 0) .check(); } - static final _id_isEnablePerformanceV2 = _class.instanceMethodId( + static final _id_get$isEnablePerformanceV2 = + SentryAndroidOptions._class.instanceMethodId( r'isEnablePerformanceV2', r'()Z', ); - static final _isEnablePerformanceV2 = jni$_.ProtectedJniExtensions.lookup< + static final _get$isEnablePerformanceV2 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -1986,18 +1673,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isEnablePerformanceV2()` - bool isEnablePerformanceV2() { - return _isEnablePerformanceV2( - reference.pointer, _id_isEnablePerformanceV2 as jni$_.JMethodIDPtr) + core$_.bool get isEnablePerformanceV2 { + return _get$isEnablePerformanceV2( + reference.pointer, _id_get$isEnablePerformanceV2.pointer) .boolean; } - static final _id_setEnablePerformanceV2 = _class.instanceMethodId( + static final _id_set$enablePerformanceV2 = + SentryAndroidOptions._class.instanceMethodId( r'setEnablePerformanceV2', r'(Z)V', ); - static final _setEnablePerformanceV2 = jni$_.ProtectedJniExtensions.lookup< + static final _set$enablePerformanceV2 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -2005,23 +1693,22 @@ class SentryAndroidOptions extends SentryOptions { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnablePerformanceV2(boolean z)` - void setEnablePerformanceV2( - bool z, - ) { - _setEnablePerformanceV2(reference.pointer, - _id_setEnablePerformanceV2 as jni$_.JMethodIDPtr, z ? 1 : 0) + set enablePerformanceV2(core$_.bool z) { + _set$enablePerformanceV2( + reference.pointer, _id_set$enablePerformanceV2.pointer, z ? 1 : 0) .check(); } - static final _id_getFrameMetricsCollector = _class.instanceMethodId( + static final _id_get$frameMetricsCollector = + SentryAndroidOptions._class.instanceMethodId( r'getFrameMetricsCollector', r'()Lio/sentry/android/core/internal/util/SentryFrameMetricsCollector;', ); - static final _getFrameMetricsCollector = jni$_.ProtectedJniExtensions.lookup< + static final _get$frameMetricsCollector = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -2035,18 +1722,19 @@ class SentryAndroidOptions extends SentryOptions { /// from: `public io.sentry.android.core.internal.util.SentryFrameMetricsCollector getFrameMetricsCollector()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getFrameMetricsCollector() { - return _getFrameMetricsCollector(reference.pointer, - _id_getFrameMetricsCollector as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get frameMetricsCollector { + return _get$frameMetricsCollector( + reference.pointer, _id_get$frameMetricsCollector.pointer) + .object(); } - static final _id_setFrameMetricsCollector = _class.instanceMethodId( + static final _id_set$frameMetricsCollector = + SentryAndroidOptions._class.instanceMethodId( r'setFrameMetricsCollector', r'(Lio/sentry/android/core/internal/util/SentryFrameMetricsCollector;)V', ); - static final _setFrameMetricsCollector = jni$_.ProtectedJniExtensions.lookup< + static final _set$frameMetricsCollector = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -2058,24 +1746,23 @@ class SentryAndroidOptions extends SentryOptions { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setFrameMetricsCollector(io.sentry.android.core.internal.util.SentryFrameMetricsCollector sentryFrameMetricsCollector)` - void setFrameMetricsCollector( - jni$_.JObject? sentryFrameMetricsCollector, - ) { + set frameMetricsCollector(jni$_.JObject? sentryFrameMetricsCollector) { final _$sentryFrameMetricsCollector = sentryFrameMetricsCollector?.reference ?? jni$_.jNullReference; - _setFrameMetricsCollector( + _set$frameMetricsCollector( reference.pointer, - _id_setFrameMetricsCollector as jni$_.JMethodIDPtr, + _id_set$frameMetricsCollector.pointer, _$sentryFrameMetricsCollector.pointer) .check(); } - static final _id_isEnableAutoTraceIdGeneration = _class.instanceMethodId( + static final _id_get$isEnableAutoTraceIdGeneration = + SentryAndroidOptions._class.instanceMethodId( r'isEnableAutoTraceIdGeneration', r'()Z', ); - static final _isEnableAutoTraceIdGeneration = + static final _get$isEnableAutoTraceIdGeneration = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -2089,18 +1776,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isEnableAutoTraceIdGeneration()` - bool isEnableAutoTraceIdGeneration() { - return _isEnableAutoTraceIdGeneration(reference.pointer, - _id_isEnableAutoTraceIdGeneration as jni$_.JMethodIDPtr) + core$_.bool get isEnableAutoTraceIdGeneration { + return _get$isEnableAutoTraceIdGeneration( + reference.pointer, _id_get$isEnableAutoTraceIdGeneration.pointer) .boolean; } - static final _id_setEnableAutoTraceIdGeneration = _class.instanceMethodId( + static final _id_set$enableAutoTraceIdGeneration = + SentryAndroidOptions._class.instanceMethodId( r'setEnableAutoTraceIdGeneration', r'(Z)V', ); - static final _setEnableAutoTraceIdGeneration = + static final _set$enableAutoTraceIdGeneration = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -2108,24 +1796,22 @@ class SentryAndroidOptions extends SentryOptions { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableAutoTraceIdGeneration(boolean z)` - void setEnableAutoTraceIdGeneration( - bool z, - ) { - _setEnableAutoTraceIdGeneration(reference.pointer, - _id_setEnableAutoTraceIdGeneration as jni$_.JMethodIDPtr, z ? 1 : 0) + set enableAutoTraceIdGeneration(core$_.bool z) { + _set$enableAutoTraceIdGeneration(reference.pointer, + _id_set$enableAutoTraceIdGeneration.pointer, z ? 1 : 0) .check(); } - static final _id_isEnableSystemEventBreadcrumbsExtras = - _class.instanceMethodId( + static final _id_get$isEnableSystemEventBreadcrumbsExtras = + SentryAndroidOptions._class.instanceMethodId( r'isEnableSystemEventBreadcrumbsExtras', r'()Z', ); - static final _isEnableSystemEventBreadcrumbsExtras = + static final _get$isEnableSystemEventBreadcrumbsExtras = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -2139,19 +1825,19 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isEnableSystemEventBreadcrumbsExtras()` - bool isEnableSystemEventBreadcrumbsExtras() { - return _isEnableSystemEventBreadcrumbsExtras(reference.pointer, - _id_isEnableSystemEventBreadcrumbsExtras as jni$_.JMethodIDPtr) + core$_.bool get isEnableSystemEventBreadcrumbsExtras { + return _get$isEnableSystemEventBreadcrumbsExtras(reference.pointer, + _id_get$isEnableSystemEventBreadcrumbsExtras.pointer) .boolean; } - static final _id_setEnableSystemEventBreadcrumbsExtras = - _class.instanceMethodId( + static final _id_set$enableSystemEventBreadcrumbsExtras = + SentryAndroidOptions._class.instanceMethodId( r'setEnableSystemEventBreadcrumbsExtras', r'(Z)V', ); - static final _setEnableSystemEventBreadcrumbsExtras = + static final _set$enableSystemEventBreadcrumbsExtras = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -2159,25 +1845,22 @@ class SentryAndroidOptions extends SentryOptions { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableSystemEventBreadcrumbsExtras(boolean z)` - void setEnableSystemEventBreadcrumbsExtras( - bool z, - ) { - _setEnableSystemEventBreadcrumbsExtras( - reference.pointer, - _id_setEnableSystemEventBreadcrumbsExtras as jni$_.JMethodIDPtr, - z ? 1 : 0) + set enableSystemEventBreadcrumbsExtras(core$_.bool z) { + _set$enableSystemEventBreadcrumbsExtras(reference.pointer, + _id_set$enableSystemEventBreadcrumbsExtras.pointer, z ? 1 : 0) .check(); } - static final _id_getScreenshot = _class.instanceMethodId( + static final _id_get$screenshot = + SentryAndroidOptions._class.instanceMethodId( r'getScreenshot', r'()Lio/sentry/android/core/SentryScreenshotOptions;', ); - static final _getScreenshot = jni$_.ProtectedJniExtensions.lookup< + static final _get$screenshot = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -2191,71 +1874,71 @@ class SentryAndroidOptions extends SentryOptions { /// from: `public io.sentry.android.core.SentryScreenshotOptions getScreenshot()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getScreenshot() { - return _getScreenshot( - reference.pointer, _id_getScreenshot as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get screenshot { + return _get$screenshot(reference.pointer, _id_get$screenshot.pointer) + .object(); } - static final _id_getAnrProfilingSampleRate = _class.instanceMethodId( + static final _id_get$anrProfilingSampleRate = + SentryAndroidOptions._class.instanceMethodId( r'getAnrProfilingSampleRate', r'()Ljava/lang/Double;', ); - static final _getAnrProfilingSampleRate = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$anrProfilingSampleRate = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public java.lang.Double getAnrProfilingSampleRate()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JDouble? getAnrProfilingSampleRate() { - return _getAnrProfilingSampleRate(reference.pointer, - _id_getAnrProfilingSampleRate as jni$_.JMethodIDPtr) - .object(const jni$_.JDoubleNullableType()); + jni$_.JDouble? get anrProfilingSampleRate { + return _get$anrProfilingSampleRate( + reference.pointer, _id_get$anrProfilingSampleRate.pointer) + .object(); } - static final _id_setAnrProfilingSampleRate = _class.instanceMethodId( + static final _id_set$anrProfilingSampleRate = + SentryAndroidOptions._class.instanceMethodId( r'setAnrProfilingSampleRate', r'(Ljava/lang/Double;)V', ); - static final _setAnrProfilingSampleRate = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _set$anrProfilingSampleRate = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setAnrProfilingSampleRate(java.lang.Double double)` - void setAnrProfilingSampleRate( - jni$_.JDouble? double, - ) { + set anrProfilingSampleRate(jni$_.JDouble? double) { final _$double = double?.reference ?? jni$_.jNullReference; - _setAnrProfilingSampleRate( - reference.pointer, - _id_setAnrProfilingSampleRate as jni$_.JMethodIDPtr, - _$double.pointer) + _set$anrProfilingSampleRate(reference.pointer, + _id_set$anrProfilingSampleRate.pointer, _$double.pointer) .check(); } - static final _id_isAnrProfilingEnabled = _class.instanceMethodId( + static final _id_get$isAnrProfilingEnabled = + SentryAndroidOptions._class.instanceMethodId( r'isAnrProfilingEnabled', r'()Z', ); - static final _isAnrProfilingEnabled = jni$_.ProtectedJniExtensions.lookup< + static final _get$isAnrProfilingEnabled = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -2268,42 +1951,45 @@ class SentryAndroidOptions extends SentryOptions { )>(); /// from: `public boolean isAnrProfilingEnabled()` - bool isAnrProfilingEnabled() { - return _isAnrProfilingEnabled( - reference.pointer, _id_isAnrProfilingEnabled as jni$_.JMethodIDPtr) + core$_.bool get isAnrProfilingEnabled { + return _get$isAnrProfilingEnabled( + reference.pointer, _id_get$isAnrProfilingEnabled.pointer) .boolean; } - static final _id_isEnableAnrFingerprinting = _class.instanceMethodId( + static final _id_get$isEnableAnrFingerprinting = + SentryAndroidOptions._class.instanceMethodId( r'isEnableAnrFingerprinting', r'()Z', ); - static final _isEnableAnrFingerprinting = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$isEnableAnrFingerprinting = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public boolean isEnableAnrFingerprinting()` - bool isEnableAnrFingerprinting() { - return _isEnableAnrFingerprinting(reference.pointer, - _id_isEnableAnrFingerprinting as jni$_.JMethodIDPtr) + core$_.bool get isEnableAnrFingerprinting { + return _get$isEnableAnrFingerprinting( + reference.pointer, _id_get$isEnableAnrFingerprinting.pointer) .boolean; } - static final _id_setEnableAnrFingerprinting = _class.instanceMethodId( + static final _id_set$enableAnrFingerprinting = + SentryAndroidOptions._class.instanceMethodId( r'setEnableAnrFingerprinting', r'(Z)V', ); - static final _setEnableAnrFingerprinting = + static final _set$enableAnrFingerprinting = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -2311,113 +1997,34 @@ class SentryAndroidOptions extends SentryOptions { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableAnrFingerprinting(boolean z)` - void setEnableAnrFingerprinting( - bool z, - ) { - _setEnableAnrFingerprinting(reference.pointer, - _id_setEnableAnrFingerprinting as jni$_.JMethodIDPtr, z ? 1 : 0) + set enableAnrFingerprinting(core$_.bool z) { + _set$enableAnrFingerprinting(reference.pointer, + _id_set$enableAnrFingerprinting.pointer, z ? 1 : 0) .check(); } } -final class $SentryAndroidOptions$NullableType - extends jni$_.JObjType { +final class $SentryAndroidOptions$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryAndroidOptions$NullableType(); + const $SentryAndroidOptions$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/android/core/SentryAndroidOptions;'; - - @jni$_.internal - @core$_.override - SentryAndroidOptions? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryAndroidOptions.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const $SentryOptions$NullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 2; - - @core$_.override - int get hashCode => ($SentryAndroidOptions$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryAndroidOptions$NullableType) && - other is $SentryAndroidOptions$NullableType; - } -} - -final class $SentryAndroidOptions$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryAndroidOptions$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/android/core/SentryAndroidOptions;'; - - @jni$_.internal - @core$_.override - SentryAndroidOptions fromReference(jni$_.JReference reference) => - SentryAndroidOptions.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const $SentryOptions$NullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryAndroidOptions$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 2; - - @core$_.override - int get hashCode => ($SentryAndroidOptions$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryAndroidOptions$Type) && - other is $SentryAndroidOptions$Type; - } } /// from: `io.sentry.android.core.InternalSentrySdk` -class InternalSentrySdk extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - InternalSentrySdk.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type InternalSentrySdk._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/android/core/InternalSentrySdk'); /// The type which includes information such as the signature of this class. - static const nullableType = $InternalSentrySdk$NullableType(); - static const type = $InternalSentrySdk$Type(); + static const jni$_.JType type = $InternalSentrySdk$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -2437,17 +2044,16 @@ class InternalSentrySdk extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory InternalSentrySdk() { - return InternalSentrySdk.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } - static final _id_getCurrentScope = _class.staticMethodId( + static final _id_get$currentScope = _class.staticMethodId( r'getCurrentScope', r'()Lio/sentry/IScope;', ); - static final _getCurrentScope = jni$_.ProtectedJniExtensions.lookup< + static final _get$currentScope = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -2461,10 +2067,10 @@ class InternalSentrySdk extends jni$_.JObject { /// from: `static public io.sentry.IScope getCurrentScope()` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? getCurrentScope() { - return _getCurrentScope( - _class.reference.pointer, _id_getCurrentScope as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + static jni$_.JObject? get currentScope { + return _get$currentScope( + _class.reference.pointer, _id_get$currentScope.pointer) + .object(); } static final _id_serializeScope = _class.staticMethodId( @@ -2501,15 +2107,9 @@ class InternalSentrySdk extends jni$_.JObject { final _$context = context.reference; final _$sentryAndroidOptions = sentryAndroidOptions.reference; final _$iScope = iScope?.reference ?? jni$_.jNullReference; - return _serializeScope( - _class.reference.pointer, - _id_serializeScope as jni$_.JMethodIDPtr, - _$context.pointer, - _$sentryAndroidOptions.pointer, - _$iScope.pointer) - .object>( - const jni$_.JMapType( - jni$_.JStringNullableType(), jni$_.JObjectNullableType())); + return _serializeScope(_class.reference.pointer, _id_serializeScope.pointer, + _$context.pointer, _$sentryAndroidOptions.pointer, _$iScope.pointer) + .object>(); } static final _id_captureEnvelope = _class.staticMethodId( @@ -2527,26 +2127,26 @@ class InternalSentrySdk extends jni$_.JObject { 'globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); /// from: `static public io.sentry.protocol.SentryId captureEnvelope(byte[] bs, boolean z)` /// The returned object must be released after use, by calling the [release] method. static SentryId? captureEnvelope( jni$_.JByteArray bs, - bool z, + core$_.bool z, ) { final _$bs = bs.reference; return _captureEnvelope(_class.reference.pointer, - _id_captureEnvelope as jni$_.JMethodIDPtr, _$bs.pointer, z ? 1 : 0) - .object(const $SentryId$NullableType()); + _id_captureEnvelope.pointer, _$bs.pointer, z ? 1 : 0) + .object(); } - static final _id_getAppStartMeasurement = _class.staticMethodId( + static final _id_get$appStartMeasurement = _class.staticMethodId( r'getAppStartMeasurement', r'()Ljava/util/Map;', ); - static final _getAppStartMeasurement = jni$_.ProtectedJniExtensions.lookup< + static final _get$appStartMeasurement = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -2560,12 +2160,10 @@ class InternalSentrySdk extends jni$_.JObject { /// from: `static public java.util.Map getAppStartMeasurement()` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JMap? getAppStartMeasurement() { - return _getAppStartMeasurement(_class.reference.pointer, - _id_getAppStartMeasurement as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JMapNullableType( - jni$_.JStringNullableType(), jni$_.JObjectNullableType())); + static jni$_.JMap? get appStartMeasurement { + return _get$appStartMeasurement( + _class.reference.pointer, _id_get$appStartMeasurement.pointer) + .object?>(); } static final _id_setTrace = _class.staticMethodId( @@ -2605,111 +2203,28 @@ class InternalSentrySdk extends jni$_.JObject { final _$string1 = string1.reference; final _$double = double?.reference ?? jni$_.jNullReference; final _$double1 = double1?.reference ?? jni$_.jNullReference; - _setTrace( - _class.reference.pointer, - _id_setTrace as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer, - _$double.pointer, - _$double1.pointer) + _setTrace(_class.reference.pointer, _id_setTrace.pointer, _$string.pointer, + _$string1.pointer, _$double.pointer, _$double1.pointer) .check(); } } -final class $InternalSentrySdk$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $InternalSentrySdk$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/android/core/InternalSentrySdk;'; - - @jni$_.internal - @core$_.override - InternalSentrySdk? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : InternalSentrySdk.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($InternalSentrySdk$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($InternalSentrySdk$NullableType) && - other is $InternalSentrySdk$NullableType; - } -} - -final class $InternalSentrySdk$Type extends jni$_.JObjType { +final class $InternalSentrySdk$Type$ extends jni$_.JType { @jni$_.internal - const $InternalSentrySdk$Type(); + const $InternalSentrySdk$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/android/core/InternalSentrySdk;'; - - @jni$_.internal - @core$_.override - InternalSentrySdk fromReference(jni$_.JReference reference) => - InternalSentrySdk.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $InternalSentrySdk$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($InternalSentrySdk$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($InternalSentrySdk$Type) && - other is $InternalSentrySdk$Type; - } } /// from: `io.sentry.android.core.BuildConfig` -class BuildConfig extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - BuildConfig.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type BuildConfig._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/android/core/BuildConfig'); /// The type which includes information such as the signature of this class. - static const nullableType = $BuildConfig$NullableType(); - static const type = $BuildConfig$Type(); + static const jni$_.JType type = $BuildConfig$Type$(); /// from: `static public final boolean DEBUG` static const DEBUG = 0; @@ -2721,7 +2236,8 @@ class BuildConfig extends jni$_.JObject { /// from: `static public final java.lang.String LIBRARY_PACKAGE_NAME` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get LIBRARY_PACKAGE_NAME => - _id_LIBRARY_PACKAGE_NAME.get(_class, const jni$_.JStringNullableType()); + _id_LIBRARY_PACKAGE_NAME.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_BUILD_TYPE = _class.staticFieldId( r'BUILD_TYPE', @@ -2731,7 +2247,7 @@ class BuildConfig extends jni$_.JObject { /// from: `static public final java.lang.String BUILD_TYPE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get BUILD_TYPE => - _id_BUILD_TYPE.get(_class, const jni$_.JStringNullableType()); + _id_BUILD_TYPE.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_SENTRY_ANDROID_SDK_NAME = _class.staticFieldId( r'SENTRY_ANDROID_SDK_NAME', @@ -2741,8 +2257,8 @@ class BuildConfig extends jni$_.JObject { /// from: `static public final java.lang.String SENTRY_ANDROID_SDK_NAME` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get SENTRY_ANDROID_SDK_NAME => - _id_SENTRY_ANDROID_SDK_NAME.get( - _class, const jni$_.JStringNullableType()); + _id_SENTRY_ANDROID_SDK_NAME.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_VERSION_NAME = _class.staticFieldId( r'VERSION_NAME', @@ -2752,7 +2268,8 @@ class BuildConfig extends jni$_.JObject { /// from: `static public final java.lang.String VERSION_NAME` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get VERSION_NAME => - _id_VERSION_NAME.get(_class, const jni$_.JStringNullableType()); + _id_VERSION_NAME.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_new$ = _class.constructorId( r'()V', @@ -2773,104 +2290,28 @@ class BuildConfig extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory BuildConfig() { - return BuildConfig.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } } -final class $BuildConfig$NullableType extends jni$_.JObjType { +final class $BuildConfig$Type$ extends jni$_.JType { @jni$_.internal - const $BuildConfig$NullableType(); + const $BuildConfig$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/android/core/BuildConfig;'; - - @jni$_.internal - @core$_.override - BuildConfig? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : BuildConfig.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($BuildConfig$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($BuildConfig$NullableType) && - other is $BuildConfig$NullableType; - } -} - -final class $BuildConfig$Type extends jni$_.JObjType { - @jni$_.internal - const $BuildConfig$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/android/core/BuildConfig;'; - - @jni$_.internal - @core$_.override - BuildConfig fromReference(jni$_.JReference reference) => - BuildConfig.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $BuildConfig$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($BuildConfig$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($BuildConfig$Type) && - other is $BuildConfig$Type; - } } /// from: `io.sentry.android.replay.ReplayIntegration` -class ReplayIntegration extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - ReplayIntegration.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type ReplayIntegration._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/android/replay/ReplayIntegration'); /// The type which includes information such as the signature of this class. - static const nullableType = $ReplayIntegration$NullableType(); - static const type = $ReplayIntegration$Type(); + static const jni$_.JType type = $ReplayIntegration$Type$(); static final _id_new$ = _class.constructorId( r'(Landroid/content/Context;Lio/sentry/transport/ICurrentDateProvider;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;)V', ); @@ -2908,14 +2349,14 @@ class ReplayIntegration extends jni$_.JObject { final _$iCurrentDateProvider = iCurrentDateProvider.reference; final _$function0 = function0?.reference ?? jni$_.jNullReference; final _$function1 = function1?.reference ?? jni$_.jNullReference; - return ReplayIntegration.fromReference(_new$( + return _new$( _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, + _id_new$.pointer, _$context.pointer, _$iCurrentDateProvider.pointer, _$function0.pointer, _$function1.pointer) - .reference); + .object(); } static final _id_new$1 = _class.constructorId( @@ -2944,7 +2385,7 @@ class ReplayIntegration extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer)>(); /// from: `synthetic public void (android.content.Context context, io.sentry.transport.ICurrentDateProvider iCurrentDateProvider, kotlin.jvm.functions.Function0 function0, kotlin.jvm.functions.Function1 function1, int i, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` @@ -2954,7 +2395,7 @@ class ReplayIntegration extends jni$_.JObject { jni$_.JObject? iCurrentDateProvider, jni$_.JObject? function0, jni$_.JObject? function1, - int i, + core$_.int i, jni$_.JObject? defaultConstructorMarker, ) { final _$context = context?.reference ?? jni$_.jNullReference; @@ -2964,16 +2405,16 @@ class ReplayIntegration extends jni$_.JObject { final _$function1 = function1?.reference ?? jni$_.jNullReference; final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return ReplayIntegration.fromReference(_new$1( + return _new$1( _class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, + _id_new$1.pointer, _$context.pointer, _$iCurrentDateProvider.pointer, _$function0.pointer, _$function1.pointer, i, _$defaultConstructorMarker.pointer) - .reference); + .object(); } static final _id_new$2 = _class.constructorId( @@ -3005,12 +2446,9 @@ class ReplayIntegration extends jni$_.JObject { ) { final _$context = context.reference; final _$iCurrentDateProvider = iCurrentDateProvider.reference; - return ReplayIntegration.fromReference(_new$2( - _class.reference.pointer, - _id_new$2 as jni$_.JMethodIDPtr, - _$context.pointer, - _$iCurrentDateProvider.pointer) - .reference); + return _new$2(_class.reference.pointer, _id_new$2.pointer, + _$context.pointer, _$iCurrentDateProvider.pointer) + .object(); } static final _id_new$3 = _class.constructorId( @@ -3063,9 +2501,9 @@ class ReplayIntegration extends jni$_.JObject { final _$mainLooperHandler = mainLooperHandler?.reference ?? jni$_.jNullReference; final _$function01 = function01?.reference ?? jni$_.jNullReference; - return ReplayIntegration.fromReference(_new$3( + return _new$3( _class.reference.pointer, - _id_new$3 as jni$_.JMethodIDPtr, + _id_new$3.pointer, _$context.pointer, _$iCurrentDateProvider.pointer, _$function0.pointer, @@ -3073,7 +2511,7 @@ class ReplayIntegration extends jni$_.JObject { _$function11.pointer, _$mainLooperHandler.pointer, _$function01.pointer) - .reference); + .object(); } static final _id_new$4 = _class.constructorId( @@ -3108,7 +2546,7 @@ class ReplayIntegration extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer)>(); /// from: `synthetic public void (android.content.Context context, io.sentry.transport.ICurrentDateProvider iCurrentDateProvider, kotlin.jvm.functions.Function0 function0, kotlin.jvm.functions.Function1 function1, kotlin.jvm.functions.Function1 function11, io.sentry.android.replay.util.MainLooperHandler mainLooperHandler, kotlin.jvm.functions.Function0 function01, int i, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` @@ -3121,7 +2559,7 @@ class ReplayIntegration extends jni$_.JObject { jni$_.JObject? function11, jni$_.JObject? mainLooperHandler, jni$_.JObject? function01, - int i, + core$_.int i, jni$_.JObject? defaultConstructorMarker, ) { final _$context = context?.reference ?? jni$_.jNullReference; @@ -3135,9 +2573,9 @@ class ReplayIntegration extends jni$_.JObject { final _$function01 = function01?.reference ?? jni$_.jNullReference; final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return ReplayIntegration.fromReference(_new$4( + return _new$4( _class.reference.pointer, - _id_new$4 as jni$_.JMethodIDPtr, + _id_new$4.pointer, _$context.pointer, _$iCurrentDateProvider.pointer, _$function0.pointer, @@ -3147,15 +2585,18 @@ class ReplayIntegration extends jni$_.JObject { _$function01.pointer, i, _$defaultConstructorMarker.pointer) - .reference); + .object(); } +} - static final _id_getReplayCacheDir = _class.instanceMethodId( +extension ReplayIntegration$$Methods on ReplayIntegration { + static final _id_get$replayCacheDir = + ReplayIntegration._class.instanceMethodId( r'getReplayCacheDir', r'()Ljava/io/File;', ); - static final _getReplayCacheDir = jni$_.ProtectedJniExtensions.lookup< + static final _get$replayCacheDir = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -3169,13 +2610,13 @@ class ReplayIntegration extends jni$_.JObject { /// from: `public final java.io.File getReplayCacheDir()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getReplayCacheDir() { - return _getReplayCacheDir( - reference.pointer, _id_getReplayCacheDir as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get replayCacheDir { + return _get$replayCacheDir( + reference.pointer, _id_get$replayCacheDir.pointer) + .object(); } - static final _id_register = _class.instanceMethodId( + static final _id_register = ReplayIntegration._class.instanceMethodId( r'register', r'(Lio/sentry/IScopes;Lio/sentry/SentryOptions;)V', ); @@ -3197,24 +2638,24 @@ class ReplayIntegration extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public void register(io.sentry.IScopes iScopes, io.sentry.SentryOptions sentryOptions)` + /// from: `public fun register(scopes: io.sentry.IScopes, options: io.sentry.SentryOptions): kotlin.Unit` void register( jni$_.JObject iScopes, SentryOptions sentryOptions, ) { final _$iScopes = iScopes.reference; final _$sentryOptions = sentryOptions.reference; - _register(reference.pointer, _id_register as jni$_.JMethodIDPtr, - _$iScopes.pointer, _$sentryOptions.pointer) + _register(reference.pointer, _id_register.pointer, _$iScopes.pointer, + _$sentryOptions.pointer) .check(); } - static final _id_isRecording = _class.instanceMethodId( + static final _id_get$isRecording = ReplayIntegration._class.instanceMethodId( r'isRecording', r'()Z', ); - static final _isRecording = jni$_.ProtectedJniExtensions.lookup< + static final _get$isRecording = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -3226,14 +2667,13 @@ class ReplayIntegration extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public boolean isRecording()` - bool isRecording() { - return _isRecording( - reference.pointer, _id_isRecording as jni$_.JMethodIDPtr) + /// from: `public fun isRecording(): kotlin.Boolean` + core$_.bool get isRecording { + return _get$isRecording(reference.pointer, _id_get$isRecording.pointer) .boolean; } - static final _id_start = _class.instanceMethodId( + static final _id_start = ReplayIntegration._class.instanceMethodId( r'start', r'()V', ); @@ -3250,12 +2690,12 @@ class ReplayIntegration extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public void start()` + /// from: `public fun start(): kotlin.Unit` void start() { - _start(reference.pointer, _id_start as jni$_.JMethodIDPtr).check(); + _start(reference.pointer, _id_start.pointer).check(); } - static final _id_resume = _class.instanceMethodId( + static final _id_resume = ReplayIntegration._class.instanceMethodId( r'resume', r'()V', ); @@ -3272,12 +2712,12 @@ class ReplayIntegration extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public void resume()` + /// from: `public fun resume(): kotlin.Unit` void resume() { - _resume(reference.pointer, _id_resume as jni$_.JMethodIDPtr).check(); + _resume(reference.pointer, _id_resume.pointer).check(); } - static final _id_captureReplay = _class.instanceMethodId( + static final _id_captureReplay = ReplayIntegration._class.instanceMethodId( r'captureReplay', r'(Ljava/lang/Boolean;)V', ); @@ -3293,22 +2733,22 @@ class ReplayIntegration extends jni$_.JObject { jni$_.JThrowablePtr Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public void captureReplay(java.lang.Boolean boolean)` + /// from: `public fun captureReplay(isTerminating: kotlin.Boolean?): kotlin.Unit` void captureReplay( jni$_.JBoolean? boolean, ) { final _$boolean = boolean?.reference ?? jni$_.jNullReference; - _captureReplay(reference.pointer, _id_captureReplay as jni$_.JMethodIDPtr, - _$boolean.pointer) + _captureReplay( + reference.pointer, _id_captureReplay.pointer, _$boolean.pointer) .check(); } - static final _id_getReplayId = _class.instanceMethodId( + static final _id_get$replayId = ReplayIntegration._class.instanceMethodId( r'getReplayId', r'()Lio/sentry/protocol/SentryId;', ); - static final _getReplayId = jni$_.ProtectedJniExtensions.lookup< + static final _get$replayId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -3320,20 +2760,20 @@ class ReplayIntegration extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public io.sentry.protocol.SentryId getReplayId()` + /// from: `public fun getReplayId(): io.sentry.protocol.SentryId` /// The returned object must be released after use, by calling the [release] method. - SentryId getReplayId() { - return _getReplayId( - reference.pointer, _id_getReplayId as jni$_.JMethodIDPtr) - .object(const $SentryId$Type()); + SentryId get replayId { + return _get$replayId(reference.pointer, _id_get$replayId.pointer) + .object(); } - static final _id_setBreadcrumbConverter = _class.instanceMethodId( + static final _id_set$breadcrumbConverter = + ReplayIntegration._class.instanceMethodId( r'setBreadcrumbConverter', r'(Lio/sentry/ReplayBreadcrumbConverter;)V', ); - static final _setBreadcrumbConverter = jni$_.ProtectedJniExtensions.lookup< + static final _set$breadcrumbConverter = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -3344,24 +2784,23 @@ class ReplayIntegration extends jni$_.JObject { jni$_.JThrowablePtr Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public void setBreadcrumbConverter(io.sentry.ReplayBreadcrumbConverter replayBreadcrumbConverter)` - void setBreadcrumbConverter( - jni$_.JObject replayBreadcrumbConverter, - ) { + /// from: `public fun setBreadcrumbConverter(converter: io.sentry.ReplayBreadcrumbConverter): kotlin.Unit` + set breadcrumbConverter(jni$_.JObject replayBreadcrumbConverter) { final _$replayBreadcrumbConverter = replayBreadcrumbConverter.reference; - _setBreadcrumbConverter( + _set$breadcrumbConverter( reference.pointer, - _id_setBreadcrumbConverter as jni$_.JMethodIDPtr, + _id_set$breadcrumbConverter.pointer, _$replayBreadcrumbConverter.pointer) .check(); } - static final _id_getBreadcrumbConverter = _class.instanceMethodId( + static final _id_get$breadcrumbConverter = + ReplayIntegration._class.instanceMethodId( r'getBreadcrumbConverter', r'()Lio/sentry/ReplayBreadcrumbConverter;', ); - static final _getBreadcrumbConverter = jni$_.ProtectedJniExtensions.lookup< + static final _get$breadcrumbConverter = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -3373,15 +2812,15 @@ class ReplayIntegration extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public io.sentry.ReplayBreadcrumbConverter getBreadcrumbConverter()` + /// from: `public fun getBreadcrumbConverter(): io.sentry.ReplayBreadcrumbConverter` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getBreadcrumbConverter() { - return _getBreadcrumbConverter( - reference.pointer, _id_getBreadcrumbConverter as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get breadcrumbConverter { + return _get$breadcrumbConverter( + reference.pointer, _id_get$breadcrumbConverter.pointer) + .object(); } - static final _id_pause = _class.instanceMethodId( + static final _id_pause = ReplayIntegration._class.instanceMethodId( r'pause', r'()V', ); @@ -3398,12 +2837,13 @@ class ReplayIntegration extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public void pause()` + /// from: `public fun pause(): kotlin.Unit` void pause() { - _pause(reference.pointer, _id_pause as jni$_.JMethodIDPtr).check(); + _pause(reference.pointer, _id_pause.pointer).check(); } - static final _id_enableDebugMaskingOverlay = _class.instanceMethodId( + static final _id_enableDebugMaskingOverlay = + ReplayIntegration._class.instanceMethodId( r'enableDebugMaskingOverlay', r'()V', ); @@ -3420,14 +2860,15 @@ class ReplayIntegration extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public void enableDebugMaskingOverlay()` + /// from: `public fun enableDebugMaskingOverlay(): kotlin.Unit` void enableDebugMaskingOverlay() { - _enableDebugMaskingOverlay(reference.pointer, - _id_enableDebugMaskingOverlay as jni$_.JMethodIDPtr) + _enableDebugMaskingOverlay( + reference.pointer, _id_enableDebugMaskingOverlay.pointer) .check(); } - static final _id_disableDebugMaskingOverlay = _class.instanceMethodId( + static final _id_disableDebugMaskingOverlay = + ReplayIntegration._class.instanceMethodId( r'disableDebugMaskingOverlay', r'()V', ); @@ -3445,19 +2886,20 @@ class ReplayIntegration extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public void disableDebugMaskingOverlay()` + /// from: `public fun disableDebugMaskingOverlay(): kotlin.Unit` void disableDebugMaskingOverlay() { - _disableDebugMaskingOverlay(reference.pointer, - _id_disableDebugMaskingOverlay as jni$_.JMethodIDPtr) + _disableDebugMaskingOverlay( + reference.pointer, _id_disableDebugMaskingOverlay.pointer) .check(); } - static final _id_isDebugMaskingOverlayEnabled = _class.instanceMethodId( + static final _id_get$isDebugMaskingOverlayEnabled = + ReplayIntegration._class.instanceMethodId( r'isDebugMaskingOverlayEnabled', r'()Z', ); - static final _isDebugMaskingOverlayEnabled = + static final _get$isDebugMaskingOverlayEnabled = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -3470,14 +2912,14 @@ class ReplayIntegration extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public boolean isDebugMaskingOverlayEnabled()` - bool isDebugMaskingOverlayEnabled() { - return _isDebugMaskingOverlayEnabled(reference.pointer, - _id_isDebugMaskingOverlayEnabled as jni$_.JMethodIDPtr) + /// from: `public fun isDebugMaskingOverlayEnabled(): kotlin.Boolean` + core$_.bool get isDebugMaskingOverlayEnabled { + return _get$isDebugMaskingOverlayEnabled( + reference.pointer, _id_get$isDebugMaskingOverlayEnabled.pointer) .boolean; } - static final _id_stop = _class.instanceMethodId( + static final _id_stop = ReplayIntegration._class.instanceMethodId( r'stop', r'()V', ); @@ -3494,12 +2936,13 @@ class ReplayIntegration extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public void stop()` + /// from: `public fun stop(): kotlin.Unit` void stop() { - _stop(reference.pointer, _id_stop as jni$_.JMethodIDPtr).check(); + _stop(reference.pointer, _id_stop.pointer).check(); } - static final _id_onScreenshotRecorded = _class.instanceMethodId( + static final _id_onScreenshotRecorded = + ReplayIntegration._class.instanceMethodId( r'onScreenshotRecorded', r'(Landroid/graphics/Bitmap;)V', ); @@ -3515,17 +2958,18 @@ class ReplayIntegration extends jni$_.JObject { jni$_.JThrowablePtr Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public void onScreenshotRecorded(android.graphics.Bitmap bitmap)` + /// from: `public fun onScreenshotRecorded(bitmap: android.graphics.Bitmap): kotlin.Unit` void onScreenshotRecorded( Bitmap bitmap, ) { final _$bitmap = bitmap.reference; - _onScreenshotRecorded(reference.pointer, - _id_onScreenshotRecorded as jni$_.JMethodIDPtr, _$bitmap.pointer) + _onScreenshotRecorded(reference.pointer, _id_onScreenshotRecorded.pointer, + _$bitmap.pointer) .check(); } - static final _id_onScreenshotRecorded$1 = _class.instanceMethodId( + static final _id_onScreenshotRecorded$1 = + ReplayIntegration._class.instanceMethodId( r'onScreenshotRecorded', r'(Ljava/io/File;J)V', ); @@ -3540,20 +2984,20 @@ class ReplayIntegration extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); - /// from: `public void onScreenshotRecorded(java.io.File file, long j)` + /// from: `public fun onScreenshotRecorded(screenshot: java.io.File, frameTimestamp: kotlin.Long): kotlin.Unit` void onScreenshotRecorded$1( jni$_.JObject file, - int j, + core$_.int j, ) { final _$file = file.reference; _onScreenshotRecorded$1(reference.pointer, - _id_onScreenshotRecorded$1 as jni$_.JMethodIDPtr, _$file.pointer, j) + _id_onScreenshotRecorded$1.pointer, _$file.pointer, j) .check(); } - static final _id_close = _class.instanceMethodId( + static final _id_close = ReplayIntegration._class.instanceMethodId( r'close', r'()V', ); @@ -3570,12 +3014,13 @@ class ReplayIntegration extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public void close()` + /// from: `public fun close(): kotlin.Unit` void close() { - _close(reference.pointer, _id_close as jni$_.JMethodIDPtr).check(); + _close(reference.pointer, _id_close.pointer).check(); } - static final _id_onConnectionStatusChanged = _class.instanceMethodId( + static final _id_onConnectionStatusChanged = + ReplayIntegration._class.instanceMethodId( r'onConnectionStatusChanged', r'(Lio/sentry/IConnectionStatusProvider$ConnectionStatus;)V', ); @@ -3591,19 +3036,18 @@ class ReplayIntegration extends jni$_.JObject { jni$_.JThrowablePtr Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public void onConnectionStatusChanged(io.sentry.IConnectionStatusProvider$ConnectionStatus connectionStatus)` + /// from: `public fun onConnectionStatusChanged(status: io.sentry.IConnectionStatusProvider.ConnectionStatus): kotlin.Unit` void onConnectionStatusChanged( jni$_.JObject connectionStatus, ) { final _$connectionStatus = connectionStatus.reference; - _onConnectionStatusChanged( - reference.pointer, - _id_onConnectionStatusChanged as jni$_.JMethodIDPtr, - _$connectionStatus.pointer) + _onConnectionStatusChanged(reference.pointer, + _id_onConnectionStatusChanged.pointer, _$connectionStatus.pointer) .check(); } - static final _id_onRateLimitChanged = _class.instanceMethodId( + static final _id_onRateLimitChanged = + ReplayIntegration._class.instanceMethodId( r'onRateLimitChanged', r'(Lio/sentry/transport/RateLimiter;)V', ); @@ -3619,17 +3063,17 @@ class ReplayIntegration extends jni$_.JObject { jni$_.JThrowablePtr Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public void onRateLimitChanged(io.sentry.transport.RateLimiter rateLimiter)` + /// from: `public fun onRateLimitChanged(rateLimiter: io.sentry.transport.RateLimiter): kotlin.Unit` void onRateLimitChanged( jni$_.JObject rateLimiter, ) { final _$rateLimiter = rateLimiter.reference; - _onRateLimitChanged(reference.pointer, - _id_onRateLimitChanged as jni$_.JMethodIDPtr, _$rateLimiter.pointer) + _onRateLimitChanged(reference.pointer, _id_onRateLimitChanged.pointer, + _$rateLimiter.pointer) .check(); } - static final _id_onTouchEvent = _class.instanceMethodId( + static final _id_onTouchEvent = ReplayIntegration._class.instanceMethodId( r'onTouchEvent', r'(Landroid/view/MotionEvent;)V', ); @@ -3645,17 +3089,18 @@ class ReplayIntegration extends jni$_.JObject { jni$_.JThrowablePtr Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public void onTouchEvent(android.view.MotionEvent motionEvent)` + /// from: `public fun onTouchEvent(event: android.view.MotionEvent): kotlin.Unit` void onTouchEvent( jni$_.JObject motionEvent, ) { final _$motionEvent = motionEvent.reference; - _onTouchEvent(reference.pointer, _id_onTouchEvent as jni$_.JMethodIDPtr, - _$motionEvent.pointer) + _onTouchEvent( + reference.pointer, _id_onTouchEvent.pointer, _$motionEvent.pointer) .check(); } - static final _id_onWindowSizeChanged = _class.instanceMethodId( + static final _id_onWindowSizeChanged = + ReplayIntegration._class.instanceMethodId( r'onWindowSizeChanged', r'(II)V', ); @@ -3668,20 +3113,21 @@ class ReplayIntegration extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32, jni$_.Int32)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int, int)>(); + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, core$_.int, core$_.int)>(); - /// from: `public void onWindowSizeChanged(int i, int i1)` + /// from: `public fun onWindowSizeChanged(width: kotlin.Int, height: kotlin.Int): kotlin.Unit` void onWindowSizeChanged( - int i, - int i1, + core$_.int i, + core$_.int i1, ) { - _onWindowSizeChanged(reference.pointer, - _id_onWindowSizeChanged as jni$_.JMethodIDPtr, i, i1) + _onWindowSizeChanged( + reference.pointer, _id_onWindowSizeChanged.pointer, i, i1) .check(); } - static final _id_onConfigurationChanged = _class.instanceMethodId( + static final _id_onConfigurationChanged = + ReplayIntegration._class.instanceMethodId( r'onConfigurationChanged', r'(Lio/sentry/android/replay/ScreenshotRecorderConfig;)V', ); @@ -3697,115 +3143,69 @@ class ReplayIntegration extends jni$_.JObject { jni$_.JThrowablePtr Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final void onConfigurationChanged(io.sentry.android.replay.ScreenshotRecorderConfig screenshotRecorderConfig)` + /// from: `public fun onConfigurationChanged(config: io.sentry.android.replay.ScreenshotRecorderConfig): kotlin.Unit` void onConfigurationChanged( ScreenshotRecorderConfig screenshotRecorderConfig, ) { final _$screenshotRecorderConfig = screenshotRecorderConfig.reference; _onConfigurationChanged( reference.pointer, - _id_onConfigurationChanged as jni$_.JMethodIDPtr, + _id_onConfigurationChanged.pointer, _$screenshotRecorderConfig.pointer) .check(); } } -final class $ReplayIntegration$NullableType - extends jni$_.JObjType { +final class $ReplayIntegration$Type$ extends jni$_.JType { @jni$_.internal - const $ReplayIntegration$NullableType(); + const $ReplayIntegration$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/android/replay/ReplayIntegration;'; - - @jni$_.internal - @core$_.override - ReplayIntegration? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : ReplayIntegration.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ReplayIntegration$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ReplayIntegration$NullableType) && - other is $ReplayIntegration$NullableType; - } } -final class $ReplayIntegration$Type extends jni$_.JObjType { - @jni$_.internal - const $ReplayIntegration$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/android/replay/ReplayIntegration;'; - - @jni$_.internal - @core$_.override - ReplayIntegration fromReference(jni$_.JReference reference) => - ReplayIntegration.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $ReplayIntegration$NullableType(); +/// from: `io.sentry.android.replay.ScreenshotRecorderConfig$Companion` +extension type ScreenshotRecorderConfig$Companion._(jni$_.JObject _$this) + implements jni$_.JObject { + static final _class = jni$_.JClass.forName( + r'io/sentry/android/replay/ScreenshotRecorderConfig$Companion'); - @jni$_.internal - @core$_.override - final superCount = 1; + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = + $ScreenshotRecorderConfig$Companion$Type$(); + static final _id_new$ = _class.constructorId( + r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', + ); - @core$_.override - int get hashCode => ($ReplayIntegration$Type).hashCode; + static final _new$ = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ReplayIntegration$Type) && - other is $ReplayIntegration$Type; + /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` + /// The returned object must be released after use, by calling the [release] method. + factory ScreenshotRecorderConfig$Companion( + jni$_.JObject? defaultConstructorMarker, + ) { + final _$defaultConstructorMarker = + defaultConstructorMarker?.reference ?? jni$_.jNullReference; + return _new$(_class.reference.pointer, _id_new$.pointer, + _$defaultConstructorMarker.pointer) + .object(); } } -/// from: `io.sentry.android.replay.ScreenshotRecorderConfig$Companion` -class ScreenshotRecorderConfig$Companion extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - ScreenshotRecorderConfig$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = jni$_.JClass.forName( - r'io/sentry/android/replay/ScreenshotRecorderConfig$Companion'); - - /// The type which includes information such as the signature of this class. - static const nullableType = - $ScreenshotRecorderConfig$Companion$NullableType(); - static const type = $ScreenshotRecorderConfig$Companion$Type(); - static final _id_fromSize = _class.instanceMethodId( +extension ScreenshotRecorderConfig$Companion$$Methods + on ScreenshotRecorderConfig$Companion { + static final _id_fromSize = + ScreenshotRecorderConfig$Companion._class.instanceMethodId( r'fromSize', r'(Landroid/content/Context;Lio/sentry/SentryReplayOptions;II)Lio/sentry/android/replay/ScreenshotRecorderConfig;', ); @@ -3828,156 +3228,45 @@ class ScreenshotRecorderConfig$Companion extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); - /// from: `public final io.sentry.android.replay.ScreenshotRecorderConfig fromSize(android.content.Context context, io.sentry.SentryReplayOptions sentryReplayOptions, int i, int i1)` + /// from: `public fun fromSize(context: android.content.Context, sessionReplay: io.sentry.SentryReplayOptions, windowWidth: kotlin.Int, windowHeight: kotlin.Int): io.sentry.android.replay.ScreenshotRecorderConfig` /// The returned object must be released after use, by calling the [release] method. ScreenshotRecorderConfig fromSize( Context context, SentryReplayOptions sentryReplayOptions, - int i, - int i1, + core$_.int i, + core$_.int i1, ) { final _$context = context.reference; final _$sentryReplayOptions = sentryReplayOptions.reference; - return _fromSize(reference.pointer, _id_fromSize as jni$_.JMethodIDPtr, - _$context.pointer, _$sentryReplayOptions.pointer, i, i1) - .object( - const $ScreenshotRecorderConfig$Type()); - } - - static final _id_new$ = _class.constructorId( - r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', - ); - - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` - /// The returned object must be released after use, by calling the [release] method. - factory ScreenshotRecorderConfig$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { - final _$defaultConstructorMarker = - defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return ScreenshotRecorderConfig$Companion.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$defaultConstructorMarker.pointer) - .reference); - } -} - -final class $ScreenshotRecorderConfig$Companion$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $ScreenshotRecorderConfig$Companion$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lio/sentry/android/replay/ScreenshotRecorderConfig$Companion;'; - - @jni$_.internal - @core$_.override - ScreenshotRecorderConfig$Companion? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : ScreenshotRecorderConfig$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($ScreenshotRecorderConfig$Companion$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($ScreenshotRecorderConfig$Companion$NullableType) && - other is $ScreenshotRecorderConfig$Companion$NullableType; + return _fromSize(reference.pointer, _id_fromSize.pointer, _$context.pointer, + _$sentryReplayOptions.pointer, i, i1) + .object(); } } -final class $ScreenshotRecorderConfig$Companion$Type - extends jni$_.JObjType { +final class $ScreenshotRecorderConfig$Companion$Type$ + extends jni$_.JType { @jni$_.internal - const $ScreenshotRecorderConfig$Companion$Type(); + const $ScreenshotRecorderConfig$Companion$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/android/replay/ScreenshotRecorderConfig$Companion;'; - - @jni$_.internal - @core$_.override - ScreenshotRecorderConfig$Companion fromReference( - jni$_.JReference reference) => - ScreenshotRecorderConfig$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $ScreenshotRecorderConfig$Companion$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ScreenshotRecorderConfig$Companion$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ScreenshotRecorderConfig$Companion$Type) && - other is $ScreenshotRecorderConfig$Companion$Type; - } } /// from: `io.sentry.android.replay.ScreenshotRecorderConfig` -class ScreenshotRecorderConfig extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - ScreenshotRecorderConfig.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type ScreenshotRecorderConfig._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName( r'io/sentry/android/replay/ScreenshotRecorderConfig'); /// The type which includes information such as the signature of this class. - static const nullableType = $ScreenshotRecorderConfig$NullableType(); - static const type = $ScreenshotRecorderConfig$Type(); + static const jni$_.JType type = + $ScreenshotRecorderConfig$Type$(); static final _id_Companion = _class.staticFieldId( r'Companion', r'Lio/sentry/android/replay/ScreenshotRecorderConfig$Companion;', @@ -3985,8 +3274,9 @@ class ScreenshotRecorderConfig extends jni$_.JObject { /// from: `static public final io.sentry.android.replay.ScreenshotRecorderConfig$Companion Companion` /// The returned object must be released after use, by calling the [release] method. - static ScreenshotRecorderConfig$Companion get Companion => _id_Companion.get( - _class, const $ScreenshotRecorderConfig$Companion$Type()); + static ScreenshotRecorderConfig$Companion get Companion => + _id_Companion.get(_class, ScreenshotRecorderConfig$Companion.type) + as ScreenshotRecorderConfig$Companion; static final _id_new$ = _class.constructorId( r'(IIFFII)V', @@ -4007,37 +3297,65 @@ class ScreenshotRecorderConfig extends jni$_.JObject { jni$_.Int32 )>)>>('globalEnv_NewObject') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, int, double, double, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + core$_.int, + core$_.int, + core$_.double, + core$_.double, + core$_.int, + core$_.int)>(); /// from: `public void (int i, int i1, float f, float f1, int i2, int i3)` /// The returned object must be released after use, by calling the [release] method. factory ScreenshotRecorderConfig( - int i, - int i1, - double f, - double f1, - int i2, - int i3, - ) { - return ScreenshotRecorderConfig.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - i, - i1, - f, - f1, - i2, - i3) - .reference); + core$_.int i, + core$_.int i1, + core$_.double f, + core$_.double f1, + core$_.int i2, + core$_.int i3, + ) { + return _new$( + _class.reference.pointer, _id_new$.pointer, i, i1, f, f1, i2, i3) + .object(); } - static final _id_getRecordingWidth = _class.instanceMethodId( + static final _id_new$1 = _class.constructorId( + r'(FF)V', + ); + + static final _new$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double, jni$_.Double)>)>>( + 'globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, core$_.double, core$_.double)>(); + + /// from: `public void (float f, float f1)` + /// The returned object must be released after use, by calling the [release] method. + factory ScreenshotRecorderConfig.new$1( + core$_.double f, + core$_.double f1, + ) { + return _new$1(_class.reference.pointer, _id_new$1.pointer, f, f1) + .object(); + } +} + +extension ScreenshotRecorderConfig$$Methods on ScreenshotRecorderConfig { + static final _id_get$recordingWidth = + ScreenshotRecorderConfig._class.instanceMethodId( r'getRecordingWidth', r'()I', ); - static final _getRecordingWidth = jni$_.ProtectedJniExtensions.lookup< + static final _get$recordingWidth = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -4050,18 +3368,19 @@ class ScreenshotRecorderConfig extends jni$_.JObject { )>(); /// from: `public final int getRecordingWidth()` - int getRecordingWidth() { - return _getRecordingWidth( - reference.pointer, _id_getRecordingWidth as jni$_.JMethodIDPtr) + core$_.int get recordingWidth { + return _get$recordingWidth( + reference.pointer, _id_get$recordingWidth.pointer) .integer; } - static final _id_getRecordingHeight = _class.instanceMethodId( + static final _id_get$recordingHeight = + ScreenshotRecorderConfig._class.instanceMethodId( r'getRecordingHeight', r'()I', ); - static final _getRecordingHeight = jni$_.ProtectedJniExtensions.lookup< + static final _get$recordingHeight = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -4074,18 +3393,19 @@ class ScreenshotRecorderConfig extends jni$_.JObject { )>(); /// from: `public final int getRecordingHeight()` - int getRecordingHeight() { - return _getRecordingHeight( - reference.pointer, _id_getRecordingHeight as jni$_.JMethodIDPtr) + core$_.int get recordingHeight { + return _get$recordingHeight( + reference.pointer, _id_get$recordingHeight.pointer) .integer; } - static final _id_getScaleFactorX = _class.instanceMethodId( + static final _id_get$scaleFactorX = + ScreenshotRecorderConfig._class.instanceMethodId( r'getScaleFactorX', r'()F', ); - static final _getScaleFactorX = jni$_.ProtectedJniExtensions.lookup< + static final _get$scaleFactorX = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -4098,18 +3418,18 @@ class ScreenshotRecorderConfig extends jni$_.JObject { )>(); /// from: `public final float getScaleFactorX()` - double getScaleFactorX() { - return _getScaleFactorX( - reference.pointer, _id_getScaleFactorX as jni$_.JMethodIDPtr) + core$_.double get scaleFactorX { + return _get$scaleFactorX(reference.pointer, _id_get$scaleFactorX.pointer) .float; } - static final _id_getScaleFactorY = _class.instanceMethodId( + static final _id_get$scaleFactorY = + ScreenshotRecorderConfig._class.instanceMethodId( r'getScaleFactorY', r'()F', ); - static final _getScaleFactorY = jni$_.ProtectedJniExtensions.lookup< + static final _get$scaleFactorY = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -4122,18 +3442,18 @@ class ScreenshotRecorderConfig extends jni$_.JObject { )>(); /// from: `public final float getScaleFactorY()` - double getScaleFactorY() { - return _getScaleFactorY( - reference.pointer, _id_getScaleFactorY as jni$_.JMethodIDPtr) + core$_.double get scaleFactorY { + return _get$scaleFactorY(reference.pointer, _id_get$scaleFactorY.pointer) .float; } - static final _id_getFrameRate = _class.instanceMethodId( + static final _id_get$frameRate = + ScreenshotRecorderConfig._class.instanceMethodId( r'getFrameRate', r'()I', ); - static final _getFrameRate = jni$_.ProtectedJniExtensions.lookup< + static final _get$frameRate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -4146,18 +3466,17 @@ class ScreenshotRecorderConfig extends jni$_.JObject { )>(); /// from: `public final int getFrameRate()` - int getFrameRate() { - return _getFrameRate( - reference.pointer, _id_getFrameRate as jni$_.JMethodIDPtr) - .integer; + core$_.int get frameRate { + return _get$frameRate(reference.pointer, _id_get$frameRate.pointer).integer; } - static final _id_getBitRate = _class.instanceMethodId( + static final _id_get$bitRate = + ScreenshotRecorderConfig._class.instanceMethodId( r'getBitRate', r'()I', ); - static final _getBitRate = jni$_.ProtectedJniExtensions.lookup< + static final _get$bitRate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -4170,38 +3489,12 @@ class ScreenshotRecorderConfig extends jni$_.JObject { )>(); /// from: `public final int getBitRate()` - int getBitRate() { - return _getBitRate(reference.pointer, _id_getBitRate as jni$_.JMethodIDPtr) - .integer; + core$_.int get bitRate { + return _get$bitRate(reference.pointer, _id_get$bitRate.pointer).integer; } - static final _id_new$1 = _class.constructorId( - r'(FF)V', - ); - - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double, jni$_.Double)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double, double)>(); - - /// from: `public void (float f, float f1)` - /// The returned object must be released after use, by calling the [release] method. - factory ScreenshotRecorderConfig.new$1( - double f, - double f1, - ) { - return ScreenshotRecorderConfig.fromReference( - _new$1(_class.reference.pointer, _id_new$1 as jni$_.JMethodIDPtr, f, f1) - .reference); - } - - static final _id_component1 = _class.instanceMethodId( + static final _id_component1 = + ScreenshotRecorderConfig._class.instanceMethodId( r'component1', r'()I', ); @@ -4218,13 +3511,13 @@ class ScreenshotRecorderConfig extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final int component1()` - int component1() { - return _component1(reference.pointer, _id_component1 as jni$_.JMethodIDPtr) - .integer; + /// from: `public operator fun component1(): kotlin.Int` + core$_.int component1() { + return _component1(reference.pointer, _id_component1.pointer).integer; } - static final _id_component2 = _class.instanceMethodId( + static final _id_component2 = + ScreenshotRecorderConfig._class.instanceMethodId( r'component2', r'()I', ); @@ -4241,13 +3534,13 @@ class ScreenshotRecorderConfig extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final int component2()` - int component2() { - return _component2(reference.pointer, _id_component2 as jni$_.JMethodIDPtr) - .integer; + /// from: `public operator fun component2(): kotlin.Int` + core$_.int component2() { + return _component2(reference.pointer, _id_component2.pointer).integer; } - static final _id_component3 = _class.instanceMethodId( + static final _id_component3 = + ScreenshotRecorderConfig._class.instanceMethodId( r'component3', r'()F', ); @@ -4264,13 +3557,13 @@ class ScreenshotRecorderConfig extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final float component3()` - double component3() { - return _component3(reference.pointer, _id_component3 as jni$_.JMethodIDPtr) - .float; + /// from: `public operator fun component3(): kotlin.Float` + core$_.double component3() { + return _component3(reference.pointer, _id_component3.pointer).float; } - static final _id_component4 = _class.instanceMethodId( + static final _id_component4 = + ScreenshotRecorderConfig._class.instanceMethodId( r'component4', r'()F', ); @@ -4287,13 +3580,13 @@ class ScreenshotRecorderConfig extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final float component4()` - double component4() { - return _component4(reference.pointer, _id_component4 as jni$_.JMethodIDPtr) - .float; + /// from: `public operator fun component4(): kotlin.Float` + core$_.double component4() { + return _component4(reference.pointer, _id_component4.pointer).float; } - static final _id_component5 = _class.instanceMethodId( + static final _id_component5 = + ScreenshotRecorderConfig._class.instanceMethodId( r'component5', r'()I', ); @@ -4310,13 +3603,13 @@ class ScreenshotRecorderConfig extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final int component5()` - int component5() { - return _component5(reference.pointer, _id_component5 as jni$_.JMethodIDPtr) - .integer; + /// from: `public operator fun component5(): kotlin.Int` + core$_.int component5() { + return _component5(reference.pointer, _id_component5.pointer).integer; } - static final _id_component6 = _class.instanceMethodId( + static final _id_component6 = + ScreenshotRecorderConfig._class.instanceMethodId( r'component6', r'()I', ); @@ -4333,13 +3626,12 @@ class ScreenshotRecorderConfig extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final int component6()` - int component6() { - return _component6(reference.pointer, _id_component6 as jni$_.JMethodIDPtr) - .integer; + /// from: `public operator fun component6(): kotlin.Int` + core$_.int component6() { + return _component6(reference.pointer, _id_component6.pointer).integer; } - static final _id_copy = _class.instanceMethodId( + static final _id_copy = ScreenshotRecorderConfig._class.instanceMethodId( r'copy', r'(IIFFII)Lio/sentry/android/replay/ScreenshotRecorderConfig;', ); @@ -4359,26 +3651,32 @@ class ScreenshotRecorderConfig extends jni$_.JObject { jni$_.Int32 )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, int, double, double, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + core$_.int, + core$_.int, + core$_.double, + core$_.double, + core$_.int, + core$_.int)>(); - /// from: `public final io.sentry.android.replay.ScreenshotRecorderConfig copy(int i, int i1, float f, float f1, int i2, int i3)` + /// from: `public fun copy(recordingWidth: kotlin.Int, recordingHeight: kotlin.Int, scaleFactorX: kotlin.Float, scaleFactorY: kotlin.Float, frameRate: kotlin.Int, bitRate: kotlin.Int): io.sentry.android.replay.ScreenshotRecorderConfig` /// The returned object must be released after use, by calling the [release] method. ScreenshotRecorderConfig copy( - int i, - int i1, - double f, - double f1, - int i2, - int i3, + core$_.int i, + core$_.int i1, + core$_.double f, + core$_.double f1, + core$_.int i2, + core$_.int i3, ) { - return _copy(reference.pointer, _id_copy as jni$_.JMethodIDPtr, i, i1, f, - f1, i2, i3) - .object( - const $ScreenshotRecorderConfig$Type()); + return _copy(reference.pointer, _id_copy.pointer, i, i1, f, f1, i2, i3) + .object(); } - static final _id_toString$1 = _class.instanceMethodId( + static final _id_toString$1 = + ScreenshotRecorderConfig._class.instanceMethodId( r'toString', r'()Ljava/lang/String;', ); @@ -4395,14 +3693,15 @@ class ScreenshotRecorderConfig extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.lang.String toString()` + /// from: `public fun toString(): kotlin.String` /// The returned object must be released after use, by calling the [release] method. jni$_.JString toString$1() { - return _toString$1(reference.pointer, _id_toString$1 as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + return _toString$1(reference.pointer, _id_toString$1.pointer) + .object(); } - static final _id_hashCode$1 = _class.instanceMethodId( + static final _id_hashCode$1 = + ScreenshotRecorderConfig._class.instanceMethodId( r'hashCode', r'()I', ); @@ -4419,13 +3718,12 @@ class ScreenshotRecorderConfig extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public int hashCode()` - int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + /// from: `public fun hashCode(): kotlin.Int` + core$_.int hashCode$1() { + return _hashCode$1(reference.pointer, _id_hashCode$1.pointer).integer; } - static final _id_equals = _class.instanceMethodId( + static final _id_equals = ScreenshotRecorderConfig._class.instanceMethodId( r'equals', r'(Ljava/lang/Object;)Z', ); @@ -4441,115 +3739,68 @@ class ScreenshotRecorderConfig extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public boolean equals(java.lang.Object object)` - bool equals( + /// from: `public operator fun equals(other: kotlin.Any?): kotlin.Boolean` + core$_.bool equals( jni$_.JObject? object, ) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) + return _equals(reference.pointer, _id_equals.pointer, _$object.pointer) .boolean; } } -final class $ScreenshotRecorderConfig$NullableType - extends jni$_.JObjType { +final class $ScreenshotRecorderConfig$Type$ + extends jni$_.JType { @jni$_.internal - const $ScreenshotRecorderConfig$NullableType(); + const $ScreenshotRecorderConfig$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/android/replay/ScreenshotRecorderConfig;'; - - @jni$_.internal - @core$_.override - ScreenshotRecorderConfig? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : ScreenshotRecorderConfig.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ScreenshotRecorderConfig$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ScreenshotRecorderConfig$NullableType) && - other is $ScreenshotRecorderConfig$NullableType; - } } -final class $ScreenshotRecorderConfig$Type - extends jni$_.JObjType { - @jni$_.internal - const $ScreenshotRecorderConfig$Type(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lio/sentry/android/replay/ScreenshotRecorderConfig;'; - - @jni$_.internal - @core$_.override - ScreenshotRecorderConfig fromReference(jni$_.JReference reference) => - ScreenshotRecorderConfig.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $ScreenshotRecorderConfig$NullableType(); +/// from: `io.sentry.flutter.SentryFlutterPlugin$Companion` +extension type SentryFlutterPlugin$Companion._(jni$_.JObject _$this) + implements jni$_.JObject { + static final _class = + jni$_.JClass.forName(r'io/sentry/flutter/SentryFlutterPlugin$Companion'); - @jni$_.internal - @core$_.override - final superCount = 1; + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = + $SentryFlutterPlugin$Companion$Type$(); + static final _id_new$ = _class.constructorId( + r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', + ); - @core$_.override - int get hashCode => ($ScreenshotRecorderConfig$Type).hashCode; + static final _new$ = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ScreenshotRecorderConfig$Type) && - other is $ScreenshotRecorderConfig$Type; + /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` + /// The returned object must be released after use, by calling the [release] method. + factory SentryFlutterPlugin$Companion( + jni$_.JObject? defaultConstructorMarker, + ) { + final _$defaultConstructorMarker = + defaultConstructorMarker?.reference ?? jni$_.jNullReference; + return _new$(_class.reference.pointer, _id_new$.pointer, + _$defaultConstructorMarker.pointer) + .object(); } } -/// from: `io.sentry.flutter.SentryFlutterPlugin$Companion` -class SentryFlutterPlugin$Companion extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryFlutterPlugin$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = - jni$_.JClass.forName(r'io/sentry/flutter/SentryFlutterPlugin$Companion'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $SentryFlutterPlugin$Companion$NullableType(); - static const type = $SentryFlutterPlugin$Companion$Type(); - static final _id_tearDownReplayIntegration = _class.instanceMethodId( +extension SentryFlutterPlugin$Companion$$Methods + on SentryFlutterPlugin$Companion { + static final _id_tearDownReplayIntegration = + SentryFlutterPlugin$Companion._class.instanceMethodId( r'tearDownReplayIntegration', r'()V', ); @@ -4566,14 +3817,15 @@ class SentryFlutterPlugin$Companion extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final void tearDownReplayIntegration()` + /// from: `public fun tearDownReplayIntegration(): kotlin.Unit` void tearDownReplayIntegration() { - _tearDownReplayIntegration(reference.pointer, - _id_tearDownReplayIntegration as jni$_.JMethodIDPtr) + _tearDownReplayIntegration( + reference.pointer, _id_tearDownReplayIntegration.pointer) .check(); } - static final _id_privateSentryGetReplayIntegration = _class.instanceMethodId( + static final _id_privateSentryGetReplayIntegration = + SentryFlutterPlugin$Companion._class.instanceMethodId( r'privateSentryGetReplayIntegration', r'()Lio/sentry/android/replay/ReplayIntegration;', ); @@ -4591,15 +3843,16 @@ class SentryFlutterPlugin$Companion extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final io.sentry.android.replay.ReplayIntegration privateSentryGetReplayIntegration()` + /// from: `public fun privateSentryGetReplayIntegration(): io.sentry.android.replay.ReplayIntegration?` /// The returned object must be released after use, by calling the [release] method. ReplayIntegration? privateSentryGetReplayIntegration() { - return _privateSentryGetReplayIntegration(reference.pointer, - _id_privateSentryGetReplayIntegration as jni$_.JMethodIDPtr) - .object(const $ReplayIntegration$NullableType()); + return _privateSentryGetReplayIntegration( + reference.pointer, _id_privateSentryGetReplayIntegration.pointer) + .object(); } - static final _id_setupReplay = _class.instanceMethodId( + static final _id_setupReplay = + SentryFlutterPlugin$Companion._class.instanceMethodId( r'setupReplay', r'(Lio/sentry/android/core/SentryAndroidOptions;Lio/sentry/flutter/ReplayRecorderCallbacks;)V', ); @@ -4621,7 +3874,7 @@ class SentryFlutterPlugin$Companion extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final void setupReplay(io.sentry.android.core.SentryAndroidOptions sentryAndroidOptions, io.sentry.flutter.ReplayRecorderCallbacks replayRecorderCallbacks)` + /// from: `public fun setupReplay(options: io.sentry.android.core.SentryAndroidOptions, replayCallbacks: io.sentry.flutter.ReplayRecorderCallbacks?): kotlin.Unit` void setupReplay( SentryAndroidOptions sentryAndroidOptions, ReplayRecorderCallbacks? replayRecorderCallbacks, @@ -4629,12 +3882,13 @@ class SentryFlutterPlugin$Companion extends jni$_.JObject { final _$sentryAndroidOptions = sentryAndroidOptions.reference; final _$replayRecorderCallbacks = replayRecorderCallbacks?.reference ?? jni$_.jNullReference; - _setupReplay(reference.pointer, _id_setupReplay as jni$_.JMethodIDPtr, + _setupReplay(reference.pointer, _id_setupReplay.pointer, _$sentryAndroidOptions.pointer, _$replayRecorderCallbacks.pointer) .check(); } - static final _id_crash = _class.instanceMethodId( + static final _id_crash = + SentryFlutterPlugin$Companion._class.instanceMethodId( r'crash', r'()V', ); @@ -4651,17 +3905,18 @@ class SentryFlutterPlugin$Companion extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final void crash()` + /// from: `public fun crash(): kotlin.Unit` void crash() { - _crash(reference.pointer, _id_crash as jni$_.JMethodIDPtr).check(); + _crash(reference.pointer, _id_crash.pointer).check(); } - static final _id_getDisplayRefreshRate = _class.instanceMethodId( + static final _id_get$displayRefreshRate = + SentryFlutterPlugin$Companion._class.instanceMethodId( r'getDisplayRefreshRate', r'()Ljava/lang/Integer;', ); - static final _getDisplayRefreshRate = jni$_.ProtectedJniExtensions.lookup< + static final _get$displayRefreshRate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -4673,15 +3928,16 @@ class SentryFlutterPlugin$Companion extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final java.lang.Integer getDisplayRefreshRate()` + /// from: `public fun getDisplayRefreshRate(): kotlin.Int?` /// The returned object must be released after use, by calling the [release] method. - jni$_.JInteger? getDisplayRefreshRate() { - return _getDisplayRefreshRate( - reference.pointer, _id_getDisplayRefreshRate as jni$_.JMethodIDPtr) - .object(const jni$_.JIntegerNullableType()); + jni$_.JInteger? get displayRefreshRate { + return _get$displayRefreshRate( + reference.pointer, _id_get$displayRefreshRate.pointer) + .object(); } - static final _id_fetchNativeAppStartAsBytes = _class.instanceMethodId( + static final _id_fetchNativeAppStartAsBytes = + SentryFlutterPlugin$Companion._class.instanceMethodId( r'fetchNativeAppStartAsBytes', r'()[B', ); @@ -4699,20 +3955,21 @@ class SentryFlutterPlugin$Companion extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final byte[] fetchNativeAppStartAsBytes()` + /// from: `public fun fetchNativeAppStartAsBytes(): kotlin.ByteArray?` /// The returned object must be released after use, by calling the [release] method. jni$_.JByteArray? fetchNativeAppStartAsBytes() { - return _fetchNativeAppStartAsBytes(reference.pointer, - _id_fetchNativeAppStartAsBytes as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayNullableType()); + return _fetchNativeAppStartAsBytes( + reference.pointer, _id_fetchNativeAppStartAsBytes.pointer) + .object(); } - static final _id_getApplicationContext = _class.instanceMethodId( + static final _id_get$applicationContext = + SentryFlutterPlugin$Companion._class.instanceMethodId( r'getApplicationContext', r'()Landroid/content/Context;', ); - static final _getApplicationContext = jni$_.ProtectedJniExtensions.lookup< + static final _get$applicationContext = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -4724,15 +3981,16 @@ class SentryFlutterPlugin$Companion extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final android.content.Context getApplicationContext()` + /// from: `public fun getApplicationContext(): android.content.Context?` /// The returned object must be released after use, by calling the [release] method. - Context? getApplicationContext() { - return _getApplicationContext( - reference.pointer, _id_getApplicationContext as jni$_.JMethodIDPtr) - .object(const $Context$NullableType()); + Context? get applicationContext { + return _get$applicationContext( + reference.pointer, _id_get$applicationContext.pointer) + .object(); } - static final _id_loadContextsAsBytes = _class.instanceMethodId( + static final _id_loadContextsAsBytes = + SentryFlutterPlugin$Companion._class.instanceMethodId( r'loadContextsAsBytes', r'()[B', ); @@ -4749,15 +4007,16 @@ class SentryFlutterPlugin$Companion extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final byte[] loadContextsAsBytes()` + /// from: `public fun loadContextsAsBytes(): kotlin.ByteArray?` /// The returned object must be released after use, by calling the [release] method. jni$_.JByteArray? loadContextsAsBytes() { return _loadContextsAsBytes( - reference.pointer, _id_loadContextsAsBytes as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayNullableType()); + reference.pointer, _id_loadContextsAsBytes.pointer) + .object(); } - static final _id_loadDebugImagesAsBytes = _class.instanceMethodId( + static final _id_loadDebugImagesAsBytes = + SentryFlutterPlugin$Companion._class.instanceMethodId( r'loadDebugImagesAsBytes', r'(Ljava/util/Set;)[B', ); @@ -4773,142 +4032,37 @@ class SentryFlutterPlugin$Companion extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final byte[] loadDebugImagesAsBytes(java.util.Set set)` + /// from: `public fun loadDebugImagesAsBytes(addresses: kotlin.collections.Set): kotlin.ByteArray?` /// The returned object must be released after use, by calling the [release] method. jni$_.JByteArray? loadDebugImagesAsBytes( jni$_.JSet set, ) { final _$set = set.reference; return _loadDebugImagesAsBytes(reference.pointer, - _id_loadDebugImagesAsBytes as jni$_.JMethodIDPtr, _$set.pointer) - .object(const jni$_.JByteArrayNullableType()); - } - - static final _id_new$ = _class.constructorId( - r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', - ); - - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` - /// The returned object must be released after use, by calling the [release] method. - factory SentryFlutterPlugin$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { - final _$defaultConstructorMarker = - defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return SentryFlutterPlugin$Companion.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$defaultConstructorMarker.pointer) - .reference); + _id_loadDebugImagesAsBytes.pointer, _$set.pointer) + .object(); } } -final class $SentryFlutterPlugin$Companion$NullableType - extends jni$_.JObjType { +final class $SentryFlutterPlugin$Companion$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryFlutterPlugin$Companion$NullableType(); + const $SentryFlutterPlugin$Companion$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/flutter/SentryFlutterPlugin$Companion;'; - - @jni$_.internal - @core$_.override - SentryFlutterPlugin$Companion? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryFlutterPlugin$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryFlutterPlugin$Companion$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryFlutterPlugin$Companion$NullableType) && - other is $SentryFlutterPlugin$Companion$NullableType; - } -} - -final class $SentryFlutterPlugin$Companion$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryFlutterPlugin$Companion$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/flutter/SentryFlutterPlugin$Companion;'; - - @jni$_.internal - @core$_.override - SentryFlutterPlugin$Companion fromReference(jni$_.JReference reference) => - SentryFlutterPlugin$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryFlutterPlugin$Companion$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryFlutterPlugin$Companion$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryFlutterPlugin$Companion$Type) && - other is $SentryFlutterPlugin$Companion$Type; - } } /// from: `io.sentry.flutter.SentryFlutterPlugin` -class SentryFlutterPlugin extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryFlutterPlugin.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryFlutterPlugin._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/flutter/SentryFlutterPlugin'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryFlutterPlugin$NullableType(); - static const type = $SentryFlutterPlugin$Type(); + static const jni$_.JType type = + $SentryFlutterPlugin$Type$(); static final _id_Companion = _class.staticFieldId( r'Companion', r'Lio/sentry/flutter/SentryFlutterPlugin$Companion;', @@ -4917,7 +4071,8 @@ class SentryFlutterPlugin extends jni$_.JObject { /// from: `static public final io.sentry.flutter.SentryFlutterPlugin$Companion Companion` /// The returned object must be released after use, by calling the [release] method. static SentryFlutterPlugin$Companion get Companion => - _id_Companion.get(_class, const $SentryFlutterPlugin$Companion$Type()); + _id_Companion.get(_class, SentryFlutterPlugin$Companion.type) + as SentryFlutterPlugin$Companion; static final _id_new$ = _class.constructorId( r'()V', @@ -4938,207 +4093,8 @@ class SentryFlutterPlugin extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryFlutterPlugin() { - return SentryFlutterPlugin.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); - } - - static final _id_onAttachedToEngine = _class.instanceMethodId( - r'onAttachedToEngine', - r'(Lio/flutter/embedding/engine/plugins/FlutterPlugin$FlutterPluginBinding;)V', - ); - - static final _onAttachedToEngine = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public void onAttachedToEngine(io.flutter.embedding.engine.plugins.FlutterPlugin$FlutterPluginBinding flutterPluginBinding)` - void onAttachedToEngine( - jni$_.JObject flutterPluginBinding, - ) { - final _$flutterPluginBinding = flutterPluginBinding.reference; - _onAttachedToEngine( - reference.pointer, - _id_onAttachedToEngine as jni$_.JMethodIDPtr, - _$flutterPluginBinding.pointer) - .check(); - } - - static final _id_onMethodCall = _class.instanceMethodId( - r'onMethodCall', - r'(Lio/flutter/plugin/common/MethodCall;Lio/flutter/plugin/common/MethodChannel$Result;)V', - ); - - static final _onMethodCall = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); - - /// from: `public void onMethodCall(io.flutter.plugin.common.MethodCall methodCall, io.flutter.plugin.common.MethodChannel$Result result)` - void onMethodCall( - jni$_.JObject methodCall, - jni$_.JObject result, - ) { - final _$methodCall = methodCall.reference; - final _$result = result.reference; - _onMethodCall(reference.pointer, _id_onMethodCall as jni$_.JMethodIDPtr, - _$methodCall.pointer, _$result.pointer) - .check(); - } - - static final _id_onDetachedFromEngine = _class.instanceMethodId( - r'onDetachedFromEngine', - r'(Lio/flutter/embedding/engine/plugins/FlutterPlugin$FlutterPluginBinding;)V', - ); - - static final _onDetachedFromEngine = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public void onDetachedFromEngine(io.flutter.embedding.engine.plugins.FlutterPlugin$FlutterPluginBinding flutterPluginBinding)` - void onDetachedFromEngine( - jni$_.JObject flutterPluginBinding, - ) { - final _$flutterPluginBinding = flutterPluginBinding.reference; - _onDetachedFromEngine( - reference.pointer, - _id_onDetachedFromEngine as jni$_.JMethodIDPtr, - _$flutterPluginBinding.pointer) - .check(); - } - - static final _id_onAttachedToActivity = _class.instanceMethodId( - r'onAttachedToActivity', - r'(Lio/flutter/embedding/engine/plugins/activity/ActivityPluginBinding;)V', - ); - - static final _onAttachedToActivity = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public void onAttachedToActivity(io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding activityPluginBinding)` - void onAttachedToActivity( - jni$_.JObject activityPluginBinding, - ) { - final _$activityPluginBinding = activityPluginBinding.reference; - _onAttachedToActivity( - reference.pointer, - _id_onAttachedToActivity as jni$_.JMethodIDPtr, - _$activityPluginBinding.pointer) - .check(); - } - - static final _id_onDetachedFromActivity = _class.instanceMethodId( - r'onDetachedFromActivity', - r'()V', - ); - - static final _onDetachedFromActivity = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public void onDetachedFromActivity()` - void onDetachedFromActivity() { - _onDetachedFromActivity( - reference.pointer, _id_onDetachedFromActivity as jni$_.JMethodIDPtr) - .check(); - } - - static final _id_onReattachedToActivityForConfigChanges = - _class.instanceMethodId( - r'onReattachedToActivityForConfigChanges', - r'(Lio/flutter/embedding/engine/plugins/activity/ActivityPluginBinding;)V', - ); - - static final _onReattachedToActivityForConfigChanges = - jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public void onReattachedToActivityForConfigChanges(io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding activityPluginBinding)` - void onReattachedToActivityForConfigChanges( - jni$_.JObject activityPluginBinding, - ) { - final _$activityPluginBinding = activityPluginBinding.reference; - _onReattachedToActivityForConfigChanges( - reference.pointer, - _id_onReattachedToActivityForConfigChanges as jni$_.JMethodIDPtr, - _$activityPluginBinding.pointer) - .check(); - } - - static final _id_onDetachedFromActivityForConfigChanges = - _class.instanceMethodId( - r'onDetachedFromActivityForConfigChanges', - r'()V', - ); - - static final _onDetachedFromActivityForConfigChanges = - jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public void onDetachedFromActivityForConfigChanges()` - void onDetachedFromActivityForConfigChanges() { - _onDetachedFromActivityForConfigChanges(reference.pointer, - _id_onDetachedFromActivityForConfigChanges as jni$_.JMethodIDPtr) - .check(); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } static final _id_privateSentryGetReplayIntegration = _class.staticMethodId( @@ -5163,8 +4119,8 @@ class SentryFlutterPlugin extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static ReplayIntegration? privateSentryGetReplayIntegration() { return _privateSentryGetReplayIntegration(_class.reference.pointer, - _id_privateSentryGetReplayIntegration as jni$_.JMethodIDPtr) - .object(const $ReplayIntegration$NullableType()); + _id_privateSentryGetReplayIntegration.pointer) + .object(); } static final _id_setupReplay = _class.staticMethodId( @@ -5197,11 +4153,8 @@ class SentryFlutterPlugin extends jni$_.JObject { final _$sentryAndroidOptions = sentryAndroidOptions.reference; final _$replayRecorderCallbacks = replayRecorderCallbacks?.reference ?? jni$_.jNullReference; - _setupReplay( - _class.reference.pointer, - _id_setupReplay as jni$_.JMethodIDPtr, - _$sentryAndroidOptions.pointer, - _$replayRecorderCallbacks.pointer) + _setupReplay(_class.reference.pointer, _id_setupReplay.pointer, + _$sentryAndroidOptions.pointer, _$replayRecorderCallbacks.pointer) .check(); } @@ -5224,15 +4177,15 @@ class SentryFlutterPlugin extends jni$_.JObject { /// from: `static public final void crash()` static void crash() { - _crash(_class.reference.pointer, _id_crash as jni$_.JMethodIDPtr).check(); + _crash(_class.reference.pointer, _id_crash.pointer).check(); } - static final _id_getDisplayRefreshRate = _class.staticMethodId( + static final _id_get$displayRefreshRate = _class.staticMethodId( r'getDisplayRefreshRate', r'()Ljava/lang/Integer;', ); - static final _getDisplayRefreshRate = jni$_.ProtectedJniExtensions.lookup< + static final _get$displayRefreshRate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -5246,10 +4199,10 @@ class SentryFlutterPlugin extends jni$_.JObject { /// from: `static public final java.lang.Integer getDisplayRefreshRate()` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JInteger? getDisplayRefreshRate() { - return _getDisplayRefreshRate(_class.reference.pointer, - _id_getDisplayRefreshRate as jni$_.JMethodIDPtr) - .object(const jni$_.JIntegerNullableType()); + static jni$_.JInteger? get displayRefreshRate { + return _get$displayRefreshRate( + _class.reference.pointer, _id_get$displayRefreshRate.pointer) + .object(); } static final _id_fetchNativeAppStartAsBytes = _class.staticMethodId( @@ -5273,17 +4226,17 @@ class SentryFlutterPlugin extends jni$_.JObject { /// from: `static public final byte[] fetchNativeAppStartAsBytes()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JByteArray? fetchNativeAppStartAsBytes() { - return _fetchNativeAppStartAsBytes(_class.reference.pointer, - _id_fetchNativeAppStartAsBytes as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayNullableType()); + return _fetchNativeAppStartAsBytes( + _class.reference.pointer, _id_fetchNativeAppStartAsBytes.pointer) + .object(); } - static final _id_getApplicationContext = _class.staticMethodId( + static final _id_get$applicationContext = _class.staticMethodId( r'getApplicationContext', r'()Landroid/content/Context;', ); - static final _getApplicationContext = jni$_.ProtectedJniExtensions.lookup< + static final _get$applicationContext = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -5297,10 +4250,10 @@ class SentryFlutterPlugin extends jni$_.JObject { /// from: `static public final android.content.Context getApplicationContext()` /// The returned object must be released after use, by calling the [release] method. - static Context? getApplicationContext() { - return _getApplicationContext(_class.reference.pointer, - _id_getApplicationContext as jni$_.JMethodIDPtr) - .object(const $Context$NullableType()); + static Context? get applicationContext { + return _get$applicationContext( + _class.reference.pointer, _id_get$applicationContext.pointer) + .object(); } static final _id_loadContextsAsBytes = _class.staticMethodId( @@ -5323,9 +4276,9 @@ class SentryFlutterPlugin extends jni$_.JObject { /// from: `static public final byte[] loadContextsAsBytes()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JByteArray? loadContextsAsBytes() { - return _loadContextsAsBytes(_class.reference.pointer, - _id_loadContextsAsBytes as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayNullableType()); + return _loadContextsAsBytes( + _class.reference.pointer, _id_loadContextsAsBytes.pointer) + .object(); } static final _id_loadDebugImagesAsBytes = _class.staticMethodId( @@ -5351,107 +4304,340 @@ class SentryFlutterPlugin extends jni$_.JObject { ) { final _$set = set.reference; return _loadDebugImagesAsBytes(_class.reference.pointer, - _id_loadDebugImagesAsBytes as jni$_.JMethodIDPtr, _$set.pointer) - .object(const jni$_.JByteArrayNullableType()); + _id_loadDebugImagesAsBytes.pointer, _$set.pointer) + .object(); } } -final class $SentryFlutterPlugin$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryFlutterPlugin$NullableType(); +extension SentryFlutterPlugin$$Methods on SentryFlutterPlugin { + static final _id_onAttachedToEngine = + SentryFlutterPlugin._class.instanceMethodId( + r'onAttachedToEngine', + r'(Lio/flutter/embedding/engine/plugins/FlutterPlugin$FlutterPluginBinding;)V', + ); - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/flutter/SentryFlutterPlugin;'; + static final _onAttachedToEngine = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - @jni$_.internal - @core$_.override - SentryFlutterPlugin? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryFlutterPlugin.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + /// from: `public fun onAttachedToEngine(flutterPluginBinding: io.flutter.embedding.engine.plugins.FlutterPlugin.FlutterPluginBinding): kotlin.Unit` + void onAttachedToEngine( + jni$_.JObject flutterPluginBinding, + ) { + final _$flutterPluginBinding = flutterPluginBinding.reference; + _onAttachedToEngine(reference.pointer, _id_onAttachedToEngine.pointer, + _$flutterPluginBinding.pointer) + .check(); + } - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; + static final _id_onMethodCall = SentryFlutterPlugin._class.instanceMethodId( + r'onMethodCall', + r'(Lio/flutter/plugin/common/MethodCall;Lio/flutter/plugin/common/MethodChannel$Result;)V', + ); - @jni$_.internal - @core$_.override - final superCount = 1; + static final _onMethodCall = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - @core$_.override - int get hashCode => ($SentryFlutterPlugin$NullableType).hashCode; + /// from: `public fun onMethodCall(call: io.flutter.plugin.common.MethodCall, result: io.flutter.plugin.common.MethodChannel.Result): kotlin.Unit` + void onMethodCall( + jni$_.JObject methodCall, + jni$_.JObject result, + ) { + final _$methodCall = methodCall.reference; + final _$result = result.reference; + _onMethodCall(reference.pointer, _id_onMethodCall.pointer, + _$methodCall.pointer, _$result.pointer) + .check(); + } - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryFlutterPlugin$NullableType) && - other is $SentryFlutterPlugin$NullableType; + static final _id_onDetachedFromEngine = + SentryFlutterPlugin._class.instanceMethodId( + r'onDetachedFromEngine', + r'(Lio/flutter/embedding/engine/plugins/FlutterPlugin$FlutterPluginBinding;)V', + ); + + static final _onDetachedFromEngine = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public fun onDetachedFromEngine(binding: io.flutter.embedding.engine.plugins.FlutterPlugin.FlutterPluginBinding): kotlin.Unit` + void onDetachedFromEngine( + jni$_.JObject flutterPluginBinding, + ) { + final _$flutterPluginBinding = flutterPluginBinding.reference; + _onDetachedFromEngine(reference.pointer, _id_onDetachedFromEngine.pointer, + _$flutterPluginBinding.pointer) + .check(); } -} -final class $SentryFlutterPlugin$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryFlutterPlugin$Type(); + static final _id_onAttachedToActivity = + SentryFlutterPlugin._class.instanceMethodId( + r'onAttachedToActivity', + r'(Lio/flutter/embedding/engine/plugins/activity/ActivityPluginBinding;)V', + ); - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/flutter/SentryFlutterPlugin;'; + static final _onAttachedToActivity = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - @jni$_.internal - @core$_.override - SentryFlutterPlugin fromReference(jni$_.JReference reference) => - SentryFlutterPlugin.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + /// from: `public fun onAttachedToActivity(binding: io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding): kotlin.Unit` + void onAttachedToActivity( + jni$_.JObject activityPluginBinding, + ) { + final _$activityPluginBinding = activityPluginBinding.reference; + _onAttachedToActivity(reference.pointer, _id_onAttachedToActivity.pointer, + _$activityPluginBinding.pointer) + .check(); + } - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryFlutterPlugin$NullableType(); + static final _id_onDetachedFromActivity = + SentryFlutterPlugin._class.instanceMethodId( + r'onDetachedFromActivity', + r'()V', + ); - @jni$_.internal - @core$_.override - final superCount = 1; + static final _onDetachedFromActivity = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - @core$_.override - int get hashCode => ($SentryFlutterPlugin$Type).hashCode; + /// from: `public fun onDetachedFromActivity(): kotlin.Unit` + void onDetachedFromActivity() { + _onDetachedFromActivity( + reference.pointer, _id_onDetachedFromActivity.pointer) + .check(); + } - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryFlutterPlugin$Type) && - other is $SentryFlutterPlugin$Type; + static final _id_onReattachedToActivityForConfigChanges = + SentryFlutterPlugin._class.instanceMethodId( + r'onReattachedToActivityForConfigChanges', + r'(Lio/flutter/embedding/engine/plugins/activity/ActivityPluginBinding;)V', + ); + + static final _onReattachedToActivityForConfigChanges = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public fun onReattachedToActivityForConfigChanges(binding: io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding): kotlin.Unit` + void onReattachedToActivityForConfigChanges( + jni$_.JObject activityPluginBinding, + ) { + final _$activityPluginBinding = activityPluginBinding.reference; + _onReattachedToActivityForConfigChanges( + reference.pointer, + _id_onReattachedToActivityForConfigChanges.pointer, + _$activityPluginBinding.pointer) + .check(); + } + + static final _id_onDetachedFromActivityForConfigChanges = + SentryFlutterPlugin._class.instanceMethodId( + r'onDetachedFromActivityForConfigChanges', + r'()V', + ); + + static final _onDetachedFromActivityForConfigChanges = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public fun onDetachedFromActivityForConfigChanges(): kotlin.Unit` + void onDetachedFromActivityForConfigChanges() { + _onDetachedFromActivityForConfigChanges(reference.pointer, + _id_onDetachedFromActivityForConfigChanges.pointer) + .check(); } } -/// from: `io.sentry.flutter.ReplayRecorderCallbacks` -class ReplayRecorderCallbacks extends jni$_.JObject { +final class $SentryFlutterPlugin$Type$ + extends jni$_.JType { @jni$_.internal - @core$_.override - final jni$_.JObjType $type; + const $SentryFlutterPlugin$Type$(); @jni$_.internal - ReplayRecorderCallbacks.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + @core$_.override + String get signature => r'Lio/sentry/flutter/SentryFlutterPlugin;'; +} +/// from: `io.sentry.flutter.ReplayRecorderCallbacks` +extension type ReplayRecorderCallbacks._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/flutter/ReplayRecorderCallbacks'); /// The type which includes information such as the signature of this class. - static const nullableType = $ReplayRecorderCallbacks$NullableType(); - static const type = $ReplayRecorderCallbacks$Type(); - static final _id_replayStarted = _class.instanceMethodId( + static const jni$_.JType type = + $ReplayRecorderCallbacks$Type$(); + + /// Maps a specific port to the implemented interface. + static final core$_.Map _$impls = {}; + static jni$_.JObjectPtr _$invoke( + core$_.int port, + jni$_.JObjectPtr descriptor, + jni$_.JObjectPtr args, + ) { + return _$invokeMethod( + port, + jni$_.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); + } + + static final jni$_.Pointer< + jni$_.NativeFunction< + jni$_.JObjectPtr Function( + jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + + static jni$_.Pointer _$invokeMethod( + core$_.int $p, + jni$_.MethodInvocation $i, + ) { + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; + if ($d == r'replayStarted(Ljava/lang/String;Z)V') { + _$impls[$p]!.replayStarted( + ($a![0] as jni$_.JString), + ($a![1] as jni$_.JBoolean).toDartBool(releaseOriginal: true), + ); + return jni$_.nullptr; + } + if ($d == r'replayResumed()V') { + _$impls[$p]!.replayResumed(); + return jni$_.nullptr; + } + if ($d == r'replayPaused()V') { + _$impls[$p]!.replayPaused(); + return jni$_.nullptr; + } + if ($d == r'replayStopped()V') { + _$impls[$p]!.replayStopped(); + return jni$_.nullptr; + } + if ($d == r'replayReset()V') { + _$impls[$p]!.replayReset(); + return jni$_.nullptr; + } + if ($d == r'replayConfigChanged(III)V') { + _$impls[$p]!.replayConfigChanged( + ($a![0] as jni$_.JInteger).toDartInt(releaseOriginal: true), + ($a![1] as jni$_.JInteger).toDartInt(releaseOriginal: true), + ($a![2] as jni$_.JInteger).toDartInt(releaseOriginal: true), + ); + return jni$_.nullptr; + } + } catch (e) { + return jni$_.ProtectedJniExtensions.newDartException(e); + } + return jni$_.nullptr; + } + + static void implementIn( + jni$_.JImplementer implementer, + $ReplayRecorderCallbacks $impl, + ) { + late final jni$_.RawReceivePort $p; + $p = jni$_.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; + } + final $i = jni$_.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + jni$_.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'io.sentry.flutter.ReplayRecorderCallbacks', + $p, + _$invokePointer, + [ + if ($impl.replayStarted$async) r'replayStarted(Ljava/lang/String;Z)V', + if ($impl.replayResumed$async) r'replayResumed()V', + if ($impl.replayPaused$async) r'replayPaused()V', + if ($impl.replayStopped$async) r'replayStopped()V', + if ($impl.replayReset$async) r'replayReset()V', + if ($impl.replayConfigChanged$async) r'replayConfigChanged(III)V', + ], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; + } + + factory ReplayRecorderCallbacks.implement( + $ReplayRecorderCallbacks $impl, + ) { + final $i = jni$_.JImplementer(); + implementIn($i, $impl); + return $i.implement(); + } +} + +extension ReplayRecorderCallbacks$$Methods on ReplayRecorderCallbacks { + static final _id_replayStarted = + ReplayRecorderCallbacks._class.instanceMethodId( r'replayStarted', r'(Ljava/lang/String;Z)V', ); @@ -5466,20 +4652,21 @@ class ReplayRecorderCallbacks extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); - /// from: `public abstract void replayStarted(java.lang.String string, boolean z)` + /// from: `public fun replayStarted(replayId: kotlin.String, replayIsBuffering: kotlin.Boolean): kotlin.Unit` void replayStarted( jni$_.JString string, - bool z, + core$_.bool z, ) { final _$string = string.reference; - _replayStarted(reference.pointer, _id_replayStarted as jni$_.JMethodIDPtr, + _replayStarted(reference.pointer, _id_replayStarted.pointer, _$string.pointer, z ? 1 : 0) .check(); } - static final _id_replayResumed = _class.instanceMethodId( + static final _id_replayResumed = + ReplayRecorderCallbacks._class.instanceMethodId( r'replayResumed', r'()V', ); @@ -5496,13 +4683,13 @@ class ReplayRecorderCallbacks extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract void replayResumed()` + /// from: `public fun replayResumed(): kotlin.Unit` void replayResumed() { - _replayResumed(reference.pointer, _id_replayResumed as jni$_.JMethodIDPtr) - .check(); + _replayResumed(reference.pointer, _id_replayResumed.pointer).check(); } - static final _id_replayPaused = _class.instanceMethodId( + static final _id_replayPaused = + ReplayRecorderCallbacks._class.instanceMethodId( r'replayPaused', r'()V', ); @@ -5519,13 +4706,13 @@ class ReplayRecorderCallbacks extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract void replayPaused()` + /// from: `public fun replayPaused(): kotlin.Unit` void replayPaused() { - _replayPaused(reference.pointer, _id_replayPaused as jni$_.JMethodIDPtr) - .check(); + _replayPaused(reference.pointer, _id_replayPaused.pointer).check(); } - static final _id_replayStopped = _class.instanceMethodId( + static final _id_replayStopped = + ReplayRecorderCallbacks._class.instanceMethodId( r'replayStopped', r'()V', ); @@ -5542,13 +4729,13 @@ class ReplayRecorderCallbacks extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract void replayStopped()` + /// from: `public fun replayStopped(): kotlin.Unit` void replayStopped() { - _replayStopped(reference.pointer, _id_replayStopped as jni$_.JMethodIDPtr) - .check(); + _replayStopped(reference.pointer, _id_replayStopped.pointer).check(); } - static final _id_replayReset = _class.instanceMethodId( + static final _id_replayReset = + ReplayRecorderCallbacks._class.instanceMethodId( r'replayReset', r'()V', ); @@ -5565,13 +4752,13 @@ class ReplayRecorderCallbacks extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract void replayReset()` + /// from: `public fun replayReset(): kotlin.Unit` void replayReset() { - _replayReset(reference.pointer, _id_replayReset as jni$_.JMethodIDPtr) - .check(); + _replayReset(reference.pointer, _id_replayReset.pointer).check(); } - static final _id_replayConfigChanged = _class.instanceMethodId( + static final _id_replayConfigChanged = + ReplayRecorderCallbacks._class.instanceMethodId( r'replayConfigChanged', r'(III)V', ); @@ -5584,171 +4771,55 @@ class ReplayRecorderCallbacks extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32, jni$_.Int32, jni$_.Int32)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int, int, int)>(); + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, core$_.int, core$_.int, core$_.int)>(); - /// from: `public abstract void replayConfigChanged(int i, int i1, int i2)` + /// from: `public fun replayConfigChanged(width: kotlin.Int, height: kotlin.Int, frameRate: kotlin.Int): kotlin.Unit` void replayConfigChanged( - int i, - int i1, - int i2, + core$_.int i, + core$_.int i1, + core$_.int i2, ) { - _replayConfigChanged(reference.pointer, - _id_replayConfigChanged as jni$_.JMethodIDPtr, i, i1, i2) + _replayConfigChanged( + reference.pointer, _id_replayConfigChanged.pointer, i, i1, i2) .check(); } - - /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; - static jni$_.JObjectPtr _$invoke( - int port, - jni$_.JObjectPtr descriptor, - jni$_.JObjectPtr args, - ) { - return _$invokeMethod( - port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); - } - - static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); - - static jni$_.Pointer _$invokeMethod( - int $p, - jni$_.MethodInvocation $i, - ) { - try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; - if ($d == r'replayStarted(Ljava/lang/String;Z)V') { - _$impls[$p]!.replayStarted( - $a![0]!.as(const jni$_.JStringType(), releaseOriginal: true), - $a![1]! - .as(const jni$_.JBooleanType(), releaseOriginal: true) - .booleanValue(releaseOriginal: true), - ); - return jni$_.nullptr; - } - if ($d == r'replayResumed()V') { - _$impls[$p]!.replayResumed(); - return jni$_.nullptr; - } - if ($d == r'replayPaused()V') { - _$impls[$p]!.replayPaused(); - return jni$_.nullptr; - } - if ($d == r'replayStopped()V') { - _$impls[$p]!.replayStopped(); - return jni$_.nullptr; - } - if ($d == r'replayReset()V') { - _$impls[$p]!.replayReset(); - return jni$_.nullptr; - } - if ($d == r'replayConfigChanged(III)V') { - _$impls[$p]!.replayConfigChanged( - $a![0]! - .as(const jni$_.JIntegerType(), releaseOriginal: true) - .intValue(releaseOriginal: true), - $a![1]! - .as(const jni$_.JIntegerType(), releaseOriginal: true) - .intValue(releaseOriginal: true), - $a![2]! - .as(const jni$_.JIntegerType(), releaseOriginal: true) - .intValue(releaseOriginal: true), - ); - return jni$_.nullptr; - } - } catch (e) { - return jni$_.ProtectedJniExtensions.newDartException(e); - } - return jni$_.nullptr; - } - - static void implementIn( - jni$_.JImplementer implementer, - $ReplayRecorderCallbacks $impl, - ) { - late final jni$_.RawReceivePort $p; - $p = jni$_.RawReceivePort(($m) { - if ($m == null) { - _$impls.remove($p.sendPort.nativePort); - $p.close(); - return; - } - final $i = jni$_.MethodInvocation.fromMessage($m); - final $r = _$invokeMethod($p.sendPort.nativePort, $i); - jni$_.ProtectedJniExtensions.returnResult($i.result, $r); - }); - implementer.add( - r'io.sentry.flutter.ReplayRecorderCallbacks', - $p, - _$invokePointer, - [ - if ($impl.replayStarted$async) r'replayStarted(Ljava/lang/String;Z)V', - if ($impl.replayResumed$async) r'replayResumed()V', - if ($impl.replayPaused$async) r'replayPaused()V', - if ($impl.replayStopped$async) r'replayStopped()V', - if ($impl.replayReset$async) r'replayReset()V', - if ($impl.replayConfigChanged$async) r'replayConfigChanged(III)V', - ], - ); - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - } - - factory ReplayRecorderCallbacks.implement( - $ReplayRecorderCallbacks $impl, - ) { - final $i = jni$_.JImplementer(); - implementIn($i, $impl); - return ReplayRecorderCallbacks.fromReference( - $i.implementReference(), - ); - } } abstract base mixin class $ReplayRecorderCallbacks { factory $ReplayRecorderCallbacks({ - required void Function(jni$_.JString string, bool z) replayStarted, - bool replayStarted$async, + required void Function(jni$_.JString string, core$_.bool z) replayStarted, + core$_.bool replayStarted$async, required void Function() replayResumed, - bool replayResumed$async, + core$_.bool replayResumed$async, required void Function() replayPaused, - bool replayPaused$async, + core$_.bool replayPaused$async, required void Function() replayStopped, - bool replayStopped$async, + core$_.bool replayStopped$async, required void Function() replayReset, - bool replayReset$async, - required void Function(int i, int i1, int i2) replayConfigChanged, - bool replayConfigChanged$async, + core$_.bool replayReset$async, + required void Function(core$_.int i, core$_.int i1, core$_.int i2) + replayConfigChanged, + core$_.bool replayConfigChanged$async, }) = _$ReplayRecorderCallbacks; - void replayStarted(jni$_.JString string, bool z); - bool get replayStarted$async => false; + void replayStarted(jni$_.JString string, core$_.bool z); + core$_.bool get replayStarted$async => false; void replayResumed(); - bool get replayResumed$async => false; + core$_.bool get replayResumed$async => false; void replayPaused(); - bool get replayPaused$async => false; + core$_.bool get replayPaused$async => false; void replayStopped(); - bool get replayStopped$async => false; + core$_.bool get replayStopped$async => false; void replayReset(); - bool get replayReset$async => false; - void replayConfigChanged(int i, int i1, int i2); - bool get replayConfigChanged$async => false; + core$_.bool get replayReset$async => false; + void replayConfigChanged(core$_.int i, core$_.int i1, core$_.int i2); + core$_.bool get replayConfigChanged$async => false; } final class _$ReplayRecorderCallbacks with $ReplayRecorderCallbacks { _$ReplayRecorderCallbacks({ - required void Function(jni$_.JString string, bool z) replayStarted, + required void Function(jni$_.JString string, core$_.bool z) replayStarted, this.replayStarted$async = false, required void Function() replayResumed, this.replayResumed$async = false, @@ -5758,7 +4829,8 @@ final class _$ReplayRecorderCallbacks with $ReplayRecorderCallbacks { this.replayStopped$async = false, required void Function() replayReset, this.replayReset$async = false, - required void Function(int i, int i1, int i2) replayConfigChanged, + required void Function(core$_.int i, core$_.int i1, core$_.int i2) + replayConfigChanged, this.replayConfigChanged$async = false, }) : _replayStarted = replayStarted, _replayResumed = replayResumed, @@ -5767,20 +4839,21 @@ final class _$ReplayRecorderCallbacks with $ReplayRecorderCallbacks { _replayReset = replayReset, _replayConfigChanged = replayConfigChanged; - final void Function(jni$_.JString string, bool z) _replayStarted; - final bool replayStarted$async; + final void Function(jni$_.JString string, core$_.bool z) _replayStarted; + final core$_.bool replayStarted$async; final void Function() _replayResumed; - final bool replayResumed$async; + final core$_.bool replayResumed$async; final void Function() _replayPaused; - final bool replayPaused$async; + final core$_.bool replayPaused$async; final void Function() _replayStopped; - final bool replayStopped$async; + final core$_.bool replayStopped$async; final void Function() _replayReset; - final bool replayReset$async; - final void Function(int i, int i1, int i2) _replayConfigChanged; - final bool replayConfigChanged$async; + final core$_.bool replayReset$async; + final void Function(core$_.int i, core$_.int i1, core$_.int i2) + _replayConfigChanged; + final core$_.bool replayConfigChanged$async; - void replayStarted(jni$_.JString string, bool z) { + void replayStarted(jni$_.JString string, core$_.bool z) { return _replayStarted(string, z); } @@ -5800,156 +4873,36 @@ final class _$ReplayRecorderCallbacks with $ReplayRecorderCallbacks { return _replayReset(); } - void replayConfigChanged(int i, int i1, int i2) { + void replayConfigChanged(core$_.int i, core$_.int i1, core$_.int i2) { return _replayConfigChanged(i, i1, i2); } } -final class $ReplayRecorderCallbacks$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $ReplayRecorderCallbacks$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/flutter/ReplayRecorderCallbacks;'; - - @jni$_.internal - @core$_.override - ReplayRecorderCallbacks? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : ReplayRecorderCallbacks.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ReplayRecorderCallbacks$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ReplayRecorderCallbacks$NullableType) && - other is $ReplayRecorderCallbacks$NullableType; - } -} - -final class $ReplayRecorderCallbacks$Type - extends jni$_.JObjType { +final class $ReplayRecorderCallbacks$Type$ + extends jni$_.JType { @jni$_.internal - const $ReplayRecorderCallbacks$Type(); + const $ReplayRecorderCallbacks$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/flutter/ReplayRecorderCallbacks;'; - - @jni$_.internal - @core$_.override - ReplayRecorderCallbacks fromReference(jni$_.JReference reference) => - ReplayRecorderCallbacks.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $ReplayRecorderCallbacks$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ReplayRecorderCallbacks$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ReplayRecorderCallbacks$Type) && - other is $ReplayRecorderCallbacks$Type; - } } /// from: `io.sentry.Sentry$OptionsConfiguration` -class Sentry$OptionsConfiguration<$T extends jni$_.JObject?> - extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType> $type; - - @jni$_.internal - final jni$_.JObjType<$T> T; - - @jni$_.internal - Sentry$OptionsConfiguration.fromReference( - this.T, - jni$_.JReference reference, - ) : $type = type<$T>(T), - super.fromReference(reference); - +extension type Sentry$OptionsConfiguration<$T extends jni$_.JObject?>._( + jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/Sentry$OptionsConfiguration'); /// The type which includes information such as the signature of this class. - static $Sentry$OptionsConfiguration$NullableType<$T> - nullableType<$T extends jni$_.JObject?>( - jni$_.JObjType<$T> T, - ) { - return $Sentry$OptionsConfiguration$NullableType<$T>( - T, - ); - } - - static $Sentry$OptionsConfiguration$Type<$T> type<$T extends jni$_.JObject?>( - jni$_.JObjType<$T> T, - ) { - return $Sentry$OptionsConfiguration$Type<$T>( - T, - ); - } - - static final _id_configure = _class.instanceMethodId( - r'configure', - r'(Lio/sentry/SentryOptions;)V', - ); - - static final _configure = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public abstract void configure(T sentryOptions)` - void configure( - $T sentryOptions, - ) { - final _$sentryOptions = sentryOptions?.reference ?? jni$_.jNullReference; - _configure(reference.pointer, _id_configure as jni$_.JMethodIDPtr, - _$sentryOptions.pointer) - .check(); - } + static const jni$_.JType type = + $Sentry$OptionsConfiguration$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map _$impls = + {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -5970,7 +4923,7 @@ class Sentry$OptionsConfiguration<$T extends jni$_.JObject?> _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -5978,7 +4931,7 @@ class Sentry$OptionsConfiguration<$T extends jni$_.JObject?> final $a = $i.args; if ($d == r'configure(Lio/sentry/SentryOptions;)V') { _$impls[$p]!.configure( - $a![0]?.as(_$impls[$p]!.T, releaseOriginal: true), + ($a![0] as jni$_.JObject?), ); return jni$_.nullptr; } @@ -6020,155 +4973,82 @@ class Sentry$OptionsConfiguration<$T extends jni$_.JObject?> ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return Sentry$OptionsConfiguration<$T>.fromReference( - $impl.T, - $i.implementReference(), - ); + return $i.implement>(); + } +} + +extension Sentry$OptionsConfiguration$$Methods<$T extends jni$_.JObject?> + on Sentry$OptionsConfiguration<$T> { + static final _id_configure = + Sentry$OptionsConfiguration._class.instanceMethodId( + r'configure', + r'(Lio/sentry/SentryOptions;)V', + ); + + static final _configure = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public abstract void configure(T sentryOptions)` + void configure( + $T? sentryOptions, + ) { + final _$sentryOptions = sentryOptions?.reference ?? jni$_.jNullReference; + _configure( + reference.pointer, _id_configure.pointer, _$sentryOptions.pointer) + .check(); } } abstract base mixin class $Sentry$OptionsConfiguration< $T extends jni$_.JObject?> { factory $Sentry$OptionsConfiguration({ - required jni$_.JObjType<$T> T, - required void Function($T sentryOptions) configure, - bool configure$async, + required void Function($T? sentryOptions) configure, + core$_.bool configure$async, }) = _$Sentry$OptionsConfiguration<$T>; - jni$_.JObjType<$T> get T; - - void configure($T sentryOptions); - bool get configure$async => false; + void configure($T? sentryOptions); + core$_.bool get configure$async => false; } final class _$Sentry$OptionsConfiguration<$T extends jni$_.JObject?> with $Sentry$OptionsConfiguration<$T> { _$Sentry$OptionsConfiguration({ - required this.T, - required void Function($T sentryOptions) configure, + required void Function($T? sentryOptions) configure, this.configure$async = false, }) : _configure = configure; - @core$_.override - final jni$_.JObjType<$T> T; - - final void Function($T sentryOptions) _configure; - final bool configure$async; + final void Function($T? sentryOptions) _configure; + final core$_.bool configure$async; - void configure($T sentryOptions) { + void configure($T? sentryOptions) { return _configure(sentryOptions); } } -final class $Sentry$OptionsConfiguration$NullableType<$T extends jni$_.JObject?> - extends jni$_.JObjType?> { +final class $Sentry$OptionsConfiguration$Type$ + extends jni$_.JType { @jni$_.internal - final jni$_.JObjType<$T> T; - - @jni$_.internal - const $Sentry$OptionsConfiguration$NullableType( - this.T, - ); + const $Sentry$OptionsConfiguration$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/Sentry$OptionsConfiguration;'; - - @jni$_.internal - @core$_.override - Sentry$OptionsConfiguration<$T>? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : Sentry$OptionsConfiguration<$T>.fromReference( - T, - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType?> get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => Object.hash($Sentry$OptionsConfiguration$NullableType, T); - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($Sentry$OptionsConfiguration$NullableType<$T>) && - other is $Sentry$OptionsConfiguration$NullableType<$T> && - T == other.T; - } -} - -final class $Sentry$OptionsConfiguration$Type<$T extends jni$_.JObject?> - extends jni$_.JObjType> { - @jni$_.internal - final jni$_.JObjType<$T> T; - - @jni$_.internal - const $Sentry$OptionsConfiguration$Type( - this.T, - ); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/Sentry$OptionsConfiguration;'; - - @jni$_.internal - @core$_.override - Sentry$OptionsConfiguration<$T> fromReference(jni$_.JReference reference) => - Sentry$OptionsConfiguration<$T>.fromReference( - T, - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType?> get nullableType => - $Sentry$OptionsConfiguration$NullableType<$T>(T); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => Object.hash($Sentry$OptionsConfiguration$Type, T); - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Sentry$OptionsConfiguration$Type<$T>) && - other is $Sentry$OptionsConfiguration$Type<$T> && - T == other.T; - } } /// from: `io.sentry.Sentry` -class Sentry extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Sentry.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Sentry._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/Sentry'); /// The type which includes information such as the signature of this class. - static const nullableType = $Sentry$NullableType(); - static const type = $Sentry$Type(); + static const jni$_.JType type = $Sentry$Type$(); static final _id_APP_START_PROFILING_CONFIG_FILE_NAME = _class.staticFieldId( r'APP_START_PROFILING_CONFIG_FILE_NAME', r'Ljava/lang/String;', @@ -6177,15 +5057,15 @@ class Sentry extends jni$_.JObject { /// from: `static public final java.lang.String APP_START_PROFILING_CONFIG_FILE_NAME` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString get APP_START_PROFILING_CONFIG_FILE_NAME => - _id_APP_START_PROFILING_CONFIG_FILE_NAME.get( - _class, const jni$_.JStringType()); + _id_APP_START_PROFILING_CONFIG_FILE_NAME.get(_class, jni$_.JString.type) + as jni$_.JString; - static final _id_getCurrentHub = _class.staticMethodId( + static final _id_get$currentHub = _class.staticMethodId( r'getCurrentHub', r'()Lio/sentry/IHub;', ); - static final _getCurrentHub = jni$_.ProtectedJniExtensions.lookup< + static final _get$currentHub = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -6199,18 +5079,17 @@ class Sentry extends jni$_.JObject { /// from: `static public io.sentry.IHub getCurrentHub()` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject getCurrentHub() { - return _getCurrentHub( - _class.reference.pointer, _id_getCurrentHub as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + static jni$_.JObject get currentHub { + return _get$currentHub(_class.reference.pointer, _id_get$currentHub.pointer) + .object(); } - static final _id_getCurrentScopes = _class.staticMethodId( + static final _id_get$currentScopes = _class.staticMethodId( r'getCurrentScopes', r'()Lio/sentry/IScopes;', ); - static final _getCurrentScopes = jni$_.ProtectedJniExtensions.lookup< + static final _get$currentScopes = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -6224,34 +5103,34 @@ class Sentry extends jni$_.JObject { /// from: `static public io.sentry.IScopes getCurrentScopes()` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject getCurrentScopes() { - return _getCurrentScopes(_class.reference.pointer, - _id_getCurrentScopes as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + static jni$_.JObject get currentScopes { + return _get$currentScopes( + _class.reference.pointer, _id_get$currentScopes.pointer) + .object(); } - static final _id_getCurrentScopes$1 = _class.staticMethodId( + static final _id_getCurrentScopes = _class.staticMethodId( r'getCurrentScopes', r'(Z)Lio/sentry/IScopes;', ); - static final _getCurrentScopes$1 = jni$_.ProtectedJniExtensions.lookup< + static final _getCurrentScopes = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `static public io.sentry.IScopes getCurrentScopes(boolean z)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject getCurrentScopes$1( - bool z, + static jni$_.JObject getCurrentScopes( + core$_.bool z, ) { - return _getCurrentScopes$1(_class.reference.pointer, - _id_getCurrentScopes$1 as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const jni$_.JObjectType()); + return _getCurrentScopes( + _class.reference.pointer, _id_getCurrentScopes.pointer, z ? 1 : 0) + .object(); } static final _id_forkedRootScopes = _class.staticMethodId( @@ -6277,8 +5156,8 @@ class Sentry extends jni$_.JObject { ) { final _$string = string.reference; return _forkedRootScopes(_class.reference.pointer, - _id_forkedRootScopes as jni$_.JMethodIDPtr, _$string.pointer) - .object(const jni$_.JObjectType()); + _id_forkedRootScopes.pointer, _$string.pointer) + .object(); } static final _id_forkedScopes = _class.staticMethodId( @@ -6303,9 +5182,9 @@ class Sentry extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - return _forkedScopes(_class.reference.pointer, - _id_forkedScopes as jni$_.JMethodIDPtr, _$string.pointer) - .object(const jni$_.JObjectType()); + return _forkedScopes(_class.reference.pointer, _id_forkedScopes.pointer, + _$string.pointer) + .object(); } static final _id_forkedCurrentScope = _class.staticMethodId( @@ -6331,8 +5210,8 @@ class Sentry extends jni$_.JObject { ) { final _$string = string.reference; return _forkedCurrentScope(_class.reference.pointer, - _id_forkedCurrentScope as jni$_.JMethodIDPtr, _$string.pointer) - .object(const jni$_.JObjectType()); + _id_forkedCurrentScope.pointer, _$string.pointer) + .object(); } static final _id_setCurrentHub = _class.staticMethodId( @@ -6357,9 +5236,9 @@ class Sentry extends jni$_.JObject { jni$_.JObject iHub, ) { final _$iHub = iHub.reference; - return _setCurrentHub(_class.reference.pointer, - _id_setCurrentHub as jni$_.JMethodIDPtr, _$iHub.pointer) - .object(const jni$_.JObjectType()); + return _setCurrentHub( + _class.reference.pointer, _id_setCurrentHub.pointer, _$iHub.pointer) + .object(); } static final _id_setCurrentScopes = _class.staticMethodId( @@ -6385,16 +5264,16 @@ class Sentry extends jni$_.JObject { ) { final _$iScopes = iScopes.reference; return _setCurrentScopes(_class.reference.pointer, - _id_setCurrentScopes as jni$_.JMethodIDPtr, _$iScopes.pointer) - .object(const jni$_.JObjectType()); + _id_setCurrentScopes.pointer, _$iScopes.pointer) + .object(); } - static final _id_getGlobalScope = _class.staticMethodId( + static final _id_get$globalScope = _class.staticMethodId( r'getGlobalScope', r'()Lio/sentry/IScope;', ); - static final _getGlobalScope = jni$_.ProtectedJniExtensions.lookup< + static final _get$globalScope = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -6408,18 +5287,18 @@ class Sentry extends jni$_.JObject { /// from: `static public io.sentry.IScope getGlobalScope()` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject getGlobalScope() { - return _getGlobalScope( - _class.reference.pointer, _id_getGlobalScope as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + static jni$_.JObject get globalScope { + return _get$globalScope( + _class.reference.pointer, _id_get$globalScope.pointer) + .object(); } - static final _id_isEnabled = _class.staticMethodId( + static final _id_get$isEnabled = _class.staticMethodId( r'isEnabled', r'()Z', ); - static final _isEnabled = jni$_.ProtectedJniExtensions.lookup< + static final _get$isEnabled = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -6432,9 +5311,8 @@ class Sentry extends jni$_.JObject { )>(); /// from: `static public boolean isEnabled()` - static bool isEnabled() { - return _isEnabled( - _class.reference.pointer, _id_isEnabled as jni$_.JMethodIDPtr) + static core$_.bool get isEnabled { + return _get$isEnabled(_class.reference.pointer, _id_get$isEnabled.pointer) .boolean; } @@ -6457,7 +5335,7 @@ class Sentry extends jni$_.JObject { /// from: `static public void init()` static void init() { - _init(_class.reference.pointer, _id_init as jni$_.JMethodIDPtr).check(); + _init(_class.reference.pointer, _id_init.pointer).check(); } static final _id_init$1 = _class.staticMethodId( @@ -6481,8 +5359,7 @@ class Sentry extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - _init$1(_class.reference.pointer, _id_init$1 as jni$_.JMethodIDPtr, - _$string.pointer) + _init$1(_class.reference.pointer, _id_init$1.pointer, _$string.pointer) .check(); } @@ -6511,17 +5388,11 @@ class Sentry extends jni$_.JObject { /// from: `static public void init(io.sentry.OptionsContainer optionsContainer, io.sentry.Sentry$OptionsConfiguration optionsConfiguration)` static void init$2<$T extends jni$_.JObject?>( jni$_.JObject optionsContainer, - Sentry$OptionsConfiguration<$T?> optionsConfiguration, { - jni$_.JObjType<$T>? T, - }) { - T ??= jni$_.lowestCommonSuperType([ - (optionsConfiguration.$type - as $Sentry$OptionsConfiguration$Type) - .T, - ]) as jni$_.JObjType<$T>; + Sentry$OptionsConfiguration<$T?> optionsConfiguration, + ) { final _$optionsContainer = optionsContainer.reference; final _$optionsConfiguration = optionsConfiguration.reference; - _init$2(_class.reference.pointer, _id_init$2 as jni$_.JMethodIDPtr, + _init$2(_class.reference.pointer, _id_init$2.pointer, _$optionsContainer.pointer, _$optionsConfiguration.pointer) .check(); } @@ -6548,25 +5419,19 @@ class Sentry extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + core$_.int)>(); /// from: `static public void init(io.sentry.OptionsContainer optionsContainer, io.sentry.Sentry$OptionsConfiguration optionsConfiguration, boolean z)` static void init$3<$T extends jni$_.JObject?>( jni$_.JObject optionsContainer, Sentry$OptionsConfiguration<$T?> optionsConfiguration, - bool z, { - jni$_.JObjType<$T>? T, - }) { - T ??= jni$_.lowestCommonSuperType([ - (optionsConfiguration.$type - as $Sentry$OptionsConfiguration$Type) - .T, - ]) as jni$_.JObjType<$T>; + core$_.bool z, + ) { final _$optionsContainer = optionsContainer.reference; final _$optionsConfiguration = optionsConfiguration.reference; _init$3( _class.reference.pointer, - _id_init$3 as jni$_.JMethodIDPtr, + _id_init$3.pointer, _$optionsContainer.pointer, _$optionsConfiguration.pointer, z ? 1 : 0) @@ -6594,7 +5459,7 @@ class Sentry extends jni$_.JObject { Sentry$OptionsConfiguration optionsConfiguration, ) { final _$optionsConfiguration = optionsConfiguration.reference; - _init$4(_class.reference.pointer, _id_init$4 as jni$_.JMethodIDPtr, + _init$4(_class.reference.pointer, _id_init$4.pointer, _$optionsConfiguration.pointer) .check(); } @@ -6614,15 +5479,15 @@ class Sentry extends jni$_.JObject { 'globalEnv_CallStaticVoidMethod') .asFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); /// from: `static public void init(io.sentry.Sentry$OptionsConfiguration optionsConfiguration, boolean z)` static void init$5( Sentry$OptionsConfiguration optionsConfiguration, - bool z, + core$_.bool z, ) { final _$optionsConfiguration = optionsConfiguration.reference; - _init$5(_class.reference.pointer, _id_init$5 as jni$_.JMethodIDPtr, + _init$5(_class.reference.pointer, _id_init$5.pointer, _$optionsConfiguration.pointer, z ? 1 : 0) .check(); } @@ -6648,7 +5513,7 @@ class Sentry extends jni$_.JObject { SentryOptions sentryOptions, ) { final _$sentryOptions = sentryOptions.reference; - _init$6(_class.reference.pointer, _id_init$6 as jni$_.JMethodIDPtr, + _init$6(_class.reference.pointer, _id_init$6.pointer, _$sentryOptions.pointer) .check(); } @@ -6672,7 +5537,7 @@ class Sentry extends jni$_.JObject { /// from: `static public void close()` static void close() { - _close(_class.reference.pointer, _id_close as jni$_.JMethodIDPtr).check(); + _close(_class.reference.pointer, _id_close.pointer).check(); } static final _id_captureEvent = _class.staticMethodId( @@ -6697,9 +5562,9 @@ class Sentry extends jni$_.JObject { SentryEvent sentryEvent, ) { final _$sentryEvent = sentryEvent.reference; - return _captureEvent(_class.reference.pointer, - _id_captureEvent as jni$_.JMethodIDPtr, _$sentryEvent.pointer) - .object(const $SentryId$Type()); + return _captureEvent(_class.reference.pointer, _id_captureEvent.pointer, + _$sentryEvent.pointer) + .object(); } static final _id_captureEvent$1 = _class.staticMethodId( @@ -6732,12 +5597,9 @@ class Sentry extends jni$_.JObject { ) { final _$sentryEvent = sentryEvent.reference; final _$scopeCallback = scopeCallback.reference; - return _captureEvent$1( - _class.reference.pointer, - _id_captureEvent$1 as jni$_.JMethodIDPtr, - _$sentryEvent.pointer, - _$scopeCallback.pointer) - .object(const $SentryId$Type()); + return _captureEvent$1(_class.reference.pointer, _id_captureEvent$1.pointer, + _$sentryEvent.pointer, _$scopeCallback.pointer) + .object(); } static final _id_captureEvent$2 = _class.staticMethodId( @@ -6770,12 +5632,9 @@ class Sentry extends jni$_.JObject { ) { final _$sentryEvent = sentryEvent.reference; final _$hint = hint?.reference ?? jni$_.jNullReference; - return _captureEvent$2( - _class.reference.pointer, - _id_captureEvent$2 as jni$_.JMethodIDPtr, - _$sentryEvent.pointer, - _$hint.pointer) - .object(const $SentryId$Type()); + return _captureEvent$2(_class.reference.pointer, _id_captureEvent$2.pointer, + _$sentryEvent.pointer, _$hint.pointer) + .object(); } static final _id_captureEvent$3 = _class.staticMethodId( @@ -6812,13 +5671,9 @@ class Sentry extends jni$_.JObject { final _$sentryEvent = sentryEvent.reference; final _$hint = hint?.reference ?? jni$_.jNullReference; final _$scopeCallback = scopeCallback.reference; - return _captureEvent$3( - _class.reference.pointer, - _id_captureEvent$3 as jni$_.JMethodIDPtr, - _$sentryEvent.pointer, - _$hint.pointer, - _$scopeCallback.pointer) - .object(const $SentryId$Type()); + return _captureEvent$3(_class.reference.pointer, _id_captureEvent$3.pointer, + _$sentryEvent.pointer, _$hint.pointer, _$scopeCallback.pointer) + .object(); } static final _id_captureMessage = _class.staticMethodId( @@ -6843,9 +5698,9 @@ class Sentry extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - return _captureMessage(_class.reference.pointer, - _id_captureMessage as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $SentryId$Type()); + return _captureMessage(_class.reference.pointer, _id_captureMessage.pointer, + _$string.pointer) + .object(); } static final _id_captureMessage$1 = _class.staticMethodId( @@ -6880,10 +5735,10 @@ class Sentry extends jni$_.JObject { final _$scopeCallback = scopeCallback.reference; return _captureMessage$1( _class.reference.pointer, - _id_captureMessage$1 as jni$_.JMethodIDPtr, + _id_captureMessage$1.pointer, _$string.pointer, _$scopeCallback.pointer) - .object(const $SentryId$Type()); + .object(); } static final _id_captureMessage$2 = _class.staticMethodId( @@ -6918,10 +5773,10 @@ class Sentry extends jni$_.JObject { final _$sentryLevel = sentryLevel.reference; return _captureMessage$2( _class.reference.pointer, - _id_captureMessage$2 as jni$_.JMethodIDPtr, + _id_captureMessage$2.pointer, _$string.pointer, _$sentryLevel.pointer) - .object(const $SentryId$Type()); + .object(); } static final _id_captureMessage$3 = _class.staticMethodId( @@ -6960,11 +5815,11 @@ class Sentry extends jni$_.JObject { final _$scopeCallback = scopeCallback.reference; return _captureMessage$3( _class.reference.pointer, - _id_captureMessage$3 as jni$_.JMethodIDPtr, + _id_captureMessage$3.pointer, _$string.pointer, _$sentryLevel.pointer, _$scopeCallback.pointer) - .object(const $SentryId$Type()); + .object(); } static final _id_captureFeedback = _class.staticMethodId( @@ -6990,8 +5845,8 @@ class Sentry extends jni$_.JObject { ) { final _$feedback = feedback.reference; return _captureFeedback(_class.reference.pointer, - _id_captureFeedback as jni$_.JMethodIDPtr, _$feedback.pointer) - .object(const $SentryId$Type()); + _id_captureFeedback.pointer, _$feedback.pointer) + .object(); } static final _id_captureFeedback$1 = _class.staticMethodId( @@ -7024,12 +5879,9 @@ class Sentry extends jni$_.JObject { ) { final _$feedback = feedback.reference; final _$hint = hint?.reference ?? jni$_.jNullReference; - return _captureFeedback$1( - _class.reference.pointer, - _id_captureFeedback$1 as jni$_.JMethodIDPtr, - _$feedback.pointer, - _$hint.pointer) - .object(const $SentryId$Type()); + return _captureFeedback$1(_class.reference.pointer, + _id_captureFeedback$1.pointer, _$feedback.pointer, _$hint.pointer) + .object(); } static final _id_captureFeedback$2 = _class.staticMethodId( @@ -7068,11 +5920,11 @@ class Sentry extends jni$_.JObject { final _$scopeCallback = scopeCallback?.reference ?? jni$_.jNullReference; return _captureFeedback$2( _class.reference.pointer, - _id_captureFeedback$2 as jni$_.JMethodIDPtr, + _id_captureFeedback$2.pointer, _$feedback.pointer, _$hint.pointer, _$scopeCallback.pointer) - .object(const $SentryId$Type()); + .object(); } static final _id_captureException = _class.staticMethodId( @@ -7098,8 +5950,8 @@ class Sentry extends jni$_.JObject { ) { final _$throwable = throwable.reference; return _captureException(_class.reference.pointer, - _id_captureException as jni$_.JMethodIDPtr, _$throwable.pointer) - .object(const $SentryId$Type()); + _id_captureException.pointer, _$throwable.pointer) + .object(); } static final _id_captureException$1 = _class.staticMethodId( @@ -7134,10 +5986,10 @@ class Sentry extends jni$_.JObject { final _$scopeCallback = scopeCallback.reference; return _captureException$1( _class.reference.pointer, - _id_captureException$1 as jni$_.JMethodIDPtr, + _id_captureException$1.pointer, _$throwable.pointer, _$scopeCallback.pointer) - .object(const $SentryId$Type()); + .object(); } static final _id_captureException$2 = _class.staticMethodId( @@ -7170,12 +6022,9 @@ class Sentry extends jni$_.JObject { ) { final _$throwable = throwable.reference; final _$hint = hint?.reference ?? jni$_.jNullReference; - return _captureException$2( - _class.reference.pointer, - _id_captureException$2 as jni$_.JMethodIDPtr, - _$throwable.pointer, - _$hint.pointer) - .object(const $SentryId$Type()); + return _captureException$2(_class.reference.pointer, + _id_captureException$2.pointer, _$throwable.pointer, _$hint.pointer) + .object(); } static final _id_captureException$3 = _class.staticMethodId( @@ -7214,11 +6063,11 @@ class Sentry extends jni$_.JObject { final _$scopeCallback = scopeCallback.reference; return _captureException$3( _class.reference.pointer, - _id_captureException$3 as jni$_.JMethodIDPtr, + _id_captureException$3.pointer, _$throwable.pointer, _$hint.pointer, _$scopeCallback.pointer) - .object(const $SentryId$Type()); + .object(); } static final _id_captureUserFeedback = _class.staticMethodId( @@ -7242,10 +6091,8 @@ class Sentry extends jni$_.JObject { jni$_.JObject userFeedback, ) { final _$userFeedback = userFeedback.reference; - _captureUserFeedback( - _class.reference.pointer, - _id_captureUserFeedback as jni$_.JMethodIDPtr, - _$userFeedback.pointer) + _captureUserFeedback(_class.reference.pointer, + _id_captureUserFeedback.pointer, _$userFeedback.pointer) .check(); } @@ -7278,11 +6125,8 @@ class Sentry extends jni$_.JObject { ) { final _$breadcrumb = breadcrumb.reference; final _$hint = hint?.reference ?? jni$_.jNullReference; - _addBreadcrumb( - _class.reference.pointer, - _id_addBreadcrumb as jni$_.JMethodIDPtr, - _$breadcrumb.pointer, - _$hint.pointer) + _addBreadcrumb(_class.reference.pointer, _id_addBreadcrumb.pointer, + _$breadcrumb.pointer, _$hint.pointer) .check(); } @@ -7307,8 +6151,8 @@ class Sentry extends jni$_.JObject { Breadcrumb breadcrumb, ) { final _$breadcrumb = breadcrumb.reference; - _addBreadcrumb$1(_class.reference.pointer, - _id_addBreadcrumb$1 as jni$_.JMethodIDPtr, _$breadcrumb.pointer) + _addBreadcrumb$1(_class.reference.pointer, _id_addBreadcrumb$1.pointer, + _$breadcrumb.pointer) .check(); } @@ -7333,8 +6177,8 @@ class Sentry extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - _addBreadcrumb$2(_class.reference.pointer, - _id_addBreadcrumb$2 as jni$_.JMethodIDPtr, _$string.pointer) + _addBreadcrumb$2(_class.reference.pointer, _id_addBreadcrumb$2.pointer, + _$string.pointer) .check(); } @@ -7367,20 +6211,17 @@ class Sentry extends jni$_.JObject { ) { final _$string = string.reference; final _$string1 = string1.reference; - _addBreadcrumb$3( - _class.reference.pointer, - _id_addBreadcrumb$3 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer) + _addBreadcrumb$3(_class.reference.pointer, _id_addBreadcrumb$3.pointer, + _$string.pointer, _$string1.pointer) .check(); } - static final _id_setLevel = _class.staticMethodId( + static final _id_set$level = _class.staticMethodId( r'setLevel', r'(Lio/sentry/SentryLevel;)V', ); - static final _setLevel = jni$_.ProtectedJniExtensions.lookup< + static final _set$level = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -7392,21 +6233,19 @@ class Sentry extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `static public void setLevel(io.sentry.SentryLevel sentryLevel)` - static void setLevel( - SentryLevel? sentryLevel, - ) { + static set level(SentryLevel? sentryLevel) { final _$sentryLevel = sentryLevel?.reference ?? jni$_.jNullReference; - _setLevel(_class.reference.pointer, _id_setLevel as jni$_.JMethodIDPtr, + _set$level(_class.reference.pointer, _id_set$level.pointer, _$sentryLevel.pointer) .check(); } - static final _id_setTransaction = _class.staticMethodId( + static final _id_set$transaction = _class.staticMethodId( r'setTransaction', r'(Ljava/lang/String;)V', ); - static final _setTransaction = jni$_.ProtectedJniExtensions.lookup< + static final _set$transaction = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -7418,21 +6257,19 @@ class Sentry extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `static public void setTransaction(java.lang.String string)` - static void setTransaction( - jni$_.JString? string, - ) { + static set transaction(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setTransaction(_class.reference.pointer, - _id_setTransaction as jni$_.JMethodIDPtr, _$string.pointer) + _set$transaction(_class.reference.pointer, _id_set$transaction.pointer, + _$string.pointer) .check(); } - static final _id_setUser = _class.staticMethodId( + static final _id_set$user = _class.staticMethodId( r'setUser', r'(Lio/sentry/protocol/User;)V', ); - static final _setUser = jni$_.ProtectedJniExtensions.lookup< + static final _set$user = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -7444,21 +6281,18 @@ class Sentry extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `static public void setUser(io.sentry.protocol.User user)` - static void setUser( - User? user, - ) { + static set user(User? user) { final _$user = user?.reference ?? jni$_.jNullReference; - _setUser(_class.reference.pointer, _id_setUser as jni$_.JMethodIDPtr, - _$user.pointer) + _set$user(_class.reference.pointer, _id_set$user.pointer, _$user.pointer) .check(); } - static final _id_setFingerprint = _class.staticMethodId( + static final _id_set$fingerprint = _class.staticMethodId( r'setFingerprint', r'(Ljava/util/List;)V', ); - static final _setFingerprint = jni$_.ProtectedJniExtensions.lookup< + static final _set$fingerprint = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -7470,12 +6304,10 @@ class Sentry extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `static public void setFingerprint(java.util.List list)` - static void setFingerprint( - jni$_.JList list, - ) { + static set fingerprint(jni$_.JList list) { final _$list = list.reference; - _setFingerprint(_class.reference.pointer, - _id_setFingerprint as jni$_.JMethodIDPtr, _$list.pointer) + _set$fingerprint(_class.reference.pointer, _id_set$fingerprint.pointer, + _$list.pointer) .check(); } @@ -7498,8 +6330,7 @@ class Sentry extends jni$_.JObject { /// from: `static public void clearBreadcrumbs()` static void clearBreadcrumbs() { - _clearBreadcrumbs(_class.reference.pointer, - _id_clearBreadcrumbs as jni$_.JMethodIDPtr) + _clearBreadcrumbs(_class.reference.pointer, _id_clearBreadcrumbs.pointer) .check(); } @@ -7532,8 +6363,8 @@ class Sentry extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _setTag(_class.reference.pointer, _id_setTag as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) + _setTag(_class.reference.pointer, _id_setTag.pointer, _$string.pointer, + _$string1.pointer) .check(); } @@ -7558,8 +6389,8 @@ class Sentry extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - _removeTag(_class.reference.pointer, _id_removeTag as jni$_.JMethodIDPtr, - _$string.pointer) + _removeTag( + _class.reference.pointer, _id_removeTag.pointer, _$string.pointer) .check(); } @@ -7592,8 +6423,8 @@ class Sentry extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _setExtra(_class.reference.pointer, _id_setExtra as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) + _setExtra(_class.reference.pointer, _id_setExtra.pointer, _$string.pointer, + _$string1.pointer) .check(); } @@ -7618,17 +6449,17 @@ class Sentry extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - _removeExtra(_class.reference.pointer, - _id_removeExtra as jni$_.JMethodIDPtr, _$string.pointer) + _removeExtra( + _class.reference.pointer, _id_removeExtra.pointer, _$string.pointer) .check(); } - static final _id_getLastEventId = _class.staticMethodId( + static final _id_get$lastEventId = _class.staticMethodId( r'getLastEventId', r'()Lio/sentry/protocol/SentryId;', ); - static final _getLastEventId = jni$_.ProtectedJniExtensions.lookup< + static final _get$lastEventId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -7642,10 +6473,10 @@ class Sentry extends jni$_.JObject { /// from: `static public io.sentry.protocol.SentryId getLastEventId()` /// The returned object must be released after use, by calling the [release] method. - static SentryId getLastEventId() { - return _getLastEventId( - _class.reference.pointer, _id_getLastEventId as jni$_.JMethodIDPtr) - .object(const $SentryId$Type()); + static SentryId get lastEventId { + return _get$lastEventId( + _class.reference.pointer, _id_get$lastEventId.pointer) + .object(); } static final _id_pushScope = _class.staticMethodId( @@ -7668,9 +6499,8 @@ class Sentry extends jni$_.JObject { /// from: `static public io.sentry.ISentryLifecycleToken pushScope()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JObject pushScope() { - return _pushScope( - _class.reference.pointer, _id_pushScope as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _pushScope(_class.reference.pointer, _id_pushScope.pointer) + .object(); } static final _id_pushIsolationScope = _class.staticMethodId( @@ -7693,9 +6523,9 @@ class Sentry extends jni$_.JObject { /// from: `static public io.sentry.ISentryLifecycleToken pushIsolationScope()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JObject pushIsolationScope() { - return _pushIsolationScope(_class.reference.pointer, - _id_pushIsolationScope as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _pushIsolationScope( + _class.reference.pointer, _id_pushIsolationScope.pointer) + .object(); } static final _id_popScope = _class.staticMethodId( @@ -7717,8 +6547,7 @@ class Sentry extends jni$_.JObject { /// from: `static public void popScope()` static void popScope() { - _popScope(_class.reference.pointer, _id_popScope as jni$_.JMethodIDPtr) - .check(); + _popScope(_class.reference.pointer, _id_popScope.pointer).check(); } static final _id_withScope = _class.staticMethodId( @@ -7742,7 +6571,7 @@ class Sentry extends jni$_.JObject { ScopeCallback scopeCallback, ) { final _$scopeCallback = scopeCallback.reference; - _withScope(_class.reference.pointer, _id_withScope as jni$_.JMethodIDPtr, + _withScope(_class.reference.pointer, _id_withScope.pointer, _$scopeCallback.pointer) .check(); } @@ -7768,10 +6597,8 @@ class Sentry extends jni$_.JObject { ScopeCallback scopeCallback, ) { final _$scopeCallback = scopeCallback.reference; - _withIsolationScope( - _class.reference.pointer, - _id_withIsolationScope as jni$_.JMethodIDPtr, - _$scopeCallback.pointer) + _withIsolationScope(_class.reference.pointer, + _id_withIsolationScope.pointer, _$scopeCallback.pointer) .check(); } @@ -7796,8 +6623,8 @@ class Sentry extends jni$_.JObject { ScopeCallback scopeCallback, ) { final _$scopeCallback = scopeCallback.reference; - _configureScope(_class.reference.pointer, - _id_configureScope as jni$_.JMethodIDPtr, _$scopeCallback.pointer) + _configureScope(_class.reference.pointer, _id_configureScope.pointer, + _$scopeCallback.pointer) .check(); } @@ -7830,11 +6657,8 @@ class Sentry extends jni$_.JObject { ) { final _$scopeType = scopeType?.reference ?? jni$_.jNullReference; final _$scopeCallback = scopeCallback.reference; - _configureScope$1( - _class.reference.pointer, - _id_configureScope$1 as jni$_.JMethodIDPtr, - _$scopeType.pointer, - _$scopeCallback.pointer) + _configureScope$1(_class.reference.pointer, _id_configureScope$1.pointer, + _$scopeType.pointer, _$scopeCallback.pointer) .check(); } @@ -7859,17 +6683,17 @@ class Sentry extends jni$_.JObject { jni$_.JObject iSentryClient, ) { final _$iSentryClient = iSentryClient.reference; - _bindClient(_class.reference.pointer, _id_bindClient as jni$_.JMethodIDPtr, + _bindClient(_class.reference.pointer, _id_bindClient.pointer, _$iSentryClient.pointer) .check(); } - static final _id_isHealthy = _class.staticMethodId( + static final _id_get$isHealthy = _class.staticMethodId( r'isHealthy', r'()Z', ); - static final _isHealthy = jni$_.ProtectedJniExtensions.lookup< + static final _get$isHealthy = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -7882,9 +6706,8 @@ class Sentry extends jni$_.JObject { )>(); /// from: `static public boolean isHealthy()` - static bool isHealthy() { - return _isHealthy( - _class.reference.pointer, _id_isHealthy as jni$_.JMethodIDPtr) + static core$_.bool get isHealthy { + return _get$isHealthy(_class.reference.pointer, _id_get$isHealthy.pointer) .boolean; } @@ -7900,14 +6723,13 @@ class Sentry extends jni$_.JObject { 'globalEnv_CallStaticVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `static public void flush(long j)` static void flush( - int j, + core$_.int j, ) { - _flush(_class.reference.pointer, _id_flush as jni$_.JMethodIDPtr, j) - .check(); + _flush(_class.reference.pointer, _id_flush.pointer, j).check(); } static final _id_startSession = _class.staticMethodId( @@ -7929,9 +6751,7 @@ class Sentry extends jni$_.JObject { /// from: `static public void startSession()` static void startSession() { - _startSession( - _class.reference.pointer, _id_startSession as jni$_.JMethodIDPtr) - .check(); + _startSession(_class.reference.pointer, _id_startSession.pointer).check(); } static final _id_endSession = _class.staticMethodId( @@ -7953,8 +6773,7 @@ class Sentry extends jni$_.JObject { /// from: `static public void endSession()` static void endSession() { - _endSession(_class.reference.pointer, _id_endSession as jni$_.JMethodIDPtr) - .check(); + _endSession(_class.reference.pointer, _id_endSession.pointer).check(); } static final _id_startTransaction = _class.staticMethodId( @@ -7987,12 +6806,9 @@ class Sentry extends jni$_.JObject { ) { final _$string = string.reference; final _$string1 = string1.reference; - return _startTransaction( - _class.reference.pointer, - _id_startTransaction as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer) - .object(const jni$_.JObjectType()); + return _startTransaction(_class.reference.pointer, + _id_startTransaction.pointer, _$string.pointer, _$string1.pointer) + .object(); } static final _id_startTransaction$1 = _class.staticMethodId( @@ -8031,11 +6847,11 @@ class Sentry extends jni$_.JObject { final _$transactionOptions = transactionOptions.reference; return _startTransaction$1( _class.reference.pointer, - _id_startTransaction$1 as jni$_.JMethodIDPtr, + _id_startTransaction$1.pointer, _$string.pointer, _$string1.pointer, _$transactionOptions.pointer) - .object(const jni$_.JObjectType()); + .object(); } static final _id_startTransaction$2 = _class.staticMethodId( @@ -8078,12 +6894,12 @@ class Sentry extends jni$_.JObject { final _$transactionOptions = transactionOptions.reference; return _startTransaction$2( _class.reference.pointer, - _id_startTransaction$2 as jni$_.JMethodIDPtr, + _id_startTransaction$2.pointer, _$string.pointer, _$string1.pointer, _$string2.pointer, _$transactionOptions.pointer) - .object(const jni$_.JObjectType()); + .object(); } static final _id_startTransaction$3 = _class.staticMethodId( @@ -8108,11 +6924,9 @@ class Sentry extends jni$_.JObject { jni$_.JObject transactionContext, ) { final _$transactionContext = transactionContext.reference; - return _startTransaction$3( - _class.reference.pointer, - _id_startTransaction$3 as jni$_.JMethodIDPtr, - _$transactionContext.pointer) - .object(const jni$_.JObjectType()); + return _startTransaction$3(_class.reference.pointer, + _id_startTransaction$3.pointer, _$transactionContext.pointer) + .object(); } static final _id_startTransaction$4 = _class.staticMethodId( @@ -8147,10 +6961,10 @@ class Sentry extends jni$_.JObject { final _$transactionOptions = transactionOptions.reference; return _startTransaction$4( _class.reference.pointer, - _id_startTransaction$4 as jni$_.JMethodIDPtr, + _id_startTransaction$4.pointer, _$transactionContext.pointer, _$transactionOptions.pointer) - .object(const jni$_.JObjectType()); + .object(); } static final _id_startProfiler = _class.staticMethodId( @@ -8172,9 +6986,7 @@ class Sentry extends jni$_.JObject { /// from: `static public void startProfiler()` static void startProfiler() { - _startProfiler( - _class.reference.pointer, _id_startProfiler as jni$_.JMethodIDPtr) - .check(); + _startProfiler(_class.reference.pointer, _id_startProfiler.pointer).check(); } static final _id_stopProfiler = _class.staticMethodId( @@ -8196,17 +7008,15 @@ class Sentry extends jni$_.JObject { /// from: `static public void stopProfiler()` static void stopProfiler() { - _stopProfiler( - _class.reference.pointer, _id_stopProfiler as jni$_.JMethodIDPtr) - .check(); + _stopProfiler(_class.reference.pointer, _id_stopProfiler.pointer).check(); } - static final _id_getSpan = _class.staticMethodId( + static final _id_get$span = _class.staticMethodId( r'getSpan', r'()Lio/sentry/ISpan;', ); - static final _getSpan = jni$_.ProtectedJniExtensions.lookup< + static final _get$span = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -8220,9 +7030,9 @@ class Sentry extends jni$_.JObject { /// from: `static public io.sentry.ISpan getSpan()` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? getSpan() { - return _getSpan(_class.reference.pointer, _id_getSpan as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + static jni$_.JObject? get span { + return _get$span(_class.reference.pointer, _id_get$span.pointer) + .object(); } static final _id_isCrashedLastRun = _class.staticMethodId( @@ -8245,9 +7055,9 @@ class Sentry extends jni$_.JObject { /// from: `static public java.lang.Boolean isCrashedLastRun()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JBoolean? isCrashedLastRun() { - return _isCrashedLastRun(_class.reference.pointer, - _id_isCrashedLastRun as jni$_.JMethodIDPtr) - .object(const jni$_.JBooleanNullableType()); + return _isCrashedLastRun( + _class.reference.pointer, _id_isCrashedLastRun.pointer) + .object(); } static final _id_reportFullyDisplayed = _class.staticMethodId( @@ -8269,8 +7079,8 @@ class Sentry extends jni$_.JObject { /// from: `static public void reportFullyDisplayed()` static void reportFullyDisplayed() { - _reportFullyDisplayed(_class.reference.pointer, - _id_reportFullyDisplayed as jni$_.JMethodIDPtr) + _reportFullyDisplayed( + _class.reference.pointer, _id_reportFullyDisplayed.pointer) .check(); } @@ -8304,20 +7114,17 @@ class Sentry extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$list = list?.reference ?? jni$_.jNullReference; - return _continueTrace( - _class.reference.pointer, - _id_continueTrace as jni$_.JMethodIDPtr, - _$string.pointer, - _$list.pointer) - .object(const jni$_.JObjectNullableType()); + return _continueTrace(_class.reference.pointer, _id_continueTrace.pointer, + _$string.pointer, _$list.pointer) + .object(); } - static final _id_getTraceparent = _class.staticMethodId( + static final _id_get$traceparent = _class.staticMethodId( r'getTraceparent', r'()Lio/sentry/SentryTraceHeader;', ); - static final _getTraceparent = jni$_.ProtectedJniExtensions.lookup< + static final _get$traceparent = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -8331,18 +7138,18 @@ class Sentry extends jni$_.JObject { /// from: `static public io.sentry.SentryTraceHeader getTraceparent()` /// The returned object must be released after use, by calling the [release] method. - static SentryTraceHeader? getTraceparent() { - return _getTraceparent( - _class.reference.pointer, _id_getTraceparent as jni$_.JMethodIDPtr) - .object(const $SentryTraceHeader$NullableType()); + static SentryTraceHeader? get traceparent { + return _get$traceparent( + _class.reference.pointer, _id_get$traceparent.pointer) + .object(); } - static final _id_getBaggage = _class.staticMethodId( + static final _id_get$baggage = _class.staticMethodId( r'getBaggage', r'()Lio/sentry/BaggageHeader;', ); - static final _getBaggage = jni$_.ProtectedJniExtensions.lookup< + static final _get$baggage = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -8356,10 +7163,9 @@ class Sentry extends jni$_.JObject { /// from: `static public io.sentry.BaggageHeader getBaggage()` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? getBaggage() { - return _getBaggage( - _class.reference.pointer, _id_getBaggage as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + static jni$_.JObject? get baggage { + return _get$baggage(_class.reference.pointer, _id_get$baggage.pointer) + .object(); } static final _id_captureCheckIn = _class.staticMethodId( @@ -8384,9 +7190,9 @@ class Sentry extends jni$_.JObject { jni$_.JObject checkIn, ) { final _$checkIn = checkIn.reference; - return _captureCheckIn(_class.reference.pointer, - _id_captureCheckIn as jni$_.JMethodIDPtr, _$checkIn.pointer) - .object(const $SentryId$Type()); + return _captureCheckIn(_class.reference.pointer, _id_captureCheckIn.pointer, + _$checkIn.pointer) + .object(); } static final _id_logger = _class.staticMethodId( @@ -8409,8 +7215,8 @@ class Sentry extends jni$_.JObject { /// from: `static public io.sentry.logger.ILoggerApi logger()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JObject logger() { - return _logger(_class.reference.pointer, _id_logger as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _logger(_class.reference.pointer, _id_logger.pointer) + .object(); } static final _id_replay = _class.staticMethodId( @@ -8433,8 +7239,8 @@ class Sentry extends jni$_.JObject { /// from: `static public io.sentry.IReplayApi replay()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JObject replay() { - return _replay(_class.reference.pointer, _id_replay as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _replay(_class.reference.pointer, _id_replay.pointer) + .object(); } static final _id_distribution = _class.staticMethodId( @@ -8457,9 +7263,8 @@ class Sentry extends jni$_.JObject { /// from: `static public io.sentry.IDistributionApi distribution()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JObject distribution() { - return _distribution( - _class.reference.pointer, _id_distribution as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _distribution(_class.reference.pointer, _id_distribution.pointer) + .object(); } static final _id_metrics = _class.staticMethodId( @@ -8482,8 +7287,8 @@ class Sentry extends jni$_.JObject { /// from: `static public io.sentry.metrics.IMetricsApi metrics()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JObject metrics() { - return _metrics(_class.reference.pointer, _id_metrics as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _metrics(_class.reference.pointer, _id_metrics.pointer) + .object(); } static final _id_showUserFeedbackDialog = _class.staticMethodId( @@ -8505,8 +7310,8 @@ class Sentry extends jni$_.JObject { /// from: `static public void showUserFeedbackDialog()` static void showUserFeedbackDialog() { - _showUserFeedbackDialog(_class.reference.pointer, - _id_showUserFeedbackDialog as jni$_.JMethodIDPtr) + _showUserFeedbackDialog( + _class.reference.pointer, _id_showUserFeedbackDialog.pointer) .check(); } @@ -8532,10 +7337,8 @@ class Sentry extends jni$_.JObject { ) { final _$optionsConfigurator = optionsConfigurator?.reference ?? jni$_.jNullReference; - _showUserFeedbackDialog$1( - _class.reference.pointer, - _id_showUserFeedbackDialog$1 as jni$_.JMethodIDPtr, - _$optionsConfigurator.pointer) + _showUserFeedbackDialog$1(_class.reference.pointer, + _id_showUserFeedbackDialog$1.pointer, _$optionsConfigurator.pointer) .check(); } @@ -8571,7 +7374,7 @@ class Sentry extends jni$_.JObject { optionsConfigurator?.reference ?? jni$_.jNullReference; _showUserFeedbackDialog$2( _class.reference.pointer, - _id_showUserFeedbackDialog$2 as jni$_.JMethodIDPtr, + _id_showUserFeedbackDialog$2.pointer, _$sentryId.pointer, _$optionsConfigurator.pointer) .check(); @@ -8606,20 +7409,17 @@ class Sentry extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$object = object?.reference ?? jni$_.jNullReference; - _setAttribute( - _class.reference.pointer, - _id_setAttribute as jni$_.JMethodIDPtr, - _$string.pointer, - _$object.pointer) + _setAttribute(_class.reference.pointer, _id_setAttribute.pointer, + _$string.pointer, _$object.pointer) .check(); } - static final _id_setAttribute$1 = _class.staticMethodId( + static final _id_set$attribute = _class.staticMethodId( r'setAttribute', r'(Lio/sentry/SentryAttribute;)V', ); - static final _setAttribute$1 = jni$_.ProtectedJniExtensions.lookup< + static final _set$attribute = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -8631,22 +7431,20 @@ class Sentry extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `static public void setAttribute(io.sentry.SentryAttribute sentryAttribute)` - static void setAttribute$1( - jni$_.JObject? sentryAttribute, - ) { + static set attribute(jni$_.JObject? sentryAttribute) { final _$sentryAttribute = sentryAttribute?.reference ?? jni$_.jNullReference; - _setAttribute$1(_class.reference.pointer, - _id_setAttribute$1 as jni$_.JMethodIDPtr, _$sentryAttribute.pointer) + _set$attribute(_class.reference.pointer, _id_set$attribute.pointer, + _$sentryAttribute.pointer) .check(); } - static final _id_setAttributes = _class.staticMethodId( + static final _id_set$attributes = _class.staticMethodId( r'setAttributes', r'(Lio/sentry/SentryAttributes;)V', ); - static final _setAttributes = jni$_.ProtectedJniExtensions.lookup< + static final _set$attributes = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -8658,13 +7456,11 @@ class Sentry extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `static public void setAttributes(io.sentry.SentryAttributes sentryAttributes)` - static void setAttributes( - jni$_.JObject? sentryAttributes, - ) { + static set attributes(jni$_.JObject? sentryAttributes) { final _$sentryAttributes = sentryAttributes?.reference ?? jni$_.jNullReference; - _setAttributes(_class.reference.pointer, - _id_setAttributes as jni$_.JMethodIDPtr, _$sentryAttributes.pointer) + _set$attributes(_class.reference.pointer, _id_set$attributes.pointer, + _$sentryAttributes.pointer) .check(); } @@ -8689,8 +7485,8 @@ class Sentry extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - _removeAttribute(_class.reference.pointer, - _id_removeAttribute as jni$_.JMethodIDPtr, _$string.pointer) + _removeAttribute(_class.reference.pointer, _id_removeAttribute.pointer, + _$string.pointer) .check(); } @@ -8723,145 +7519,36 @@ class Sentry extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$boolean = boolean?.reference ?? jni$_.jNullReference; - _addFeatureFlag( - _class.reference.pointer, - _id_addFeatureFlag as jni$_.JMethodIDPtr, - _$string.pointer, - _$boolean.pointer) + _addFeatureFlag(_class.reference.pointer, _id_addFeatureFlag.pointer, + _$string.pointer, _$boolean.pointer) .check(); } } -final class $Sentry$NullableType extends jni$_.JObjType { +final class $Sentry$Type$ extends jni$_.JType { @jni$_.internal - const $Sentry$NullableType(); + const $Sentry$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/Sentry;'; - - @jni$_.internal - @core$_.override - Sentry? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Sentry.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Sentry$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Sentry$NullableType) && - other is $Sentry$NullableType; - } -} - -final class $Sentry$Type extends jni$_.JObjType { - @jni$_.internal - const $Sentry$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/Sentry;'; - - @jni$_.internal - @core$_.override - Sentry fromReference(jni$_.JReference reference) => Sentry.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => const $Sentry$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Sentry$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Sentry$Type) && other is $Sentry$Type; - } } /// from: `io.sentry.SentryOptions$BeforeBreadcrumbCallback` -class SentryOptions$BeforeBreadcrumbCallback extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryOptions$BeforeBreadcrumbCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryOptions$BeforeBreadcrumbCallback._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryOptions$BeforeBreadcrumbCallback'); /// The type which includes information such as the signature of this class. - static const nullableType = - $SentryOptions$BeforeBreadcrumbCallback$NullableType(); - static const type = $SentryOptions$BeforeBreadcrumbCallback$Type(); - static final _id_execute = _class.instanceMethodId( - r'execute', - r'(Lio/sentry/Breadcrumb;Lio/sentry/Hint;)Lio/sentry/Breadcrumb;', - ); - - static final _execute = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); - - /// from: `public abstract io.sentry.Breadcrumb execute(io.sentry.Breadcrumb breadcrumb, io.sentry.Hint hint)` - /// The returned object must be released after use, by calling the [release] method. - Breadcrumb? execute( - Breadcrumb breadcrumb, - Hint hint, - ) { - final _$breadcrumb = breadcrumb.reference; - final _$hint = hint.reference; - return _execute(reference.pointer, _id_execute as jni$_.JMethodIDPtr, - _$breadcrumb.pointer, _$hint.pointer) - .object(const $Breadcrumb$NullableType()); - } + static const jni$_.JType type = + $SentryOptions$BeforeBreadcrumbCallback$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map + static final core$_.Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -8882,7 +7569,7 @@ class SentryOptions$BeforeBreadcrumbCallback extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -8891,11 +7578,11 @@ class SentryOptions$BeforeBreadcrumbCallback extends jni$_.JObject { if ($d == r'execute(Lio/sentry/Breadcrumb;Lio/sentry/Hint;)Lio/sentry/Breadcrumb;') { final $r = _$impls[$p]!.execute( - $a![0]!.as(const $Breadcrumb$Type(), releaseOriginal: true), - $a![1]!.as(const $Hint$Type(), releaseOriginal: true), + ($a![0] as Breadcrumb), + ($a![1] as Hint), ); return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) + ?.as(const jni$_.$JObject$Type$()) .reference .toPointer() ?? jni$_.nullptr; @@ -8936,9 +7623,46 @@ class SentryOptions$BeforeBreadcrumbCallback extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return SentryOptions$BeforeBreadcrumbCallback.fromReference( - $i.implementReference(), - ); + return $i.implement(); + } +} + +extension SentryOptions$BeforeBreadcrumbCallback$$Methods + on SentryOptions$BeforeBreadcrumbCallback { + static final _id_execute = + SentryOptions$BeforeBreadcrumbCallback._class.instanceMethodId( + r'execute', + r'(Lio/sentry/Breadcrumb;Lio/sentry/Hint;)Lio/sentry/Breadcrumb;', + ); + + static final _execute = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `public abstract io.sentry.Breadcrumb execute(io.sentry.Breadcrumb breadcrumb, io.sentry.Hint hint)` + /// The returned object must be released after use, by calling the [release] method. + Breadcrumb? execute( + Breadcrumb breadcrumb, + Hint hint, + ) { + final _$breadcrumb = breadcrumb.reference; + final _$hint = hint.reference; + return _execute(reference.pointer, _id_execute.pointer, + _$breadcrumb.pointer, _$hint.pointer) + .object(); } } @@ -8963,147 +7687,31 @@ final class _$SentryOptions$BeforeBreadcrumbCallback } } -final class $SentryOptions$BeforeBreadcrumbCallback$NullableType - extends jni$_.JObjType { +final class $SentryOptions$BeforeBreadcrumbCallback$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryOptions$BeforeBreadcrumbCallback$NullableType(); + const $SentryOptions$BeforeBreadcrumbCallback$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryOptions$BeforeBreadcrumbCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$BeforeBreadcrumbCallback? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : SentryOptions$BeforeBreadcrumbCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($SentryOptions$BeforeBreadcrumbCallback$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryOptions$BeforeBreadcrumbCallback$NullableType) && - other is $SentryOptions$BeforeBreadcrumbCallback$NullableType; - } -} - -final class $SentryOptions$BeforeBreadcrumbCallback$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryOptions$BeforeBreadcrumbCallback$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryOptions$BeforeBreadcrumbCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$BeforeBreadcrumbCallback fromReference( - jni$_.JReference reference) => - SentryOptions$BeforeBreadcrumbCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryOptions$BeforeBreadcrumbCallback$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$BeforeBreadcrumbCallback$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryOptions$BeforeBreadcrumbCallback$Type) && - other is $SentryOptions$BeforeBreadcrumbCallback$Type; - } } /// from: `io.sentry.SentryOptions$BeforeEnvelopeCallback` -class SentryOptions$BeforeEnvelopeCallback extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryOptions$BeforeEnvelopeCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryOptions$BeforeEnvelopeCallback._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryOptions$BeforeEnvelopeCallback'); /// The type which includes information such as the signature of this class. - static const nullableType = - $SentryOptions$BeforeEnvelopeCallback$NullableType(); - static const type = $SentryOptions$BeforeEnvelopeCallback$Type(); - static final _id_execute = _class.instanceMethodId( - r'execute', - r'(Lio/sentry/SentryEnvelope;Lio/sentry/Hint;)V', - ); - - static final _execute = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); - - /// from: `public abstract void execute(io.sentry.SentryEnvelope sentryEnvelope, io.sentry.Hint hint)` - void execute( - jni$_.JObject sentryEnvelope, - Hint? hint, - ) { - final _$sentryEnvelope = sentryEnvelope.reference; - final _$hint = hint?.reference ?? jni$_.jNullReference; - _execute(reference.pointer, _id_execute as jni$_.JMethodIDPtr, - _$sentryEnvelope.pointer, _$hint.pointer) - .check(); - } + static const jni$_.JType type = + $SentryOptions$BeforeEnvelopeCallback$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = - {}; + static final core$_.Map + _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -9124,7 +7732,7 @@ class SentryOptions$BeforeEnvelopeCallback extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -9132,8 +7740,8 @@ class SentryOptions$BeforeEnvelopeCallback extends jni$_.JObject { final $a = $i.args; if ($d == r'execute(Lio/sentry/SentryEnvelope;Lio/sentry/Hint;)V') { _$impls[$p]!.execute( - $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), - $a![1]?.as(const $Hint$Type(), releaseOriginal: true), + ($a![0] as jni$_.JObject), + ($a![1] as Hint?), ); return jni$_.nullptr; } @@ -9176,20 +7784,56 @@ class SentryOptions$BeforeEnvelopeCallback extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return SentryOptions$BeforeEnvelopeCallback.fromReference( - $i.implementReference(), - ); + return $i.implement(); + } +} + +extension SentryOptions$BeforeEnvelopeCallback$$Methods + on SentryOptions$BeforeEnvelopeCallback { + static final _id_execute = + SentryOptions$BeforeEnvelopeCallback._class.instanceMethodId( + r'execute', + r'(Lio/sentry/SentryEnvelope;Lio/sentry/Hint;)V', + ); + + static final _execute = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `public abstract void execute(io.sentry.SentryEnvelope sentryEnvelope, io.sentry.Hint hint)` + void execute( + jni$_.JObject sentryEnvelope, + Hint? hint, + ) { + final _$sentryEnvelope = sentryEnvelope.reference; + final _$hint = hint?.reference ?? jni$_.jNullReference; + _execute(reference.pointer, _id_execute.pointer, _$sentryEnvelope.pointer, + _$hint.pointer) + .check(); } } abstract base mixin class $SentryOptions$BeforeEnvelopeCallback { factory $SentryOptions$BeforeEnvelopeCallback({ required void Function(jni$_.JObject sentryEnvelope, Hint? hint) execute, - bool execute$async, + core$_.bool execute$async, }) = _$SentryOptions$BeforeEnvelopeCallback; void execute(jni$_.JObject sentryEnvelope, Hint? hint); - bool get execute$async => false; + core$_.bool get execute$async => false; } final class _$SentryOptions$BeforeEnvelopeCallback @@ -9200,152 +7844,38 @@ final class _$SentryOptions$BeforeEnvelopeCallback }) : _execute = execute; final void Function(jni$_.JObject sentryEnvelope, Hint? hint) _execute; - final bool execute$async; + final core$_.bool execute$async; void execute(jni$_.JObject sentryEnvelope, Hint? hint) { return _execute(sentryEnvelope, hint); } } -final class $SentryOptions$BeforeEnvelopeCallback$NullableType - extends jni$_.JObjType { +final class $SentryOptions$BeforeEnvelopeCallback$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryOptions$BeforeEnvelopeCallback$NullableType(); + const $SentryOptions$BeforeEnvelopeCallback$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryOptions$BeforeEnvelopeCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$BeforeEnvelopeCallback? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : SentryOptions$BeforeEnvelopeCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($SentryOptions$BeforeEnvelopeCallback$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryOptions$BeforeEnvelopeCallback$NullableType) && - other is $SentryOptions$BeforeEnvelopeCallback$NullableType; - } -} - -final class $SentryOptions$BeforeEnvelopeCallback$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryOptions$BeforeEnvelopeCallback$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryOptions$BeforeEnvelopeCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$BeforeEnvelopeCallback fromReference( - jni$_.JReference reference) => - SentryOptions$BeforeEnvelopeCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryOptions$BeforeEnvelopeCallback$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$BeforeEnvelopeCallback$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryOptions$BeforeEnvelopeCallback$Type) && - other is $SentryOptions$BeforeEnvelopeCallback$Type; - } } /// from: `io.sentry.SentryOptions$BeforeSendCallback` -class SentryOptions$BeforeSendCallback extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryOptions$BeforeSendCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryOptions$BeforeSendCallback._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryOptions$BeforeSendCallback'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryOptions$BeforeSendCallback$NullableType(); - static const type = $SentryOptions$BeforeSendCallback$Type(); - static final _id_execute = _class.instanceMethodId( - r'execute', - r'(Lio/sentry/SentryEvent;Lio/sentry/Hint;)Lio/sentry/SentryEvent;', - ); - - static final _execute = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); - - /// from: `public abstract io.sentry.SentryEvent execute(io.sentry.SentryEvent sentryEvent, io.sentry.Hint hint)` - /// The returned object must be released after use, by calling the [release] method. - SentryEvent? execute( - SentryEvent sentryEvent, - Hint hint, - ) { - final _$sentryEvent = sentryEvent.reference; - final _$hint = hint.reference; - return _execute(reference.pointer, _id_execute as jni$_.JMethodIDPtr, - _$sentryEvent.pointer, _$hint.pointer) - .object(const $SentryEvent$NullableType()); - } + static const jni$_.JType type = + $SentryOptions$BeforeSendCallback$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map + _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -9366,7 +7896,7 @@ class SentryOptions$BeforeSendCallback extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -9375,11 +7905,11 @@ class SentryOptions$BeforeSendCallback extends jni$_.JObject { if ($d == r'execute(Lio/sentry/SentryEvent;Lio/sentry/Hint;)Lio/sentry/SentryEvent;') { final $r = _$impls[$p]!.execute( - $a![0]!.as(const $SentryEvent$Type(), releaseOriginal: true), - $a![1]!.as(const $Hint$Type(), releaseOriginal: true), + ($a![0] as SentryEvent), + ($a![1] as Hint), ); return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) + ?.as(const jni$_.$JObject$Type$()) .reference .toPointer() ?? jni$_.nullptr; @@ -9418,11 +7948,48 @@ class SentryOptions$BeforeSendCallback extends jni$_.JObject { factory SentryOptions$BeforeSendCallback.implement( $SentryOptions$BeforeSendCallback $impl, ) { - final $i = jni$_.JImplementer(); - implementIn($i, $impl); - return SentryOptions$BeforeSendCallback.fromReference( - $i.implementReference(), - ); + final $i = jni$_.JImplementer(); + implementIn($i, $impl); + return $i.implement(); + } +} + +extension SentryOptions$BeforeSendCallback$$Methods + on SentryOptions$BeforeSendCallback { + static final _id_execute = + SentryOptions$BeforeSendCallback._class.instanceMethodId( + r'execute', + r'(Lio/sentry/SentryEvent;Lio/sentry/Hint;)Lio/sentry/SentryEvent;', + ); + + static final _execute = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `public abstract io.sentry.SentryEvent execute(io.sentry.SentryEvent sentryEvent, io.sentry.Hint hint)` + /// The returned object must be released after use, by calling the [release] method. + SentryEvent? execute( + SentryEvent sentryEvent, + Hint hint, + ) { + final _$sentryEvent = sentryEvent.reference; + final _$hint = hint.reference; + return _execute(reference.pointer, _id_execute.pointer, + _$sentryEvent.pointer, _$hint.pointer) + .object(); } } @@ -9447,143 +8014,31 @@ final class _$SentryOptions$BeforeSendCallback } } -final class $SentryOptions$BeforeSendCallback$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryOptions$BeforeSendCallback$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryOptions$BeforeSendCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$BeforeSendCallback? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryOptions$BeforeSendCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$BeforeSendCallback$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryOptions$BeforeSendCallback$NullableType) && - other is $SentryOptions$BeforeSendCallback$NullableType; - } -} - -final class $SentryOptions$BeforeSendCallback$Type - extends jni$_.JObjType { +final class $SentryOptions$BeforeSendCallback$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryOptions$BeforeSendCallback$Type(); + const $SentryOptions$BeforeSendCallback$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryOptions$BeforeSendCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$BeforeSendCallback fromReference(jni$_.JReference reference) => - SentryOptions$BeforeSendCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryOptions$BeforeSendCallback$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$BeforeSendCallback$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryOptions$BeforeSendCallback$Type) && - other is $SentryOptions$BeforeSendCallback$Type; - } } /// from: `io.sentry.SentryOptions$BeforeSendReplayCallback` -class SentryOptions$BeforeSendReplayCallback extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryOptions$BeforeSendReplayCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryOptions$BeforeSendReplayCallback._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryOptions$BeforeSendReplayCallback'); /// The type which includes information such as the signature of this class. - static const nullableType = - $SentryOptions$BeforeSendReplayCallback$NullableType(); - static const type = $SentryOptions$BeforeSendReplayCallback$Type(); - static final _id_execute = _class.instanceMethodId( - r'execute', - r'(Lio/sentry/SentryReplayEvent;Lio/sentry/Hint;)Lio/sentry/SentryReplayEvent;', - ); - - static final _execute = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); - - /// from: `public abstract io.sentry.SentryReplayEvent execute(io.sentry.SentryReplayEvent sentryReplayEvent, io.sentry.Hint hint)` - /// The returned object must be released after use, by calling the [release] method. - SentryReplayEvent? execute( - SentryReplayEvent sentryReplayEvent, - Hint hint, - ) { - final _$sentryReplayEvent = sentryReplayEvent.reference; - final _$hint = hint.reference; - return _execute(reference.pointer, _id_execute as jni$_.JMethodIDPtr, - _$sentryReplayEvent.pointer, _$hint.pointer) - .object(const $SentryReplayEvent$NullableType()); - } + static const jni$_.JType type = + $SentryOptions$BeforeSendReplayCallback$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map + static final core$_.Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -9604,7 +8059,7 @@ class SentryOptions$BeforeSendReplayCallback extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -9613,11 +8068,11 @@ class SentryOptions$BeforeSendReplayCallback extends jni$_.JObject { if ($d == r'execute(Lio/sentry/SentryReplayEvent;Lio/sentry/Hint;)Lio/sentry/SentryReplayEvent;') { final $r = _$impls[$p]!.execute( - $a![0]!.as(const $SentryReplayEvent$Type(), releaseOriginal: true), - $a![1]!.as(const $Hint$Type(), releaseOriginal: true), + ($a![0] as SentryReplayEvent), + ($a![1] as Hint), ); return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) + ?.as(const jni$_.$JObject$Type$()) .reference .toPointer() ?? jni$_.nullptr; @@ -9658,9 +8113,46 @@ class SentryOptions$BeforeSendReplayCallback extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return SentryOptions$BeforeSendReplayCallback.fromReference( - $i.implementReference(), - ); + return $i.implement(); + } +} + +extension SentryOptions$BeforeSendReplayCallback$$Methods + on SentryOptions$BeforeSendReplayCallback { + static final _id_execute = + SentryOptions$BeforeSendReplayCallback._class.instanceMethodId( + r'execute', + r'(Lio/sentry/SentryReplayEvent;Lio/sentry/Hint;)Lio/sentry/SentryReplayEvent;', + ); + + static final _execute = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `public abstract io.sentry.SentryReplayEvent execute(io.sentry.SentryReplayEvent sentryReplayEvent, io.sentry.Hint hint)` + /// The returned object must be released after use, by calling the [release] method. + SentryReplayEvent? execute( + SentryReplayEvent sentryReplayEvent, + Hint hint, + ) { + final _$sentryReplayEvent = sentryReplayEvent.reference; + final _$hint = hint.reference; + return _execute(reference.pointer, _id_execute.pointer, + _$sentryReplayEvent.pointer, _$hint.pointer) + .object(); } } @@ -9690,148 +8182,32 @@ final class _$SentryOptions$BeforeSendReplayCallback } } -final class $SentryOptions$BeforeSendReplayCallback$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryOptions$BeforeSendReplayCallback$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryOptions$BeforeSendReplayCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$BeforeSendReplayCallback? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : SentryOptions$BeforeSendReplayCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($SentryOptions$BeforeSendReplayCallback$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryOptions$BeforeSendReplayCallback$NullableType) && - other is $SentryOptions$BeforeSendReplayCallback$NullableType; - } -} - -final class $SentryOptions$BeforeSendReplayCallback$Type - extends jni$_.JObjType { +final class $SentryOptions$BeforeSendReplayCallback$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryOptions$BeforeSendReplayCallback$Type(); + const $SentryOptions$BeforeSendReplayCallback$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryOptions$BeforeSendReplayCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$BeforeSendReplayCallback fromReference( - jni$_.JReference reference) => - SentryOptions$BeforeSendReplayCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryOptions$BeforeSendReplayCallback$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$BeforeSendReplayCallback$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryOptions$BeforeSendReplayCallback$Type) && - other is $SentryOptions$BeforeSendReplayCallback$Type; - } } /// from: `io.sentry.SentryOptions$BeforeSendTransactionCallback` -class SentryOptions$BeforeSendTransactionCallback extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryOptions$BeforeSendTransactionCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryOptions$BeforeSendTransactionCallback._( + jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName( r'io/sentry/SentryOptions$BeforeSendTransactionCallback'); /// The type which includes information such as the signature of this class. - static const nullableType = - $SentryOptions$BeforeSendTransactionCallback$NullableType(); - static const type = $SentryOptions$BeforeSendTransactionCallback$Type(); - static final _id_execute = _class.instanceMethodId( - r'execute', - r'(Lio/sentry/protocol/SentryTransaction;Lio/sentry/Hint;)Lio/sentry/protocol/SentryTransaction;', - ); - - static final _execute = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); - - /// from: `public abstract io.sentry.protocol.SentryTransaction execute(io.sentry.protocol.SentryTransaction sentryTransaction, io.sentry.Hint hint)` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? execute( - jni$_.JObject sentryTransaction, - Hint hint, - ) { - final _$sentryTransaction = sentryTransaction.reference; - final _$hint = hint.reference; - return _execute(reference.pointer, _id_execute as jni$_.JMethodIDPtr, - _$sentryTransaction.pointer, _$hint.pointer) - .object(const jni$_.JObjectNullableType()); - } + static const jni$_.JType type = + $SentryOptions$BeforeSendTransactionCallback$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map + static final core$_ + .Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -9852,7 +8228,7 @@ class SentryOptions$BeforeSendTransactionCallback extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -9861,11 +8237,11 @@ class SentryOptions$BeforeSendTransactionCallback extends jni$_.JObject { if ($d == r'execute(Lio/sentry/protocol/SentryTransaction;Lio/sentry/Hint;)Lio/sentry/protocol/SentryTransaction;') { final $r = _$impls[$p]!.execute( - $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), - $a![1]!.as(const $Hint$Type(), releaseOriginal: true), + ($a![0] as jni$_.JObject), + ($a![1] as Hint), ); return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) + ?.as(const jni$_.$JObject$Type$()) .reference .toPointer() ?? jni$_.nullptr; @@ -9906,9 +8282,46 @@ class SentryOptions$BeforeSendTransactionCallback extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return SentryOptions$BeforeSendTransactionCallback.fromReference( - $i.implementReference(), - ); + return $i.implement(); + } +} + +extension SentryOptions$BeforeSendTransactionCallback$$Methods + on SentryOptions$BeforeSendTransactionCallback { + static final _id_execute = + SentryOptions$BeforeSendTransactionCallback._class.instanceMethodId( + r'execute', + r'(Lio/sentry/protocol/SentryTransaction;Lio/sentry/Hint;)Lio/sentry/protocol/SentryTransaction;', + ); + + static final _execute = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `public abstract io.sentry.protocol.SentryTransaction execute(io.sentry.protocol.SentryTransaction sentryTransaction, io.sentry.Hint hint)` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JObject? execute( + jni$_.JObject sentryTransaction, + Hint hint, + ) { + final _$sentryTransaction = sentryTransaction.reference; + final _$hint = hint.reference; + return _execute(reference.pointer, _id_execute.pointer, + _$sentryTransaction.pointer, _$hint.pointer) + .object(); } } @@ -9936,110 +8349,25 @@ final class _$SentryOptions$BeforeSendTransactionCallback } } -final class $SentryOptions$BeforeSendTransactionCallback$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryOptions$BeforeSendTransactionCallback$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lio/sentry/SentryOptions$BeforeSendTransactionCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$BeforeSendTransactionCallback? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : SentryOptions$BeforeSendTransactionCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType - get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($SentryOptions$BeforeSendTransactionCallback$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryOptions$BeforeSendTransactionCallback$NullableType) && - other is $SentryOptions$BeforeSendTransactionCallback$NullableType; - } -} - -final class $SentryOptions$BeforeSendTransactionCallback$Type - extends jni$_.JObjType { +final class $SentryOptions$BeforeSendTransactionCallback$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryOptions$BeforeSendTransactionCallback$Type(); + const $SentryOptions$BeforeSendTransactionCallback$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryOptions$BeforeSendTransactionCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$BeforeSendTransactionCallback fromReference( - jni$_.JReference reference) => - SentryOptions$BeforeSendTransactionCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType - get nullableType => - const $SentryOptions$BeforeSendTransactionCallback$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($SentryOptions$BeforeSendTransactionCallback$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryOptions$BeforeSendTransactionCallback$Type) && - other is $SentryOptions$BeforeSendTransactionCallback$Type; - } } /// from: `io.sentry.SentryOptions$Cron` -class SentryOptions$Cron extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryOptions$Cron.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryOptions$Cron._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryOptions$Cron'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryOptions$Cron$NullableType(); - static const type = $SentryOptions$Cron$Type(); + static const jni$_.JType type = + $SentryOptions$Cron$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -10059,17 +8387,19 @@ class SentryOptions$Cron extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryOptions$Cron() { - return SentryOptions$Cron.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_getDefaultCheckinMargin = _class.instanceMethodId( +extension SentryOptions$Cron$$Methods on SentryOptions$Cron { + static final _id_get$defaultCheckinMargin = + SentryOptions$Cron._class.instanceMethodId( r'getDefaultCheckinMargin', r'()Ljava/lang/Long;', ); - static final _getDefaultCheckinMargin = jni$_.ProtectedJniExtensions.lookup< + static final _get$defaultCheckinMargin = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -10083,18 +8413,19 @@ class SentryOptions$Cron extends jni$_.JObject { /// from: `public java.lang.Long getDefaultCheckinMargin()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JLong? getDefaultCheckinMargin() { - return _getDefaultCheckinMargin(reference.pointer, - _id_getDefaultCheckinMargin as jni$_.JMethodIDPtr) - .object(const jni$_.JLongNullableType()); + jni$_.JLong? get defaultCheckinMargin { + return _get$defaultCheckinMargin( + reference.pointer, _id_get$defaultCheckinMargin.pointer) + .object(); } - static final _id_setDefaultCheckinMargin = _class.instanceMethodId( + static final _id_set$defaultCheckinMargin = + SentryOptions$Cron._class.instanceMethodId( r'setDefaultCheckinMargin', r'(Ljava/lang/Long;)V', ); - static final _setDefaultCheckinMargin = jni$_.ProtectedJniExtensions.lookup< + static final _set$defaultCheckinMargin = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -10106,21 +8437,20 @@ class SentryOptions$Cron extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setDefaultCheckinMargin(java.lang.Long long)` - void setDefaultCheckinMargin( - jni$_.JLong? long, - ) { + set defaultCheckinMargin(jni$_.JLong? long) { final _$long = long?.reference ?? jni$_.jNullReference; - _setDefaultCheckinMargin(reference.pointer, - _id_setDefaultCheckinMargin as jni$_.JMethodIDPtr, _$long.pointer) + _set$defaultCheckinMargin(reference.pointer, + _id_set$defaultCheckinMargin.pointer, _$long.pointer) .check(); } - static final _id_getDefaultMaxRuntime = _class.instanceMethodId( + static final _id_get$defaultMaxRuntime = + SentryOptions$Cron._class.instanceMethodId( r'getDefaultMaxRuntime', r'()Ljava/lang/Long;', ); - static final _getDefaultMaxRuntime = jni$_.ProtectedJniExtensions.lookup< + static final _get$defaultMaxRuntime = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -10134,18 +8464,19 @@ class SentryOptions$Cron extends jni$_.JObject { /// from: `public java.lang.Long getDefaultMaxRuntime()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JLong? getDefaultMaxRuntime() { - return _getDefaultMaxRuntime( - reference.pointer, _id_getDefaultMaxRuntime as jni$_.JMethodIDPtr) - .object(const jni$_.JLongNullableType()); + jni$_.JLong? get defaultMaxRuntime { + return _get$defaultMaxRuntime( + reference.pointer, _id_get$defaultMaxRuntime.pointer) + .object(); } - static final _id_setDefaultMaxRuntime = _class.instanceMethodId( + static final _id_set$defaultMaxRuntime = + SentryOptions$Cron._class.instanceMethodId( r'setDefaultMaxRuntime', r'(Ljava/lang/Long;)V', ); - static final _setDefaultMaxRuntime = jni$_.ProtectedJniExtensions.lookup< + static final _set$defaultMaxRuntime = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -10157,21 +8488,20 @@ class SentryOptions$Cron extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setDefaultMaxRuntime(java.lang.Long long)` - void setDefaultMaxRuntime( - jni$_.JLong? long, - ) { + set defaultMaxRuntime(jni$_.JLong? long) { final _$long = long?.reference ?? jni$_.jNullReference; - _setDefaultMaxRuntime(reference.pointer, - _id_setDefaultMaxRuntime as jni$_.JMethodIDPtr, _$long.pointer) + _set$defaultMaxRuntime(reference.pointer, _id_set$defaultMaxRuntime.pointer, + _$long.pointer) .check(); } - static final _id_getDefaultTimezone = _class.instanceMethodId( + static final _id_get$defaultTimezone = + SentryOptions$Cron._class.instanceMethodId( r'getDefaultTimezone', r'()Ljava/lang/String;', ); - static final _getDefaultTimezone = jni$_.ProtectedJniExtensions.lookup< + static final _get$defaultTimezone = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -10185,18 +8515,19 @@ class SentryOptions$Cron extends jni$_.JObject { /// from: `public java.lang.String getDefaultTimezone()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getDefaultTimezone() { - return _getDefaultTimezone( - reference.pointer, _id_getDefaultTimezone as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get defaultTimezone { + return _get$defaultTimezone( + reference.pointer, _id_get$defaultTimezone.pointer) + .object(); } - static final _id_setDefaultTimezone = _class.instanceMethodId( + static final _id_set$defaultTimezone = + SentryOptions$Cron._class.instanceMethodId( r'setDefaultTimezone', r'(Ljava/lang/String;)V', ); - static final _setDefaultTimezone = jni$_.ProtectedJniExtensions.lookup< + static final _set$defaultTimezone = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -10208,21 +8539,20 @@ class SentryOptions$Cron extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setDefaultTimezone(java.lang.String string)` - void setDefaultTimezone( - jni$_.JString? string, - ) { + set defaultTimezone(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setDefaultTimezone(reference.pointer, - _id_setDefaultTimezone as jni$_.JMethodIDPtr, _$string.pointer) + _set$defaultTimezone(reference.pointer, _id_set$defaultTimezone.pointer, + _$string.pointer) .check(); } - static final _id_getDefaultFailureIssueThreshold = _class.instanceMethodId( + static final _id_get$defaultFailureIssueThreshold = + SentryOptions$Cron._class.instanceMethodId( r'getDefaultFailureIssueThreshold', r'()Ljava/lang/Long;', ); - static final _getDefaultFailureIssueThreshold = + static final _get$defaultFailureIssueThreshold = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -10237,18 +8567,19 @@ class SentryOptions$Cron extends jni$_.JObject { /// from: `public java.lang.Long getDefaultFailureIssueThreshold()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JLong? getDefaultFailureIssueThreshold() { - return _getDefaultFailureIssueThreshold(reference.pointer, - _id_getDefaultFailureIssueThreshold as jni$_.JMethodIDPtr) - .object(const jni$_.JLongNullableType()); + jni$_.JLong? get defaultFailureIssueThreshold { + return _get$defaultFailureIssueThreshold( + reference.pointer, _id_get$defaultFailureIssueThreshold.pointer) + .object(); } - static final _id_setDefaultFailureIssueThreshold = _class.instanceMethodId( + static final _id_set$defaultFailureIssueThreshold = + SentryOptions$Cron._class.instanceMethodId( r'setDefaultFailureIssueThreshold', r'(Ljava/lang/Long;)V', ); - static final _setDefaultFailureIssueThreshold = + static final _set$defaultFailureIssueThreshold = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( @@ -10261,23 +8592,20 @@ class SentryOptions$Cron extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setDefaultFailureIssueThreshold(java.lang.Long long)` - void setDefaultFailureIssueThreshold( - jni$_.JLong? long, - ) { + set defaultFailureIssueThreshold(jni$_.JLong? long) { final _$long = long?.reference ?? jni$_.jNullReference; - _setDefaultFailureIssueThreshold( - reference.pointer, - _id_setDefaultFailureIssueThreshold as jni$_.JMethodIDPtr, - _$long.pointer) + _set$defaultFailureIssueThreshold(reference.pointer, + _id_set$defaultFailureIssueThreshold.pointer, _$long.pointer) .check(); } - static final _id_getDefaultRecoveryThreshold = _class.instanceMethodId( + static final _id_get$defaultRecoveryThreshold = + SentryOptions$Cron._class.instanceMethodId( r'getDefaultRecoveryThreshold', r'()Ljava/lang/Long;', ); - static final _getDefaultRecoveryThreshold = + static final _get$defaultRecoveryThreshold = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -10292,18 +8620,19 @@ class SentryOptions$Cron extends jni$_.JObject { /// from: `public java.lang.Long getDefaultRecoveryThreshold()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JLong? getDefaultRecoveryThreshold() { - return _getDefaultRecoveryThreshold(reference.pointer, - _id_getDefaultRecoveryThreshold as jni$_.JMethodIDPtr) - .object(const jni$_.JLongNullableType()); + jni$_.JLong? get defaultRecoveryThreshold { + return _get$defaultRecoveryThreshold( + reference.pointer, _id_get$defaultRecoveryThreshold.pointer) + .object(); } - static final _id_setDefaultRecoveryThreshold = _class.instanceMethodId( + static final _id_set$defaultRecoveryThreshold = + SentryOptions$Cron._class.instanceMethodId( r'setDefaultRecoveryThreshold', r'(Ljava/lang/Long;)V', ); - static final _setDefaultRecoveryThreshold = + static final _set$defaultRecoveryThreshold = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( @@ -10316,114 +8645,60 @@ class SentryOptions$Cron extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setDefaultRecoveryThreshold(java.lang.Long long)` - void setDefaultRecoveryThreshold( - jni$_.JLong? long, - ) { + set defaultRecoveryThreshold(jni$_.JLong? long) { final _$long = long?.reference ?? jni$_.jNullReference; - _setDefaultRecoveryThreshold( - reference.pointer, - _id_setDefaultRecoveryThreshold as jni$_.JMethodIDPtr, - _$long.pointer) + _set$defaultRecoveryThreshold(reference.pointer, + _id_set$defaultRecoveryThreshold.pointer, _$long.pointer) .check(); } } -final class $SentryOptions$Cron$NullableType - extends jni$_.JObjType { +final class $SentryOptions$Cron$Type$ extends jni$_.JType { @jni$_.internal - const $SentryOptions$Cron$NullableType(); + const $SentryOptions$Cron$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryOptions$Cron;'; - - @jni$_.internal - @core$_.override - SentryOptions$Cron? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryOptions$Cron.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$Cron$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryOptions$Cron$NullableType) && - other is $SentryOptions$Cron$NullableType; - } } -final class $SentryOptions$Cron$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryOptions$Cron$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryOptions$Cron;'; - - @jni$_.internal - @core$_.override - SentryOptions$Cron fromReference(jni$_.JReference reference) => - SentryOptions$Cron.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryOptions$Cron$NullableType(); +/// from: `io.sentry.SentryOptions$DistributionOptions` +extension type SentryOptions$DistributionOptions._(jni$_.JObject _$this) + implements jni$_.JObject { + static final _class = + jni$_.JClass.forName(r'io/sentry/SentryOptions$DistributionOptions'); - @jni$_.internal - @core$_.override - final superCount = 1; + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = + $SentryOptions$DistributionOptions$Type$(); + static final _id_new$ = _class.constructorId( + r'()V', + ); - @core$_.override - int get hashCode => ($SentryOptions$Cron$Type).hashCode; + static final _new$ = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryOptions$Cron$Type) && - other is $SentryOptions$Cron$Type; + /// from: `public void ()` + /// The returned object must be released after use, by calling the [release] method. + factory SentryOptions$DistributionOptions() { + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } } -/// from: `io.sentry.SentryOptions$DistributionOptions` -class SentryOptions$DistributionOptions extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryOptions$DistributionOptions.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = - jni$_.JClass.forName(r'io/sentry/SentryOptions$DistributionOptions'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $SentryOptions$DistributionOptions$NullableType(); - static const type = $SentryOptions$DistributionOptions$Type(); - static final _id_orgAuthToken = _class.instanceFieldId( +extension SentryOptions$DistributionOptions$$Methods + on SentryOptions$DistributionOptions { + static final _id_orgAuthToken = + SentryOptions$DistributionOptions._class.instanceFieldId( r'orgAuthToken', r'Ljava/lang/String;', ); @@ -10431,14 +8706,15 @@ class SentryOptions$DistributionOptions extends jni$_.JObject { /// from: `public java.lang.String orgAuthToken` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get orgAuthToken => - _id_orgAuthToken.get(this, const jni$_.JStringNullableType()); + _id_orgAuthToken.getNullable(this, jni$_.JString.type) as jni$_.JString?; /// from: `public java.lang.String orgAuthToken` /// The returned object must be released after use, by calling the [release] method. set orgAuthToken(jni$_.JString? value) => - _id_orgAuthToken.set(this, const jni$_.JStringNullableType(), value); + _id_orgAuthToken.set(this, jni$_.JString.type, value); - static final _id_orgSlug = _class.instanceFieldId( + static final _id_orgSlug = + SentryOptions$DistributionOptions._class.instanceFieldId( r'orgSlug', r'Ljava/lang/String;', ); @@ -10446,14 +8722,15 @@ class SentryOptions$DistributionOptions extends jni$_.JObject { /// from: `public java.lang.String orgSlug` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get orgSlug => - _id_orgSlug.get(this, const jni$_.JStringNullableType()); + _id_orgSlug.getNullable(this, jni$_.JString.type) as jni$_.JString?; /// from: `public java.lang.String orgSlug` /// The returned object must be released after use, by calling the [release] method. set orgSlug(jni$_.JString? value) => - _id_orgSlug.set(this, const jni$_.JStringNullableType(), value); + _id_orgSlug.set(this, jni$_.JString.type, value); - static final _id_projectSlug = _class.instanceFieldId( + static final _id_projectSlug = + SentryOptions$DistributionOptions._class.instanceFieldId( r'projectSlug', r'Ljava/lang/String;', ); @@ -10461,14 +8738,15 @@ class SentryOptions$DistributionOptions extends jni$_.JObject { /// from: `public java.lang.String projectSlug` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get projectSlug => - _id_projectSlug.get(this, const jni$_.JStringNullableType()); + _id_projectSlug.getNullable(this, jni$_.JString.type) as jni$_.JString?; /// from: `public java.lang.String projectSlug` /// The returned object must be released after use, by calling the [release] method. set projectSlug(jni$_.JString? value) => - _id_projectSlug.set(this, const jni$_.JStringNullableType(), value); + _id_projectSlug.set(this, jni$_.JString.type, value); - static final _id_sentryBaseUrl = _class.instanceFieldId( + static final _id_sentryBaseUrl = + SentryOptions$DistributionOptions._class.instanceFieldId( r'sentryBaseUrl', r'Ljava/lang/String;', ); @@ -10476,14 +8754,15 @@ class SentryOptions$DistributionOptions extends jni$_.JObject { /// from: `public java.lang.String sentryBaseUrl` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get sentryBaseUrl => - _id_sentryBaseUrl.get(this, const jni$_.JStringNullableType()); + _id_sentryBaseUrl.getNullable(this, jni$_.JString.type) as jni$_.JString?; /// from: `public java.lang.String sentryBaseUrl` /// The returned object must be released after use, by calling the [release] method. set sentryBaseUrl(jni$_.JString? value) => - _id_sentryBaseUrl.set(this, const jni$_.JStringNullableType(), value); + _id_sentryBaseUrl.set(this, jni$_.JString.type, value); - static final _id_buildConfiguration = _class.instanceFieldId( + static final _id_buildConfiguration = + SentryOptions$DistributionOptions._class.instanceFieldId( r'buildConfiguration', r'Ljava/lang/String;', ); @@ -10491,14 +8770,16 @@ class SentryOptions$DistributionOptions extends jni$_.JObject { /// from: `public java.lang.String buildConfiguration` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get buildConfiguration => - _id_buildConfiguration.get(this, const jni$_.JStringNullableType()); + _id_buildConfiguration.getNullable(this, jni$_.JString.type) + as jni$_.JString?; /// from: `public java.lang.String buildConfiguration` /// The returned object must be released after use, by calling the [release] method. - set buildConfiguration(jni$_.JString? value) => _id_buildConfiguration.set( - this, const jni$_.JStringNullableType(), value); + set buildConfiguration(jni$_.JString? value) => + _id_buildConfiguration.set(this, jni$_.JString.type, value); - static final _id_installGroupsOverride = _class.instanceFieldId( + static final _id_installGroupsOverride = + SentryOptions$DistributionOptions._class.instanceFieldId( r'installGroupsOverride', r'Ljava/util/List;', ); @@ -10506,176 +8787,40 @@ class SentryOptions$DistributionOptions extends jni$_.JObject { /// from: `public java.util.List installGroupsOverride` /// The returned object must be released after use, by calling the [release] method. jni$_.JList? get installGroupsOverride => - _id_installGroupsOverride.get( - this, - const jni$_.JListNullableType( - jni$_.JStringNullableType())); + _id_installGroupsOverride.getNullable(this, jni$_.JList.type) + as jni$_.JList?; /// from: `public java.util.List installGroupsOverride` /// The returned object must be released after use, by calling the [release] method. set installGroupsOverride(jni$_.JList? value) => - _id_installGroupsOverride.set( - this, - const jni$_.JListNullableType( - jni$_.JStringNullableType()), - value); - - static final _id_new$ = _class.constructorId( - r'()V', - ); - - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public void ()` - /// The returned object must be released after use, by calling the [release] method. - factory SentryOptions$DistributionOptions() { - return SentryOptions$DistributionOptions.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); - } -} - -final class $SentryOptions$DistributionOptions$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryOptions$DistributionOptions$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryOptions$DistributionOptions;'; - - @jni$_.internal - @core$_.override - SentryOptions$DistributionOptions? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : SentryOptions$DistributionOptions.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($SentryOptions$DistributionOptions$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryOptions$DistributionOptions$NullableType) && - other is $SentryOptions$DistributionOptions$NullableType; - } + _id_installGroupsOverride.set(this, jni$_.JList.type, value); } -final class $SentryOptions$DistributionOptions$Type - extends jni$_.JObjType { +final class $SentryOptions$DistributionOptions$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryOptions$DistributionOptions$Type(); + const $SentryOptions$DistributionOptions$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryOptions$DistributionOptions;'; - - @jni$_.internal - @core$_.override - SentryOptions$DistributionOptions fromReference(jni$_.JReference reference) => - SentryOptions$DistributionOptions.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryOptions$DistributionOptions$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$DistributionOptions$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryOptions$DistributionOptions$Type) && - other is $SentryOptions$DistributionOptions$Type; - } } /// from: `io.sentry.SentryOptions$Logs$BeforeSendLogCallback` -class SentryOptions$Logs$BeforeSendLogCallback extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryOptions$Logs$BeforeSendLogCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryOptions$Logs$BeforeSendLogCallback._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName( r'io/sentry/SentryOptions$Logs$BeforeSendLogCallback'); /// The type which includes information such as the signature of this class. - static const nullableType = - $SentryOptions$Logs$BeforeSendLogCallback$NullableType(); - static const type = $SentryOptions$Logs$BeforeSendLogCallback$Type(); - static final _id_execute = _class.instanceMethodId( - r'execute', - r'(Lio/sentry/SentryLogEvent;)Lio/sentry/SentryLogEvent;', - ); - - static final _execute = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public abstract io.sentry.SentryLogEvent execute(io.sentry.SentryLogEvent sentryLogEvent)` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? execute( - jni$_.JObject sentryLogEvent, - ) { - final _$sentryLogEvent = sentryLogEvent.reference; - return _execute(reference.pointer, _id_execute as jni$_.JMethodIDPtr, - _$sentryLogEvent.pointer) - .object(const jni$_.JObjectNullableType()); - } + static const jni$_.JType type = + $SentryOptions$Logs$BeforeSendLogCallback$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map + static final core$_.Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -10696,7 +8841,7 @@ class SentryOptions$Logs$BeforeSendLogCallback extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -10705,10 +8850,10 @@ class SentryOptions$Logs$BeforeSendLogCallback extends jni$_.JObject { if ($d == r'execute(Lio/sentry/SentryLogEvent;)Lio/sentry/SentryLogEvent;') { final $r = _$impls[$p]!.execute( - $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), + ($a![0] as jni$_.JObject), ); return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) + ?.as(const jni$_.$JObject$Type$()) .reference .toPointer() ?? jni$_.nullptr; @@ -10749,9 +8894,38 @@ class SentryOptions$Logs$BeforeSendLogCallback extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return SentryOptions$Logs$BeforeSendLogCallback.fromReference( - $i.implementReference(), - ); + return $i.implement(); + } +} + +extension SentryOptions$Logs$BeforeSendLogCallback$$Methods + on SentryOptions$Logs$BeforeSendLogCallback { + static final _id_execute = + SentryOptions$Logs$BeforeSendLogCallback._class.instanceMethodId( + r'execute', + r'(Lio/sentry/SentryLogEvent;)Lio/sentry/SentryLogEvent;', + ); + + static final _execute = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public abstract io.sentry.SentryLogEvent execute(io.sentry.SentryLogEvent sentryLogEvent)` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JObject? execute( + jni$_.JObject sentryLogEvent, + ) { + final _$sentryLogEvent = sentryLogEvent.reference; + return _execute( + reference.pointer, _id_execute.pointer, _$sentryLogEvent.pointer) + .object(); } } @@ -10771,113 +8945,30 @@ final class _$SentryOptions$Logs$BeforeSendLogCallback final jni$_.JObject? Function(jni$_.JObject sentryLogEvent) _execute; - jni$_.JObject? execute(jni$_.JObject sentryLogEvent) { - return _execute(sentryLogEvent); - } -} - -final class $SentryOptions$Logs$BeforeSendLogCallback$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryOptions$Logs$BeforeSendLogCallback$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lio/sentry/SentryOptions$Logs$BeforeSendLogCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$Logs$BeforeSendLogCallback? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : SentryOptions$Logs$BeforeSendLogCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($SentryOptions$Logs$BeforeSendLogCallback$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryOptions$Logs$BeforeSendLogCallback$NullableType) && - other is $SentryOptions$Logs$BeforeSendLogCallback$NullableType; - } -} - -final class $SentryOptions$Logs$BeforeSendLogCallback$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryOptions$Logs$BeforeSendLogCallback$Type(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lio/sentry/SentryOptions$Logs$BeforeSendLogCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$Logs$BeforeSendLogCallback fromReference( - jni$_.JReference reference) => - SentryOptions$Logs$BeforeSendLogCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryOptions$Logs$BeforeSendLogCallback$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$Logs$BeforeSendLogCallback$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryOptions$Logs$BeforeSendLogCallback$Type) && - other is $SentryOptions$Logs$BeforeSendLogCallback$Type; + jni$_.JObject? execute(jni$_.JObject sentryLogEvent) { + return _execute(sentryLogEvent); } } -/// from: `io.sentry.SentryOptions$Logs` -class SentryOptions$Logs extends jni$_.JObject { +final class $SentryOptions$Logs$BeforeSendLogCallback$Type$ + extends jni$_.JType { @jni$_.internal - @core$_.override - final jni$_.JObjType $type; + const $SentryOptions$Logs$BeforeSendLogCallback$Type$(); @jni$_.internal - SentryOptions$Logs.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + @core$_.override + String get signature => + r'Lio/sentry/SentryOptions$Logs$BeforeSendLogCallback;'; +} +/// from: `io.sentry.SentryOptions$Logs` +extension type SentryOptions$Logs._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryOptions$Logs'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryOptions$Logs$NullableType(); - static const type = $SentryOptions$Logs$Type(); + static const jni$_.JType type = + $SentryOptions$Logs$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -10897,17 +8988,18 @@ class SentryOptions$Logs extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryOptions$Logs() { - return SentryOptions$Logs.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_isEnabled = _class.instanceMethodId( +extension SentryOptions$Logs$$Methods on SentryOptions$Logs { + static final _id_get$isEnabled = SentryOptions$Logs._class.instanceMethodId( r'isEnabled', r'()Z', ); - static final _isEnabled = jni$_.ProtectedJniExtensions.lookup< + static final _get$isEnabled = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -10920,17 +9012,16 @@ class SentryOptions$Logs extends jni$_.JObject { )>(); /// from: `public boolean isEnabled()` - bool isEnabled() { - return _isEnabled(reference.pointer, _id_isEnabled as jni$_.JMethodIDPtr) - .boolean; + core$_.bool get isEnabled { + return _get$isEnabled(reference.pointer, _id_get$isEnabled.pointer).boolean; } - static final _id_setEnabled = _class.instanceMethodId( + static final _id_set$enabled = SentryOptions$Logs._class.instanceMethodId( r'setEnabled', r'(Z)V', ); - static final _setEnabled = jni$_.ProtectedJniExtensions.lookup< + static final _set$enabled = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -10938,23 +9029,19 @@ class SentryOptions$Logs extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnabled(boolean z)` - void setEnabled( - bool z, - ) { - _setEnabled( - reference.pointer, _id_setEnabled as jni$_.JMethodIDPtr, z ? 1 : 0) - .check(); + set enabled(core$_.bool z) { + _set$enabled(reference.pointer, _id_set$enabled.pointer, z ? 1 : 0).check(); } - static final _id_getBeforeSend = _class.instanceMethodId( + static final _id_get$beforeSend = SentryOptions$Logs._class.instanceMethodId( r'getBeforeSend', r'()Lio/sentry/SentryOptions$Logs$BeforeSendLogCallback;', ); - static final _getBeforeSend = jni$_.ProtectedJniExtensions.lookup< + static final _get$beforeSend = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -10968,19 +9055,17 @@ class SentryOptions$Logs extends jni$_.JObject { /// from: `public io.sentry.SentryOptions$Logs$BeforeSendLogCallback getBeforeSend()` /// The returned object must be released after use, by calling the [release] method. - SentryOptions$Logs$BeforeSendLogCallback? getBeforeSend() { - return _getBeforeSend( - reference.pointer, _id_getBeforeSend as jni$_.JMethodIDPtr) - .object( - const $SentryOptions$Logs$BeforeSendLogCallback$NullableType()); + SentryOptions$Logs$BeforeSendLogCallback? get beforeSend { + return _get$beforeSend(reference.pointer, _id_get$beforeSend.pointer) + .object(); } - static final _id_setBeforeSend = _class.instanceMethodId( + static final _id_set$beforeSend = SentryOptions$Logs._class.instanceMethodId( r'setBeforeSend', r'(Lio/sentry/SentryOptions$Logs$BeforeSendLogCallback;)V', ); - static final _setBeforeSend = jni$_.ProtectedJniExtensions.lookup< + static final _set$beforeSend = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -10992,22 +9077,22 @@ class SentryOptions$Logs extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setBeforeSend(io.sentry.SentryOptions$Logs$BeforeSendLogCallback beforeSendLogCallback)` - void setBeforeSend( - SentryOptions$Logs$BeforeSendLogCallback? beforeSendLogCallback, - ) { + set beforeSend( + SentryOptions$Logs$BeforeSendLogCallback? beforeSendLogCallback) { final _$beforeSendLogCallback = beforeSendLogCallback?.reference ?? jni$_.jNullReference; - _setBeforeSend(reference.pointer, _id_setBeforeSend as jni$_.JMethodIDPtr, + _set$beforeSend(reference.pointer, _id_set$beforeSend.pointer, _$beforeSendLogCallback.pointer) .check(); } - static final _id_getLoggerBatchProcessorFactory = _class.instanceMethodId( + static final _id_get$loggerBatchProcessorFactory = + SentryOptions$Logs._class.instanceMethodId( r'getLoggerBatchProcessorFactory', r'()Lio/sentry/logger/ILoggerBatchProcessorFactory;', ); - static final _getLoggerBatchProcessorFactory = + static final _get$loggerBatchProcessorFactory = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -11022,18 +9107,19 @@ class SentryOptions$Logs extends jni$_.JObject { /// from: `public io.sentry.logger.ILoggerBatchProcessorFactory getLoggerBatchProcessorFactory()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getLoggerBatchProcessorFactory() { - return _getLoggerBatchProcessorFactory(reference.pointer, - _id_getLoggerBatchProcessorFactory as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get loggerBatchProcessorFactory { + return _get$loggerBatchProcessorFactory( + reference.pointer, _id_get$loggerBatchProcessorFactory.pointer) + .object(); } - static final _id_setLoggerBatchProcessorFactory = _class.instanceMethodId( + static final _id_set$loggerBatchProcessorFactory = + SentryOptions$Logs._class.instanceMethodId( r'setLoggerBatchProcessorFactory', r'(Lio/sentry/logger/ILoggerBatchProcessorFactory;)V', ); - static final _setLoggerBatchProcessorFactory = + static final _set$loggerBatchProcessorFactory = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( @@ -11046,155 +9132,42 @@ class SentryOptions$Logs extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setLoggerBatchProcessorFactory(io.sentry.logger.ILoggerBatchProcessorFactory iLoggerBatchProcessorFactory)` - void setLoggerBatchProcessorFactory( - jni$_.JObject iLoggerBatchProcessorFactory, - ) { + set loggerBatchProcessorFactory(jni$_.JObject iLoggerBatchProcessorFactory) { final _$iLoggerBatchProcessorFactory = iLoggerBatchProcessorFactory.reference; - _setLoggerBatchProcessorFactory( + _set$loggerBatchProcessorFactory( reference.pointer, - _id_setLoggerBatchProcessorFactory as jni$_.JMethodIDPtr, + _id_set$loggerBatchProcessorFactory.pointer, _$iLoggerBatchProcessorFactory.pointer) .check(); } } -final class $SentryOptions$Logs$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryOptions$Logs$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryOptions$Logs;'; - - @jni$_.internal - @core$_.override - SentryOptions$Logs? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryOptions$Logs.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$Logs$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryOptions$Logs$NullableType) && - other is $SentryOptions$Logs$NullableType; - } -} - -final class $SentryOptions$Logs$Type - extends jni$_.JObjType { +final class $SentryOptions$Logs$Type$ extends jni$_.JType { @jni$_.internal - const $SentryOptions$Logs$Type(); + const $SentryOptions$Logs$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryOptions$Logs;'; - - @jni$_.internal - @core$_.override - SentryOptions$Logs fromReference(jni$_.JReference reference) => - SentryOptions$Logs.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryOptions$Logs$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$Logs$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryOptions$Logs$Type) && - other is $SentryOptions$Logs$Type; - } } /// from: `io.sentry.SentryOptions$Metrics$BeforeSendMetricCallback` -class SentryOptions$Metrics$BeforeSendMetricCallback extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryOptions$Metrics$BeforeSendMetricCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryOptions$Metrics$BeforeSendMetricCallback._( + jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName( r'io/sentry/SentryOptions$Metrics$BeforeSendMetricCallback'); /// The type which includes information such as the signature of this class. - static const nullableType = - $SentryOptions$Metrics$BeforeSendMetricCallback$NullableType(); - static const type = $SentryOptions$Metrics$BeforeSendMetricCallback$Type(); - static final _id_execute = _class.instanceMethodId( - r'execute', - r'(Lio/sentry/SentryMetricsEvent;Lio/sentry/Hint;)Lio/sentry/SentryMetricsEvent;', - ); - - static final _execute = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); - - /// from: `public abstract io.sentry.SentryMetricsEvent execute(io.sentry.SentryMetricsEvent sentryMetricsEvent, io.sentry.Hint hint)` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? execute( - jni$_.JObject sentryMetricsEvent, - Hint hint, - ) { - final _$sentryMetricsEvent = sentryMetricsEvent.reference; - final _$hint = hint.reference; - return _execute(reference.pointer, _id_execute as jni$_.JMethodIDPtr, - _$sentryMetricsEvent.pointer, _$hint.pointer) - .object(const jni$_.JObjectNullableType()); - } + static const jni$_.JType + type = $SentryOptions$Metrics$BeforeSendMetricCallback$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map + static final core$_ + .Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -11215,7 +9188,7 @@ class SentryOptions$Metrics$BeforeSendMetricCallback extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -11224,11 +9197,11 @@ class SentryOptions$Metrics$BeforeSendMetricCallback extends jni$_.JObject { if ($d == r'execute(Lio/sentry/SentryMetricsEvent;Lio/sentry/Hint;)Lio/sentry/SentryMetricsEvent;') { final $r = _$impls[$p]!.execute( - $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), - $a![1]!.as(const $Hint$Type(), releaseOriginal: true), + ($a![0] as jni$_.JObject), + ($a![1] as Hint), ); return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) + ?.as(const jni$_.$JObject$Type$()) .reference .toPointer() ?? jni$_.nullptr; @@ -11269,9 +9242,46 @@ class SentryOptions$Metrics$BeforeSendMetricCallback extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return SentryOptions$Metrics$BeforeSendMetricCallback.fromReference( - $i.implementReference(), - ); + return $i.implement(); + } +} + +extension SentryOptions$Metrics$BeforeSendMetricCallback$$Methods + on SentryOptions$Metrics$BeforeSendMetricCallback { + static final _id_execute = + SentryOptions$Metrics$BeforeSendMetricCallback._class.instanceMethodId( + r'execute', + r'(Lio/sentry/SentryMetricsEvent;Lio/sentry/Hint;)Lio/sentry/SentryMetricsEvent;', + ); + + static final _execute = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `public abstract io.sentry.SentryMetricsEvent execute(io.sentry.SentryMetricsEvent sentryMetricsEvent, io.sentry.Hint hint)` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JObject? execute( + jni$_.JObject sentryMetricsEvent, + Hint hint, + ) { + final _$sentryMetricsEvent = sentryMetricsEvent.reference; + final _$hint = hint.reference; + return _execute(reference.pointer, _id_execute.pointer, + _$sentryMetricsEvent.pointer, _$hint.pointer) + .object(); } } @@ -11301,111 +9311,26 @@ final class _$SentryOptions$Metrics$BeforeSendMetricCallback } } -final class $SentryOptions$Metrics$BeforeSendMetricCallback$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryOptions$Metrics$BeforeSendMetricCallback$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lio/sentry/SentryOptions$Metrics$BeforeSendMetricCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$Metrics$BeforeSendMetricCallback? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : SentryOptions$Metrics$BeforeSendMetricCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType - get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($SentryOptions$Metrics$BeforeSendMetricCallback$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryOptions$Metrics$BeforeSendMetricCallback$NullableType) && - other is $SentryOptions$Metrics$BeforeSendMetricCallback$NullableType; - } -} - -final class $SentryOptions$Metrics$BeforeSendMetricCallback$Type - extends jni$_.JObjType { +final class $SentryOptions$Metrics$BeforeSendMetricCallback$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryOptions$Metrics$BeforeSendMetricCallback$Type(); + const $SentryOptions$Metrics$BeforeSendMetricCallback$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryOptions$Metrics$BeforeSendMetricCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$Metrics$BeforeSendMetricCallback fromReference( - jni$_.JReference reference) => - SentryOptions$Metrics$BeforeSendMetricCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType - get nullableType => - const $SentryOptions$Metrics$BeforeSendMetricCallback$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($SentryOptions$Metrics$BeforeSendMetricCallback$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryOptions$Metrics$BeforeSendMetricCallback$Type) && - other is $SentryOptions$Metrics$BeforeSendMetricCallback$Type; - } } /// from: `io.sentry.SentryOptions$Metrics` -class SentryOptions$Metrics extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryOptions$Metrics.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryOptions$Metrics._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryOptions$Metrics'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryOptions$Metrics$NullableType(); - static const type = $SentryOptions$Metrics$Type(); + static const jni$_.JType type = + $SentryOptions$Metrics$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -11425,17 +9350,19 @@ class SentryOptions$Metrics extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryOptions$Metrics() { - return SentryOptions$Metrics.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_isEnabled = _class.instanceMethodId( +extension SentryOptions$Metrics$$Methods on SentryOptions$Metrics { + static final _id_get$isEnabled = + SentryOptions$Metrics._class.instanceMethodId( r'isEnabled', r'()Z', ); - static final _isEnabled = jni$_.ProtectedJniExtensions.lookup< + static final _get$isEnabled = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -11448,17 +9375,16 @@ class SentryOptions$Metrics extends jni$_.JObject { )>(); /// from: `public boolean isEnabled()` - bool isEnabled() { - return _isEnabled(reference.pointer, _id_isEnabled as jni$_.JMethodIDPtr) - .boolean; + core$_.bool get isEnabled { + return _get$isEnabled(reference.pointer, _id_get$isEnabled.pointer).boolean; } - static final _id_setEnabled = _class.instanceMethodId( + static final _id_set$enabled = SentryOptions$Metrics._class.instanceMethodId( r'setEnabled', r'(Z)V', ); - static final _setEnabled = jni$_.ProtectedJniExtensions.lookup< + static final _set$enabled = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -11466,23 +9392,20 @@ class SentryOptions$Metrics extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnabled(boolean z)` - void setEnabled( - bool z, - ) { - _setEnabled( - reference.pointer, _id_setEnabled as jni$_.JMethodIDPtr, z ? 1 : 0) - .check(); + set enabled(core$_.bool z) { + _set$enabled(reference.pointer, _id_set$enabled.pointer, z ? 1 : 0).check(); } - static final _id_getBeforeSend = _class.instanceMethodId( + static final _id_get$beforeSend = + SentryOptions$Metrics._class.instanceMethodId( r'getBeforeSend', r'()Lio/sentry/SentryOptions$Metrics$BeforeSendMetricCallback;', ); - static final _getBeforeSend = jni$_.ProtectedJniExtensions.lookup< + static final _get$beforeSend = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -11496,19 +9419,18 @@ class SentryOptions$Metrics extends jni$_.JObject { /// from: `public io.sentry.SentryOptions$Metrics$BeforeSendMetricCallback getBeforeSend()` /// The returned object must be released after use, by calling the [release] method. - SentryOptions$Metrics$BeforeSendMetricCallback? getBeforeSend() { - return _getBeforeSend( - reference.pointer, _id_getBeforeSend as jni$_.JMethodIDPtr) - .object( - const $SentryOptions$Metrics$BeforeSendMetricCallback$NullableType()); + SentryOptions$Metrics$BeforeSendMetricCallback? get beforeSend { + return _get$beforeSend(reference.pointer, _id_get$beforeSend.pointer) + .object(); } - static final _id_setBeforeSend = _class.instanceMethodId( + static final _id_set$beforeSend = + SentryOptions$Metrics._class.instanceMethodId( r'setBeforeSend', r'(Lio/sentry/SentryOptions$Metrics$BeforeSendMetricCallback;)V', ); - static final _setBeforeSend = jni$_.ProtectedJniExtensions.lookup< + static final _set$beforeSend = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -11520,22 +9442,23 @@ class SentryOptions$Metrics extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setBeforeSend(io.sentry.SentryOptions$Metrics$BeforeSendMetricCallback beforeSendMetricCallback)` - void setBeforeSend( - SentryOptions$Metrics$BeforeSendMetricCallback? beforeSendMetricCallback, - ) { + set beforeSend( + SentryOptions$Metrics$BeforeSendMetricCallback? + beforeSendMetricCallback) { final _$beforeSendMetricCallback = beforeSendMetricCallback?.reference ?? jni$_.jNullReference; - _setBeforeSend(reference.pointer, _id_setBeforeSend as jni$_.JMethodIDPtr, + _set$beforeSend(reference.pointer, _id_set$beforeSend.pointer, _$beforeSendMetricCallback.pointer) .check(); } - static final _id_getMetricsBatchProcessorFactory = _class.instanceMethodId( + static final _id_get$metricsBatchProcessorFactory = + SentryOptions$Metrics._class.instanceMethodId( r'getMetricsBatchProcessorFactory', r'()Lio/sentry/metrics/IMetricsBatchProcessorFactory;', ); - static final _getMetricsBatchProcessorFactory = + static final _get$metricsBatchProcessorFactory = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -11550,18 +9473,19 @@ class SentryOptions$Metrics extends jni$_.JObject { /// from: `public io.sentry.metrics.IMetricsBatchProcessorFactory getMetricsBatchProcessorFactory()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getMetricsBatchProcessorFactory() { - return _getMetricsBatchProcessorFactory(reference.pointer, - _id_getMetricsBatchProcessorFactory as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get metricsBatchProcessorFactory { + return _get$metricsBatchProcessorFactory( + reference.pointer, _id_get$metricsBatchProcessorFactory.pointer) + .object(); } - static final _id_setMetricsBatchProcessorFactory = _class.instanceMethodId( + static final _id_set$metricsBatchProcessorFactory = + SentryOptions$Metrics._class.instanceMethodId( r'setMetricsBatchProcessorFactory', r'(Lio/sentry/metrics/IMetricsBatchProcessorFactory;)V', ); - static final _setMetricsBatchProcessorFactory = + static final _set$metricsBatchProcessorFactory = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( @@ -11574,156 +9498,43 @@ class SentryOptions$Metrics extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setMetricsBatchProcessorFactory(io.sentry.metrics.IMetricsBatchProcessorFactory iMetricsBatchProcessorFactory)` - void setMetricsBatchProcessorFactory( - jni$_.JObject iMetricsBatchProcessorFactory, - ) { + set metricsBatchProcessorFactory( + jni$_.JObject iMetricsBatchProcessorFactory) { final _$iMetricsBatchProcessorFactory = iMetricsBatchProcessorFactory.reference; - _setMetricsBatchProcessorFactory( + _set$metricsBatchProcessorFactory( reference.pointer, - _id_setMetricsBatchProcessorFactory as jni$_.JMethodIDPtr, + _id_set$metricsBatchProcessorFactory.pointer, _$iMetricsBatchProcessorFactory.pointer) .check(); } } -final class $SentryOptions$Metrics$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryOptions$Metrics$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryOptions$Metrics;'; - - @jni$_.internal - @core$_.override - SentryOptions$Metrics? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryOptions$Metrics.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$Metrics$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryOptions$Metrics$NullableType) && - other is $SentryOptions$Metrics$NullableType; - } -} - -final class $SentryOptions$Metrics$Type - extends jni$_.JObjType { +final class $SentryOptions$Metrics$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryOptions$Metrics$Type(); + const $SentryOptions$Metrics$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryOptions$Metrics;'; - - @jni$_.internal - @core$_.override - SentryOptions$Metrics fromReference(jni$_.JReference reference) => - SentryOptions$Metrics.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryOptions$Metrics$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$Metrics$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryOptions$Metrics$Type) && - other is $SentryOptions$Metrics$Type; - } } /// from: `io.sentry.SentryOptions$OnDiscardCallback` -class SentryOptions$OnDiscardCallback extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryOptions$OnDiscardCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryOptions$OnDiscardCallback._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryOptions$OnDiscardCallback'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryOptions$OnDiscardCallback$NullableType(); - static const type = $SentryOptions$OnDiscardCallback$Type(); - static final _id_execute = _class.instanceMethodId( - r'execute', - r'(Lio/sentry/clientreport/DiscardReason;Lio/sentry/DataCategory;Ljava/lang/Long;)V', - ); - - static final _execute = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer)>(); - - /// from: `public abstract void execute(io.sentry.clientreport.DiscardReason discardReason, io.sentry.DataCategory dataCategory, java.lang.Long long)` - void execute( - jni$_.JObject discardReason, - jni$_.JObject dataCategory, - jni$_.JLong long, - ) { - final _$discardReason = discardReason.reference; - final _$dataCategory = dataCategory.reference; - final _$long = long.reference; - _execute(reference.pointer, _id_execute as jni$_.JMethodIDPtr, - _$discardReason.pointer, _$dataCategory.pointer, _$long.pointer) - .check(); - } + static const jni$_.JType type = + $SentryOptions$OnDiscardCallback$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map + _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -11744,7 +9555,7 @@ class SentryOptions$OnDiscardCallback extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -11753,9 +9564,9 @@ class SentryOptions$OnDiscardCallback extends jni$_.JObject { if ($d == r'execute(Lio/sentry/clientreport/DiscardReason;Lio/sentry/DataCategory;Ljava/lang/Long;)V') { _$impls[$p]!.execute( - $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), - $a![1]!.as(const jni$_.JObjectType(), releaseOriginal: true), - $a![2]!.as(const jni$_.JLongType(), releaseOriginal: true), + ($a![0] as jni$_.JObject), + ($a![1] as jni$_.JObject), + ($a![2] as jni$_.JLong), ); return jni$_.nullptr; } @@ -11798,9 +9609,49 @@ class SentryOptions$OnDiscardCallback extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return SentryOptions$OnDiscardCallback.fromReference( - $i.implementReference(), - ); + return $i.implement(); + } +} + +extension SentryOptions$OnDiscardCallback$$Methods + on SentryOptions$OnDiscardCallback { + static final _id_execute = + SentryOptions$OnDiscardCallback._class.instanceMethodId( + r'execute', + r'(Lio/sentry/clientreport/DiscardReason;Lio/sentry/DataCategory;Ljava/lang/Long;)V', + ); + + static final _execute = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `public abstract void execute(io.sentry.clientreport.DiscardReason discardReason, io.sentry.DataCategory dataCategory, java.lang.Long long)` + void execute( + jni$_.JObject discardReason, + jni$_.JObject dataCategory, + jni$_.JLong long, + ) { + final _$discardReason = discardReason.reference; + final _$dataCategory = dataCategory.reference; + final _$long = long.reference; + _execute(reference.pointer, _id_execute.pointer, _$discardReason.pointer, + _$dataCategory.pointer, _$long.pointer) + .check(); } } @@ -11809,12 +9660,12 @@ abstract base mixin class $SentryOptions$OnDiscardCallback { required void Function(jni$_.JObject discardReason, jni$_.JObject dataCategory, jni$_.JLong long) execute, - bool execute$async, + core$_.bool execute$async, }) = _$SentryOptions$OnDiscardCallback; void execute(jni$_.JObject discardReason, jni$_.JObject dataCategory, jni$_.JLong long); - bool get execute$async => false; + core$_.bool get execute$async => false; } final class _$SentryOptions$OnDiscardCallback @@ -11828,7 +9679,7 @@ final class _$SentryOptions$OnDiscardCallback final void Function(jni$_.JObject discardReason, jni$_.JObject dataCategory, jni$_.JLong long) _execute; - final bool execute$async; + final core$_.bool execute$async; void execute(jni$_.JObject discardReason, jni$_.JObject dataCategory, jni$_.JLong long) { @@ -11836,143 +9687,31 @@ final class _$SentryOptions$OnDiscardCallback } } -final class $SentryOptions$OnDiscardCallback$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryOptions$OnDiscardCallback$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryOptions$OnDiscardCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$OnDiscardCallback? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryOptions$OnDiscardCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$OnDiscardCallback$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryOptions$OnDiscardCallback$NullableType) && - other is $SentryOptions$OnDiscardCallback$NullableType; - } -} - -final class $SentryOptions$OnDiscardCallback$Type - extends jni$_.JObjType { +final class $SentryOptions$OnDiscardCallback$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryOptions$OnDiscardCallback$Type(); + const $SentryOptions$OnDiscardCallback$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryOptions$OnDiscardCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$OnDiscardCallback fromReference(jni$_.JReference reference) => - SentryOptions$OnDiscardCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryOptions$OnDiscardCallback$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$OnDiscardCallback$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryOptions$OnDiscardCallback$Type) && - other is $SentryOptions$OnDiscardCallback$Type; - } } /// from: `io.sentry.SentryOptions$OnOversizedEventCallback` -class SentryOptions$OnOversizedEventCallback extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryOptions$OnOversizedEventCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryOptions$OnOversizedEventCallback._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryOptions$OnOversizedEventCallback'); /// The type which includes information such as the signature of this class. - static const nullableType = - $SentryOptions$OnOversizedEventCallback$NullableType(); - static const type = $SentryOptions$OnOversizedEventCallback$Type(); - static final _id_execute = _class.instanceMethodId( - r'execute', - r'(Lio/sentry/SentryEvent;Lio/sentry/Hint;)Lio/sentry/SentryEvent;', - ); - - static final _execute = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); - - /// from: `public abstract io.sentry.SentryEvent execute(io.sentry.SentryEvent sentryEvent, io.sentry.Hint hint)` - /// The returned object must be released after use, by calling the [release] method. - SentryEvent execute( - SentryEvent sentryEvent, - Hint hint, - ) { - final _$sentryEvent = sentryEvent.reference; - final _$hint = hint.reference; - return _execute(reference.pointer, _id_execute as jni$_.JMethodIDPtr, - _$sentryEvent.pointer, _$hint.pointer) - .object(const $SentryEvent$Type()); - } + static const jni$_.JType type = + $SentryOptions$OnOversizedEventCallback$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map + static final core$_.Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -11993,7 +9732,7 @@ class SentryOptions$OnOversizedEventCallback extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -12002,11 +9741,11 @@ class SentryOptions$OnOversizedEventCallback extends jni$_.JObject { if ($d == r'execute(Lio/sentry/SentryEvent;Lio/sentry/Hint;)Lio/sentry/SentryEvent;') { final $r = _$impls[$p]!.execute( - $a![0]!.as(const $SentryEvent$Type(), releaseOriginal: true), - $a![1]!.as(const $Hint$Type(), releaseOriginal: true), + ($a![0] as SentryEvent), + ($a![1] as Hint), ); return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) + ?.as(const jni$_.$JObject$Type$()) .reference .toPointer() ?? jni$_.nullptr; @@ -12047,9 +9786,46 @@ class SentryOptions$OnOversizedEventCallback extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return SentryOptions$OnOversizedEventCallback.fromReference( - $i.implementReference(), - ); + return $i.implement(); + } +} + +extension SentryOptions$OnOversizedEventCallback$$Methods + on SentryOptions$OnOversizedEventCallback { + static final _id_execute = + SentryOptions$OnOversizedEventCallback._class.instanceMethodId( + r'execute', + r'(Lio/sentry/SentryEvent;Lio/sentry/Hint;)Lio/sentry/SentryEvent;', + ); + + static final _execute = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `public abstract io.sentry.SentryEvent execute(io.sentry.SentryEvent sentryEvent, io.sentry.Hint hint)` + /// The returned object must be released after use, by calling the [release] method. + SentryEvent execute( + SentryEvent sentryEvent, + Hint hint, + ) { + final _$sentryEvent = sentryEvent.reference; + final _$hint = hint.reference; + return _execute(reference.pointer, _id_execute.pointer, + _$sentryEvent.pointer, _$hint.pointer) + .object(); } } @@ -12074,109 +9850,111 @@ final class _$SentryOptions$OnOversizedEventCallback } } -final class $SentryOptions$OnOversizedEventCallback$NullableType - extends jni$_.JObjType { +final class $SentryOptions$OnOversizedEventCallback$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryOptions$OnOversizedEventCallback$NullableType(); + const $SentryOptions$OnOversizedEventCallback$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryOptions$OnOversizedEventCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$OnOversizedEventCallback? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : SentryOptions$OnOversizedEventCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($SentryOptions$OnOversizedEventCallback$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryOptions$OnOversizedEventCallback$NullableType) && - other is $SentryOptions$OnOversizedEventCallback$NullableType; - } } -final class $SentryOptions$OnOversizedEventCallback$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryOptions$OnOversizedEventCallback$Type(); +/// from: `io.sentry.SentryOptions$ProfilesSamplerCallback` +extension type SentryOptions$ProfilesSamplerCallback._(jni$_.JObject _$this) + implements jni$_.JObject { + static final _class = + jni$_.JClass.forName(r'io/sentry/SentryOptions$ProfilesSamplerCallback'); - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryOptions$OnOversizedEventCallback;'; + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = + $SentryOptions$ProfilesSamplerCallback$Type$(); - @jni$_.internal - @core$_.override - SentryOptions$OnOversizedEventCallback fromReference( - jni$_.JReference reference) => - SentryOptions$OnOversizedEventCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + /// Maps a specific port to the implemented interface. + static final core$_.Map + _$impls = {}; + static jni$_.JObjectPtr _$invoke( + core$_.int port, + jni$_.JObjectPtr descriptor, + jni$_.JObjectPtr args, + ) { + return _$invokeMethod( + port, + jni$_.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); + } - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryOptions$OnOversizedEventCallback$NullableType(); + static final jni$_.Pointer< + jni$_.NativeFunction< + jni$_.JObjectPtr Function( + jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); - @jni$_.internal - @core$_.override - final superCount = 1; + static jni$_.Pointer _$invokeMethod( + core$_.int $p, + jni$_.MethodInvocation $i, + ) { + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; + if ($d == r'sample(Lio/sentry/SamplingContext;)Ljava/lang/Double;') { + final $r = _$impls[$p]!.sample( + ($a![0] as jni$_.JObject), + ); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + } catch (e) { + return jni$_.ProtectedJniExtensions.newDartException(e); + } + return jni$_.nullptr; + } - @core$_.override - int get hashCode => ($SentryOptions$OnOversizedEventCallback$Type).hashCode; + static void implementIn( + jni$_.JImplementer implementer, + $SentryOptions$ProfilesSamplerCallback $impl, + ) { + late final jni$_.RawReceivePort $p; + $p = jni$_.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; + } + final $i = jni$_.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + jni$_.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'io.sentry.SentryOptions$ProfilesSamplerCallback', + $p, + _$invokePointer, + [], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; + } - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryOptions$OnOversizedEventCallback$Type) && - other is $SentryOptions$OnOversizedEventCallback$Type; + factory SentryOptions$ProfilesSamplerCallback.implement( + $SentryOptions$ProfilesSamplerCallback $impl, + ) { + final $i = jni$_.JImplementer(); + implementIn($i, $impl); + return $i.implement(); } } -/// from: `io.sentry.SentryOptions$ProfilesSamplerCallback` -class SentryOptions$ProfilesSamplerCallback extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryOptions$ProfilesSamplerCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = - jni$_.JClass.forName(r'io/sentry/SentryOptions$ProfilesSamplerCallback'); - - /// The type which includes information such as the signature of this class. - static const nullableType = - $SentryOptions$ProfilesSamplerCallback$NullableType(); - static const type = $SentryOptions$ProfilesSamplerCallback$Type(); - static final _id_sample = _class.instanceMethodId( +extension SentryOptions$ProfilesSamplerCallback$$Methods + on SentryOptions$ProfilesSamplerCallback { + static final _id_sample = + SentryOptions$ProfilesSamplerCallback._class.instanceMethodId( r'sample', r'(Lio/sentry/SamplingContext;)Ljava/lang/Double;', ); @@ -12198,91 +9976,9 @@ class SentryOptions$ProfilesSamplerCallback extends jni$_.JObject { jni$_.JObject samplingContext, ) { final _$samplingContext = samplingContext.reference; - return _sample(reference.pointer, _id_sample as jni$_.JMethodIDPtr, - _$samplingContext.pointer) - .object(const jni$_.JDoubleNullableType()); - } - - /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = - {}; - static jni$_.JObjectPtr _$invoke( - int port, - jni$_.JObjectPtr descriptor, - jni$_.JObjectPtr args, - ) { - return _$invokeMethod( - port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); - } - - static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); - - static jni$_.Pointer _$invokeMethod( - int $p, - jni$_.MethodInvocation $i, - ) { - try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; - if ($d == r'sample(Lio/sentry/SamplingContext;)Ljava/lang/Double;') { - final $r = _$impls[$p]!.sample( - $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - } catch (e) { - return jni$_.ProtectedJniExtensions.newDartException(e); - } - return jni$_.nullptr; - } - - static void implementIn( - jni$_.JImplementer implementer, - $SentryOptions$ProfilesSamplerCallback $impl, - ) { - late final jni$_.RawReceivePort $p; - $p = jni$_.RawReceivePort(($m) { - if ($m == null) { - _$impls.remove($p.sendPort.nativePort); - $p.close(); - return; - } - final $i = jni$_.MethodInvocation.fromMessage($m); - final $r = _$invokeMethod($p.sendPort.nativePort, $i); - jni$_.ProtectedJniExtensions.returnResult($i.result, $r); - }); - implementer.add( - r'io.sentry.SentryOptions$ProfilesSamplerCallback', - $p, - _$invokePointer, - [], - ); - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - } - - factory SentryOptions$ProfilesSamplerCallback.implement( - $SentryOptions$ProfilesSamplerCallback $impl, - ) { - final $i = jni$_.JImplementer(); - implementIn($i, $impl); - return SentryOptions$ProfilesSamplerCallback.fromReference( - $i.implementReference(), - ); + return _sample( + reference.pointer, _id_sample.pointer, _$samplingContext.pointer) + .object(); } } @@ -12307,105 +10003,24 @@ final class _$SentryOptions$ProfilesSamplerCallback } } -final class $SentryOptions$ProfilesSamplerCallback$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryOptions$ProfilesSamplerCallback$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryOptions$ProfilesSamplerCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$ProfilesSamplerCallback? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : SentryOptions$ProfilesSamplerCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($SentryOptions$ProfilesSamplerCallback$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryOptions$ProfilesSamplerCallback$NullableType) && - other is $SentryOptions$ProfilesSamplerCallback$NullableType; - } -} - -final class $SentryOptions$ProfilesSamplerCallback$Type - extends jni$_.JObjType { +final class $SentryOptions$ProfilesSamplerCallback$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryOptions$ProfilesSamplerCallback$Type(); + const $SentryOptions$ProfilesSamplerCallback$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryOptions$ProfilesSamplerCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$ProfilesSamplerCallback fromReference( - jni$_.JReference reference) => - SentryOptions$ProfilesSamplerCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryOptions$ProfilesSamplerCallback$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$ProfilesSamplerCallback$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryOptions$ProfilesSamplerCallback$Type) && - other is $SentryOptions$ProfilesSamplerCallback$Type; - } } /// from: `io.sentry.SentryOptions$Proxy` -class SentryOptions$Proxy extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryOptions$Proxy.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryOptions$Proxy._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryOptions$Proxy'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryOptions$Proxy$NullableType(); - static const type = $SentryOptions$Proxy$Type(); + static const jni$_.JType type = + $SentryOptions$Proxy$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -12425,9 +10040,8 @@ class SentryOptions$Proxy extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryOptions$Proxy() { - return SentryOptions$Proxy.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } static final _id_new$1 = _class.constructorId( @@ -12459,12 +10073,9 @@ class SentryOptions$Proxy extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - return SentryOptions$Proxy.fromReference(_new$1( - _class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, - _$string.pointer, + return _new$1(_class.reference.pointer, _id_new$1.pointer, _$string.pointer, _$string1.pointer) - .reference); + .object(); } static final _id_new$2 = _class.constructorId( @@ -12500,13 +10111,9 @@ class SentryOptions$Proxy extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$type = type?.reference ?? jni$_.jNullReference; - return SentryOptions$Proxy.fromReference(_new$2( - _class.reference.pointer, - _id_new$2 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer, - _$type.pointer) - .reference); + return _new$2(_class.reference.pointer, _id_new$2.pointer, _$string.pointer, + _$string1.pointer, _$type.pointer) + .object(); } static final _id_new$3 = _class.constructorId( @@ -12546,14 +10153,9 @@ class SentryOptions$Proxy extends jni$_.JObject { final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$string2 = string2?.reference ?? jni$_.jNullReference; final _$string3 = string3?.reference ?? jni$_.jNullReference; - return SentryOptions$Proxy.fromReference(_new$3( - _class.reference.pointer, - _id_new$3 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer, - _$string2.pointer, - _$string3.pointer) - .reference); + return _new$3(_class.reference.pointer, _id_new$3.pointer, _$string.pointer, + _$string1.pointer, _$string2.pointer, _$string3.pointer) + .object(); } static final _id_new$4 = _class.constructorId( @@ -12597,23 +10199,25 @@ class SentryOptions$Proxy extends jni$_.JObject { final _$type = type?.reference ?? jni$_.jNullReference; final _$string2 = string2?.reference ?? jni$_.jNullReference; final _$string3 = string3?.reference ?? jni$_.jNullReference; - return SentryOptions$Proxy.fromReference(_new$4( + return _new$4( _class.reference.pointer, - _id_new$4 as jni$_.JMethodIDPtr, + _id_new$4.pointer, _$string.pointer, _$string1.pointer, _$type.pointer, _$string2.pointer, _$string3.pointer) - .reference); + .object(); } +} - static final _id_getHost = _class.instanceMethodId( +extension SentryOptions$Proxy$$Methods on SentryOptions$Proxy { + static final _id_get$host = SentryOptions$Proxy._class.instanceMethodId( r'getHost', r'()Ljava/lang/String;', ); - static final _getHost = jni$_.ProtectedJniExtensions.lookup< + static final _get$host = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -12627,17 +10231,17 @@ class SentryOptions$Proxy extends jni$_.JObject { /// from: `public java.lang.String getHost()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getHost() { - return _getHost(reference.pointer, _id_getHost as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get host { + return _get$host(reference.pointer, _id_get$host.pointer) + .object(); } - static final _id_setHost = _class.instanceMethodId( + static final _id_set$host = SentryOptions$Proxy._class.instanceMethodId( r'setHost', r'(Ljava/lang/String;)V', ); - static final _setHost = jni$_.ProtectedJniExtensions.lookup< + static final _set$host = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -12649,21 +10253,18 @@ class SentryOptions$Proxy extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setHost(java.lang.String string)` - void setHost( - jni$_.JString? string, - ) { + set host(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setHost(reference.pointer, _id_setHost as jni$_.JMethodIDPtr, - _$string.pointer) + _set$host(reference.pointer, _id_set$host.pointer, _$string.pointer) .check(); } - static final _id_getPort = _class.instanceMethodId( + static final _id_get$port = SentryOptions$Proxy._class.instanceMethodId( r'getPort', r'()Ljava/lang/String;', ); - static final _getPort = jni$_.ProtectedJniExtensions.lookup< + static final _get$port = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -12677,17 +10278,17 @@ class SentryOptions$Proxy extends jni$_.JObject { /// from: `public java.lang.String getPort()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getPort() { - return _getPort(reference.pointer, _id_getPort as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get port { + return _get$port(reference.pointer, _id_get$port.pointer) + .object(); } - static final _id_setPort = _class.instanceMethodId( + static final _id_set$port = SentryOptions$Proxy._class.instanceMethodId( r'setPort', r'(Ljava/lang/String;)V', ); - static final _setPort = jni$_.ProtectedJniExtensions.lookup< + static final _set$port = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -12699,21 +10300,18 @@ class SentryOptions$Proxy extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setPort(java.lang.String string)` - void setPort( - jni$_.JString? string, - ) { + set port(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setPort(reference.pointer, _id_setPort as jni$_.JMethodIDPtr, - _$string.pointer) + _set$port(reference.pointer, _id_set$port.pointer, _$string.pointer) .check(); } - static final _id_getUser = _class.instanceMethodId( + static final _id_get$user = SentryOptions$Proxy._class.instanceMethodId( r'getUser', r'()Ljava/lang/String;', ); - static final _getUser = jni$_.ProtectedJniExtensions.lookup< + static final _get$user = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -12727,17 +10325,17 @@ class SentryOptions$Proxy extends jni$_.JObject { /// from: `public java.lang.String getUser()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getUser() { - return _getUser(reference.pointer, _id_getUser as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get user { + return _get$user(reference.pointer, _id_get$user.pointer) + .object(); } - static final _id_setUser = _class.instanceMethodId( + static final _id_set$user = SentryOptions$Proxy._class.instanceMethodId( r'setUser', r'(Ljava/lang/String;)V', ); - static final _setUser = jni$_.ProtectedJniExtensions.lookup< + static final _set$user = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -12749,21 +10347,18 @@ class SentryOptions$Proxy extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setUser(java.lang.String string)` - void setUser( - jni$_.JString? string, - ) { + set user(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setUser(reference.pointer, _id_setUser as jni$_.JMethodIDPtr, - _$string.pointer) + _set$user(reference.pointer, _id_set$user.pointer, _$string.pointer) .check(); } - static final _id_getPass = _class.instanceMethodId( + static final _id_get$pass = SentryOptions$Proxy._class.instanceMethodId( r'getPass', r'()Ljava/lang/String;', ); - static final _getPass = jni$_.ProtectedJniExtensions.lookup< + static final _get$pass = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -12777,17 +10372,17 @@ class SentryOptions$Proxy extends jni$_.JObject { /// from: `public java.lang.String getPass()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getPass() { - return _getPass(reference.pointer, _id_getPass as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get pass { + return _get$pass(reference.pointer, _id_get$pass.pointer) + .object(); } - static final _id_setPass = _class.instanceMethodId( + static final _id_set$pass = SentryOptions$Proxy._class.instanceMethodId( r'setPass', r'(Ljava/lang/String;)V', ); - static final _setPass = jni$_.ProtectedJniExtensions.lookup< + static final _set$pass = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -12799,21 +10394,18 @@ class SentryOptions$Proxy extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setPass(java.lang.String string)` - void setPass( - jni$_.JString? string, - ) { + set pass(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setPass(reference.pointer, _id_setPass as jni$_.JMethodIDPtr, - _$string.pointer) + _set$pass(reference.pointer, _id_set$pass.pointer, _$string.pointer) .check(); } - static final _id_getType = _class.instanceMethodId( + static final _id_get$type$1 = SentryOptions$Proxy._class.instanceMethodId( r'getType', r'()Ljava/net/Proxy$Type;', ); - static final _getType = jni$_.ProtectedJniExtensions.lookup< + static final _get$type$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -12827,17 +10419,17 @@ class SentryOptions$Proxy extends jni$_.JObject { /// from: `public java.net.Proxy$Type getType()` /// The returned object must be released after use, by calling the [release] method. - Proxy$Type? getType() { - return _getType(reference.pointer, _id_getType as jni$_.JMethodIDPtr) - .object(const $Proxy$Type$NullableType()); + Proxy$Type? get type$1 { + return _get$type$1(reference.pointer, _id_get$type$1.pointer) + .object(); } - static final _id_setType = _class.instanceMethodId( + static final _id_set$type$1 = SentryOptions$Proxy._class.instanceMethodId( r'setType', r'(Ljava/net/Proxy$Type;)V', ); - static final _setType = jni$_.ProtectedJniExtensions.lookup< + static final _set$type$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -12849,111 +10441,32 @@ class SentryOptions$Proxy extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setType(java.net.Proxy$Type type)` - void setType( - Proxy$Type? type, - ) { + set type$1(Proxy$Type? type) { final _$type = type?.reference ?? jni$_.jNullReference; - _setType(reference.pointer, _id_setType as jni$_.JMethodIDPtr, - _$type.pointer) + _set$type$1(reference.pointer, _id_set$type$1.pointer, _$type.pointer) .check(); } } -final class $SentryOptions$Proxy$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryOptions$Proxy$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryOptions$Proxy;'; - - @jni$_.internal - @core$_.override - SentryOptions$Proxy? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryOptions$Proxy.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$Proxy$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryOptions$Proxy$NullableType) && - other is $SentryOptions$Proxy$NullableType; - } -} - -final class $SentryOptions$Proxy$Type - extends jni$_.JObjType { +final class $SentryOptions$Proxy$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryOptions$Proxy$Type(); + const $SentryOptions$Proxy$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryOptions$Proxy;'; - - @jni$_.internal - @core$_.override - SentryOptions$Proxy fromReference(jni$_.JReference reference) => - SentryOptions$Proxy.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryOptions$Proxy$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$Proxy$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryOptions$Proxy$Type) && - other is $SentryOptions$Proxy$Type; - } } /// from: `io.sentry.SentryOptions$RequestSize` -class SentryOptions$RequestSize extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryOptions$RequestSize.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryOptions$RequestSize._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryOptions$RequestSize'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryOptions$RequestSize$NullableType(); - static const type = $SentryOptions$RequestSize$Type(); + static const jni$_.JType type = + $SentryOptions$RequestSize$Type$(); static final _id_NONE = _class.staticFieldId( r'NONE', r'Lio/sentry/SentryOptions$RequestSize;', @@ -12962,7 +10475,8 @@ class SentryOptions$RequestSize extends jni$_.JObject { /// from: `static public final io.sentry.SentryOptions$RequestSize NONE` /// The returned object must be released after use, by calling the [release] method. static SentryOptions$RequestSize get NONE => - _id_NONE.get(_class, const $SentryOptions$RequestSize$Type()); + _id_NONE.get(_class, SentryOptions$RequestSize.type) + as SentryOptions$RequestSize; static final _id_SMALL = _class.staticFieldId( r'SMALL', @@ -12972,7 +10486,8 @@ class SentryOptions$RequestSize extends jni$_.JObject { /// from: `static public final io.sentry.SentryOptions$RequestSize SMALL` /// The returned object must be released after use, by calling the [release] method. static SentryOptions$RequestSize get SMALL => - _id_SMALL.get(_class, const $SentryOptions$RequestSize$Type()); + _id_SMALL.get(_class, SentryOptions$RequestSize.type) + as SentryOptions$RequestSize; static final _id_MEDIUM = _class.staticFieldId( r'MEDIUM', @@ -12982,7 +10497,8 @@ class SentryOptions$RequestSize extends jni$_.JObject { /// from: `static public final io.sentry.SentryOptions$RequestSize MEDIUM` /// The returned object must be released after use, by calling the [release] method. static SentryOptions$RequestSize get MEDIUM => - _id_MEDIUM.get(_class, const $SentryOptions$RequestSize$Type()); + _id_MEDIUM.get(_class, SentryOptions$RequestSize.type) + as SentryOptions$RequestSize; static final _id_ALWAYS = _class.staticFieldId( r'ALWAYS', @@ -12992,7 +10508,8 @@ class SentryOptions$RequestSize extends jni$_.JObject { /// from: `static public final io.sentry.SentryOptions$RequestSize ALWAYS` /// The returned object must be released after use, by calling the [release] method. static SentryOptions$RequestSize get ALWAYS => - _id_ALWAYS.get(_class, const $SentryOptions$RequestSize$Type()); + _id_ALWAYS.get(_class, SentryOptions$RequestSize.type) + as SentryOptions$RequestSize; static final _id_values = _class.staticMethodId( r'values', @@ -13014,10 +10531,8 @@ class SentryOptions$RequestSize extends jni$_.JObject { /// from: `static public io.sentry.SentryOptions$RequestSize[] values()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JArray? values() { - return _values(_class.reference.pointer, _id_values as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - $SentryOptions$RequestSize$NullableType())); + return _values(_class.reference.pointer, _id_values.pointer) + .object?>(); } static final _id_valueOf = _class.staticMethodId( @@ -13042,141 +10557,37 @@ class SentryOptions$RequestSize extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - return _valueOf(_class.reference.pointer, _id_valueOf as jni$_.JMethodIDPtr, - _$string.pointer) - .object( - const $SentryOptions$RequestSize$NullableType()); - } -} - -final class $SentryOptions$RequestSize$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryOptions$RequestSize$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryOptions$RequestSize;'; - - @jni$_.internal - @core$_.override - SentryOptions$RequestSize? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryOptions$RequestSize.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$RequestSize$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryOptions$RequestSize$NullableType) && - other is $SentryOptions$RequestSize$NullableType; + return _valueOf( + _class.reference.pointer, _id_valueOf.pointer, _$string.pointer) + .object(); } } -final class $SentryOptions$RequestSize$Type - extends jni$_.JObjType { +final class $SentryOptions$RequestSize$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryOptions$RequestSize$Type(); + const $SentryOptions$RequestSize$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryOptions$RequestSize;'; - - @jni$_.internal - @core$_.override - SentryOptions$RequestSize fromReference(jni$_.JReference reference) => - SentryOptions$RequestSize.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryOptions$RequestSize$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$RequestSize$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryOptions$RequestSize$Type) && - other is $SentryOptions$RequestSize$Type; - } } /// from: `io.sentry.SentryOptions$TracesSamplerCallback` -class SentryOptions$TracesSamplerCallback extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryOptions$TracesSamplerCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryOptions$TracesSamplerCallback._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryOptions$TracesSamplerCallback'); /// The type which includes information such as the signature of this class. - static const nullableType = - $SentryOptions$TracesSamplerCallback$NullableType(); - static const type = $SentryOptions$TracesSamplerCallback$Type(); - static final _id_sample = _class.instanceMethodId( - r'sample', - r'(Lio/sentry/SamplingContext;)Ljava/lang/Double;', - ); - - static final _sample = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public abstract java.lang.Double sample(io.sentry.SamplingContext samplingContext)` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JDouble? sample( - jni$_.JObject samplingContext, - ) { - final _$samplingContext = samplingContext.reference; - return _sample(reference.pointer, _id_sample as jni$_.JMethodIDPtr, - _$samplingContext.pointer) - .object(const jni$_.JDoubleNullableType()); - } + static const jni$_.JType type = + $SentryOptions$TracesSamplerCallback$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = - {}; + static final core$_.Map + _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -13197,7 +10608,7 @@ class SentryOptions$TracesSamplerCallback extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -13205,10 +10616,10 @@ class SentryOptions$TracesSamplerCallback extends jni$_.JObject { final $a = $i.args; if ($d == r'sample(Lio/sentry/SamplingContext;)Ljava/lang/Double;') { final $r = _$impls[$p]!.sample( - $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), + ($a![0] as jni$_.JObject), ); return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) + ?.as(const jni$_.$JObject$Type$()) .reference .toPointer() ?? jni$_.nullptr; @@ -13249,9 +10660,38 @@ class SentryOptions$TracesSamplerCallback extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return SentryOptions$TracesSamplerCallback.fromReference( - $i.implementReference(), - ); + return $i.implement(); + } +} + +extension SentryOptions$TracesSamplerCallback$$Methods + on SentryOptions$TracesSamplerCallback { + static final _id_sample = + SentryOptions$TracesSamplerCallback._class.instanceMethodId( + r'sample', + r'(Lio/sentry/SamplingContext;)Ljava/lang/Double;', + ); + + static final _sample = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public abstract java.lang.Double sample(io.sentry.SamplingContext samplingContext)` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JDouble? sample( + jni$_.JObject samplingContext, + ) { + final _$samplingContext = samplingContext.reference; + return _sample( + reference.pointer, _id_sample.pointer, _$samplingContext.pointer) + .object(); } } @@ -13276,104 +10716,22 @@ final class _$SentryOptions$TracesSamplerCallback } } -final class $SentryOptions$TracesSamplerCallback$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryOptions$TracesSamplerCallback$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryOptions$TracesSamplerCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$TracesSamplerCallback? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : SentryOptions$TracesSamplerCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($SentryOptions$TracesSamplerCallback$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryOptions$TracesSamplerCallback$NullableType) && - other is $SentryOptions$TracesSamplerCallback$NullableType; - } -} - -final class $SentryOptions$TracesSamplerCallback$Type - extends jni$_.JObjType { +final class $SentryOptions$TracesSamplerCallback$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryOptions$TracesSamplerCallback$Type(); + const $SentryOptions$TracesSamplerCallback$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryOptions$TracesSamplerCallback;'; - - @jni$_.internal - @core$_.override - SentryOptions$TracesSamplerCallback fromReference( - jni$_.JReference reference) => - SentryOptions$TracesSamplerCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryOptions$TracesSamplerCallback$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$TracesSamplerCallback$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryOptions$TracesSamplerCallback$Type) && - other is $SentryOptions$TracesSamplerCallback$Type; - } } /// from: `io.sentry.SentryOptions` -class SentryOptions extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryOptions.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryOptions._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryOptions'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryOptions$NullableType(); - static const type = $SentryOptions$Type(); + static const jni$_.JType type = $SentryOptions$Type$(); static final _id_DEFAULT_PROPAGATION_TARGETS = _class.staticFieldId( r'DEFAULT_PROPAGATION_TARGETS', r'Ljava/lang/String;', @@ -13382,16 +10740,67 @@ class SentryOptions extends jni$_.JObject { /// from: `static public final java.lang.String DEFAULT_PROPAGATION_TARGETS` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString get DEFAULT_PROPAGATION_TARGETS => - _id_DEFAULT_PROPAGATION_TARGETS.get(_class, const jni$_.JStringType()); + _id_DEFAULT_PROPAGATION_TARGETS.get(_class, jni$_.JString.type) + as jni$_.JString; /// from: `static public final long MAX_EVENT_SIZE_BYTES` static const MAX_EVENT_SIZE_BYTES = 1048576; - static final _id_getProfilerConverter = _class.instanceMethodId( + static final _id_empty = _class.staticMethodId( + r'empty', + r'()Lio/sentry/SentryOptions;', + ); + + static final _empty = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `static public io.sentry.SentryOptions empty()` + /// The returned object must be released after use, by calling the [release] method. + static SentryOptions empty() { + return _empty(_class.reference.pointer, _id_empty.pointer) + .object(); + } + + static final _id_new$ = _class.constructorId( + r'()V', + ); + + static final _new$ = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public void ()` + /// The returned object must be released after use, by calling the [release] method. + factory SentryOptions() { + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); + } +} + +extension SentryOptions$$Methods on SentryOptions { + static final _id_get$profilerConverter = + SentryOptions._class.instanceMethodId( r'getProfilerConverter', r'()Lio/sentry/IProfileConverter;', ); - static final _getProfilerConverter = jni$_.ProtectedJniExtensions.lookup< + static final _get$profilerConverter = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -13405,18 +10814,19 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.IProfileConverter getProfilerConverter()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getProfilerConverter() { - return _getProfilerConverter( - reference.pointer, _id_getProfilerConverter as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get profilerConverter { + return _get$profilerConverter( + reference.pointer, _id_get$profilerConverter.pointer) + .object(); } - static final _id_setProfilerConverter = _class.instanceMethodId( + static final _id_set$profilerConverter = + SentryOptions._class.instanceMethodId( r'setProfilerConverter', r'(Lio/sentry/IProfileConverter;)V', ); - static final _setProfilerConverter = jni$_.ProtectedJniExtensions.lookup< + static final _set$profilerConverter = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -13428,18 +10838,14 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setProfilerConverter(io.sentry.IProfileConverter iProfileConverter)` - void setProfilerConverter( - jni$_.JObject iProfileConverter, - ) { + set profilerConverter(jni$_.JObject iProfileConverter) { final _$iProfileConverter = iProfileConverter.reference; - _setProfilerConverter( - reference.pointer, - _id_setProfilerConverter as jni$_.JMethodIDPtr, + _set$profilerConverter(reference.pointer, _id_set$profilerConverter.pointer, _$iProfileConverter.pointer) .check(); } - static final _id_activate = _class.instanceMethodId( + static final _id_activate = SentryOptions._class.instanceMethodId( r'activate', r'()V', ); @@ -13458,10 +10864,10 @@ class SentryOptions extends jni$_.JObject { /// from: `public void activate()` void activate() { - _activate(reference.pointer, _id_activate as jni$_.JMethodIDPtr).check(); + _activate(reference.pointer, _id_activate.pointer).check(); } - static final _id_addEventProcessor = _class.instanceMethodId( + static final _id_addEventProcessor = SentryOptions._class.instanceMethodId( r'addEventProcessor', r'(Lio/sentry/EventProcessor;)V', ); @@ -13482,19 +10888,17 @@ class SentryOptions extends jni$_.JObject { jni$_.JObject eventProcessor, ) { final _$eventProcessor = eventProcessor.reference; - _addEventProcessor( - reference.pointer, - _id_addEventProcessor as jni$_.JMethodIDPtr, + _addEventProcessor(reference.pointer, _id_addEventProcessor.pointer, _$eventProcessor.pointer) .check(); } - static final _id_getEventProcessors = _class.instanceMethodId( + static final _id_get$eventProcessors = SentryOptions._class.instanceMethodId( r'getEventProcessors', r'()Ljava/util/List;', ); - static final _getEventProcessors = jni$_.ProtectedJniExtensions.lookup< + static final _get$eventProcessors = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -13508,14 +10912,13 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.util.List getEventProcessors()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList getEventProcessors() { - return _getEventProcessors( - reference.pointer, _id_getEventProcessors as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectNullableType())); + jni$_.JList get eventProcessors { + return _get$eventProcessors( + reference.pointer, _id_get$eventProcessors.pointer) + .object>(); } - static final _id_addIntegration = _class.instanceMethodId( + static final _id_addIntegration = SentryOptions._class.instanceMethodId( r'addIntegration', r'(Lio/sentry/Integration;)V', ); @@ -13536,17 +10939,17 @@ class SentryOptions extends jni$_.JObject { jni$_.JObject integration, ) { final _$integration = integration.reference; - _addIntegration(reference.pointer, _id_addIntegration as jni$_.JMethodIDPtr, + _addIntegration(reference.pointer, _id_addIntegration.pointer, _$integration.pointer) .check(); } - static final _id_getIntegrations = _class.instanceMethodId( + static final _id_get$integrations = SentryOptions._class.instanceMethodId( r'getIntegrations', r'()Ljava/util/List;', ); - static final _getIntegrations = jni$_.ProtectedJniExtensions.lookup< + static final _get$integrations = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -13560,19 +10963,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.util.List getIntegrations()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList getIntegrations() { - return _getIntegrations( - reference.pointer, _id_getIntegrations as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectNullableType())); + jni$_.JList get integrations { + return _get$integrations(reference.pointer, _id_get$integrations.pointer) + .object>(); } - static final _id_getDsn = _class.instanceMethodId( + static final _id_get$dsn = SentryOptions._class.instanceMethodId( r'getDsn', r'()Ljava/lang/String;', ); - static final _getDsn = jni$_.ProtectedJniExtensions.lookup< + static final _get$dsn = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -13586,17 +10987,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.lang.String getDsn()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getDsn() { - return _getDsn(reference.pointer, _id_getDsn as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get dsn { + return _get$dsn(reference.pointer, _id_get$dsn.pointer) + .object(); } - static final _id_setDsn = _class.instanceMethodId( + static final _id_set$dsn = SentryOptions._class.instanceMethodId( r'setDsn', r'(Ljava/lang/String;)V', ); - static final _setDsn = jni$_.ProtectedJniExtensions.lookup< + static final _set$dsn = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -13608,21 +11009,17 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setDsn(java.lang.String string)` - void setDsn( - jni$_.JString? string, - ) { + set dsn(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setDsn(reference.pointer, _id_setDsn as jni$_.JMethodIDPtr, - _$string.pointer) - .check(); + _set$dsn(reference.pointer, _id_set$dsn.pointer, _$string.pointer).check(); } - static final _id_isDebug = _class.instanceMethodId( + static final _id_get$isDebug = SentryOptions._class.instanceMethodId( r'isDebug', r'()Z', ); - static final _isDebug = jni$_.ProtectedJniExtensions.lookup< + static final _get$isDebug = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -13635,17 +11032,16 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isDebug()` - bool isDebug() { - return _isDebug(reference.pointer, _id_isDebug as jni$_.JMethodIDPtr) - .boolean; + core$_.bool get isDebug { + return _get$isDebug(reference.pointer, _id_get$isDebug.pointer).boolean; } - static final _id_setDebug = _class.instanceMethodId( + static final _id_set$debug = SentryOptions._class.instanceMethodId( r'setDebug', r'(Z)V', ); - static final _setDebug = jni$_.ProtectedJniExtensions.lookup< + static final _set$debug = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -13653,22 +11049,19 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setDebug(boolean z)` - void setDebug( - bool z, - ) { - _setDebug(reference.pointer, _id_setDebug as jni$_.JMethodIDPtr, z ? 1 : 0) - .check(); + set debug(core$_.bool z) { + _set$debug(reference.pointer, _id_set$debug.pointer, z ? 1 : 0).check(); } - static final _id_getLogger = _class.instanceMethodId( + static final _id_get$logger = SentryOptions._class.instanceMethodId( r'getLogger', r'()Lio/sentry/ILogger;', ); - static final _getLogger = jni$_.ProtectedJniExtensions.lookup< + static final _get$logger = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -13682,17 +11075,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.ILogger getLogger()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getLogger() { - return _getLogger(reference.pointer, _id_getLogger as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get logger { + return _get$logger(reference.pointer, _id_get$logger.pointer) + .object(); } - static final _id_setLogger = _class.instanceMethodId( + static final _id_set$logger = SentryOptions._class.instanceMethodId( r'setLogger', r'(Lio/sentry/ILogger;)V', ); - static final _setLogger = jni$_.ProtectedJniExtensions.lookup< + static final _set$logger = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -13704,21 +11097,18 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setLogger(io.sentry.ILogger iLogger)` - void setLogger( - jni$_.JObject? iLogger, - ) { + set logger(jni$_.JObject? iLogger) { final _$iLogger = iLogger?.reference ?? jni$_.jNullReference; - _setLogger(reference.pointer, _id_setLogger as jni$_.JMethodIDPtr, - _$iLogger.pointer) + _set$logger(reference.pointer, _id_set$logger.pointer, _$iLogger.pointer) .check(); } - static final _id_getFatalLogger = _class.instanceMethodId( + static final _id_get$fatalLogger = SentryOptions._class.instanceMethodId( r'getFatalLogger', r'()Lio/sentry/ILogger;', ); - static final _getFatalLogger = jni$_.ProtectedJniExtensions.lookup< + static final _get$fatalLogger = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -13732,18 +11122,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.ILogger getFatalLogger()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getFatalLogger() { - return _getFatalLogger( - reference.pointer, _id_getFatalLogger as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get fatalLogger { + return _get$fatalLogger(reference.pointer, _id_get$fatalLogger.pointer) + .object(); } - static final _id_setFatalLogger = _class.instanceMethodId( + static final _id_set$fatalLogger = SentryOptions._class.instanceMethodId( r'setFatalLogger', r'(Lio/sentry/ILogger;)V', ); - static final _setFatalLogger = jni$_.ProtectedJniExtensions.lookup< + static final _set$fatalLogger = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -13755,21 +11144,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setFatalLogger(io.sentry.ILogger iLogger)` - void setFatalLogger( - jni$_.JObject? iLogger, - ) { + set fatalLogger(jni$_.JObject? iLogger) { final _$iLogger = iLogger?.reference ?? jni$_.jNullReference; - _setFatalLogger(reference.pointer, _id_setFatalLogger as jni$_.JMethodIDPtr, - _$iLogger.pointer) + _set$fatalLogger( + reference.pointer, _id_set$fatalLogger.pointer, _$iLogger.pointer) .check(); } - static final _id_getDiagnosticLevel = _class.instanceMethodId( + static final _id_get$diagnosticLevel = SentryOptions._class.instanceMethodId( r'getDiagnosticLevel', r'()Lio/sentry/SentryLevel;', ); - static final _getDiagnosticLevel = jni$_.ProtectedJniExtensions.lookup< + static final _get$diagnosticLevel = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -13783,18 +11170,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.SentryLevel getDiagnosticLevel()` /// The returned object must be released after use, by calling the [release] method. - SentryLevel getDiagnosticLevel() { - return _getDiagnosticLevel( - reference.pointer, _id_getDiagnosticLevel as jni$_.JMethodIDPtr) - .object(const $SentryLevel$Type()); + SentryLevel get diagnosticLevel { + return _get$diagnosticLevel( + reference.pointer, _id_get$diagnosticLevel.pointer) + .object(); } - static final _id_setDiagnosticLevel = _class.instanceMethodId( + static final _id_set$diagnosticLevel = SentryOptions._class.instanceMethodId( r'setDiagnosticLevel', r'(Lio/sentry/SentryLevel;)V', ); - static final _setDiagnosticLevel = jni$_.ProtectedJniExtensions.lookup< + static final _set$diagnosticLevel = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -13806,21 +11193,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setDiagnosticLevel(io.sentry.SentryLevel sentryLevel)` - void setDiagnosticLevel( - SentryLevel? sentryLevel, - ) { + set diagnosticLevel(SentryLevel? sentryLevel) { final _$sentryLevel = sentryLevel?.reference ?? jni$_.jNullReference; - _setDiagnosticLevel(reference.pointer, - _id_setDiagnosticLevel as jni$_.JMethodIDPtr, _$sentryLevel.pointer) + _set$diagnosticLevel(reference.pointer, _id_set$diagnosticLevel.pointer, + _$sentryLevel.pointer) .check(); } - static final _id_getSerializer = _class.instanceMethodId( + static final _id_get$serializer = SentryOptions._class.instanceMethodId( r'getSerializer', r'()Lio/sentry/ISerializer;', ); - static final _getSerializer = jni$_.ProtectedJniExtensions.lookup< + static final _get$serializer = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -13834,18 +11219,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.ISerializer getSerializer()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getSerializer() { - return _getSerializer( - reference.pointer, _id_getSerializer as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get serializer { + return _get$serializer(reference.pointer, _id_get$serializer.pointer) + .object(); } - static final _id_setSerializer = _class.instanceMethodId( + static final _id_set$serializer = SentryOptions._class.instanceMethodId( r'setSerializer', r'(Lio/sentry/ISerializer;)V', ); - static final _setSerializer = jni$_.ProtectedJniExtensions.lookup< + static final _set$serializer = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -13857,21 +11241,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setSerializer(io.sentry.ISerializer iSerializer)` - void setSerializer( - jni$_.JObject? iSerializer, - ) { + set serializer(jni$_.JObject? iSerializer) { final _$iSerializer = iSerializer?.reference ?? jni$_.jNullReference; - _setSerializer(reference.pointer, _id_setSerializer as jni$_.JMethodIDPtr, + _set$serializer(reference.pointer, _id_set$serializer.pointer, _$iSerializer.pointer) .check(); } - static final _id_getMaxDepth = _class.instanceMethodId( + static final _id_get$maxDepth = SentryOptions._class.instanceMethodId( r'getMaxDepth', r'()I', ); - static final _getMaxDepth = jni$_.ProtectedJniExtensions.lookup< + static final _get$maxDepth = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -13884,18 +11266,16 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public int getMaxDepth()` - int getMaxDepth() { - return _getMaxDepth( - reference.pointer, _id_getMaxDepth as jni$_.JMethodIDPtr) - .integer; + core$_.int get maxDepth { + return _get$maxDepth(reference.pointer, _id_get$maxDepth.pointer).integer; } - static final _id_setMaxDepth = _class.instanceMethodId( + static final _id_set$maxDepth = SentryOptions._class.instanceMethodId( r'setMaxDepth', r'(I)V', ); - static final _setMaxDepth = jni$_.ProtectedJniExtensions.lookup< + static final _set$maxDepth = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -13903,22 +11283,19 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setMaxDepth(int i)` - void setMaxDepth( - int i, - ) { - _setMaxDepth(reference.pointer, _id_setMaxDepth as jni$_.JMethodIDPtr, i) - .check(); + set maxDepth(core$_.int i) { + _set$maxDepth(reference.pointer, _id_set$maxDepth.pointer, i).check(); } - static final _id_getEnvelopeReader = _class.instanceMethodId( + static final _id_get$envelopeReader = SentryOptions._class.instanceMethodId( r'getEnvelopeReader', r'()Lio/sentry/IEnvelopeReader;', ); - static final _getEnvelopeReader = jni$_.ProtectedJniExtensions.lookup< + static final _get$envelopeReader = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -13932,18 +11309,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.IEnvelopeReader getEnvelopeReader()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getEnvelopeReader() { - return _getEnvelopeReader( - reference.pointer, _id_getEnvelopeReader as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get envelopeReader { + return _get$envelopeReader( + reference.pointer, _id_get$envelopeReader.pointer) + .object(); } - static final _id_setEnvelopeReader = _class.instanceMethodId( + static final _id_set$envelopeReader = SentryOptions._class.instanceMethodId( r'setEnvelopeReader', r'(Lio/sentry/IEnvelopeReader;)V', ); - static final _setEnvelopeReader = jni$_.ProtectedJniExtensions.lookup< + static final _set$envelopeReader = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -13955,24 +11332,21 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setEnvelopeReader(io.sentry.IEnvelopeReader iEnvelopeReader)` - void setEnvelopeReader( - jni$_.JObject? iEnvelopeReader, - ) { + set envelopeReader(jni$_.JObject? iEnvelopeReader) { final _$iEnvelopeReader = iEnvelopeReader?.reference ?? jni$_.jNullReference; - _setEnvelopeReader( - reference.pointer, - _id_setEnvelopeReader as jni$_.JMethodIDPtr, + _set$envelopeReader(reference.pointer, _id_set$envelopeReader.pointer, _$iEnvelopeReader.pointer) .check(); } - static final _id_getShutdownTimeoutMillis = _class.instanceMethodId( + static final _id_get$shutdownTimeoutMillis = + SentryOptions._class.instanceMethodId( r'getShutdownTimeoutMillis', r'()J', ); - static final _getShutdownTimeoutMillis = jni$_.ProtectedJniExtensions.lookup< + static final _get$shutdownTimeoutMillis = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -13985,18 +11359,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public long getShutdownTimeoutMillis()` - int getShutdownTimeoutMillis() { - return _getShutdownTimeoutMillis(reference.pointer, - _id_getShutdownTimeoutMillis as jni$_.JMethodIDPtr) + core$_.int get shutdownTimeoutMillis { + return _get$shutdownTimeoutMillis( + reference.pointer, _id_get$shutdownTimeoutMillis.pointer) .long; } - static final _id_setShutdownTimeoutMillis = _class.instanceMethodId( + static final _id_set$shutdownTimeoutMillis = + SentryOptions._class.instanceMethodId( r'setShutdownTimeoutMillis', r'(J)V', ); - static final _setShutdownTimeoutMillis = jni$_.ProtectedJniExtensions.lookup< + static final _set$shutdownTimeoutMillis = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -14004,23 +11379,21 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setShutdownTimeoutMillis(long j)` - void setShutdownTimeoutMillis( - int j, - ) { - _setShutdownTimeoutMillis(reference.pointer, - _id_setShutdownTimeoutMillis as jni$_.JMethodIDPtr, j) + set shutdownTimeoutMillis(core$_.int j) { + _set$shutdownTimeoutMillis( + reference.pointer, _id_set$shutdownTimeoutMillis.pointer, j) .check(); } - static final _id_getSentryClientName = _class.instanceMethodId( + static final _id_get$sentryClientName = SentryOptions._class.instanceMethodId( r'getSentryClientName', r'()Ljava/lang/String;', ); - static final _getSentryClientName = jni$_.ProtectedJniExtensions.lookup< + static final _get$sentryClientName = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -14034,18 +11407,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.lang.String getSentryClientName()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getSentryClientName() { - return _getSentryClientName( - reference.pointer, _id_getSentryClientName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get sentryClientName { + return _get$sentryClientName( + reference.pointer, _id_get$sentryClientName.pointer) + .object(); } - static final _id_setSentryClientName = _class.instanceMethodId( + static final _id_set$sentryClientName = SentryOptions._class.instanceMethodId( r'setSentryClientName', r'(Ljava/lang/String;)V', ); - static final _setSentryClientName = jni$_.ProtectedJniExtensions.lookup< + static final _set$sentryClientName = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -14057,21 +11430,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setSentryClientName(java.lang.String string)` - void setSentryClientName( - jni$_.JString? string, - ) { + set sentryClientName(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setSentryClientName(reference.pointer, - _id_setSentryClientName as jni$_.JMethodIDPtr, _$string.pointer) + _set$sentryClientName(reference.pointer, _id_set$sentryClientName.pointer, + _$string.pointer) .check(); } - static final _id_getBeforeSend = _class.instanceMethodId( + static final _id_get$beforeSend = SentryOptions._class.instanceMethodId( r'getBeforeSend', r'()Lio/sentry/SentryOptions$BeforeSendCallback;', ); - static final _getBeforeSend = jni$_.ProtectedJniExtensions.lookup< + static final _get$beforeSend = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -14085,19 +11456,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.SentryOptions$BeforeSendCallback getBeforeSend()` /// The returned object must be released after use, by calling the [release] method. - SentryOptions$BeforeSendCallback? getBeforeSend() { - return _getBeforeSend( - reference.pointer, _id_getBeforeSend as jni$_.JMethodIDPtr) - .object( - const $SentryOptions$BeforeSendCallback$NullableType()); + SentryOptions$BeforeSendCallback? get beforeSend { + return _get$beforeSend(reference.pointer, _id_get$beforeSend.pointer) + .object(); } - static final _id_setBeforeSend = _class.instanceMethodId( + static final _id_set$beforeSend = SentryOptions._class.instanceMethodId( r'setBeforeSend', r'(Lio/sentry/SentryOptions$BeforeSendCallback;)V', ); - static final _setBeforeSend = jni$_.ProtectedJniExtensions.lookup< + static final _set$beforeSend = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -14109,22 +11478,21 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setBeforeSend(io.sentry.SentryOptions$BeforeSendCallback beforeSendCallback)` - void setBeforeSend( - SentryOptions$BeforeSendCallback? beforeSendCallback, - ) { + set beforeSend(SentryOptions$BeforeSendCallback? beforeSendCallback) { final _$beforeSendCallback = beforeSendCallback?.reference ?? jni$_.jNullReference; - _setBeforeSend(reference.pointer, _id_setBeforeSend as jni$_.JMethodIDPtr, + _set$beforeSend(reference.pointer, _id_set$beforeSend.pointer, _$beforeSendCallback.pointer) .check(); } - static final _id_getBeforeSendTransaction = _class.instanceMethodId( + static final _id_get$beforeSendTransaction = + SentryOptions._class.instanceMethodId( r'getBeforeSendTransaction', r'()Lio/sentry/SentryOptions$BeforeSendTransactionCallback;', ); - static final _getBeforeSendTransaction = jni$_.ProtectedJniExtensions.lookup< + static final _get$beforeSendTransaction = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -14138,19 +11506,19 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.SentryOptions$BeforeSendTransactionCallback getBeforeSendTransaction()` /// The returned object must be released after use, by calling the [release] method. - SentryOptions$BeforeSendTransactionCallback? getBeforeSendTransaction() { - return _getBeforeSendTransaction(reference.pointer, - _id_getBeforeSendTransaction as jni$_.JMethodIDPtr) - .object( - const $SentryOptions$BeforeSendTransactionCallback$NullableType()); + SentryOptions$BeforeSendTransactionCallback? get beforeSendTransaction { + return _get$beforeSendTransaction( + reference.pointer, _id_get$beforeSendTransaction.pointer) + .object(); } - static final _id_setBeforeSendTransaction = _class.instanceMethodId( + static final _id_set$beforeSendTransaction = + SentryOptions._class.instanceMethodId( r'setBeforeSendTransaction', r'(Lio/sentry/SentryOptions$BeforeSendTransactionCallback;)V', ); - static final _setBeforeSendTransaction = jni$_.ProtectedJniExtensions.lookup< + static final _set$beforeSendTransaction = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -14162,24 +11530,25 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setBeforeSendTransaction(io.sentry.SentryOptions$BeforeSendTransactionCallback beforeSendTransactionCallback)` - void setBeforeSendTransaction( - SentryOptions$BeforeSendTransactionCallback? beforeSendTransactionCallback, - ) { + set beforeSendTransaction( + SentryOptions$BeforeSendTransactionCallback? + beforeSendTransactionCallback) { final _$beforeSendTransactionCallback = beforeSendTransactionCallback?.reference ?? jni$_.jNullReference; - _setBeforeSendTransaction( + _set$beforeSendTransaction( reference.pointer, - _id_setBeforeSendTransaction as jni$_.JMethodIDPtr, + _id_set$beforeSendTransaction.pointer, _$beforeSendTransactionCallback.pointer) .check(); } - static final _id_getBeforeSendFeedback = _class.instanceMethodId( + static final _id_get$beforeSendFeedback = + SentryOptions._class.instanceMethodId( r'getBeforeSendFeedback', r'()Lio/sentry/SentryOptions$BeforeSendCallback;', ); - static final _getBeforeSendFeedback = jni$_.ProtectedJniExtensions.lookup< + static final _get$beforeSendFeedback = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -14193,19 +11562,19 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.SentryOptions$BeforeSendCallback getBeforeSendFeedback()` /// The returned object must be released after use, by calling the [release] method. - SentryOptions$BeforeSendCallback? getBeforeSendFeedback() { - return _getBeforeSendFeedback( - reference.pointer, _id_getBeforeSendFeedback as jni$_.JMethodIDPtr) - .object( - const $SentryOptions$BeforeSendCallback$NullableType()); + SentryOptions$BeforeSendCallback? get beforeSendFeedback { + return _get$beforeSendFeedback( + reference.pointer, _id_get$beforeSendFeedback.pointer) + .object(); } - static final _id_setBeforeSendFeedback = _class.instanceMethodId( + static final _id_set$beforeSendFeedback = + SentryOptions._class.instanceMethodId( r'setBeforeSendFeedback', r'(Lio/sentry/SentryOptions$BeforeSendCallback;)V', ); - static final _setBeforeSendFeedback = jni$_.ProtectedJniExtensions.lookup< + static final _set$beforeSendFeedback = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -14217,24 +11586,20 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setBeforeSendFeedback(io.sentry.SentryOptions$BeforeSendCallback beforeSendCallback)` - void setBeforeSendFeedback( - SentryOptions$BeforeSendCallback? beforeSendCallback, - ) { + set beforeSendFeedback(SentryOptions$BeforeSendCallback? beforeSendCallback) { final _$beforeSendCallback = beforeSendCallback?.reference ?? jni$_.jNullReference; - _setBeforeSendFeedback( - reference.pointer, - _id_setBeforeSendFeedback as jni$_.JMethodIDPtr, - _$beforeSendCallback.pointer) + _set$beforeSendFeedback(reference.pointer, + _id_set$beforeSendFeedback.pointer, _$beforeSendCallback.pointer) .check(); } - static final _id_getBeforeSendReplay = _class.instanceMethodId( + static final _id_get$beforeSendReplay = SentryOptions._class.instanceMethodId( r'getBeforeSendReplay', r'()Lio/sentry/SentryOptions$BeforeSendReplayCallback;', ); - static final _getBeforeSendReplay = jni$_.ProtectedJniExtensions.lookup< + static final _get$beforeSendReplay = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -14248,19 +11613,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.SentryOptions$BeforeSendReplayCallback getBeforeSendReplay()` /// The returned object must be released after use, by calling the [release] method. - SentryOptions$BeforeSendReplayCallback? getBeforeSendReplay() { - return _getBeforeSendReplay( - reference.pointer, _id_getBeforeSendReplay as jni$_.JMethodIDPtr) - .object( - const $SentryOptions$BeforeSendReplayCallback$NullableType()); + SentryOptions$BeforeSendReplayCallback? get beforeSendReplay { + return _get$beforeSendReplay( + reference.pointer, _id_get$beforeSendReplay.pointer) + .object(); } - static final _id_setBeforeSendReplay = _class.instanceMethodId( + static final _id_set$beforeSendReplay = SentryOptions._class.instanceMethodId( r'setBeforeSendReplay', r'(Lio/sentry/SentryOptions$BeforeSendReplayCallback;)V', ); - static final _setBeforeSendReplay = jni$_.ProtectedJniExtensions.lookup< + static final _set$beforeSendReplay = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -14272,24 +11636,21 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setBeforeSendReplay(io.sentry.SentryOptions$BeforeSendReplayCallback beforeSendReplayCallback)` - void setBeforeSendReplay( - SentryOptions$BeforeSendReplayCallback? beforeSendReplayCallback, - ) { + set beforeSendReplay( + SentryOptions$BeforeSendReplayCallback? beforeSendReplayCallback) { final _$beforeSendReplayCallback = beforeSendReplayCallback?.reference ?? jni$_.jNullReference; - _setBeforeSendReplay( - reference.pointer, - _id_setBeforeSendReplay as jni$_.JMethodIDPtr, + _set$beforeSendReplay(reference.pointer, _id_set$beforeSendReplay.pointer, _$beforeSendReplayCallback.pointer) .check(); } - static final _id_getBeforeBreadcrumb = _class.instanceMethodId( + static final _id_get$beforeBreadcrumb = SentryOptions._class.instanceMethodId( r'getBeforeBreadcrumb', r'()Lio/sentry/SentryOptions$BeforeBreadcrumbCallback;', ); - static final _getBeforeBreadcrumb = jni$_.ProtectedJniExtensions.lookup< + static final _get$beforeBreadcrumb = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -14303,19 +11664,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.SentryOptions$BeforeBreadcrumbCallback getBeforeBreadcrumb()` /// The returned object must be released after use, by calling the [release] method. - SentryOptions$BeforeBreadcrumbCallback? getBeforeBreadcrumb() { - return _getBeforeBreadcrumb( - reference.pointer, _id_getBeforeBreadcrumb as jni$_.JMethodIDPtr) - .object( - const $SentryOptions$BeforeBreadcrumbCallback$NullableType()); + SentryOptions$BeforeBreadcrumbCallback? get beforeBreadcrumb { + return _get$beforeBreadcrumb( + reference.pointer, _id_get$beforeBreadcrumb.pointer) + .object(); } - static final _id_setBeforeBreadcrumb = _class.instanceMethodId( + static final _id_set$beforeBreadcrumb = SentryOptions._class.instanceMethodId( r'setBeforeBreadcrumb', r'(Lio/sentry/SentryOptions$BeforeBreadcrumbCallback;)V', ); - static final _setBeforeBreadcrumb = jni$_.ProtectedJniExtensions.lookup< + static final _set$beforeBreadcrumb = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -14327,24 +11687,21 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setBeforeBreadcrumb(io.sentry.SentryOptions$BeforeBreadcrumbCallback beforeBreadcrumbCallback)` - void setBeforeBreadcrumb( - SentryOptions$BeforeBreadcrumbCallback? beforeBreadcrumbCallback, - ) { + set beforeBreadcrumb( + SentryOptions$BeforeBreadcrumbCallback? beforeBreadcrumbCallback) { final _$beforeBreadcrumbCallback = beforeBreadcrumbCallback?.reference ?? jni$_.jNullReference; - _setBeforeBreadcrumb( - reference.pointer, - _id_setBeforeBreadcrumb as jni$_.JMethodIDPtr, + _set$beforeBreadcrumb(reference.pointer, _id_set$beforeBreadcrumb.pointer, _$beforeBreadcrumbCallback.pointer) .check(); } - static final _id_getOnDiscard = _class.instanceMethodId( + static final _id_get$onDiscard = SentryOptions._class.instanceMethodId( r'getOnDiscard', r'()Lio/sentry/SentryOptions$OnDiscardCallback;', ); - static final _getOnDiscard = jni$_.ProtectedJniExtensions.lookup< + static final _get$onDiscard = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -14358,19 +11715,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.SentryOptions$OnDiscardCallback getOnDiscard()` /// The returned object must be released after use, by calling the [release] method. - SentryOptions$OnDiscardCallback? getOnDiscard() { - return _getOnDiscard( - reference.pointer, _id_getOnDiscard as jni$_.JMethodIDPtr) - .object( - const $SentryOptions$OnDiscardCallback$NullableType()); + SentryOptions$OnDiscardCallback? get onDiscard { + return _get$onDiscard(reference.pointer, _id_get$onDiscard.pointer) + .object(); } - static final _id_setOnDiscard = _class.instanceMethodId( + static final _id_set$onDiscard = SentryOptions._class.instanceMethodId( r'setOnDiscard', r'(Lio/sentry/SentryOptions$OnDiscardCallback;)V', ); - static final _setOnDiscard = jni$_.ProtectedJniExtensions.lookup< + static final _set$onDiscard = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -14382,22 +11737,20 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setOnDiscard(io.sentry.SentryOptions$OnDiscardCallback onDiscardCallback)` - void setOnDiscard( - SentryOptions$OnDiscardCallback? onDiscardCallback, - ) { + set onDiscard(SentryOptions$OnDiscardCallback? onDiscardCallback) { final _$onDiscardCallback = onDiscardCallback?.reference ?? jni$_.jNullReference; - _setOnDiscard(reference.pointer, _id_setOnDiscard as jni$_.JMethodIDPtr, + _set$onDiscard(reference.pointer, _id_set$onDiscard.pointer, _$onDiscardCallback.pointer) .check(); } - static final _id_getCacheDirPath = _class.instanceMethodId( + static final _id_get$cacheDirPath = SentryOptions._class.instanceMethodId( r'getCacheDirPath', r'()Ljava/lang/String;', ); - static final _getCacheDirPath = jni$_.ProtectedJniExtensions.lookup< + static final _get$cacheDirPath = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -14411,18 +11764,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.lang.String getCacheDirPath()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getCacheDirPath() { - return _getCacheDirPath( - reference.pointer, _id_getCacheDirPath as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get cacheDirPath { + return _get$cacheDirPath(reference.pointer, _id_get$cacheDirPath.pointer) + .object(); } - static final _id_getOutboxPath = _class.instanceMethodId( + static final _id_get$outboxPath = SentryOptions._class.instanceMethodId( r'getOutboxPath', r'()Ljava/lang/String;', ); - static final _getOutboxPath = jni$_.ProtectedJniExtensions.lookup< + static final _get$outboxPath = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -14436,18 +11788,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.lang.String getOutboxPath()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getOutboxPath() { - return _getOutboxPath( - reference.pointer, _id_getOutboxPath as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get outboxPath { + return _get$outboxPath(reference.pointer, _id_get$outboxPath.pointer) + .object(); } - static final _id_setCacheDirPath = _class.instanceMethodId( + static final _id_set$cacheDirPath = SentryOptions._class.instanceMethodId( r'setCacheDirPath', r'(Ljava/lang/String;)V', ); - static final _setCacheDirPath = jni$_.ProtectedJniExtensions.lookup< + static final _set$cacheDirPath = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -14459,21 +11810,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setCacheDirPath(java.lang.String string)` - void setCacheDirPath( - jni$_.JString? string, - ) { + set cacheDirPath(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setCacheDirPath(reference.pointer, - _id_setCacheDirPath as jni$_.JMethodIDPtr, _$string.pointer) + _set$cacheDirPath( + reference.pointer, _id_set$cacheDirPath.pointer, _$string.pointer) .check(); } - static final _id_getMaxBreadcrumbs = _class.instanceMethodId( + static final _id_get$maxBreadcrumbs = SentryOptions._class.instanceMethodId( r'getMaxBreadcrumbs', r'()I', ); - static final _getMaxBreadcrumbs = jni$_.ProtectedJniExtensions.lookup< + static final _get$maxBreadcrumbs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -14486,18 +11835,18 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public int getMaxBreadcrumbs()` - int getMaxBreadcrumbs() { - return _getMaxBreadcrumbs( - reference.pointer, _id_getMaxBreadcrumbs as jni$_.JMethodIDPtr) + core$_.int get maxBreadcrumbs { + return _get$maxBreadcrumbs( + reference.pointer, _id_get$maxBreadcrumbs.pointer) .integer; } - static final _id_setMaxBreadcrumbs = _class.instanceMethodId( + static final _id_set$maxBreadcrumbs = SentryOptions._class.instanceMethodId( r'setMaxBreadcrumbs', r'(I)V', ); - static final _setMaxBreadcrumbs = jni$_.ProtectedJniExtensions.lookup< + static final _set$maxBreadcrumbs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -14505,23 +11854,20 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setMaxBreadcrumbs(int i)` - void setMaxBreadcrumbs( - int i, - ) { - _setMaxBreadcrumbs( - reference.pointer, _id_setMaxBreadcrumbs as jni$_.JMethodIDPtr, i) + set maxBreadcrumbs(core$_.int i) { + _set$maxBreadcrumbs(reference.pointer, _id_set$maxBreadcrumbs.pointer, i) .check(); } - static final _id_getMaxFeatureFlags = _class.instanceMethodId( + static final _id_get$maxFeatureFlags = SentryOptions._class.instanceMethodId( r'getMaxFeatureFlags', r'()I', ); - static final _getMaxFeatureFlags = jni$_.ProtectedJniExtensions.lookup< + static final _get$maxFeatureFlags = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -14534,18 +11880,18 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public int getMaxFeatureFlags()` - int getMaxFeatureFlags() { - return _getMaxFeatureFlags( - reference.pointer, _id_getMaxFeatureFlags as jni$_.JMethodIDPtr) + core$_.int get maxFeatureFlags { + return _get$maxFeatureFlags( + reference.pointer, _id_get$maxFeatureFlags.pointer) .integer; } - static final _id_setMaxFeatureFlags = _class.instanceMethodId( + static final _id_set$maxFeatureFlags = SentryOptions._class.instanceMethodId( r'setMaxFeatureFlags', r'(I)V', ); - static final _setMaxFeatureFlags = jni$_.ProtectedJniExtensions.lookup< + static final _set$maxFeatureFlags = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -14553,23 +11899,20 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setMaxFeatureFlags(int i)` - void setMaxFeatureFlags( - int i, - ) { - _setMaxFeatureFlags( - reference.pointer, _id_setMaxFeatureFlags as jni$_.JMethodIDPtr, i) + set maxFeatureFlags(core$_.int i) { + _set$maxFeatureFlags(reference.pointer, _id_set$maxFeatureFlags.pointer, i) .check(); } - static final _id_getRelease = _class.instanceMethodId( + static final _id_get$release$1 = SentryOptions._class.instanceMethodId( r'getRelease', r'()Ljava/lang/String;', ); - static final _getRelease = jni$_.ProtectedJniExtensions.lookup< + static final _get$release$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -14583,17 +11926,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.lang.String getRelease()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getRelease() { - return _getRelease(reference.pointer, _id_getRelease as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get release$1 { + return _get$release$1(reference.pointer, _id_get$release$1.pointer) + .object(); } - static final _id_setRelease = _class.instanceMethodId( + static final _id_set$release$1 = SentryOptions._class.instanceMethodId( r'setRelease', r'(Ljava/lang/String;)V', ); - static final _setRelease = jni$_.ProtectedJniExtensions.lookup< + static final _set$release$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -14605,21 +11948,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setRelease(java.lang.String string)` - void setRelease( - jni$_.JString? string, - ) { + set release$1(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setRelease(reference.pointer, _id_setRelease as jni$_.JMethodIDPtr, - _$string.pointer) + _set$release$1( + reference.pointer, _id_set$release$1.pointer, _$string.pointer) .check(); } - static final _id_getEnvironment = _class.instanceMethodId( + static final _id_get$environment = SentryOptions._class.instanceMethodId( r'getEnvironment', r'()Ljava/lang/String;', ); - static final _getEnvironment = jni$_.ProtectedJniExtensions.lookup< + static final _get$environment = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -14633,18 +11974,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.lang.String getEnvironment()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getEnvironment() { - return _getEnvironment( - reference.pointer, _id_getEnvironment as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get environment { + return _get$environment(reference.pointer, _id_get$environment.pointer) + .object(); } - static final _id_setEnvironment = _class.instanceMethodId( + static final _id_set$environment = SentryOptions._class.instanceMethodId( r'setEnvironment', r'(Ljava/lang/String;)V', ); - static final _setEnvironment = jni$_.ProtectedJniExtensions.lookup< + static final _set$environment = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -14656,21 +11996,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setEnvironment(java.lang.String string)` - void setEnvironment( - jni$_.JString? string, - ) { + set environment(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setEnvironment(reference.pointer, _id_setEnvironment as jni$_.JMethodIDPtr, - _$string.pointer) + _set$environment( + reference.pointer, _id_set$environment.pointer, _$string.pointer) .check(); } - static final _id_getProxy = _class.instanceMethodId( + static final _id_get$proxy = SentryOptions._class.instanceMethodId( r'getProxy', r'()Lio/sentry/SentryOptions$Proxy;', ); - static final _getProxy = jni$_.ProtectedJniExtensions.lookup< + static final _get$proxy = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -14684,18 +12022,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.SentryOptions$Proxy getProxy()` /// The returned object must be released after use, by calling the [release] method. - SentryOptions$Proxy? getProxy() { - return _getProxy(reference.pointer, _id_getProxy as jni$_.JMethodIDPtr) - .object( - const $SentryOptions$Proxy$NullableType()); + SentryOptions$Proxy? get proxy { + return _get$proxy(reference.pointer, _id_get$proxy.pointer) + .object(); } - static final _id_setProxy = _class.instanceMethodId( + static final _id_set$proxy = SentryOptions._class.instanceMethodId( r'setProxy', r'(Lio/sentry/SentryOptions$Proxy;)V', ); - static final _setProxy = jni$_.ProtectedJniExtensions.lookup< + static final _set$proxy = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -14707,21 +12044,18 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setProxy(io.sentry.SentryOptions$Proxy proxy)` - void setProxy( - SentryOptions$Proxy? proxy, - ) { + set proxy(SentryOptions$Proxy? proxy) { final _$proxy = proxy?.reference ?? jni$_.jNullReference; - _setProxy(reference.pointer, _id_setProxy as jni$_.JMethodIDPtr, - _$proxy.pointer) + _set$proxy(reference.pointer, _id_set$proxy.pointer, _$proxy.pointer) .check(); } - static final _id_getSampleRate = _class.instanceMethodId( + static final _id_get$sampleRate = SentryOptions._class.instanceMethodId( r'getSampleRate', r'()Ljava/lang/Double;', ); - static final _getSampleRate = jni$_.ProtectedJniExtensions.lookup< + static final _get$sampleRate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -14735,18 +12069,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.lang.Double getSampleRate()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JDouble? getSampleRate() { - return _getSampleRate( - reference.pointer, _id_getSampleRate as jni$_.JMethodIDPtr) - .object(const jni$_.JDoubleNullableType()); + jni$_.JDouble? get sampleRate { + return _get$sampleRate(reference.pointer, _id_get$sampleRate.pointer) + .object(); } - static final _id_setSampleRate = _class.instanceMethodId( + static final _id_set$sampleRate = SentryOptions._class.instanceMethodId( r'setSampleRate', r'(Ljava/lang/Double;)V', ); - static final _setSampleRate = jni$_.ProtectedJniExtensions.lookup< + static final _set$sampleRate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -14758,21 +12091,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setSampleRate(java.lang.Double double)` - void setSampleRate( - jni$_.JDouble? double, - ) { + set sampleRate(jni$_.JDouble? double) { final _$double = double?.reference ?? jni$_.jNullReference; - _setSampleRate(reference.pointer, _id_setSampleRate as jni$_.JMethodIDPtr, - _$double.pointer) + _set$sampleRate( + reference.pointer, _id_set$sampleRate.pointer, _$double.pointer) .check(); } - static final _id_getTracesSampleRate = _class.instanceMethodId( + static final _id_get$tracesSampleRate = SentryOptions._class.instanceMethodId( r'getTracesSampleRate', r'()Ljava/lang/Double;', ); - static final _getTracesSampleRate = jni$_.ProtectedJniExtensions.lookup< + static final _get$tracesSampleRate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -14786,18 +12117,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.lang.Double getTracesSampleRate()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JDouble? getTracesSampleRate() { - return _getTracesSampleRate( - reference.pointer, _id_getTracesSampleRate as jni$_.JMethodIDPtr) - .object(const jni$_.JDoubleNullableType()); + jni$_.JDouble? get tracesSampleRate { + return _get$tracesSampleRate( + reference.pointer, _id_get$tracesSampleRate.pointer) + .object(); } - static final _id_setTracesSampleRate = _class.instanceMethodId( + static final _id_set$tracesSampleRate = SentryOptions._class.instanceMethodId( r'setTracesSampleRate', r'(Ljava/lang/Double;)V', ); - static final _setTracesSampleRate = jni$_.ProtectedJniExtensions.lookup< + static final _set$tracesSampleRate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -14809,21 +12140,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setTracesSampleRate(java.lang.Double double)` - void setTracesSampleRate( - jni$_.JDouble? double, - ) { + set tracesSampleRate(jni$_.JDouble? double) { final _$double = double?.reference ?? jni$_.jNullReference; - _setTracesSampleRate(reference.pointer, - _id_setTracesSampleRate as jni$_.JMethodIDPtr, _$double.pointer) + _set$tracesSampleRate(reference.pointer, _id_set$tracesSampleRate.pointer, + _$double.pointer) .check(); } - static final _id_getTracesSampler = _class.instanceMethodId( + static final _id_get$tracesSampler = SentryOptions._class.instanceMethodId( r'getTracesSampler', r'()Lio/sentry/SentryOptions$TracesSamplerCallback;', ); - static final _getTracesSampler = jni$_.ProtectedJniExtensions.lookup< + static final _get$tracesSampler = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -14837,19 +12166,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.SentryOptions$TracesSamplerCallback getTracesSampler()` /// The returned object must be released after use, by calling the [release] method. - SentryOptions$TracesSamplerCallback? getTracesSampler() { - return _getTracesSampler( - reference.pointer, _id_getTracesSampler as jni$_.JMethodIDPtr) - .object( - const $SentryOptions$TracesSamplerCallback$NullableType()); + SentryOptions$TracesSamplerCallback? get tracesSampler { + return _get$tracesSampler(reference.pointer, _id_get$tracesSampler.pointer) + .object(); } - static final _id_setTracesSampler = _class.instanceMethodId( + static final _id_set$tracesSampler = SentryOptions._class.instanceMethodId( r'setTracesSampler', r'(Lio/sentry/SentryOptions$TracesSamplerCallback;)V', ); - static final _setTracesSampler = jni$_.ProtectedJniExtensions.lookup< + static final _set$tracesSampler = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -14861,24 +12188,22 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setTracesSampler(io.sentry.SentryOptions$TracesSamplerCallback tracesSamplerCallback)` - void setTracesSampler( - SentryOptions$TracesSamplerCallback? tracesSamplerCallback, - ) { + set tracesSampler( + SentryOptions$TracesSamplerCallback? tracesSamplerCallback) { final _$tracesSamplerCallback = tracesSamplerCallback?.reference ?? jni$_.jNullReference; - _setTracesSampler( - reference.pointer, - _id_setTracesSampler as jni$_.JMethodIDPtr, + _set$tracesSampler(reference.pointer, _id_set$tracesSampler.pointer, _$tracesSamplerCallback.pointer) .check(); } - static final _id_getInternalTracesSampler = _class.instanceMethodId( + static final _id_get$internalTracesSampler = + SentryOptions._class.instanceMethodId( r'getInternalTracesSampler', r'()Lio/sentry/TracesSampler;', ); - static final _getInternalTracesSampler = jni$_.ProtectedJniExtensions.lookup< + static final _get$internalTracesSampler = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -14892,18 +12217,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.TracesSampler getInternalTracesSampler()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getInternalTracesSampler() { - return _getInternalTracesSampler(reference.pointer, - _id_getInternalTracesSampler as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get internalTracesSampler { + return _get$internalTracesSampler( + reference.pointer, _id_get$internalTracesSampler.pointer) + .object(); } - static final _id_getInAppExcludes = _class.instanceMethodId( + static final _id_get$inAppExcludes = SentryOptions._class.instanceMethodId( r'getInAppExcludes', r'()Ljava/util/List;', ); - static final _getInAppExcludes = jni$_.ProtectedJniExtensions.lookup< + static final _get$inAppExcludes = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -14917,14 +12242,12 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.util.List getInAppExcludes()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList getInAppExcludes() { - return _getInAppExcludes( - reference.pointer, _id_getInAppExcludes as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JStringNullableType())); + jni$_.JList get inAppExcludes { + return _get$inAppExcludes(reference.pointer, _id_get$inAppExcludes.pointer) + .object>(); } - static final _id_addInAppExclude = _class.instanceMethodId( + static final _id_addInAppExclude = SentryOptions._class.instanceMethodId( r'addInAppExclude', r'(Ljava/lang/String;)V', ); @@ -14945,17 +12268,17 @@ class SentryOptions extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - _addInAppExclude(reference.pointer, - _id_addInAppExclude as jni$_.JMethodIDPtr, _$string.pointer) + _addInAppExclude( + reference.pointer, _id_addInAppExclude.pointer, _$string.pointer) .check(); } - static final _id_getInAppIncludes = _class.instanceMethodId( + static final _id_get$inAppIncludes = SentryOptions._class.instanceMethodId( r'getInAppIncludes', r'()Ljava/util/List;', ); - static final _getInAppIncludes = jni$_.ProtectedJniExtensions.lookup< + static final _get$inAppIncludes = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -14969,14 +12292,12 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.util.List getInAppIncludes()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList getInAppIncludes() { - return _getInAppIncludes( - reference.pointer, _id_getInAppIncludes as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JStringNullableType())); + jni$_.JList get inAppIncludes { + return _get$inAppIncludes(reference.pointer, _id_get$inAppIncludes.pointer) + .object>(); } - static final _id_addInAppInclude = _class.instanceMethodId( + static final _id_addInAppInclude = SentryOptions._class.instanceMethodId( r'addInAppInclude', r'(Ljava/lang/String;)V', ); @@ -14997,17 +12318,17 @@ class SentryOptions extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - _addInAppInclude(reference.pointer, - _id_addInAppInclude as jni$_.JMethodIDPtr, _$string.pointer) + _addInAppInclude( + reference.pointer, _id_addInAppInclude.pointer, _$string.pointer) .check(); } - static final _id_getTransportFactory = _class.instanceMethodId( + static final _id_get$transportFactory = SentryOptions._class.instanceMethodId( r'getTransportFactory', r'()Lio/sentry/ITransportFactory;', ); - static final _getTransportFactory = jni$_.ProtectedJniExtensions.lookup< + static final _get$transportFactory = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -15021,18 +12342,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.ITransportFactory getTransportFactory()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getTransportFactory() { - return _getTransportFactory( - reference.pointer, _id_getTransportFactory as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get transportFactory { + return _get$transportFactory( + reference.pointer, _id_get$transportFactory.pointer) + .object(); } - static final _id_setTransportFactory = _class.instanceMethodId( + static final _id_set$transportFactory = SentryOptions._class.instanceMethodId( r'setTransportFactory', r'(Lio/sentry/ITransportFactory;)V', ); - static final _setTransportFactory = jni$_.ProtectedJniExtensions.lookup< + static final _set$transportFactory = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -15044,24 +12365,20 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setTransportFactory(io.sentry.ITransportFactory iTransportFactory)` - void setTransportFactory( - jni$_.JObject? iTransportFactory, - ) { + set transportFactory(jni$_.JObject? iTransportFactory) { final _$iTransportFactory = iTransportFactory?.reference ?? jni$_.jNullReference; - _setTransportFactory( - reference.pointer, - _id_setTransportFactory as jni$_.JMethodIDPtr, + _set$transportFactory(reference.pointer, _id_set$transportFactory.pointer, _$iTransportFactory.pointer) .check(); } - static final _id_getDist = _class.instanceMethodId( + static final _id_get$dist = SentryOptions._class.instanceMethodId( r'getDist', r'()Ljava/lang/String;', ); - static final _getDist = jni$_.ProtectedJniExtensions.lookup< + static final _get$dist = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -15075,17 +12392,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.lang.String getDist()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getDist() { - return _getDist(reference.pointer, _id_getDist as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get dist { + return _get$dist(reference.pointer, _id_get$dist.pointer) + .object(); } - static final _id_setDist = _class.instanceMethodId( + static final _id_set$dist = SentryOptions._class.instanceMethodId( r'setDist', r'(Ljava/lang/String;)V', ); - static final _setDist = jni$_.ProtectedJniExtensions.lookup< + static final _set$dist = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -15097,21 +12414,18 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setDist(java.lang.String string)` - void setDist( - jni$_.JString? string, - ) { + set dist(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setDist(reference.pointer, _id_setDist as jni$_.JMethodIDPtr, - _$string.pointer) + _set$dist(reference.pointer, _id_set$dist.pointer, _$string.pointer) .check(); } - static final _id_getTransportGate = _class.instanceMethodId( + static final _id_get$transportGate = SentryOptions._class.instanceMethodId( r'getTransportGate', r'()Lio/sentry/transport/ITransportGate;', ); - static final _getTransportGate = jni$_.ProtectedJniExtensions.lookup< + static final _get$transportGate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -15125,18 +12439,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.transport.ITransportGate getTransportGate()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getTransportGate() { - return _getTransportGate( - reference.pointer, _id_getTransportGate as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get transportGate { + return _get$transportGate(reference.pointer, _id_get$transportGate.pointer) + .object(); } - static final _id_setTransportGate = _class.instanceMethodId( + static final _id_set$transportGate = SentryOptions._class.instanceMethodId( r'setTransportGate', r'(Lio/sentry/transport/ITransportGate;)V', ); - static final _setTransportGate = jni$_.ProtectedJniExtensions.lookup< + static final _set$transportGate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -15148,23 +12461,20 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setTransportGate(io.sentry.transport.ITransportGate iTransportGate)` - void setTransportGate( - jni$_.JObject? iTransportGate, - ) { + set transportGate(jni$_.JObject? iTransportGate) { final _$iTransportGate = iTransportGate?.reference ?? jni$_.jNullReference; - _setTransportGate( - reference.pointer, - _id_setTransportGate as jni$_.JMethodIDPtr, + _set$transportGate(reference.pointer, _id_set$transportGate.pointer, _$iTransportGate.pointer) .check(); } - static final _id_isAttachStacktrace = _class.instanceMethodId( + static final _id_get$isAttachStacktrace = + SentryOptions._class.instanceMethodId( r'isAttachStacktrace', r'()Z', ); - static final _isAttachStacktrace = jni$_.ProtectedJniExtensions.lookup< + static final _get$isAttachStacktrace = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -15177,18 +12487,18 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isAttachStacktrace()` - bool isAttachStacktrace() { - return _isAttachStacktrace( - reference.pointer, _id_isAttachStacktrace as jni$_.JMethodIDPtr) + core$_.bool get isAttachStacktrace { + return _get$isAttachStacktrace( + reference.pointer, _id_get$isAttachStacktrace.pointer) .boolean; } - static final _id_setAttachStacktrace = _class.instanceMethodId( + static final _id_set$attachStacktrace = SentryOptions._class.instanceMethodId( r'setAttachStacktrace', r'(Z)V', ); - static final _setAttachStacktrace = jni$_.ProtectedJniExtensions.lookup< + static final _set$attachStacktrace = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -15196,23 +12506,21 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setAttachStacktrace(boolean z)` - void setAttachStacktrace( - bool z, - ) { - _setAttachStacktrace(reference.pointer, - _id_setAttachStacktrace as jni$_.JMethodIDPtr, z ? 1 : 0) + set attachStacktrace(core$_.bool z) { + _set$attachStacktrace( + reference.pointer, _id_set$attachStacktrace.pointer, z ? 1 : 0) .check(); } - static final _id_isAttachThreads = _class.instanceMethodId( + static final _id_get$isAttachThreads = SentryOptions._class.instanceMethodId( r'isAttachThreads', r'()Z', ); - static final _isAttachThreads = jni$_.ProtectedJniExtensions.lookup< + static final _get$isAttachThreads = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -15225,18 +12533,18 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isAttachThreads()` - bool isAttachThreads() { - return _isAttachThreads( - reference.pointer, _id_isAttachThreads as jni$_.JMethodIDPtr) + core$_.bool get isAttachThreads { + return _get$isAttachThreads( + reference.pointer, _id_get$isAttachThreads.pointer) .boolean; } - static final _id_setAttachThreads = _class.instanceMethodId( + static final _id_set$attachThreads = SentryOptions._class.instanceMethodId( r'setAttachThreads', r'(Z)V', ); - static final _setAttachThreads = jni$_.ProtectedJniExtensions.lookup< + static final _set$attachThreads = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -15244,23 +12552,22 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setAttachThreads(boolean z)` - void setAttachThreads( - bool z, - ) { - _setAttachThreads(reference.pointer, - _id_setAttachThreads as jni$_.JMethodIDPtr, z ? 1 : 0) + set attachThreads(core$_.bool z) { + _set$attachThreads( + reference.pointer, _id_set$attachThreads.pointer, z ? 1 : 0) .check(); } - static final _id_isEnableAutoSessionTracking = _class.instanceMethodId( + static final _id_get$isEnableAutoSessionTracking = + SentryOptions._class.instanceMethodId( r'isEnableAutoSessionTracking', r'()Z', ); - static final _isEnableAutoSessionTracking = + static final _get$isEnableAutoSessionTracking = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -15274,18 +12581,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isEnableAutoSessionTracking()` - bool isEnableAutoSessionTracking() { - return _isEnableAutoSessionTracking(reference.pointer, - _id_isEnableAutoSessionTracking as jni$_.JMethodIDPtr) + core$_.bool get isEnableAutoSessionTracking { + return _get$isEnableAutoSessionTracking( + reference.pointer, _id_get$isEnableAutoSessionTracking.pointer) .boolean; } - static final _id_setEnableAutoSessionTracking = _class.instanceMethodId( + static final _id_set$enableAutoSessionTracking = + SentryOptions._class.instanceMethodId( r'setEnableAutoSessionTracking', r'(Z)V', ); - static final _setEnableAutoSessionTracking = + static final _set$enableAutoSessionTracking = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -15293,23 +12601,21 @@ class SentryOptions extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableAutoSessionTracking(boolean z)` - void setEnableAutoSessionTracking( - bool z, - ) { - _setEnableAutoSessionTracking(reference.pointer, - _id_setEnableAutoSessionTracking as jni$_.JMethodIDPtr, z ? 1 : 0) + set enableAutoSessionTracking(core$_.bool z) { + _set$enableAutoSessionTracking(reference.pointer, + _id_set$enableAutoSessionTracking.pointer, z ? 1 : 0) .check(); } - static final _id_getServerName = _class.instanceMethodId( + static final _id_get$serverName = SentryOptions._class.instanceMethodId( r'getServerName', r'()Ljava/lang/String;', ); - static final _getServerName = jni$_.ProtectedJniExtensions.lookup< + static final _get$serverName = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -15323,18 +12629,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.lang.String getServerName()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getServerName() { - return _getServerName( - reference.pointer, _id_getServerName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get serverName { + return _get$serverName(reference.pointer, _id_get$serverName.pointer) + .object(); } - static final _id_setServerName = _class.instanceMethodId( + static final _id_set$serverName = SentryOptions._class.instanceMethodId( r'setServerName', r'(Ljava/lang/String;)V', ); - static final _setServerName = jni$_.ProtectedJniExtensions.lookup< + static final _set$serverName = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -15346,21 +12651,20 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setServerName(java.lang.String string)` - void setServerName( - jni$_.JString? string, - ) { + set serverName(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setServerName(reference.pointer, _id_setServerName as jni$_.JMethodIDPtr, - _$string.pointer) + _set$serverName( + reference.pointer, _id_set$serverName.pointer, _$string.pointer) .check(); } - static final _id_isAttachServerName = _class.instanceMethodId( + static final _id_get$isAttachServerName = + SentryOptions._class.instanceMethodId( r'isAttachServerName', r'()Z', ); - static final _isAttachServerName = jni$_.ProtectedJniExtensions.lookup< + static final _get$isAttachServerName = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -15373,18 +12677,18 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isAttachServerName()` - bool isAttachServerName() { - return _isAttachServerName( - reference.pointer, _id_isAttachServerName as jni$_.JMethodIDPtr) + core$_.bool get isAttachServerName { + return _get$isAttachServerName( + reference.pointer, _id_get$isAttachServerName.pointer) .boolean; } - static final _id_setAttachServerName = _class.instanceMethodId( + static final _id_set$attachServerName = SentryOptions._class.instanceMethodId( r'setAttachServerName', r'(Z)V', ); - static final _setAttachServerName = jni$_.ProtectedJniExtensions.lookup< + static final _set$attachServerName = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -15392,23 +12696,22 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setAttachServerName(boolean z)` - void setAttachServerName( - bool z, - ) { - _setAttachServerName(reference.pointer, - _id_setAttachServerName as jni$_.JMethodIDPtr, z ? 1 : 0) + set attachServerName(core$_.bool z) { + _set$attachServerName( + reference.pointer, _id_set$attachServerName.pointer, z ? 1 : 0) .check(); } - static final _id_getSessionTrackingIntervalMillis = _class.instanceMethodId( + static final _id_get$sessionTrackingIntervalMillis = + SentryOptions._class.instanceMethodId( r'getSessionTrackingIntervalMillis', r'()J', ); - static final _getSessionTrackingIntervalMillis = + static final _get$sessionTrackingIntervalMillis = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -15422,18 +12725,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public long getSessionTrackingIntervalMillis()` - int getSessionTrackingIntervalMillis() { - return _getSessionTrackingIntervalMillis(reference.pointer, - _id_getSessionTrackingIntervalMillis as jni$_.JMethodIDPtr) + core$_.int get sessionTrackingIntervalMillis { + return _get$sessionTrackingIntervalMillis( + reference.pointer, _id_get$sessionTrackingIntervalMillis.pointer) .long; } - static final _id_setSessionTrackingIntervalMillis = _class.instanceMethodId( + static final _id_set$sessionTrackingIntervalMillis = + SentryOptions._class.instanceMethodId( r'setSessionTrackingIntervalMillis', r'(J)V', ); - static final _setSessionTrackingIntervalMillis = + static final _set$sessionTrackingIntervalMillis = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -15441,23 +12745,21 @@ class SentryOptions extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setSessionTrackingIntervalMillis(long j)` - void setSessionTrackingIntervalMillis( - int j, - ) { - _setSessionTrackingIntervalMillis(reference.pointer, - _id_setSessionTrackingIntervalMillis as jni$_.JMethodIDPtr, j) + set sessionTrackingIntervalMillis(core$_.int j) { + _set$sessionTrackingIntervalMillis( + reference.pointer, _id_set$sessionTrackingIntervalMillis.pointer, j) .check(); } - static final _id_getDistinctId = _class.instanceMethodId( + static final _id_get$distinctId = SentryOptions._class.instanceMethodId( r'getDistinctId', r'()Ljava/lang/String;', ); - static final _getDistinctId = jni$_.ProtectedJniExtensions.lookup< + static final _get$distinctId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -15471,18 +12773,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.lang.String getDistinctId()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getDistinctId() { - return _getDistinctId( - reference.pointer, _id_getDistinctId as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get distinctId { + return _get$distinctId(reference.pointer, _id_get$distinctId.pointer) + .object(); } - static final _id_setDistinctId = _class.instanceMethodId( + static final _id_set$distinctId = SentryOptions._class.instanceMethodId( r'setDistinctId', r'(Ljava/lang/String;)V', ); - static final _setDistinctId = jni$_.ProtectedJniExtensions.lookup< + static final _set$distinctId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -15494,21 +12795,20 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setDistinctId(java.lang.String string)` - void setDistinctId( - jni$_.JString? string, - ) { + set distinctId(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setDistinctId(reference.pointer, _id_setDistinctId as jni$_.JMethodIDPtr, - _$string.pointer) + _set$distinctId( + reference.pointer, _id_set$distinctId.pointer, _$string.pointer) .check(); } - static final _id_getFlushTimeoutMillis = _class.instanceMethodId( + static final _id_get$flushTimeoutMillis = + SentryOptions._class.instanceMethodId( r'getFlushTimeoutMillis', r'()J', ); - static final _getFlushTimeoutMillis = jni$_.ProtectedJniExtensions.lookup< + static final _get$flushTimeoutMillis = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -15521,18 +12821,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public long getFlushTimeoutMillis()` - int getFlushTimeoutMillis() { - return _getFlushTimeoutMillis( - reference.pointer, _id_getFlushTimeoutMillis as jni$_.JMethodIDPtr) + core$_.int get flushTimeoutMillis { + return _get$flushTimeoutMillis( + reference.pointer, _id_get$flushTimeoutMillis.pointer) .long; } - static final _id_setFlushTimeoutMillis = _class.instanceMethodId( + static final _id_set$flushTimeoutMillis = + SentryOptions._class.instanceMethodId( r'setFlushTimeoutMillis', r'(J)V', ); - static final _setFlushTimeoutMillis = jni$_.ProtectedJniExtensions.lookup< + static final _set$flushTimeoutMillis = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -15540,23 +12841,22 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setFlushTimeoutMillis(long j)` - void setFlushTimeoutMillis( - int j, - ) { - _setFlushTimeoutMillis(reference.pointer, - _id_setFlushTimeoutMillis as jni$_.JMethodIDPtr, j) + set flushTimeoutMillis(core$_.int j) { + _set$flushTimeoutMillis( + reference.pointer, _id_set$flushTimeoutMillis.pointer, j) .check(); } - static final _id_isEnableUncaughtExceptionHandler = _class.instanceMethodId( + static final _id_get$isEnableUncaughtExceptionHandler = + SentryOptions._class.instanceMethodId( r'isEnableUncaughtExceptionHandler', r'()Z', ); - static final _isEnableUncaughtExceptionHandler = + static final _get$isEnableUncaughtExceptionHandler = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -15570,18 +12870,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isEnableUncaughtExceptionHandler()` - bool isEnableUncaughtExceptionHandler() { - return _isEnableUncaughtExceptionHandler(reference.pointer, - _id_isEnableUncaughtExceptionHandler as jni$_.JMethodIDPtr) + core$_.bool get isEnableUncaughtExceptionHandler { + return _get$isEnableUncaughtExceptionHandler( + reference.pointer, _id_get$isEnableUncaughtExceptionHandler.pointer) .boolean; } - static final _id_setEnableUncaughtExceptionHandler = _class.instanceMethodId( + static final _id_set$enableUncaughtExceptionHandler = + SentryOptions._class.instanceMethodId( r'setEnableUncaughtExceptionHandler', r'(Z)V', ); - static final _setEnableUncaughtExceptionHandler = + static final _set$enableUncaughtExceptionHandler = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -15589,49 +12890,48 @@ class SentryOptions extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableUncaughtExceptionHandler(boolean z)` - void setEnableUncaughtExceptionHandler( - bool z, - ) { - _setEnableUncaughtExceptionHandler( - reference.pointer, - _id_setEnableUncaughtExceptionHandler as jni$_.JMethodIDPtr, - z ? 1 : 0) + set enableUncaughtExceptionHandler(core$_.bool z) { + _set$enableUncaughtExceptionHandler(reference.pointer, + _id_set$enableUncaughtExceptionHandler.pointer, z ? 1 : 0) .check(); } - static final _id_isPrintUncaughtStackTrace = _class.instanceMethodId( + static final _id_get$isPrintUncaughtStackTrace = + SentryOptions._class.instanceMethodId( r'isPrintUncaughtStackTrace', r'()Z', ); - static final _isPrintUncaughtStackTrace = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$isPrintUncaughtStackTrace = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public boolean isPrintUncaughtStackTrace()` - bool isPrintUncaughtStackTrace() { - return _isPrintUncaughtStackTrace(reference.pointer, - _id_isPrintUncaughtStackTrace as jni$_.JMethodIDPtr) + core$_.bool get isPrintUncaughtStackTrace { + return _get$isPrintUncaughtStackTrace( + reference.pointer, _id_get$isPrintUncaughtStackTrace.pointer) .boolean; } - static final _id_setPrintUncaughtStackTrace = _class.instanceMethodId( + static final _id_set$printUncaughtStackTrace = + SentryOptions._class.instanceMethodId( r'setPrintUncaughtStackTrace', r'(Z)V', ); - static final _setPrintUncaughtStackTrace = + static final _set$printUncaughtStackTrace = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -15639,23 +12939,21 @@ class SentryOptions extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setPrintUncaughtStackTrace(boolean z)` - void setPrintUncaughtStackTrace( - bool z, - ) { - _setPrintUncaughtStackTrace(reference.pointer, - _id_setPrintUncaughtStackTrace as jni$_.JMethodIDPtr, z ? 1 : 0) + set printUncaughtStackTrace(core$_.bool z) { + _set$printUncaughtStackTrace(reference.pointer, + _id_set$printUncaughtStackTrace.pointer, z ? 1 : 0) .check(); } - static final _id_getExecutorService = _class.instanceMethodId( + static final _id_get$executorService = SentryOptions._class.instanceMethodId( r'getExecutorService', r'()Lio/sentry/ISentryExecutorService;', ); - static final _getExecutorService = jni$_.ProtectedJniExtensions.lookup< + static final _get$executorService = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -15669,18 +12967,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.ISentryExecutorService getExecutorService()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getExecutorService() { - return _getExecutorService( - reference.pointer, _id_getExecutorService as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get executorService { + return _get$executorService( + reference.pointer, _id_get$executorService.pointer) + .object(); } - static final _id_setExecutorService = _class.instanceMethodId( + static final _id_set$executorService = SentryOptions._class.instanceMethodId( r'setExecutorService', r'(Lio/sentry/ISentryExecutorService;)V', ); - static final _setExecutorService = jni$_.ProtectedJniExtensions.lookup< + static final _set$executorService = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -15692,23 +12990,20 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setExecutorService(io.sentry.ISentryExecutorService iSentryExecutorService)` - void setExecutorService( - jni$_.JObject iSentryExecutorService, - ) { + set executorService(jni$_.JObject iSentryExecutorService) { final _$iSentryExecutorService = iSentryExecutorService.reference; - _setExecutorService( - reference.pointer, - _id_setExecutorService as jni$_.JMethodIDPtr, + _set$executorService(reference.pointer, _id_set$executorService.pointer, _$iSentryExecutorService.pointer) .check(); } - static final _id_getConnectionTimeoutMillis = _class.instanceMethodId( + static final _id_get$connectionTimeoutMillis = + SentryOptions._class.instanceMethodId( r'getConnectionTimeoutMillis', r'()I', ); - static final _getConnectionTimeoutMillis = + static final _get$connectionTimeoutMillis = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -15722,18 +13017,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public int getConnectionTimeoutMillis()` - int getConnectionTimeoutMillis() { - return _getConnectionTimeoutMillis(reference.pointer, - _id_getConnectionTimeoutMillis as jni$_.JMethodIDPtr) + core$_.int get connectionTimeoutMillis { + return _get$connectionTimeoutMillis( + reference.pointer, _id_get$connectionTimeoutMillis.pointer) .integer; } - static final _id_setConnectionTimeoutMillis = _class.instanceMethodId( + static final _id_set$connectionTimeoutMillis = + SentryOptions._class.instanceMethodId( r'setConnectionTimeoutMillis', r'(I)V', ); - static final _setConnectionTimeoutMillis = + static final _set$connectionTimeoutMillis = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -15741,23 +13037,22 @@ class SentryOptions extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setConnectionTimeoutMillis(int i)` - void setConnectionTimeoutMillis( - int i, - ) { - _setConnectionTimeoutMillis(reference.pointer, - _id_setConnectionTimeoutMillis as jni$_.JMethodIDPtr, i) + set connectionTimeoutMillis(core$_.int i) { + _set$connectionTimeoutMillis( + reference.pointer, _id_set$connectionTimeoutMillis.pointer, i) .check(); } - static final _id_getReadTimeoutMillis = _class.instanceMethodId( + static final _id_get$readTimeoutMillis = + SentryOptions._class.instanceMethodId( r'getReadTimeoutMillis', r'()I', ); - static final _getReadTimeoutMillis = jni$_.ProtectedJniExtensions.lookup< + static final _get$readTimeoutMillis = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -15770,18 +13065,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public int getReadTimeoutMillis()` - int getReadTimeoutMillis() { - return _getReadTimeoutMillis( - reference.pointer, _id_getReadTimeoutMillis as jni$_.JMethodIDPtr) + core$_.int get readTimeoutMillis { + return _get$readTimeoutMillis( + reference.pointer, _id_get$readTimeoutMillis.pointer) .integer; } - static final _id_setReadTimeoutMillis = _class.instanceMethodId( + static final _id_set$readTimeoutMillis = + SentryOptions._class.instanceMethodId( r'setReadTimeoutMillis', r'(I)V', ); - static final _setReadTimeoutMillis = jni$_.ProtectedJniExtensions.lookup< + static final _set$readTimeoutMillis = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -15789,23 +13085,22 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setReadTimeoutMillis(int i)` - void setReadTimeoutMillis( - int i, - ) { - _setReadTimeoutMillis(reference.pointer, - _id_setReadTimeoutMillis as jni$_.JMethodIDPtr, i) + set readTimeoutMillis(core$_.int i) { + _set$readTimeoutMillis( + reference.pointer, _id_set$readTimeoutMillis.pointer, i) .check(); } - static final _id_getEnvelopeDiskCache = _class.instanceMethodId( + static final _id_get$envelopeDiskCache = + SentryOptions._class.instanceMethodId( r'getEnvelopeDiskCache', r'()Lio/sentry/cache/IEnvelopeCache;', ); - static final _getEnvelopeDiskCache = jni$_.ProtectedJniExtensions.lookup< + static final _get$envelopeDiskCache = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -15819,18 +13114,19 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.cache.IEnvelopeCache getEnvelopeDiskCache()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getEnvelopeDiskCache() { - return _getEnvelopeDiskCache( - reference.pointer, _id_getEnvelopeDiskCache as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get envelopeDiskCache { + return _get$envelopeDiskCache( + reference.pointer, _id_get$envelopeDiskCache.pointer) + .object(); } - static final _id_setEnvelopeDiskCache = _class.instanceMethodId( + static final _id_set$envelopeDiskCache = + SentryOptions._class.instanceMethodId( r'setEnvelopeDiskCache', r'(Lio/sentry/cache/IEnvelopeCache;)V', ); - static final _setEnvelopeDiskCache = jni$_.ProtectedJniExtensions.lookup< + static final _set$envelopeDiskCache = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -15842,23 +13138,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setEnvelopeDiskCache(io.sentry.cache.IEnvelopeCache iEnvelopeCache)` - void setEnvelopeDiskCache( - jni$_.JObject? iEnvelopeCache, - ) { + set envelopeDiskCache(jni$_.JObject? iEnvelopeCache) { final _$iEnvelopeCache = iEnvelopeCache?.reference ?? jni$_.jNullReference; - _setEnvelopeDiskCache( - reference.pointer, - _id_setEnvelopeDiskCache as jni$_.JMethodIDPtr, + _set$envelopeDiskCache(reference.pointer, _id_set$envelopeDiskCache.pointer, _$iEnvelopeCache.pointer) .check(); } - static final _id_getMaxQueueSize = _class.instanceMethodId( + static final _id_get$maxQueueSize = SentryOptions._class.instanceMethodId( r'getMaxQueueSize', r'()I', ); - static final _getMaxQueueSize = jni$_.ProtectedJniExtensions.lookup< + static final _get$maxQueueSize = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -15871,18 +13163,17 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public int getMaxQueueSize()` - int getMaxQueueSize() { - return _getMaxQueueSize( - reference.pointer, _id_getMaxQueueSize as jni$_.JMethodIDPtr) + core$_.int get maxQueueSize { + return _get$maxQueueSize(reference.pointer, _id_get$maxQueueSize.pointer) .integer; } - static final _id_setMaxQueueSize = _class.instanceMethodId( + static final _id_set$maxQueueSize = SentryOptions._class.instanceMethodId( r'setMaxQueueSize', r'(I)V', ); - static final _setMaxQueueSize = jni$_.ProtectedJniExtensions.lookup< + static final _set$maxQueueSize = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -15890,23 +13181,20 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setMaxQueueSize(int i)` - void setMaxQueueSize( - int i, - ) { - _setMaxQueueSize( - reference.pointer, _id_setMaxQueueSize as jni$_.JMethodIDPtr, i) + set maxQueueSize(core$_.int i) { + _set$maxQueueSize(reference.pointer, _id_set$maxQueueSize.pointer, i) .check(); } - static final _id_getSdkVersion = _class.instanceMethodId( + static final _id_get$sdkVersion = SentryOptions._class.instanceMethodId( r'getSdkVersion', r'()Lio/sentry/protocol/SdkVersion;', ); - static final _getSdkVersion = jni$_.ProtectedJniExtensions.lookup< + static final _get$sdkVersion = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -15920,18 +13208,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.protocol.SdkVersion getSdkVersion()` /// The returned object must be released after use, by calling the [release] method. - SdkVersion? getSdkVersion() { - return _getSdkVersion( - reference.pointer, _id_getSdkVersion as jni$_.JMethodIDPtr) - .object(const $SdkVersion$NullableType()); + SdkVersion? get sdkVersion { + return _get$sdkVersion(reference.pointer, _id_get$sdkVersion.pointer) + .object(); } - static final _id_getSslSocketFactory = _class.instanceMethodId( + static final _id_get$sslSocketFactory = SentryOptions._class.instanceMethodId( r'getSslSocketFactory', r'()Ljavax/net/ssl/SSLSocketFactory;', ); - static final _getSslSocketFactory = jni$_.ProtectedJniExtensions.lookup< + static final _get$sslSocketFactory = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -15945,18 +13232,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public javax.net.ssl.SSLSocketFactory getSslSocketFactory()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getSslSocketFactory() { - return _getSslSocketFactory( - reference.pointer, _id_getSslSocketFactory as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get sslSocketFactory { + return _get$sslSocketFactory( + reference.pointer, _id_get$sslSocketFactory.pointer) + .object(); } - static final _id_setSslSocketFactory = _class.instanceMethodId( + static final _id_set$sslSocketFactory = SentryOptions._class.instanceMethodId( r'setSslSocketFactory', r'(Ljavax/net/ssl/SSLSocketFactory;)V', ); - static final _setSslSocketFactory = jni$_.ProtectedJniExtensions.lookup< + static final _set$sslSocketFactory = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -15968,24 +13255,20 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setSslSocketFactory(javax.net.ssl.SSLSocketFactory sSLSocketFactory)` - void setSslSocketFactory( - jni$_.JObject? sSLSocketFactory, - ) { + set sslSocketFactory(jni$_.JObject? sSLSocketFactory) { final _$sSLSocketFactory = sSLSocketFactory?.reference ?? jni$_.jNullReference; - _setSslSocketFactory( - reference.pointer, - _id_setSslSocketFactory as jni$_.JMethodIDPtr, + _set$sslSocketFactory(reference.pointer, _id_set$sslSocketFactory.pointer, _$sSLSocketFactory.pointer) .check(); } - static final _id_setSdkVersion = _class.instanceMethodId( + static final _id_set$sdkVersion = SentryOptions._class.instanceMethodId( r'setSdkVersion', r'(Lio/sentry/protocol/SdkVersion;)V', ); - static final _setSdkVersion = jni$_.ProtectedJniExtensions.lookup< + static final _set$sdkVersion = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -15997,21 +13280,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setSdkVersion(io.sentry.protocol.SdkVersion sdkVersion)` - void setSdkVersion( - SdkVersion? sdkVersion, - ) { + set sdkVersion(SdkVersion? sdkVersion) { final _$sdkVersion = sdkVersion?.reference ?? jni$_.jNullReference; - _setSdkVersion(reference.pointer, _id_setSdkVersion as jni$_.JMethodIDPtr, - _$sdkVersion.pointer) + _set$sdkVersion( + reference.pointer, _id_set$sdkVersion.pointer, _$sdkVersion.pointer) .check(); } - static final _id_isSendDefaultPii = _class.instanceMethodId( + static final _id_get$isSendDefaultPii = SentryOptions._class.instanceMethodId( r'isSendDefaultPii', r'()Z', ); - static final _isSendDefaultPii = jni$_.ProtectedJniExtensions.lookup< + static final _get$isSendDefaultPii = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -16024,18 +13305,18 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isSendDefaultPii()` - bool isSendDefaultPii() { - return _isSendDefaultPii( - reference.pointer, _id_isSendDefaultPii as jni$_.JMethodIDPtr) + core$_.bool get isSendDefaultPii { + return _get$isSendDefaultPii( + reference.pointer, _id_get$isSendDefaultPii.pointer) .boolean; } - static final _id_setSendDefaultPii = _class.instanceMethodId( + static final _id_set$sendDefaultPii = SentryOptions._class.instanceMethodId( r'setSendDefaultPii', r'(Z)V', ); - static final _setSendDefaultPii = jni$_.ProtectedJniExtensions.lookup< + static final _set$sendDefaultPii = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -16043,18 +13324,16 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setSendDefaultPii(boolean z)` - void setSendDefaultPii( - bool z, - ) { - _setSendDefaultPii(reference.pointer, - _id_setSendDefaultPii as jni$_.JMethodIDPtr, z ? 1 : 0) + set sendDefaultPii(core$_.bool z) { + _set$sendDefaultPii( + reference.pointer, _id_set$sendDefaultPii.pointer, z ? 1 : 0) .check(); } - static final _id_addScopeObserver = _class.instanceMethodId( + static final _id_addScopeObserver = SentryOptions._class.instanceMethodId( r'addScopeObserver', r'(Lio/sentry/IScopeObserver;)V', ); @@ -16075,19 +13354,17 @@ class SentryOptions extends jni$_.JObject { jni$_.JObject iScopeObserver, ) { final _$iScopeObserver = iScopeObserver.reference; - _addScopeObserver( - reference.pointer, - _id_addScopeObserver as jni$_.JMethodIDPtr, + _addScopeObserver(reference.pointer, _id_addScopeObserver.pointer, _$iScopeObserver.pointer) .check(); } - static final _id_getScopeObservers = _class.instanceMethodId( + static final _id_get$scopeObservers = SentryOptions._class.instanceMethodId( r'getScopeObservers', r'()Ljava/util/List;', ); - static final _getScopeObservers = jni$_.ProtectedJniExtensions.lookup< + static final _get$scopeObservers = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -16101,14 +13378,14 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.util.List getScopeObservers()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList getScopeObservers() { - return _getScopeObservers( - reference.pointer, _id_getScopeObservers as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectNullableType())); + jni$_.JList get scopeObservers { + return _get$scopeObservers( + reference.pointer, _id_get$scopeObservers.pointer) + .object>(); } - static final _id_findPersistingScopeObserver = _class.instanceMethodId( + static final _id_findPersistingScopeObserver = + SentryOptions._class.instanceMethodId( r'findPersistingScopeObserver', r'()Lio/sentry/cache/PersistingScopeObserver;', ); @@ -16129,12 +13406,12 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.cache.PersistingScopeObserver findPersistingScopeObserver()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? findPersistingScopeObserver() { - return _findPersistingScopeObserver(reference.pointer, - _id_findPersistingScopeObserver as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _findPersistingScopeObserver( + reference.pointer, _id_findPersistingScopeObserver.pointer) + .object(); } - static final _id_addOptionsObserver = _class.instanceMethodId( + static final _id_addOptionsObserver = SentryOptions._class.instanceMethodId( r'addOptionsObserver', r'(Lio/sentry/IOptionsObserver;)V', ); @@ -16155,19 +13432,17 @@ class SentryOptions extends jni$_.JObject { jni$_.JObject iOptionsObserver, ) { final _$iOptionsObserver = iOptionsObserver.reference; - _addOptionsObserver( - reference.pointer, - _id_addOptionsObserver as jni$_.JMethodIDPtr, + _addOptionsObserver(reference.pointer, _id_addOptionsObserver.pointer, _$iOptionsObserver.pointer) .check(); } - static final _id_getOptionsObservers = _class.instanceMethodId( + static final _id_get$optionsObservers = SentryOptions._class.instanceMethodId( r'getOptionsObservers', r'()Ljava/util/List;', ); - static final _getOptionsObservers = jni$_.ProtectedJniExtensions.lookup< + static final _get$optionsObservers = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -16181,19 +13456,19 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.util.List getOptionsObservers()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList getOptionsObservers() { - return _getOptionsObservers( - reference.pointer, _id_getOptionsObservers as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectNullableType())); + jni$_.JList get optionsObservers { + return _get$optionsObservers( + reference.pointer, _id_get$optionsObservers.pointer) + .object>(); } - static final _id_isEnableExternalConfiguration = _class.instanceMethodId( + static final _id_get$isEnableExternalConfiguration = + SentryOptions._class.instanceMethodId( r'isEnableExternalConfiguration', r'()Z', ); - static final _isEnableExternalConfiguration = + static final _get$isEnableExternalConfiguration = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -16207,18 +13482,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isEnableExternalConfiguration()` - bool isEnableExternalConfiguration() { - return _isEnableExternalConfiguration(reference.pointer, - _id_isEnableExternalConfiguration as jni$_.JMethodIDPtr) + core$_.bool get isEnableExternalConfiguration { + return _get$isEnableExternalConfiguration( + reference.pointer, _id_get$isEnableExternalConfiguration.pointer) .boolean; } - static final _id_setEnableExternalConfiguration = _class.instanceMethodId( + static final _id_set$enableExternalConfiguration = + SentryOptions._class.instanceMethodId( r'setEnableExternalConfiguration', r'(Z)V', ); - static final _setEnableExternalConfiguration = + static final _set$enableExternalConfiguration = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -16226,23 +13502,21 @@ class SentryOptions extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableExternalConfiguration(boolean z)` - void setEnableExternalConfiguration( - bool z, - ) { - _setEnableExternalConfiguration(reference.pointer, - _id_setEnableExternalConfiguration as jni$_.JMethodIDPtr, z ? 1 : 0) + set enableExternalConfiguration(core$_.bool z) { + _set$enableExternalConfiguration(reference.pointer, + _id_set$enableExternalConfiguration.pointer, z ? 1 : 0) .check(); } - static final _id_getTags = _class.instanceMethodId( + static final _id_get$tags = SentryOptions._class.instanceMethodId( r'getTags', r'()Ljava/util/Map;', ); - static final _getTags = jni$_.ProtectedJniExtensions.lookup< + static final _get$tags = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -16256,14 +13530,12 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.util.Map getTags()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JMap getTags() { - return _getTags(reference.pointer, _id_getTags as jni$_.JMethodIDPtr) - .object>( - const jni$_.JMapType( - jni$_.JStringNullableType(), jni$_.JStringNullableType())); + jni$_.JMap get tags { + return _get$tags(reference.pointer, _id_get$tags.pointer) + .object>(); } - static final _id_setTag = _class.instanceMethodId( + static final _id_setTag = SentryOptions._class.instanceMethodId( r'setTag', r'(Ljava/lang/String;Ljava/lang/String;)V', ); @@ -16292,17 +13564,18 @@ class SentryOptions extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _setTag(reference.pointer, _id_setTag as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) + _setTag(reference.pointer, _id_setTag.pointer, _$string.pointer, + _$string1.pointer) .check(); } - static final _id_getMaxAttachmentSize = _class.instanceMethodId( + static final _id_get$maxAttachmentSize = + SentryOptions._class.instanceMethodId( r'getMaxAttachmentSize', r'()J', ); - static final _getMaxAttachmentSize = jni$_.ProtectedJniExtensions.lookup< + static final _get$maxAttachmentSize = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -16315,18 +13588,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public long getMaxAttachmentSize()` - int getMaxAttachmentSize() { - return _getMaxAttachmentSize( - reference.pointer, _id_getMaxAttachmentSize as jni$_.JMethodIDPtr) + core$_.int get maxAttachmentSize { + return _get$maxAttachmentSize( + reference.pointer, _id_get$maxAttachmentSize.pointer) .long; } - static final _id_setMaxAttachmentSize = _class.instanceMethodId( + static final _id_set$maxAttachmentSize = + SentryOptions._class.instanceMethodId( r'setMaxAttachmentSize', r'(J)V', ); - static final _setMaxAttachmentSize = jni$_.ProtectedJniExtensions.lookup< + static final _set$maxAttachmentSize = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -16334,23 +13608,22 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setMaxAttachmentSize(long j)` - void setMaxAttachmentSize( - int j, - ) { - _setMaxAttachmentSize(reference.pointer, - _id_setMaxAttachmentSize as jni$_.JMethodIDPtr, j) + set maxAttachmentSize(core$_.int j) { + _set$maxAttachmentSize( + reference.pointer, _id_set$maxAttachmentSize.pointer, j) .check(); } - static final _id_isEnableDeduplication = _class.instanceMethodId( + static final _id_get$isEnableDeduplication = + SentryOptions._class.instanceMethodId( r'isEnableDeduplication', r'()Z', ); - static final _isEnableDeduplication = jni$_.ProtectedJniExtensions.lookup< + static final _get$isEnableDeduplication = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -16363,18 +13636,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isEnableDeduplication()` - bool isEnableDeduplication() { - return _isEnableDeduplication( - reference.pointer, _id_isEnableDeduplication as jni$_.JMethodIDPtr) + core$_.bool get isEnableDeduplication { + return _get$isEnableDeduplication( + reference.pointer, _id_get$isEnableDeduplication.pointer) .boolean; } - static final _id_setEnableDeduplication = _class.instanceMethodId( + static final _id_set$enableDeduplication = + SentryOptions._class.instanceMethodId( r'setEnableDeduplication', r'(Z)V', ); - static final _setEnableDeduplication = jni$_.ProtectedJniExtensions.lookup< + static final _set$enableDeduplication = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -16382,47 +13656,48 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableDeduplication(boolean z)` - void setEnableDeduplication( - bool z, - ) { - _setEnableDeduplication(reference.pointer, - _id_setEnableDeduplication as jni$_.JMethodIDPtr, z ? 1 : 0) + set enableDeduplication(core$_.bool z) { + _set$enableDeduplication( + reference.pointer, _id_set$enableDeduplication.pointer, z ? 1 : 0) .check(); } - static final _id_isEnableEventSizeLimiting = _class.instanceMethodId( + static final _id_get$isEnableEventSizeLimiting = + SentryOptions._class.instanceMethodId( r'isEnableEventSizeLimiting', r'()Z', ); - static final _isEnableEventSizeLimiting = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$isEnableEventSizeLimiting = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public boolean isEnableEventSizeLimiting()` - bool isEnableEventSizeLimiting() { - return _isEnableEventSizeLimiting(reference.pointer, - _id_isEnableEventSizeLimiting as jni$_.JMethodIDPtr) + core$_.bool get isEnableEventSizeLimiting { + return _get$isEnableEventSizeLimiting( + reference.pointer, _id_get$isEnableEventSizeLimiting.pointer) .boolean; } - static final _id_setEnableEventSizeLimiting = _class.instanceMethodId( + static final _id_set$enableEventSizeLimiting = + SentryOptions._class.instanceMethodId( r'setEnableEventSizeLimiting', r'(Z)V', ); - static final _setEnableEventSizeLimiting = + static final _set$enableEventSizeLimiting = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -16430,23 +13705,21 @@ class SentryOptions extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableEventSizeLimiting(boolean z)` - void setEnableEventSizeLimiting( - bool z, - ) { - _setEnableEventSizeLimiting(reference.pointer, - _id_setEnableEventSizeLimiting as jni$_.JMethodIDPtr, z ? 1 : 0) + set enableEventSizeLimiting(core$_.bool z) { + _set$enableEventSizeLimiting(reference.pointer, + _id_set$enableEventSizeLimiting.pointer, z ? 1 : 0) .check(); } - static final _id_getOnOversizedEvent = _class.instanceMethodId( + static final _id_get$onOversizedEvent = SentryOptions._class.instanceMethodId( r'getOnOversizedEvent', r'()Lio/sentry/SentryOptions$OnOversizedEventCallback;', ); - static final _getOnOversizedEvent = jni$_.ProtectedJniExtensions.lookup< + static final _get$onOversizedEvent = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -16460,19 +13733,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.SentryOptions$OnOversizedEventCallback getOnOversizedEvent()` /// The returned object must be released after use, by calling the [release] method. - SentryOptions$OnOversizedEventCallback? getOnOversizedEvent() { - return _getOnOversizedEvent( - reference.pointer, _id_getOnOversizedEvent as jni$_.JMethodIDPtr) - .object( - const $SentryOptions$OnOversizedEventCallback$NullableType()); + SentryOptions$OnOversizedEventCallback? get onOversizedEvent { + return _get$onOversizedEvent( + reference.pointer, _id_get$onOversizedEvent.pointer) + .object(); } - static final _id_setOnOversizedEvent = _class.instanceMethodId( + static final _id_set$onOversizedEvent = SentryOptions._class.instanceMethodId( r'setOnOversizedEvent', r'(Lio/sentry/SentryOptions$OnOversizedEventCallback;)V', ); - static final _setOnOversizedEvent = jni$_.ProtectedJniExtensions.lookup< + static final _set$onOversizedEvent = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -16484,24 +13756,21 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setOnOversizedEvent(io.sentry.SentryOptions$OnOversizedEventCallback onOversizedEventCallback)` - void setOnOversizedEvent( - SentryOptions$OnOversizedEventCallback? onOversizedEventCallback, - ) { + set onOversizedEvent( + SentryOptions$OnOversizedEventCallback? onOversizedEventCallback) { final _$onOversizedEventCallback = onOversizedEventCallback?.reference ?? jni$_.jNullReference; - _setOnOversizedEvent( - reference.pointer, - _id_setOnOversizedEvent as jni$_.JMethodIDPtr, + _set$onOversizedEvent(reference.pointer, _id_set$onOversizedEvent.pointer, _$onOversizedEventCallback.pointer) .check(); } - static final _id_isTracingEnabled = _class.instanceMethodId( + static final _id_get$isTracingEnabled = SentryOptions._class.instanceMethodId( r'isTracingEnabled', r'()Z', ); - static final _isTracingEnabled = jni$_.ProtectedJniExtensions.lookup< + static final _get$isTracingEnabled = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -16514,18 +13783,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isTracingEnabled()` - bool isTracingEnabled() { - return _isTracingEnabled( - reference.pointer, _id_isTracingEnabled as jni$_.JMethodIDPtr) + core$_.bool get isTracingEnabled { + return _get$isTracingEnabled( + reference.pointer, _id_get$isTracingEnabled.pointer) .boolean; } - static final _id_getIgnoredExceptionsForType = _class.instanceMethodId( + static final _id_get$ignoredExceptionsForType = + SentryOptions._class.instanceMethodId( r'getIgnoredExceptionsForType', r'()Ljava/util/Set;', ); - static final _getIgnoredExceptionsForType = + static final _get$ignoredExceptionsForType = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -16540,14 +13810,14 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.util.Set> getIgnoredExceptionsForType()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JSet getIgnoredExceptionsForType() { - return _getIgnoredExceptionsForType(reference.pointer, - _id_getIgnoredExceptionsForType as jni$_.JMethodIDPtr) - .object>( - const jni$_.JSetType(jni$_.JObjectNullableType())); + jni$_.JSet get ignoredExceptionsForType { + return _get$ignoredExceptionsForType( + reference.pointer, _id_get$ignoredExceptionsForType.pointer) + .object>(); } - static final _id_addIgnoredExceptionForType = _class.instanceMethodId( + static final _id_addIgnoredExceptionForType = + SentryOptions._class.instanceMethodId( r'addIgnoredExceptionForType', r'(Ljava/lang/Class;)V', ); @@ -16569,19 +13839,17 @@ class SentryOptions extends jni$_.JObject { jni$_.JObject class$, ) { final _$class$ = class$.reference; - _addIgnoredExceptionForType( - reference.pointer, - _id_addIgnoredExceptionForType as jni$_.JMethodIDPtr, - _$class$.pointer) + _addIgnoredExceptionForType(reference.pointer, + _id_addIgnoredExceptionForType.pointer, _$class$.pointer) .check(); } - static final _id_getIgnoredErrors = _class.instanceMethodId( + static final _id_get$ignoredErrors = SentryOptions._class.instanceMethodId( r'getIgnoredErrors', r'()Ljava/util/List;', ); - static final _getIgnoredErrors = jni$_.ProtectedJniExtensions.lookup< + static final _get$ignoredErrors = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -16595,20 +13863,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.util.List getIgnoredErrors()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? getIgnoredErrors() { - return _getIgnoredErrors( - reference.pointer, _id_getIgnoredErrors as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); + jni$_.JList? get ignoredErrors { + return _get$ignoredErrors(reference.pointer, _id_get$ignoredErrors.pointer) + .object?>(); } - static final _id_setIgnoredErrors = _class.instanceMethodId( + static final _id_set$ignoredErrors$1 = SentryOptions._class.instanceMethodId( r'setIgnoredErrors', r'(Ljava/util/List;)V', ); - static final _setIgnoredErrors = jni$_.ProtectedJniExtensions.lookup< + static final _set$ignoredErrors$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -16620,16 +13885,14 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setIgnoredErrors(java.util.List list)` - void setIgnoredErrors( - jni$_.JList? list, - ) { + set ignoredErrors$1(jni$_.JList? list) { final _$list = list?.reference ?? jni$_.jNullReference; - _setIgnoredErrors(reference.pointer, - _id_setIgnoredErrors as jni$_.JMethodIDPtr, _$list.pointer) + _set$ignoredErrors$1( + reference.pointer, _id_set$ignoredErrors$1.pointer, _$list.pointer) .check(); } - static final _id_addIgnoredError = _class.instanceMethodId( + static final _id_addIgnoredError = SentryOptions._class.instanceMethodId( r'addIgnoredError', r'(Ljava/lang/String;)V', ); @@ -16650,17 +13913,17 @@ class SentryOptions extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - _addIgnoredError(reference.pointer, - _id_addIgnoredError as jni$_.JMethodIDPtr, _$string.pointer) + _addIgnoredError( + reference.pointer, _id_addIgnoredError.pointer, _$string.pointer) .check(); } - static final _id_getMaxSpans = _class.instanceMethodId( + static final _id_get$maxSpans = SentryOptions._class.instanceMethodId( r'getMaxSpans', r'()I', ); - static final _getMaxSpans = jni$_.ProtectedJniExtensions.lookup< + static final _get$maxSpans = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -16673,18 +13936,16 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public int getMaxSpans()` - int getMaxSpans() { - return _getMaxSpans( - reference.pointer, _id_getMaxSpans as jni$_.JMethodIDPtr) - .integer; + core$_.int get maxSpans { + return _get$maxSpans(reference.pointer, _id_get$maxSpans.pointer).integer; } - static final _id_setMaxSpans = _class.instanceMethodId( + static final _id_set$maxSpans = SentryOptions._class.instanceMethodId( r'setMaxSpans', r'(I)V', ); - static final _setMaxSpans = jni$_.ProtectedJniExtensions.lookup< + static final _set$maxSpans = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -16692,22 +13953,20 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setMaxSpans(int i)` - void setMaxSpans( - int i, - ) { - _setMaxSpans(reference.pointer, _id_setMaxSpans as jni$_.JMethodIDPtr, i) - .check(); + set maxSpans(core$_.int i) { + _set$maxSpans(reference.pointer, _id_set$maxSpans.pointer, i).check(); } - static final _id_isEnableShutdownHook = _class.instanceMethodId( + static final _id_get$isEnableShutdownHook = + SentryOptions._class.instanceMethodId( r'isEnableShutdownHook', r'()Z', ); - static final _isEnableShutdownHook = jni$_.ProtectedJniExtensions.lookup< + static final _get$isEnableShutdownHook = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -16720,18 +13979,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isEnableShutdownHook()` - bool isEnableShutdownHook() { - return _isEnableShutdownHook( - reference.pointer, _id_isEnableShutdownHook as jni$_.JMethodIDPtr) + core$_.bool get isEnableShutdownHook { + return _get$isEnableShutdownHook( + reference.pointer, _id_get$isEnableShutdownHook.pointer) .boolean; } - static final _id_setEnableShutdownHook = _class.instanceMethodId( + static final _id_set$enableShutdownHook = + SentryOptions._class.instanceMethodId( r'setEnableShutdownHook', r'(Z)V', ); - static final _setEnableShutdownHook = jni$_.ProtectedJniExtensions.lookup< + static final _set$enableShutdownHook = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -16739,23 +13999,21 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableShutdownHook(boolean z)` - void setEnableShutdownHook( - bool z, - ) { - _setEnableShutdownHook(reference.pointer, - _id_setEnableShutdownHook as jni$_.JMethodIDPtr, z ? 1 : 0) + set enableShutdownHook(core$_.bool z) { + _set$enableShutdownHook( + reference.pointer, _id_set$enableShutdownHook.pointer, z ? 1 : 0) .check(); } - static final _id_getMaxCacheItems = _class.instanceMethodId( + static final _id_get$maxCacheItems = SentryOptions._class.instanceMethodId( r'getMaxCacheItems', r'()I', ); - static final _getMaxCacheItems = jni$_.ProtectedJniExtensions.lookup< + static final _get$maxCacheItems = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -16768,18 +14026,17 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public int getMaxCacheItems()` - int getMaxCacheItems() { - return _getMaxCacheItems( - reference.pointer, _id_getMaxCacheItems as jni$_.JMethodIDPtr) + core$_.int get maxCacheItems { + return _get$maxCacheItems(reference.pointer, _id_get$maxCacheItems.pointer) .integer; } - static final _id_setMaxCacheItems = _class.instanceMethodId( + static final _id_set$maxCacheItems = SentryOptions._class.instanceMethodId( r'setMaxCacheItems', r'(I)V', ); - static final _setMaxCacheItems = jni$_.ProtectedJniExtensions.lookup< + static final _set$maxCacheItems = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -16787,23 +14044,21 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setMaxCacheItems(int i)` - void setMaxCacheItems( - int i, - ) { - _setMaxCacheItems( - reference.pointer, _id_setMaxCacheItems as jni$_.JMethodIDPtr, i) + set maxCacheItems(core$_.int i) { + _set$maxCacheItems(reference.pointer, _id_set$maxCacheItems.pointer, i) .check(); } - static final _id_getMaxRequestBodySize = _class.instanceMethodId( + static final _id_get$maxRequestBodySize = + SentryOptions._class.instanceMethodId( r'getMaxRequestBodySize', r'()Lio/sentry/SentryOptions$RequestSize;', ); - static final _getMaxRequestBodySize = jni$_.ProtectedJniExtensions.lookup< + static final _get$maxRequestBodySize = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -16817,19 +14072,19 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.SentryOptions$RequestSize getMaxRequestBodySize()` /// The returned object must be released after use, by calling the [release] method. - SentryOptions$RequestSize getMaxRequestBodySize() { - return _getMaxRequestBodySize( - reference.pointer, _id_getMaxRequestBodySize as jni$_.JMethodIDPtr) - .object( - const $SentryOptions$RequestSize$Type()); + SentryOptions$RequestSize get maxRequestBodySize { + return _get$maxRequestBodySize( + reference.pointer, _id_get$maxRequestBodySize.pointer) + .object(); } - static final _id_setMaxRequestBodySize = _class.instanceMethodId( + static final _id_set$maxRequestBodySize = + SentryOptions._class.instanceMethodId( r'setMaxRequestBodySize', r'(Lio/sentry/SentryOptions$RequestSize;)V', ); - static final _setMaxRequestBodySize = jni$_.ProtectedJniExtensions.lookup< + static final _set$maxRequestBodySize = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -16841,23 +14096,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setMaxRequestBodySize(io.sentry.SentryOptions$RequestSize requestSize)` - void setMaxRequestBodySize( - SentryOptions$RequestSize requestSize, - ) { + set maxRequestBodySize(SentryOptions$RequestSize requestSize) { final _$requestSize = requestSize.reference; - _setMaxRequestBodySize( - reference.pointer, - _id_setMaxRequestBodySize as jni$_.JMethodIDPtr, - _$requestSize.pointer) + _set$maxRequestBodySize(reference.pointer, + _id_set$maxRequestBodySize.pointer, _$requestSize.pointer) .check(); } - static final _id_isTraceSampling = _class.instanceMethodId( + static final _id_get$isTraceSampling = SentryOptions._class.instanceMethodId( r'isTraceSampling', r'()Z', ); - static final _isTraceSampling = jni$_.ProtectedJniExtensions.lookup< + static final _get$isTraceSampling = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -16870,18 +14121,18 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isTraceSampling()` - bool isTraceSampling() { - return _isTraceSampling( - reference.pointer, _id_isTraceSampling as jni$_.JMethodIDPtr) + core$_.bool get isTraceSampling { + return _get$isTraceSampling( + reference.pointer, _id_get$isTraceSampling.pointer) .boolean; } - static final _id_setTraceSampling = _class.instanceMethodId( + static final _id_set$traceSampling = SentryOptions._class.instanceMethodId( r'setTraceSampling', r'(Z)V', ); - static final _setTraceSampling = jni$_.ProtectedJniExtensions.lookup< + static final _set$traceSampling = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -16889,23 +14140,21 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setTraceSampling(boolean z)` - void setTraceSampling( - bool z, - ) { - _setTraceSampling(reference.pointer, - _id_setTraceSampling as jni$_.JMethodIDPtr, z ? 1 : 0) + set traceSampling(core$_.bool z) { + _set$traceSampling( + reference.pointer, _id_set$traceSampling.pointer, z ? 1 : 0) .check(); } - static final _id_getMaxTraceFileSize = _class.instanceMethodId( + static final _id_get$maxTraceFileSize = SentryOptions._class.instanceMethodId( r'getMaxTraceFileSize', r'()J', ); - static final _getMaxTraceFileSize = jni$_.ProtectedJniExtensions.lookup< + static final _get$maxTraceFileSize = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -16918,18 +14167,18 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public long getMaxTraceFileSize()` - int getMaxTraceFileSize() { - return _getMaxTraceFileSize( - reference.pointer, _id_getMaxTraceFileSize as jni$_.JMethodIDPtr) + core$_.int get maxTraceFileSize { + return _get$maxTraceFileSize( + reference.pointer, _id_get$maxTraceFileSize.pointer) .long; } - static final _id_setMaxTraceFileSize = _class.instanceMethodId( + static final _id_set$maxTraceFileSize = SentryOptions._class.instanceMethodId( r'setMaxTraceFileSize', r'(J)V', ); - static final _setMaxTraceFileSize = jni$_.ProtectedJniExtensions.lookup< + static final _set$maxTraceFileSize = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -16937,23 +14186,22 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setMaxTraceFileSize(long j)` - void setMaxTraceFileSize( - int j, - ) { - _setMaxTraceFileSize( - reference.pointer, _id_setMaxTraceFileSize as jni$_.JMethodIDPtr, j) + set maxTraceFileSize(core$_.int j) { + _set$maxTraceFileSize( + reference.pointer, _id_set$maxTraceFileSize.pointer, j) .check(); } - static final _id_getTransactionProfiler = _class.instanceMethodId( + static final _id_get$transactionProfiler = + SentryOptions._class.instanceMethodId( r'getTransactionProfiler', r'()Lio/sentry/ITransactionProfiler;', ); - static final _getTransactionProfiler = jni$_.ProtectedJniExtensions.lookup< + static final _get$transactionProfiler = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -16967,18 +14215,19 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.ITransactionProfiler getTransactionProfiler()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getTransactionProfiler() { - return _getTransactionProfiler( - reference.pointer, _id_getTransactionProfiler as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get transactionProfiler { + return _get$transactionProfiler( + reference.pointer, _id_get$transactionProfiler.pointer) + .object(); } - static final _id_setTransactionProfiler = _class.instanceMethodId( + static final _id_set$transactionProfiler = + SentryOptions._class.instanceMethodId( r'setTransactionProfiler', r'(Lio/sentry/ITransactionProfiler;)V', ); - static final _setTransactionProfiler = jni$_.ProtectedJniExtensions.lookup< + static final _set$transactionProfiler = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -16990,24 +14239,21 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setTransactionProfiler(io.sentry.ITransactionProfiler iTransactionProfiler)` - void setTransactionProfiler( - jni$_.JObject? iTransactionProfiler, - ) { + set transactionProfiler(jni$_.JObject? iTransactionProfiler) { final _$iTransactionProfiler = iTransactionProfiler?.reference ?? jni$_.jNullReference; - _setTransactionProfiler( - reference.pointer, - _id_setTransactionProfiler as jni$_.JMethodIDPtr, - _$iTransactionProfiler.pointer) + _set$transactionProfiler(reference.pointer, + _id_set$transactionProfiler.pointer, _$iTransactionProfiler.pointer) .check(); } - static final _id_getContinuousProfiler = _class.instanceMethodId( + static final _id_get$continuousProfiler = + SentryOptions._class.instanceMethodId( r'getContinuousProfiler', r'()Lio/sentry/IContinuousProfiler;', ); - static final _getContinuousProfiler = jni$_.ProtectedJniExtensions.lookup< + static final _get$continuousProfiler = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -17021,18 +14267,19 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.IContinuousProfiler getContinuousProfiler()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getContinuousProfiler() { - return _getContinuousProfiler( - reference.pointer, _id_getContinuousProfiler as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get continuousProfiler { + return _get$continuousProfiler( + reference.pointer, _id_get$continuousProfiler.pointer) + .object(); } - static final _id_setContinuousProfiler = _class.instanceMethodId( + static final _id_set$continuousProfiler = + SentryOptions._class.instanceMethodId( r'setContinuousProfiler', r'(Lio/sentry/IContinuousProfiler;)V', ); - static final _setContinuousProfiler = jni$_.ProtectedJniExtensions.lookup< + static final _set$continuousProfiler = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -17044,24 +14291,21 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setContinuousProfiler(io.sentry.IContinuousProfiler iContinuousProfiler)` - void setContinuousProfiler( - jni$_.JObject? iContinuousProfiler, - ) { + set continuousProfiler(jni$_.JObject? iContinuousProfiler) { final _$iContinuousProfiler = iContinuousProfiler?.reference ?? jni$_.jNullReference; - _setContinuousProfiler( - reference.pointer, - _id_setContinuousProfiler as jni$_.JMethodIDPtr, - _$iContinuousProfiler.pointer) + _set$continuousProfiler(reference.pointer, + _id_set$continuousProfiler.pointer, _$iContinuousProfiler.pointer) .check(); } - static final _id_isProfilingEnabled = _class.instanceMethodId( + static final _id_get$isProfilingEnabled = + SentryOptions._class.instanceMethodId( r'isProfilingEnabled', r'()Z', ); - static final _isProfilingEnabled = jni$_.ProtectedJniExtensions.lookup< + static final _get$isProfilingEnabled = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -17074,18 +14318,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isProfilingEnabled()` - bool isProfilingEnabled() { - return _isProfilingEnabled( - reference.pointer, _id_isProfilingEnabled as jni$_.JMethodIDPtr) + core$_.bool get isProfilingEnabled { + return _get$isProfilingEnabled( + reference.pointer, _id_get$isProfilingEnabled.pointer) .boolean; } - static final _id_isContinuousProfilingEnabled = _class.instanceMethodId( + static final _id_get$isContinuousProfilingEnabled = + SentryOptions._class.instanceMethodId( r'isContinuousProfilingEnabled', r'()Z', ); - static final _isContinuousProfilingEnabled = + static final _get$isContinuousProfilingEnabled = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -17099,18 +14344,18 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isContinuousProfilingEnabled()` - bool isContinuousProfilingEnabled() { - return _isContinuousProfilingEnabled(reference.pointer, - _id_isContinuousProfilingEnabled as jni$_.JMethodIDPtr) + core$_.bool get isContinuousProfilingEnabled { + return _get$isContinuousProfilingEnabled( + reference.pointer, _id_get$isContinuousProfilingEnabled.pointer) .boolean; } - static final _id_getProfilesSampler = _class.instanceMethodId( + static final _id_get$profilesSampler = SentryOptions._class.instanceMethodId( r'getProfilesSampler', r'()Lio/sentry/SentryOptions$ProfilesSamplerCallback;', ); - static final _getProfilesSampler = jni$_.ProtectedJniExtensions.lookup< + static final _get$profilesSampler = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -17124,19 +14369,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.SentryOptions$ProfilesSamplerCallback getProfilesSampler()` /// The returned object must be released after use, by calling the [release] method. - SentryOptions$ProfilesSamplerCallback? getProfilesSampler() { - return _getProfilesSampler( - reference.pointer, _id_getProfilesSampler as jni$_.JMethodIDPtr) - .object( - const $SentryOptions$ProfilesSamplerCallback$NullableType()); + SentryOptions$ProfilesSamplerCallback? get profilesSampler { + return _get$profilesSampler( + reference.pointer, _id_get$profilesSampler.pointer) + .object(); } - static final _id_setProfilesSampler = _class.instanceMethodId( + static final _id_set$profilesSampler = SentryOptions._class.instanceMethodId( r'setProfilesSampler', r'(Lio/sentry/SentryOptions$ProfilesSamplerCallback;)V', ); - static final _setProfilesSampler = jni$_.ProtectedJniExtensions.lookup< + static final _set$profilesSampler = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -17148,24 +14392,22 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setProfilesSampler(io.sentry.SentryOptions$ProfilesSamplerCallback profilesSamplerCallback)` - void setProfilesSampler( - SentryOptions$ProfilesSamplerCallback? profilesSamplerCallback, - ) { + set profilesSampler( + SentryOptions$ProfilesSamplerCallback? profilesSamplerCallback) { final _$profilesSamplerCallback = profilesSamplerCallback?.reference ?? jni$_.jNullReference; - _setProfilesSampler( - reference.pointer, - _id_setProfilesSampler as jni$_.JMethodIDPtr, + _set$profilesSampler(reference.pointer, _id_set$profilesSampler.pointer, _$profilesSamplerCallback.pointer) .check(); } - static final _id_getProfilesSampleRate = _class.instanceMethodId( + static final _id_get$profilesSampleRate = + SentryOptions._class.instanceMethodId( r'getProfilesSampleRate', r'()Ljava/lang/Double;', ); - static final _getProfilesSampleRate = jni$_.ProtectedJniExtensions.lookup< + static final _get$profilesSampleRate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -17179,18 +14421,19 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.lang.Double getProfilesSampleRate()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JDouble? getProfilesSampleRate() { - return _getProfilesSampleRate( - reference.pointer, _id_getProfilesSampleRate as jni$_.JMethodIDPtr) - .object(const jni$_.JDoubleNullableType()); + jni$_.JDouble? get profilesSampleRate { + return _get$profilesSampleRate( + reference.pointer, _id_get$profilesSampleRate.pointer) + .object(); } - static final _id_setProfilesSampleRate = _class.instanceMethodId( + static final _id_set$profilesSampleRate = + SentryOptions._class.instanceMethodId( r'setProfilesSampleRate', r'(Ljava/lang/Double;)V', ); - static final _setProfilesSampleRate = jni$_.ProtectedJniExtensions.lookup< + static final _set$profilesSampleRate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -17202,21 +14445,20 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setProfilesSampleRate(java.lang.Double double)` - void setProfilesSampleRate( - jni$_.JDouble? double, - ) { + set profilesSampleRate(jni$_.JDouble? double) { final _$double = double?.reference ?? jni$_.jNullReference; - _setProfilesSampleRate(reference.pointer, - _id_setProfilesSampleRate as jni$_.JMethodIDPtr, _$double.pointer) + _set$profilesSampleRate(reference.pointer, + _id_set$profilesSampleRate.pointer, _$double.pointer) .check(); } - static final _id_getProfileSessionSampleRate = _class.instanceMethodId( + static final _id_get$profileSessionSampleRate = + SentryOptions._class.instanceMethodId( r'getProfileSessionSampleRate', r'()Ljava/lang/Double;', ); - static final _getProfileSessionSampleRate = + static final _get$profileSessionSampleRate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -17231,18 +14473,19 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.lang.Double getProfileSessionSampleRate()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JDouble? getProfileSessionSampleRate() { - return _getProfileSessionSampleRate(reference.pointer, - _id_getProfileSessionSampleRate as jni$_.JMethodIDPtr) - .object(const jni$_.JDoubleNullableType()); + jni$_.JDouble? get profileSessionSampleRate { + return _get$profileSessionSampleRate( + reference.pointer, _id_get$profileSessionSampleRate.pointer) + .object(); } - static final _id_setProfileSessionSampleRate = _class.instanceMethodId( + static final _id_set$profileSessionSampleRate = + SentryOptions._class.instanceMethodId( r'setProfileSessionSampleRate', r'(Ljava/lang/Double;)V', ); - static final _setProfileSessionSampleRate = + static final _set$profileSessionSampleRate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( @@ -17255,23 +14498,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setProfileSessionSampleRate(java.lang.Double double)` - void setProfileSessionSampleRate( - jni$_.JDouble? double, - ) { + set profileSessionSampleRate(jni$_.JDouble? double) { final _$double = double?.reference ?? jni$_.jNullReference; - _setProfileSessionSampleRate( - reference.pointer, - _id_setProfileSessionSampleRate as jni$_.JMethodIDPtr, - _$double.pointer) + _set$profileSessionSampleRate(reference.pointer, + _id_set$profileSessionSampleRate.pointer, _$double.pointer) .check(); } - static final _id_getProfileLifecycle = _class.instanceMethodId( + static final _id_get$profileLifecycle = SentryOptions._class.instanceMethodId( r'getProfileLifecycle', r'()Lio/sentry/ProfileLifecycle;', ); - static final _getProfileLifecycle = jni$_.ProtectedJniExtensions.lookup< + static final _get$profileLifecycle = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -17285,18 +14524,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.ProfileLifecycle getProfileLifecycle()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getProfileLifecycle() { - return _getProfileLifecycle( - reference.pointer, _id_getProfileLifecycle as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get profileLifecycle { + return _get$profileLifecycle( + reference.pointer, _id_get$profileLifecycle.pointer) + .object(); } - static final _id_setProfileLifecycle = _class.instanceMethodId( + static final _id_set$profileLifecycle = SentryOptions._class.instanceMethodId( r'setProfileLifecycle', r'(Lio/sentry/ProfileLifecycle;)V', ); - static final _setProfileLifecycle = jni$_.ProtectedJniExtensions.lookup< + static final _set$profileLifecycle = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -17308,47 +14547,46 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setProfileLifecycle(io.sentry.ProfileLifecycle profileLifecycle)` - void setProfileLifecycle( - jni$_.JObject profileLifecycle, - ) { + set profileLifecycle(jni$_.JObject profileLifecycle) { final _$profileLifecycle = profileLifecycle.reference; - _setProfileLifecycle( - reference.pointer, - _id_setProfileLifecycle as jni$_.JMethodIDPtr, + _set$profileLifecycle(reference.pointer, _id_set$profileLifecycle.pointer, _$profileLifecycle.pointer) .check(); } - static final _id_isStartProfilerOnAppStart = _class.instanceMethodId( + static final _id_get$isStartProfilerOnAppStart = + SentryOptions._class.instanceMethodId( r'isStartProfilerOnAppStart', r'()Z', ); - static final _isStartProfilerOnAppStart = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$isStartProfilerOnAppStart = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public boolean isStartProfilerOnAppStart()` - bool isStartProfilerOnAppStart() { - return _isStartProfilerOnAppStart(reference.pointer, - _id_isStartProfilerOnAppStart as jni$_.JMethodIDPtr) + core$_.bool get isStartProfilerOnAppStart { + return _get$isStartProfilerOnAppStart( + reference.pointer, _id_get$isStartProfilerOnAppStart.pointer) .boolean; } - static final _id_setStartProfilerOnAppStart = _class.instanceMethodId( + static final _id_set$startProfilerOnAppStart = + SentryOptions._class.instanceMethodId( r'setStartProfilerOnAppStart', r'(Z)V', ); - static final _setStartProfilerOnAppStart = + static final _set$startProfilerOnAppStart = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -17356,23 +14594,21 @@ class SentryOptions extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setStartProfilerOnAppStart(boolean z)` - void setStartProfilerOnAppStart( - bool z, - ) { - _setStartProfilerOnAppStart(reference.pointer, - _id_setStartProfilerOnAppStart as jni$_.JMethodIDPtr, z ? 1 : 0) + set startProfilerOnAppStart(core$_.bool z) { + _set$startProfilerOnAppStart(reference.pointer, + _id_set$startProfilerOnAppStart.pointer, z ? 1 : 0) .check(); } - static final _id_getDeadlineTimeout = _class.instanceMethodId( + static final _id_get$deadlineTimeout = SentryOptions._class.instanceMethodId( r'getDeadlineTimeout', r'()J', ); - static final _getDeadlineTimeout = jni$_.ProtectedJniExtensions.lookup< + static final _get$deadlineTimeout = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -17385,18 +14621,18 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public long getDeadlineTimeout()` - int getDeadlineTimeout() { - return _getDeadlineTimeout( - reference.pointer, _id_getDeadlineTimeout as jni$_.JMethodIDPtr) + core$_.int get deadlineTimeout { + return _get$deadlineTimeout( + reference.pointer, _id_get$deadlineTimeout.pointer) .long; } - static final _id_setDeadlineTimeout = _class.instanceMethodId( + static final _id_set$deadlineTimeout = SentryOptions._class.instanceMethodId( r'setDeadlineTimeout', r'(J)V', ); - static final _setDeadlineTimeout = jni$_.ProtectedJniExtensions.lookup< + static final _set$deadlineTimeout = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -17404,76 +14640,74 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setDeadlineTimeout(long j)` - void setDeadlineTimeout( - int j, - ) { - _setDeadlineTimeout( - reference.pointer, _id_setDeadlineTimeout as jni$_.JMethodIDPtr, j) + set deadlineTimeout(core$_.int j) { + _set$deadlineTimeout(reference.pointer, _id_set$deadlineTimeout.pointer, j) .check(); } - static final _id_getProfilingTracesDirPath = _class.instanceMethodId( + static final _id_get$profilingTracesDirPath = + SentryOptions._class.instanceMethodId( r'getProfilingTracesDirPath', r'()Ljava/lang/String;', ); - static final _getProfilingTracesDirPath = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$profilingTracesDirPath = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public java.lang.String getProfilingTracesDirPath()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getProfilingTracesDirPath() { - return _getProfilingTracesDirPath(reference.pointer, - _id_getProfilingTracesDirPath as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get profilingTracesDirPath { + return _get$profilingTracesDirPath( + reference.pointer, _id_get$profilingTracesDirPath.pointer) + .object(); } - static final _id_setProfilingTracesDirPath = _class.instanceMethodId( + static final _id_set$profilingTracesDirPath = + SentryOptions._class.instanceMethodId( r'setProfilingTracesDirPath', r'(Ljava/lang/String;)V', ); - static final _setProfilingTracesDirPath = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _set$profilingTracesDirPath = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setProfilingTracesDirPath(java.lang.String string)` - void setProfilingTracesDirPath( - jni$_.JString? string, - ) { + set profilingTracesDirPath(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setProfilingTracesDirPath( - reference.pointer, - _id_setProfilingTracesDirPath as jni$_.JMethodIDPtr, - _$string.pointer) + _set$profilingTracesDirPath(reference.pointer, + _id_set$profilingTracesDirPath.pointer, _$string.pointer) .check(); } - static final _id_getTracePropagationTargets = _class.instanceMethodId( + static final _id_get$tracePropagationTargets = + SentryOptions._class.instanceMethodId( r'getTracePropagationTargets', r'()Ljava/util/List;', ); - static final _getTracePropagationTargets = + static final _get$tracePropagationTargets = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -17488,19 +14722,19 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.util.List getTracePropagationTargets()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList getTracePropagationTargets() { - return _getTracePropagationTargets(reference.pointer, - _id_getTracePropagationTargets as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JStringNullableType())); + jni$_.JList get tracePropagationTargets { + return _get$tracePropagationTargets( + reference.pointer, _id_get$tracePropagationTargets.pointer) + .object>(); } - static final _id_setTracePropagationTargets = _class.instanceMethodId( + static final _id_set$tracePropagationTargets = + SentryOptions._class.instanceMethodId( r'setTracePropagationTargets', r'(Ljava/util/List;)V', ); - static final _setTracePropagationTargets = + static final _set$tracePropagationTargets = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( @@ -17513,47 +14747,46 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setTracePropagationTargets(java.util.List list)` - void setTracePropagationTargets( - jni$_.JList? list, - ) { + set tracePropagationTargets(jni$_.JList? list) { final _$list = list?.reference ?? jni$_.jNullReference; - _setTracePropagationTargets( - reference.pointer, - _id_setTracePropagationTargets as jni$_.JMethodIDPtr, - _$list.pointer) + _set$tracePropagationTargets(reference.pointer, + _id_set$tracePropagationTargets.pointer, _$list.pointer) .check(); } - static final _id_isPropagateTraceparent = _class.instanceMethodId( + static final _id_get$isPropagateTraceparent = + SentryOptions._class.instanceMethodId( r'isPropagateTraceparent', r'()Z', ); - static final _isPropagateTraceparent = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$isPropagateTraceparent = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public boolean isPropagateTraceparent()` - bool isPropagateTraceparent() { - return _isPropagateTraceparent( - reference.pointer, _id_isPropagateTraceparent as jni$_.JMethodIDPtr) + core$_.bool get isPropagateTraceparent { + return _get$isPropagateTraceparent( + reference.pointer, _id_get$isPropagateTraceparent.pointer) .boolean; } - static final _id_setPropagateTraceparent = _class.instanceMethodId( + static final _id_set$propagateTraceparent = + SentryOptions._class.instanceMethodId( r'setPropagateTraceparent', r'(Z)V', ); - static final _setPropagateTraceparent = jni$_.ProtectedJniExtensions.lookup< + static final _set$propagateTraceparent = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -17561,23 +14794,21 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setPropagateTraceparent(boolean z)` - void setPropagateTraceparent( - bool z, - ) { - _setPropagateTraceparent(reference.pointer, - _id_setPropagateTraceparent as jni$_.JMethodIDPtr, z ? 1 : 0) + set propagateTraceparent(core$_.bool z) { + _set$propagateTraceparent( + reference.pointer, _id_set$propagateTraceparent.pointer, z ? 1 : 0) .check(); } - static final _id_getProguardUuid = _class.instanceMethodId( + static final _id_get$proguardUuid = SentryOptions._class.instanceMethodId( r'getProguardUuid', r'()Ljava/lang/String;', ); - static final _getProguardUuid = jni$_.ProtectedJniExtensions.lookup< + static final _get$proguardUuid = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -17591,18 +14822,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.lang.String getProguardUuid()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getProguardUuid() { - return _getProguardUuid( - reference.pointer, _id_getProguardUuid as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get proguardUuid { + return _get$proguardUuid(reference.pointer, _id_get$proguardUuid.pointer) + .object(); } - static final _id_setProguardUuid = _class.instanceMethodId( + static final _id_set$proguardUuid = SentryOptions._class.instanceMethodId( r'setProguardUuid', r'(Ljava/lang/String;)V', ); - static final _setProguardUuid = jni$_.ProtectedJniExtensions.lookup< + static final _set$proguardUuid = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -17614,16 +14844,14 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setProguardUuid(java.lang.String string)` - void setProguardUuid( - jni$_.JString? string, - ) { + set proguardUuid(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setProguardUuid(reference.pointer, - _id_setProguardUuid as jni$_.JMethodIDPtr, _$string.pointer) + _set$proguardUuid( + reference.pointer, _id_set$proguardUuid.pointer, _$string.pointer) .check(); } - static final _id_addBundleId = _class.instanceMethodId( + static final _id_addBundleId = SentryOptions._class.instanceMethodId( r'addBundleId', r'(Ljava/lang/String;)V', ); @@ -17644,17 +14872,16 @@ class SentryOptions extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - _addBundleId(reference.pointer, _id_addBundleId as jni$_.JMethodIDPtr, - _$string.pointer) + _addBundleId(reference.pointer, _id_addBundleId.pointer, _$string.pointer) .check(); } - static final _id_getBundleIds = _class.instanceMethodId( + static final _id_get$bundleIds = SentryOptions._class.instanceMethodId( r'getBundleIds', r'()Ljava/util/Set;', ); - static final _getBundleIds = jni$_.ProtectedJniExtensions.lookup< + static final _get$bundleIds = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -17668,19 +14895,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.util.Set getBundleIds()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JSet getBundleIds() { - return _getBundleIds( - reference.pointer, _id_getBundleIds as jni$_.JMethodIDPtr) - .object>( - const jni$_.JSetType(jni$_.JStringNullableType())); + jni$_.JSet get bundleIds { + return _get$bundleIds(reference.pointer, _id_get$bundleIds.pointer) + .object>(); } - static final _id_getContextTags = _class.instanceMethodId( + static final _id_get$contextTags = SentryOptions._class.instanceMethodId( r'getContextTags', r'()Ljava/util/List;', ); - static final _getContextTags = jni$_.ProtectedJniExtensions.lookup< + static final _get$contextTags = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -17694,14 +14919,12 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.util.List getContextTags()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList getContextTags() { - return _getContextTags( - reference.pointer, _id_getContextTags as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JStringNullableType())); + jni$_.JList get contextTags { + return _get$contextTags(reference.pointer, _id_get$contextTags.pointer) + .object>(); } - static final _id_addContextTag = _class.instanceMethodId( + static final _id_addContextTag = SentryOptions._class.instanceMethodId( r'addContextTag', r'(Ljava/lang/String;)V', ); @@ -17722,17 +14945,17 @@ class SentryOptions extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - _addContextTag(reference.pointer, _id_addContextTag as jni$_.JMethodIDPtr, - _$string.pointer) + _addContextTag( + reference.pointer, _id_addContextTag.pointer, _$string.pointer) .check(); } - static final _id_getIdleTimeout = _class.instanceMethodId( + static final _id_get$idleTimeout = SentryOptions._class.instanceMethodId( r'getIdleTimeout', r'()Ljava/lang/Long;', ); - static final _getIdleTimeout = jni$_.ProtectedJniExtensions.lookup< + static final _get$idleTimeout = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -17746,18 +14969,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.lang.Long getIdleTimeout()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JLong? getIdleTimeout() { - return _getIdleTimeout( - reference.pointer, _id_getIdleTimeout as jni$_.JMethodIDPtr) - .object(const jni$_.JLongNullableType()); + jni$_.JLong? get idleTimeout { + return _get$idleTimeout(reference.pointer, _id_get$idleTimeout.pointer) + .object(); } - static final _id_setIdleTimeout = _class.instanceMethodId( + static final _id_set$idleTimeout = SentryOptions._class.instanceMethodId( r'setIdleTimeout', r'(Ljava/lang/Long;)V', ); - static final _setIdleTimeout = jni$_.ProtectedJniExtensions.lookup< + static final _set$idleTimeout = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -17769,21 +14991,20 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setIdleTimeout(java.lang.Long long)` - void setIdleTimeout( - jni$_.JLong? long, - ) { + set idleTimeout(jni$_.JLong? long) { final _$long = long?.reference ?? jni$_.jNullReference; - _setIdleTimeout(reference.pointer, _id_setIdleTimeout as jni$_.JMethodIDPtr, - _$long.pointer) + _set$idleTimeout( + reference.pointer, _id_set$idleTimeout.pointer, _$long.pointer) .check(); } - static final _id_isSendClientReports = _class.instanceMethodId( + static final _id_get$isSendClientReports = + SentryOptions._class.instanceMethodId( r'isSendClientReports', r'()Z', ); - static final _isSendClientReports = jni$_.ProtectedJniExtensions.lookup< + static final _get$isSendClientReports = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -17796,18 +15017,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isSendClientReports()` - bool isSendClientReports() { - return _isSendClientReports( - reference.pointer, _id_isSendClientReports as jni$_.JMethodIDPtr) + core$_.bool get isSendClientReports { + return _get$isSendClientReports( + reference.pointer, _id_get$isSendClientReports.pointer) .boolean; } - static final _id_setSendClientReports = _class.instanceMethodId( + static final _id_set$sendClientReports = + SentryOptions._class.instanceMethodId( r'setSendClientReports', r'(Z)V', ); - static final _setSendClientReports = jni$_.ProtectedJniExtensions.lookup< + static final _set$sendClientReports = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -17815,23 +15037,22 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setSendClientReports(boolean z)` - void setSendClientReports( - bool z, - ) { - _setSendClientReports(reference.pointer, - _id_setSendClientReports as jni$_.JMethodIDPtr, z ? 1 : 0) + set sendClientReports(core$_.bool z) { + _set$sendClientReports( + reference.pointer, _id_set$sendClientReports.pointer, z ? 1 : 0) .check(); } - static final _id_isEnableUserInteractionTracing = _class.instanceMethodId( + static final _id_get$isEnableUserInteractionTracing = + SentryOptions._class.instanceMethodId( r'isEnableUserInteractionTracing', r'()Z', ); - static final _isEnableUserInteractionTracing = + static final _get$isEnableUserInteractionTracing = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -17845,18 +15066,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isEnableUserInteractionTracing()` - bool isEnableUserInteractionTracing() { - return _isEnableUserInteractionTracing(reference.pointer, - _id_isEnableUserInteractionTracing as jni$_.JMethodIDPtr) + core$_.bool get isEnableUserInteractionTracing { + return _get$isEnableUserInteractionTracing( + reference.pointer, _id_get$isEnableUserInteractionTracing.pointer) .boolean; } - static final _id_setEnableUserInteractionTracing = _class.instanceMethodId( + static final _id_set$enableUserInteractionTracing = + SentryOptions._class.instanceMethodId( r'setEnableUserInteractionTracing', r'(Z)V', ); - static final _setEnableUserInteractionTracing = + static final _set$enableUserInteractionTracing = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -17864,25 +15086,22 @@ class SentryOptions extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableUserInteractionTracing(boolean z)` - void setEnableUserInteractionTracing( - bool z, - ) { - _setEnableUserInteractionTracing( - reference.pointer, - _id_setEnableUserInteractionTracing as jni$_.JMethodIDPtr, - z ? 1 : 0) + set enableUserInteractionTracing(core$_.bool z) { + _set$enableUserInteractionTracing(reference.pointer, + _id_set$enableUserInteractionTracing.pointer, z ? 1 : 0) .check(); } - static final _id_isEnableUserInteractionBreadcrumbs = _class.instanceMethodId( + static final _id_get$isEnableUserInteractionBreadcrumbs = + SentryOptions._class.instanceMethodId( r'isEnableUserInteractionBreadcrumbs', r'()Z', ); - static final _isEnableUserInteractionBreadcrumbs = + static final _get$isEnableUserInteractionBreadcrumbs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -17896,19 +15115,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isEnableUserInteractionBreadcrumbs()` - bool isEnableUserInteractionBreadcrumbs() { - return _isEnableUserInteractionBreadcrumbs(reference.pointer, - _id_isEnableUserInteractionBreadcrumbs as jni$_.JMethodIDPtr) + core$_.bool get isEnableUserInteractionBreadcrumbs { + return _get$isEnableUserInteractionBreadcrumbs(reference.pointer, + _id_get$isEnableUserInteractionBreadcrumbs.pointer) .boolean; } - static final _id_setEnableUserInteractionBreadcrumbs = - _class.instanceMethodId( + static final _id_set$enableUserInteractionBreadcrumbs = + SentryOptions._class.instanceMethodId( r'setEnableUserInteractionBreadcrumbs', r'(Z)V', ); - static final _setEnableUserInteractionBreadcrumbs = + static final _set$enableUserInteractionBreadcrumbs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -17916,25 +15135,21 @@ class SentryOptions extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableUserInteractionBreadcrumbs(boolean z)` - void setEnableUserInteractionBreadcrumbs( - bool z, - ) { - _setEnableUserInteractionBreadcrumbs( - reference.pointer, - _id_setEnableUserInteractionBreadcrumbs as jni$_.JMethodIDPtr, - z ? 1 : 0) + set enableUserInteractionBreadcrumbs(core$_.bool z) { + _set$enableUserInteractionBreadcrumbs(reference.pointer, + _id_set$enableUserInteractionBreadcrumbs.pointer, z ? 1 : 0) .check(); } - static final _id_setInstrumenter = _class.instanceMethodId( + static final _id_set$instrumenter = SentryOptions._class.instanceMethodId( r'setInstrumenter', r'(Lio/sentry/Instrumenter;)V', ); - static final _setInstrumenter = jni$_.ProtectedJniExtensions.lookup< + static final _set$instrumenter = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -17946,21 +15161,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setInstrumenter(io.sentry.Instrumenter instrumenter)` - void setInstrumenter( - jni$_.JObject instrumenter, - ) { + set instrumenter(jni$_.JObject instrumenter) { final _$instrumenter = instrumenter.reference; - _setInstrumenter(reference.pointer, - _id_setInstrumenter as jni$_.JMethodIDPtr, _$instrumenter.pointer) + _set$instrumenter(reference.pointer, _id_set$instrumenter.pointer, + _$instrumenter.pointer) .check(); } - static final _id_getInstrumenter = _class.instanceMethodId( + static final _id_get$instrumenter = SentryOptions._class.instanceMethodId( r'getInstrumenter', r'()Lio/sentry/Instrumenter;', ); - static final _getInstrumenter = jni$_.ProtectedJniExtensions.lookup< + static final _get$instrumenter = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -17974,18 +15187,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.Instrumenter getInstrumenter()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getInstrumenter() { - return _getInstrumenter( - reference.pointer, _id_getInstrumenter as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get instrumenter { + return _get$instrumenter(reference.pointer, _id_get$instrumenter.pointer) + .object(); } - static final _id_getClientReportRecorder = _class.instanceMethodId( + static final _id_get$clientReportRecorder = + SentryOptions._class.instanceMethodId( r'getClientReportRecorder', r'()Lio/sentry/clientreport/IClientReportRecorder;', ); - static final _getClientReportRecorder = jni$_.ProtectedJniExtensions.lookup< + static final _get$clientReportRecorder = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -17999,18 +15212,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.clientreport.IClientReportRecorder getClientReportRecorder()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getClientReportRecorder() { - return _getClientReportRecorder(reference.pointer, - _id_getClientReportRecorder as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get clientReportRecorder { + return _get$clientReportRecorder( + reference.pointer, _id_get$clientReportRecorder.pointer) + .object(); } - static final _id_getModulesLoader = _class.instanceMethodId( + static final _id_get$modulesLoader = SentryOptions._class.instanceMethodId( r'getModulesLoader', r'()Lio/sentry/internal/modules/IModulesLoader;', ); - static final _getModulesLoader = jni$_.ProtectedJniExtensions.lookup< + static final _get$modulesLoader = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18024,18 +15237,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.internal.modules.IModulesLoader getModulesLoader()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getModulesLoader() { - return _getModulesLoader( - reference.pointer, _id_getModulesLoader as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get modulesLoader { + return _get$modulesLoader(reference.pointer, _id_get$modulesLoader.pointer) + .object(); } - static final _id_setModulesLoader = _class.instanceMethodId( + static final _id_set$modulesLoader = SentryOptions._class.instanceMethodId( r'setModulesLoader', r'(Lio/sentry/internal/modules/IModulesLoader;)V', ); - static final _setModulesLoader = jni$_.ProtectedJniExtensions.lookup< + static final _set$modulesLoader = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -18047,23 +15259,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setModulesLoader(io.sentry.internal.modules.IModulesLoader iModulesLoader)` - void setModulesLoader( - jni$_.JObject? iModulesLoader, - ) { + set modulesLoader(jni$_.JObject? iModulesLoader) { final _$iModulesLoader = iModulesLoader?.reference ?? jni$_.jNullReference; - _setModulesLoader( - reference.pointer, - _id_setModulesLoader as jni$_.JMethodIDPtr, + _set$modulesLoader(reference.pointer, _id_set$modulesLoader.pointer, _$iModulesLoader.pointer) .check(); } - static final _id_getDebugMetaLoader = _class.instanceMethodId( + static final _id_get$debugMetaLoader = SentryOptions._class.instanceMethodId( r'getDebugMetaLoader', r'()Lio/sentry/internal/debugmeta/IDebugMetaLoader;', ); - static final _getDebugMetaLoader = jni$_.ProtectedJniExtensions.lookup< + static final _get$debugMetaLoader = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18077,18 +15285,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.internal.debugmeta.IDebugMetaLoader getDebugMetaLoader()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getDebugMetaLoader() { - return _getDebugMetaLoader( - reference.pointer, _id_getDebugMetaLoader as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get debugMetaLoader { + return _get$debugMetaLoader( + reference.pointer, _id_get$debugMetaLoader.pointer) + .object(); } - static final _id_setDebugMetaLoader = _class.instanceMethodId( + static final _id_set$debugMetaLoader = SentryOptions._class.instanceMethodId( r'setDebugMetaLoader', r'(Lio/sentry/internal/debugmeta/IDebugMetaLoader;)V', ); - static final _setDebugMetaLoader = jni$_.ProtectedJniExtensions.lookup< + static final _set$debugMetaLoader = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -18100,129 +15308,73 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setDebugMetaLoader(io.sentry.internal.debugmeta.IDebugMetaLoader iDebugMetaLoader)` - void setDebugMetaLoader( - jni$_.JObject? iDebugMetaLoader, - ) { + set debugMetaLoader(jni$_.JObject? iDebugMetaLoader) { final _$iDebugMetaLoader = iDebugMetaLoader?.reference ?? jni$_.jNullReference; - _setDebugMetaLoader( - reference.pointer, - _id_setDebugMetaLoader as jni$_.JMethodIDPtr, + _set$debugMetaLoader(reference.pointer, _id_set$debugMetaLoader.pointer, _$iDebugMetaLoader.pointer) .check(); } - static final _id_getGestureTargetLocators = _class.instanceMethodId( - r'getGestureTargetLocators', - r'()Ljava/util/List;', - ); - - static final _getGestureTargetLocators = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public java.util.List getGestureTargetLocators()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? getGestureTargetLocators() { - return _getGestureTargetLocators(reference.pointer, - _id_getGestureTargetLocators as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); - } - - static final _id_setGestureTargetLocators = _class.instanceMethodId( - r'setGestureTargetLocators', - r'(Ljava/util/List;)V', - ); - - static final _setGestureTargetLocators = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public void setGestureTargetLocators(java.util.List list)` - void setGestureTargetLocators( - jni$_.JList list, - ) { - final _$list = list.reference; - _setGestureTargetLocators(reference.pointer, - _id_setGestureTargetLocators as jni$_.JMethodIDPtr, _$list.pointer) - .check(); - } - - static final _id_getViewHierarchyExporters = _class.instanceMethodId( + static final _id_get$viewHierarchyExporters = + SentryOptions._class.instanceMethodId( r'getViewHierarchyExporters', r'()Ljava/util/List;', ); - static final _getViewHierarchyExporters = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$viewHierarchyExporters = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public final java.util.List getViewHierarchyExporters()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList getViewHierarchyExporters() { - return _getViewHierarchyExporters(reference.pointer, - _id_getViewHierarchyExporters as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectNullableType())); + jni$_.JList get viewHierarchyExporters { + return _get$viewHierarchyExporters( + reference.pointer, _id_get$viewHierarchyExporters.pointer) + .object>(); } - static final _id_setViewHierarchyExporters = _class.instanceMethodId( + static final _id_set$viewHierarchyExporters = + SentryOptions._class.instanceMethodId( r'setViewHierarchyExporters', r'(Ljava/util/List;)V', ); - static final _setViewHierarchyExporters = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _set$viewHierarchyExporters = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setViewHierarchyExporters(java.util.List list)` - void setViewHierarchyExporters( - jni$_.JList list, - ) { + set viewHierarchyExporters(jni$_.JList list) { final _$list = list.reference; - _setViewHierarchyExporters(reference.pointer, - _id_setViewHierarchyExporters as jni$_.JMethodIDPtr, _$list.pointer) + _set$viewHierarchyExporters(reference.pointer, + _id_set$viewHierarchyExporters.pointer, _$list.pointer) .check(); } - static final _id_getThreadChecker = _class.instanceMethodId( + static final _id_get$threadChecker = SentryOptions._class.instanceMethodId( r'getThreadChecker', r'()Lio/sentry/util/thread/IThreadChecker;', ); - static final _getThreadChecker = jni$_.ProtectedJniExtensions.lookup< + static final _get$threadChecker = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18236,18 +15388,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.util.thread.IThreadChecker getThreadChecker()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getThreadChecker() { - return _getThreadChecker( - reference.pointer, _id_getThreadChecker as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get threadChecker { + return _get$threadChecker(reference.pointer, _id_get$threadChecker.pointer) + .object(); } - static final _id_setThreadChecker = _class.instanceMethodId( + static final _id_set$threadChecker = SentryOptions._class.instanceMethodId( r'setThreadChecker', r'(Lio/sentry/util/thread/IThreadChecker;)V', ); - static final _setThreadChecker = jni$_.ProtectedJniExtensions.lookup< + static final _set$threadChecker = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -18259,23 +15410,20 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setThreadChecker(io.sentry.util.thread.IThreadChecker iThreadChecker)` - void setThreadChecker( - jni$_.JObject iThreadChecker, - ) { + set threadChecker(jni$_.JObject iThreadChecker) { final _$iThreadChecker = iThreadChecker.reference; - _setThreadChecker( - reference.pointer, - _id_setThreadChecker as jni$_.JMethodIDPtr, + _set$threadChecker(reference.pointer, _id_set$threadChecker.pointer, _$iThreadChecker.pointer) .check(); } - static final _id_getCompositePerformanceCollector = _class.instanceMethodId( + static final _id_get$compositePerformanceCollector = + SentryOptions._class.instanceMethodId( r'getCompositePerformanceCollector', r'()Lio/sentry/CompositePerformanceCollector;', ); - static final _getCompositePerformanceCollector = + static final _get$compositePerformanceCollector = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -18290,18 +15438,19 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.CompositePerformanceCollector getCompositePerformanceCollector()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getCompositePerformanceCollector() { - return _getCompositePerformanceCollector(reference.pointer, - _id_getCompositePerformanceCollector as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get compositePerformanceCollector { + return _get$compositePerformanceCollector( + reference.pointer, _id_get$compositePerformanceCollector.pointer) + .object(); } - static final _id_setCompositePerformanceCollector = _class.instanceMethodId( + static final _id_set$compositePerformanceCollector = + SentryOptions._class.instanceMethodId( r'setCompositePerformanceCollector', r'(Lio/sentry/CompositePerformanceCollector;)V', ); - static final _setCompositePerformanceCollector = + static final _set$compositePerformanceCollector = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( @@ -18314,24 +15463,24 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setCompositePerformanceCollector(io.sentry.CompositePerformanceCollector compositePerformanceCollector)` - void setCompositePerformanceCollector( - jni$_.JObject compositePerformanceCollector, - ) { + set compositePerformanceCollector( + jni$_.JObject compositePerformanceCollector) { final _$compositePerformanceCollector = compositePerformanceCollector.reference; - _setCompositePerformanceCollector( + _set$compositePerformanceCollector( reference.pointer, - _id_setCompositePerformanceCollector as jni$_.JMethodIDPtr, + _id_set$compositePerformanceCollector.pointer, _$compositePerformanceCollector.pointer) .check(); } - static final _id_isEnableTimeToFullDisplayTracing = _class.instanceMethodId( + static final _id_get$isEnableTimeToFullDisplayTracing = + SentryOptions._class.instanceMethodId( r'isEnableTimeToFullDisplayTracing', r'()Z', ); - static final _isEnableTimeToFullDisplayTracing = + static final _get$isEnableTimeToFullDisplayTracing = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -18345,18 +15494,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isEnableTimeToFullDisplayTracing()` - bool isEnableTimeToFullDisplayTracing() { - return _isEnableTimeToFullDisplayTracing(reference.pointer, - _id_isEnableTimeToFullDisplayTracing as jni$_.JMethodIDPtr) + core$_.bool get isEnableTimeToFullDisplayTracing { + return _get$isEnableTimeToFullDisplayTracing( + reference.pointer, _id_get$isEnableTimeToFullDisplayTracing.pointer) .boolean; } - static final _id_setEnableTimeToFullDisplayTracing = _class.instanceMethodId( + static final _id_set$enableTimeToFullDisplayTracing = + SentryOptions._class.instanceMethodId( r'setEnableTimeToFullDisplayTracing', r'(Z)V', ); - static final _setEnableTimeToFullDisplayTracing = + static final _set$enableTimeToFullDisplayTracing = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -18364,102 +15514,103 @@ class SentryOptions extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableTimeToFullDisplayTracing(boolean z)` - void setEnableTimeToFullDisplayTracing( - bool z, - ) { - _setEnableTimeToFullDisplayTracing( - reference.pointer, - _id_setEnableTimeToFullDisplayTracing as jni$_.JMethodIDPtr, - z ? 1 : 0) + set enableTimeToFullDisplayTracing(core$_.bool z) { + _set$enableTimeToFullDisplayTracing(reference.pointer, + _id_set$enableTimeToFullDisplayTracing.pointer, z ? 1 : 0) .check(); } - static final _id_getFullyDisplayedReporter = _class.instanceMethodId( + static final _id_get$fullyDisplayedReporter = + SentryOptions._class.instanceMethodId( r'getFullyDisplayedReporter', r'()Lio/sentry/FullyDisplayedReporter;', ); - static final _getFullyDisplayedReporter = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$fullyDisplayedReporter = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public io.sentry.FullyDisplayedReporter getFullyDisplayedReporter()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getFullyDisplayedReporter() { - return _getFullyDisplayedReporter(reference.pointer, - _id_getFullyDisplayedReporter as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get fullyDisplayedReporter { + return _get$fullyDisplayedReporter( + reference.pointer, _id_get$fullyDisplayedReporter.pointer) + .object(); } - static final _id_setFullyDisplayedReporter = _class.instanceMethodId( + static final _id_set$fullyDisplayedReporter = + SentryOptions._class.instanceMethodId( r'setFullyDisplayedReporter', r'(Lio/sentry/FullyDisplayedReporter;)V', ); - static final _setFullyDisplayedReporter = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _set$fullyDisplayedReporter = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setFullyDisplayedReporter(io.sentry.FullyDisplayedReporter fullyDisplayedReporter)` - void setFullyDisplayedReporter( - jni$_.JObject fullyDisplayedReporter, - ) { + set fullyDisplayedReporter(jni$_.JObject fullyDisplayedReporter) { final _$fullyDisplayedReporter = fullyDisplayedReporter.reference; - _setFullyDisplayedReporter( + _set$fullyDisplayedReporter( reference.pointer, - _id_setFullyDisplayedReporter as jni$_.JMethodIDPtr, + _id_set$fullyDisplayedReporter.pointer, _$fullyDisplayedReporter.pointer) .check(); } - static final _id_isTraceOptionsRequests = _class.instanceMethodId( + static final _id_get$isTraceOptionsRequests = + SentryOptions._class.instanceMethodId( r'isTraceOptionsRequests', r'()Z', ); - static final _isTraceOptionsRequests = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$isTraceOptionsRequests = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public boolean isTraceOptionsRequests()` - bool isTraceOptionsRequests() { - return _isTraceOptionsRequests( - reference.pointer, _id_isTraceOptionsRequests as jni$_.JMethodIDPtr) + core$_.bool get isTraceOptionsRequests { + return _get$isTraceOptionsRequests( + reference.pointer, _id_get$isTraceOptionsRequests.pointer) .boolean; } - static final _id_setTraceOptionsRequests = _class.instanceMethodId( + static final _id_set$traceOptionsRequests = + SentryOptions._class.instanceMethodId( r'setTraceOptionsRequests', r'(Z)V', ); - static final _setTraceOptionsRequests = jni$_.ProtectedJniExtensions.lookup< + static final _set$traceOptionsRequests = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -18467,23 +15618,22 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setTraceOptionsRequests(boolean z)` - void setTraceOptionsRequests( - bool z, - ) { - _setTraceOptionsRequests(reference.pointer, - _id_setTraceOptionsRequests as jni$_.JMethodIDPtr, z ? 1 : 0) + set traceOptionsRequests(core$_.bool z) { + _set$traceOptionsRequests( + reference.pointer, _id_set$traceOptionsRequests.pointer, z ? 1 : 0) .check(); } - static final _id_isEnableDatabaseTransactionTracing = _class.instanceMethodId( + static final _id_get$isEnableDatabaseTransactionTracing = + SentryOptions._class.instanceMethodId( r'isEnableDatabaseTransactionTracing', r'()Z', ); - static final _isEnableDatabaseTransactionTracing = + static final _get$isEnableDatabaseTransactionTracing = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -18497,19 +15647,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isEnableDatabaseTransactionTracing()` - bool isEnableDatabaseTransactionTracing() { - return _isEnableDatabaseTransactionTracing(reference.pointer, - _id_isEnableDatabaseTransactionTracing as jni$_.JMethodIDPtr) + core$_.bool get isEnableDatabaseTransactionTracing { + return _get$isEnableDatabaseTransactionTracing(reference.pointer, + _id_get$isEnableDatabaseTransactionTracing.pointer) .boolean; } - static final _id_setEnableDatabaseTransactionTracing = - _class.instanceMethodId( + static final _id_set$enableDatabaseTransactionTracing = + SentryOptions._class.instanceMethodId( r'setEnableDatabaseTransactionTracing', r'(Z)V', ); - static final _setEnableDatabaseTransactionTracing = + static final _set$enableDatabaseTransactionTracing = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -18517,25 +15667,22 @@ class SentryOptions extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableDatabaseTransactionTracing(boolean z)` - void setEnableDatabaseTransactionTracing( - bool z, - ) { - _setEnableDatabaseTransactionTracing( - reference.pointer, - _id_setEnableDatabaseTransactionTracing as jni$_.JMethodIDPtr, - z ? 1 : 0) + set enableDatabaseTransactionTracing(core$_.bool z) { + _set$enableDatabaseTransactionTracing(reference.pointer, + _id_set$enableDatabaseTransactionTracing.pointer, z ? 1 : 0) .check(); } - static final _id_isEnableCacheTracing = _class.instanceMethodId( + static final _id_get$isEnableCacheTracing = + SentryOptions._class.instanceMethodId( r'isEnableCacheTracing', r'()Z', ); - static final _isEnableCacheTracing = jni$_.ProtectedJniExtensions.lookup< + static final _get$isEnableCacheTracing = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18548,18 +15695,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isEnableCacheTracing()` - bool isEnableCacheTracing() { - return _isEnableCacheTracing( - reference.pointer, _id_isEnableCacheTracing as jni$_.JMethodIDPtr) + core$_.bool get isEnableCacheTracing { + return _get$isEnableCacheTracing( + reference.pointer, _id_get$isEnableCacheTracing.pointer) .boolean; } - static final _id_setEnableCacheTracing = _class.instanceMethodId( + static final _id_set$enableCacheTracing = + SentryOptions._class.instanceMethodId( r'setEnableCacheTracing', r'(Z)V', ); - static final _setEnableCacheTracing = jni$_.ProtectedJniExtensions.lookup< + static final _set$enableCacheTracing = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -18567,23 +15715,21 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableCacheTracing(boolean z)` - void setEnableCacheTracing( - bool z, - ) { - _setEnableCacheTracing(reference.pointer, - _id_setEnableCacheTracing as jni$_.JMethodIDPtr, z ? 1 : 0) + set enableCacheTracing(core$_.bool z) { + _set$enableCacheTracing( + reference.pointer, _id_set$enableCacheTracing.pointer, z ? 1 : 0) .check(); } - static final _id_isEnabled = _class.instanceMethodId( + static final _id_get$isEnabled = SentryOptions._class.instanceMethodId( r'isEnabled', r'()Z', ); - static final _isEnabled = jni$_.ProtectedJniExtensions.lookup< + static final _get$isEnabled = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18596,17 +15742,16 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isEnabled()` - bool isEnabled() { - return _isEnabled(reference.pointer, _id_isEnabled as jni$_.JMethodIDPtr) - .boolean; + core$_.bool get isEnabled { + return _get$isEnabled(reference.pointer, _id_get$isEnabled.pointer).boolean; } - static final _id_setEnabled = _class.instanceMethodId( + static final _id_set$enabled = SentryOptions._class.instanceMethodId( r'setEnabled', r'(Z)V', ); - static final _setEnabled = jni$_.ProtectedJniExtensions.lookup< + static final _set$enabled = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -18614,23 +15759,20 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnabled(boolean z)` - void setEnabled( - bool z, - ) { - _setEnabled( - reference.pointer, _id_setEnabled as jni$_.JMethodIDPtr, z ? 1 : 0) - .check(); + set enabled(core$_.bool z) { + _set$enabled(reference.pointer, _id_set$enabled.pointer, z ? 1 : 0).check(); } - static final _id_isEnablePrettySerializationOutput = _class.instanceMethodId( + static final _id_get$isEnablePrettySerializationOutput = + SentryOptions._class.instanceMethodId( r'isEnablePrettySerializationOutput', r'()Z', ); - static final _isEnablePrettySerializationOutput = + static final _get$isEnablePrettySerializationOutput = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -18644,18 +15786,18 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isEnablePrettySerializationOutput()` - bool isEnablePrettySerializationOutput() { - return _isEnablePrettySerializationOutput(reference.pointer, - _id_isEnablePrettySerializationOutput as jni$_.JMethodIDPtr) + core$_.bool get isEnablePrettySerializationOutput { + return _get$isEnablePrettySerializationOutput(reference.pointer, + _id_get$isEnablePrettySerializationOutput.pointer) .boolean; } - static final _id_isSendModules = _class.instanceMethodId( + static final _id_get$isSendModules = SentryOptions._class.instanceMethodId( r'isSendModules', r'()Z', ); - static final _isSendModules = jni$_.ProtectedJniExtensions.lookup< + static final _get$isSendModules = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18668,18 +15810,18 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isSendModules()` - bool isSendModules() { - return _isSendModules( - reference.pointer, _id_isSendModules as jni$_.JMethodIDPtr) + core$_.bool get isSendModules { + return _get$isSendModules(reference.pointer, _id_get$isSendModules.pointer) .boolean; } - static final _id_setEnablePrettySerializationOutput = _class.instanceMethodId( + static final _id_set$enablePrettySerializationOutput = + SentryOptions._class.instanceMethodId( r'setEnablePrettySerializationOutput', r'(Z)V', ); - static final _setEnablePrettySerializationOutput = + static final _set$enablePrettySerializationOutput = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -18687,49 +15829,48 @@ class SentryOptions extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnablePrettySerializationOutput(boolean z)` - void setEnablePrettySerializationOutput( - bool z, - ) { - _setEnablePrettySerializationOutput( - reference.pointer, - _id_setEnablePrettySerializationOutput as jni$_.JMethodIDPtr, - z ? 1 : 0) + set enablePrettySerializationOutput(core$_.bool z) { + _set$enablePrettySerializationOutput(reference.pointer, + _id_set$enablePrettySerializationOutput.pointer, z ? 1 : 0) .check(); } - static final _id_isEnableAppStartProfiling = _class.instanceMethodId( + static final _id_get$isEnableAppStartProfiling = + SentryOptions._class.instanceMethodId( r'isEnableAppStartProfiling', r'()Z', ); - static final _isEnableAppStartProfiling = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$isEnableAppStartProfiling = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public boolean isEnableAppStartProfiling()` - bool isEnableAppStartProfiling() { - return _isEnableAppStartProfiling(reference.pointer, - _id_isEnableAppStartProfiling as jni$_.JMethodIDPtr) + core$_.bool get isEnableAppStartProfiling { + return _get$isEnableAppStartProfiling( + reference.pointer, _id_get$isEnableAppStartProfiling.pointer) .boolean; } - static final _id_setEnableAppStartProfiling = _class.instanceMethodId( + static final _id_set$enableAppStartProfiling = + SentryOptions._class.instanceMethodId( r'setEnableAppStartProfiling', r'(Z)V', ); - static final _setEnableAppStartProfiling = + static final _set$enableAppStartProfiling = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -18737,23 +15878,21 @@ class SentryOptions extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableAppStartProfiling(boolean z)` - void setEnableAppStartProfiling( - bool z, - ) { - _setEnableAppStartProfiling(reference.pointer, - _id_setEnableAppStartProfiling as jni$_.JMethodIDPtr, z ? 1 : 0) + set enableAppStartProfiling(core$_.bool z) { + _set$enableAppStartProfiling(reference.pointer, + _id_set$enableAppStartProfiling.pointer, z ? 1 : 0) .check(); } - static final _id_setSendModules = _class.instanceMethodId( + static final _id_set$sendModules = SentryOptions._class.instanceMethodId( r'setSendModules', r'(Z)V', ); - static final _setSendModules = jni$_.ProtectedJniExtensions.lookup< + static final _set$sendModules = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -18761,23 +15900,21 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setSendModules(boolean z)` - void setSendModules( - bool z, - ) { - _setSendModules(reference.pointer, _id_setSendModules as jni$_.JMethodIDPtr, - z ? 1 : 0) + set sendModules(core$_.bool z) { + _set$sendModules(reference.pointer, _id_set$sendModules.pointer, z ? 1 : 0) .check(); } - static final _id_getIgnoredSpanOrigins = _class.instanceMethodId( + static final _id_get$ignoredSpanOrigins = + SentryOptions._class.instanceMethodId( r'getIgnoredSpanOrigins', r'()Ljava/util/List;', ); - static final _getIgnoredSpanOrigins = jni$_.ProtectedJniExtensions.lookup< + static final _get$ignoredSpanOrigins = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18791,15 +15928,13 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.util.List getIgnoredSpanOrigins()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? getIgnoredSpanOrigins() { - return _getIgnoredSpanOrigins( - reference.pointer, _id_getIgnoredSpanOrigins as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); + jni$_.JList? get ignoredSpanOrigins { + return _get$ignoredSpanOrigins( + reference.pointer, _id_get$ignoredSpanOrigins.pointer) + .object?>(); } - static final _id_addIgnoredSpanOrigin = _class.instanceMethodId( + static final _id_addIgnoredSpanOrigin = SentryOptions._class.instanceMethodId( r'addIgnoredSpanOrigin', r'(Ljava/lang/String;)V', ); @@ -18820,17 +15955,18 @@ class SentryOptions extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - _addIgnoredSpanOrigin(reference.pointer, - _id_addIgnoredSpanOrigin as jni$_.JMethodIDPtr, _$string.pointer) + _addIgnoredSpanOrigin(reference.pointer, _id_addIgnoredSpanOrigin.pointer, + _$string.pointer) .check(); } - static final _id_setIgnoredSpanOrigins = _class.instanceMethodId( + static final _id_set$ignoredSpanOrigins$1 = + SentryOptions._class.instanceMethodId( r'setIgnoredSpanOrigins', r'(Ljava/util/List;)V', ); - static final _setIgnoredSpanOrigins = jni$_.ProtectedJniExtensions.lookup< + static final _set$ignoredSpanOrigins$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -18842,21 +15978,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setIgnoredSpanOrigins(java.util.List list)` - void setIgnoredSpanOrigins( - jni$_.JList? list, - ) { + set ignoredSpanOrigins$1(jni$_.JList? list) { final _$list = list?.reference ?? jni$_.jNullReference; - _setIgnoredSpanOrigins(reference.pointer, - _id_setIgnoredSpanOrigins as jni$_.JMethodIDPtr, _$list.pointer) + _set$ignoredSpanOrigins$1(reference.pointer, + _id_set$ignoredSpanOrigins$1.pointer, _$list.pointer) .check(); } - static final _id_getIgnoredCheckIns = _class.instanceMethodId( + static final _id_get$ignoredCheckIns = SentryOptions._class.instanceMethodId( r'getIgnoredCheckIns', r'()Ljava/util/List;', ); - static final _getIgnoredCheckIns = jni$_.ProtectedJniExtensions.lookup< + static final _get$ignoredCheckIns = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18870,15 +16004,13 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.util.List getIgnoredCheckIns()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? getIgnoredCheckIns() { - return _getIgnoredCheckIns( - reference.pointer, _id_getIgnoredCheckIns as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); + jni$_.JList? get ignoredCheckIns { + return _get$ignoredCheckIns( + reference.pointer, _id_get$ignoredCheckIns.pointer) + .object?>(); } - static final _id_addIgnoredCheckIn = _class.instanceMethodId( + static final _id_addIgnoredCheckIn = SentryOptions._class.instanceMethodId( r'addIgnoredCheckIn', r'(Ljava/lang/String;)V', ); @@ -18899,17 +16031,18 @@ class SentryOptions extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - _addIgnoredCheckIn(reference.pointer, - _id_addIgnoredCheckIn as jni$_.JMethodIDPtr, _$string.pointer) + _addIgnoredCheckIn( + reference.pointer, _id_addIgnoredCheckIn.pointer, _$string.pointer) .check(); } - static final _id_setIgnoredCheckIns = _class.instanceMethodId( + static final _id_set$ignoredCheckIns$1 = + SentryOptions._class.instanceMethodId( r'setIgnoredCheckIns', r'(Ljava/util/List;)V', ); - static final _setIgnoredCheckIns = jni$_.ProtectedJniExtensions.lookup< + static final _set$ignoredCheckIns$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -18921,21 +16054,20 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setIgnoredCheckIns(java.util.List list)` - void setIgnoredCheckIns( - jni$_.JList? list, - ) { + set ignoredCheckIns$1(jni$_.JList? list) { final _$list = list?.reference ?? jni$_.jNullReference; - _setIgnoredCheckIns(reference.pointer, - _id_setIgnoredCheckIns as jni$_.JMethodIDPtr, _$list.pointer) + _set$ignoredCheckIns$1(reference.pointer, _id_set$ignoredCheckIns$1.pointer, + _$list.pointer) .check(); } - static final _id_getIgnoredTransactions = _class.instanceMethodId( + static final _id_get$ignoredTransactions = + SentryOptions._class.instanceMethodId( r'getIgnoredTransactions', r'()Ljava/util/List;', ); - static final _getIgnoredTransactions = jni$_.ProtectedJniExtensions.lookup< + static final _get$ignoredTransactions = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18949,15 +16081,14 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.util.List getIgnoredTransactions()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? getIgnoredTransactions() { - return _getIgnoredTransactions( - reference.pointer, _id_getIgnoredTransactions as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); + jni$_.JList? get ignoredTransactions { + return _get$ignoredTransactions( + reference.pointer, _id_get$ignoredTransactions.pointer) + .object?>(); } - static final _id_addIgnoredTransaction = _class.instanceMethodId( + static final _id_addIgnoredTransaction = + SentryOptions._class.instanceMethodId( r'addIgnoredTransaction', r'(Ljava/lang/String;)V', ); @@ -18978,17 +16109,18 @@ class SentryOptions extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - _addIgnoredTransaction(reference.pointer, - _id_addIgnoredTransaction as jni$_.JMethodIDPtr, _$string.pointer) + _addIgnoredTransaction(reference.pointer, _id_addIgnoredTransaction.pointer, + _$string.pointer) .check(); } - static final _id_setIgnoredTransactions = _class.instanceMethodId( + static final _id_set$ignoredTransactions$1 = + SentryOptions._class.instanceMethodId( r'setIgnoredTransactions', r'(Ljava/util/List;)V', ); - static final _setIgnoredTransactions = jni$_.ProtectedJniExtensions.lookup< + static final _set$ignoredTransactions$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -19000,21 +16132,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setIgnoredTransactions(java.util.List list)` - void setIgnoredTransactions( - jni$_.JList? list, - ) { + set ignoredTransactions$1(jni$_.JList? list) { final _$list = list?.reference ?? jni$_.jNullReference; - _setIgnoredTransactions(reference.pointer, - _id_setIgnoredTransactions as jni$_.JMethodIDPtr, _$list.pointer) + _set$ignoredTransactions$1(reference.pointer, + _id_set$ignoredTransactions$1.pointer, _$list.pointer) .check(); } - static final _id_getDateProvider = _class.instanceMethodId( + static final _id_get$dateProvider = SentryOptions._class.instanceMethodId( r'getDateProvider', r'()Lio/sentry/SentryDateProvider;', ); - static final _getDateProvider = jni$_.ProtectedJniExtensions.lookup< + static final _get$dateProvider = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -19028,18 +16158,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.SentryDateProvider getDateProvider()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getDateProvider() { - return _getDateProvider( - reference.pointer, _id_getDateProvider as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get dateProvider { + return _get$dateProvider(reference.pointer, _id_get$dateProvider.pointer) + .object(); } - static final _id_setDateProvider = _class.instanceMethodId( + static final _id_set$dateProvider = SentryOptions._class.instanceMethodId( r'setDateProvider', r'(Lio/sentry/SentryDateProvider;)V', ); - static final _setDateProvider = jni$_.ProtectedJniExtensions.lookup< + static final _set$dateProvider = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -19051,18 +16180,15 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setDateProvider(io.sentry.SentryDateProvider sentryDateProvider)` - void setDateProvider( - jni$_.JObject sentryDateProvider, - ) { + set dateProvider(jni$_.JObject sentryDateProvider) { final _$sentryDateProvider = sentryDateProvider.reference; - _setDateProvider( - reference.pointer, - _id_setDateProvider as jni$_.JMethodIDPtr, + _set$dateProvider(reference.pointer, _id_set$dateProvider.pointer, _$sentryDateProvider.pointer) .check(); } - static final _id_addPerformanceCollector = _class.instanceMethodId( + static final _id_addPerformanceCollector = + SentryOptions._class.instanceMethodId( r'addPerformanceCollector', r'(Lio/sentry/IPerformanceCollector;)V', ); @@ -19085,17 +16211,18 @@ class SentryOptions extends jni$_.JObject { final _$iPerformanceCollector = iPerformanceCollector.reference; _addPerformanceCollector( reference.pointer, - _id_addPerformanceCollector as jni$_.JMethodIDPtr, + _id_addPerformanceCollector.pointer, _$iPerformanceCollector.pointer) .check(); } - static final _id_getPerformanceCollectors = _class.instanceMethodId( + static final _id_get$performanceCollectors = + SentryOptions._class.instanceMethodId( r'getPerformanceCollectors', r'()Ljava/util/List;', ); - static final _getPerformanceCollectors = jni$_.ProtectedJniExtensions.lookup< + static final _get$performanceCollectors = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -19109,19 +16236,19 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.util.List getPerformanceCollectors()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList getPerformanceCollectors() { - return _getPerformanceCollectors(reference.pointer, - _id_getPerformanceCollectors as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectNullableType())); + jni$_.JList get performanceCollectors { + return _get$performanceCollectors( + reference.pointer, _id_get$performanceCollectors.pointer) + .object>(); } - static final _id_getConnectionStatusProvider = _class.instanceMethodId( + static final _id_get$connectionStatusProvider = + SentryOptions._class.instanceMethodId( r'getConnectionStatusProvider', r'()Lio/sentry/IConnectionStatusProvider;', ); - static final _getConnectionStatusProvider = + static final _get$connectionStatusProvider = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -19136,18 +16263,19 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.IConnectionStatusProvider getConnectionStatusProvider()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getConnectionStatusProvider() { - return _getConnectionStatusProvider(reference.pointer, - _id_getConnectionStatusProvider as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get connectionStatusProvider { + return _get$connectionStatusProvider( + reference.pointer, _id_get$connectionStatusProvider.pointer) + .object(); } - static final _id_setConnectionStatusProvider = _class.instanceMethodId( + static final _id_set$connectionStatusProvider = + SentryOptions._class.instanceMethodId( r'setConnectionStatusProvider', r'(Lio/sentry/IConnectionStatusProvider;)V', ); - static final _setConnectionStatusProvider = + static final _set$connectionStatusProvider = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( @@ -19160,23 +16288,22 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setConnectionStatusProvider(io.sentry.IConnectionStatusProvider iConnectionStatusProvider)` - void setConnectionStatusProvider( - jni$_.JObject iConnectionStatusProvider, - ) { + set connectionStatusProvider(jni$_.JObject iConnectionStatusProvider) { final _$iConnectionStatusProvider = iConnectionStatusProvider.reference; - _setConnectionStatusProvider( + _set$connectionStatusProvider( reference.pointer, - _id_setConnectionStatusProvider as jni$_.JMethodIDPtr, + _id_set$connectionStatusProvider.pointer, _$iConnectionStatusProvider.pointer) .check(); } - static final _id_getBackpressureMonitor = _class.instanceMethodId( + static final _id_get$backpressureMonitor = + SentryOptions._class.instanceMethodId( r'getBackpressureMonitor', r'()Lio/sentry/backpressure/IBackpressureMonitor;', ); - static final _getBackpressureMonitor = jni$_.ProtectedJniExtensions.lookup< + static final _get$backpressureMonitor = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -19190,18 +16317,19 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.backpressure.IBackpressureMonitor getBackpressureMonitor()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getBackpressureMonitor() { - return _getBackpressureMonitor( - reference.pointer, _id_getBackpressureMonitor as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get backpressureMonitor { + return _get$backpressureMonitor( + reference.pointer, _id_get$backpressureMonitor.pointer) + .object(); } - static final _id_setBackpressureMonitor = _class.instanceMethodId( + static final _id_set$backpressureMonitor = + SentryOptions._class.instanceMethodId( r'setBackpressureMonitor', r'(Lio/sentry/backpressure/IBackpressureMonitor;)V', ); - static final _setBackpressureMonitor = jni$_.ProtectedJniExtensions.lookup< + static final _set$backpressureMonitor = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -19213,23 +16341,20 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setBackpressureMonitor(io.sentry.backpressure.IBackpressureMonitor iBackpressureMonitor)` - void setBackpressureMonitor( - jni$_.JObject iBackpressureMonitor, - ) { + set backpressureMonitor(jni$_.JObject iBackpressureMonitor) { final _$iBackpressureMonitor = iBackpressureMonitor.reference; - _setBackpressureMonitor( - reference.pointer, - _id_setBackpressureMonitor as jni$_.JMethodIDPtr, - _$iBackpressureMonitor.pointer) + _set$backpressureMonitor(reference.pointer, + _id_set$backpressureMonitor.pointer, _$iBackpressureMonitor.pointer) .check(); } - static final _id_setEnableBackpressureHandling = _class.instanceMethodId( + static final _id_set$enableBackpressureHandling = + SentryOptions._class.instanceMethodId( r'setEnableBackpressureHandling', r'(Z)V', ); - static final _setEnableBackpressureHandling = + static final _set$enableBackpressureHandling = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -19237,23 +16362,21 @@ class SentryOptions extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableBackpressureHandling(boolean z)` - void setEnableBackpressureHandling( - bool z, - ) { - _setEnableBackpressureHandling(reference.pointer, - _id_setEnableBackpressureHandling as jni$_.JMethodIDPtr, z ? 1 : 0) + set enableBackpressureHandling(core$_.bool z) { + _set$enableBackpressureHandling(reference.pointer, + _id_set$enableBackpressureHandling.pointer, z ? 1 : 0) .check(); } - static final _id_getVersionDetector = _class.instanceMethodId( + static final _id_get$versionDetector = SentryOptions._class.instanceMethodId( r'getVersionDetector', r'()Lio/sentry/IVersionDetector;', ); - static final _getVersionDetector = jni$_.ProtectedJniExtensions.lookup< + static final _get$versionDetector = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -19267,18 +16390,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.IVersionDetector getVersionDetector()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getVersionDetector() { - return _getVersionDetector( - reference.pointer, _id_getVersionDetector as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get versionDetector { + return _get$versionDetector( + reference.pointer, _id_get$versionDetector.pointer) + .object(); } - static final _id_setVersionDetector = _class.instanceMethodId( + static final _id_set$versionDetector = SentryOptions._class.instanceMethodId( r'setVersionDetector', r'(Lio/sentry/IVersionDetector;)V', ); - static final _setVersionDetector = jni$_.ProtectedJniExtensions.lookup< + static final _set$versionDetector = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -19290,23 +16413,20 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setVersionDetector(io.sentry.IVersionDetector iVersionDetector)` - void setVersionDetector( - jni$_.JObject iVersionDetector, - ) { + set versionDetector(jni$_.JObject iVersionDetector) { final _$iVersionDetector = iVersionDetector.reference; - _setVersionDetector( - reference.pointer, - _id_setVersionDetector as jni$_.JMethodIDPtr, + _set$versionDetector(reference.pointer, _id_set$versionDetector.pointer, _$iVersionDetector.pointer) .check(); } - static final _id_getProfilingTracesHz = _class.instanceMethodId( + static final _id_get$profilingTracesHz = + SentryOptions._class.instanceMethodId( r'getProfilingTracesHz', r'()I', ); - static final _getProfilingTracesHz = jni$_.ProtectedJniExtensions.lookup< + static final _get$profilingTracesHz = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -19319,18 +16439,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public int getProfilingTracesHz()` - int getProfilingTracesHz() { - return _getProfilingTracesHz( - reference.pointer, _id_getProfilingTracesHz as jni$_.JMethodIDPtr) + core$_.int get profilingTracesHz { + return _get$profilingTracesHz( + reference.pointer, _id_get$profilingTracesHz.pointer) .integer; } - static final _id_setProfilingTracesHz = _class.instanceMethodId( + static final _id_set$profilingTracesHz = + SentryOptions._class.instanceMethodId( r'setProfilingTracesHz', r'(I)V', ); - static final _setProfilingTracesHz = jni$_.ProtectedJniExtensions.lookup< + static final _set$profilingTracesHz = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -19338,23 +16459,22 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setProfilingTracesHz(int i)` - void setProfilingTracesHz( - int i, - ) { - _setProfilingTracesHz(reference.pointer, - _id_setProfilingTracesHz as jni$_.JMethodIDPtr, i) + set profilingTracesHz(core$_.int i) { + _set$profilingTracesHz( + reference.pointer, _id_set$profilingTracesHz.pointer, i) .check(); } - static final _id_isEnableBackpressureHandling = _class.instanceMethodId( + static final _id_get$isEnableBackpressureHandling = + SentryOptions._class.instanceMethodId( r'isEnableBackpressureHandling', r'()Z', ); - static final _isEnableBackpressureHandling = + static final _get$isEnableBackpressureHandling = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -19368,18 +16488,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isEnableBackpressureHandling()` - bool isEnableBackpressureHandling() { - return _isEnableBackpressureHandling(reference.pointer, - _id_isEnableBackpressureHandling as jni$_.JMethodIDPtr) + core$_.bool get isEnableBackpressureHandling { + return _get$isEnableBackpressureHandling( + reference.pointer, _id_get$isEnableBackpressureHandling.pointer) .boolean; } - static final _id_getSessionFlushTimeoutMillis = _class.instanceMethodId( + static final _id_get$sessionFlushTimeoutMillis = + SentryOptions._class.instanceMethodId( r'getSessionFlushTimeoutMillis', r'()J', ); - static final _getSessionFlushTimeoutMillis = + static final _get$sessionFlushTimeoutMillis = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -19393,18 +16514,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public long getSessionFlushTimeoutMillis()` - int getSessionFlushTimeoutMillis() { - return _getSessionFlushTimeoutMillis(reference.pointer, - _id_getSessionFlushTimeoutMillis as jni$_.JMethodIDPtr) + core$_.int get sessionFlushTimeoutMillis { + return _get$sessionFlushTimeoutMillis( + reference.pointer, _id_get$sessionFlushTimeoutMillis.pointer) .long; } - static final _id_setSessionFlushTimeoutMillis = _class.instanceMethodId( + static final _id_set$sessionFlushTimeoutMillis = + SentryOptions._class.instanceMethodId( r'setSessionFlushTimeoutMillis', r'(J)V', ); - static final _setSessionFlushTimeoutMillis = + static final _set$sessionFlushTimeoutMillis = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -19412,131 +16534,132 @@ class SentryOptions extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setSessionFlushTimeoutMillis(long j)` - void setSessionFlushTimeoutMillis( - int j, - ) { - _setSessionFlushTimeoutMillis(reference.pointer, - _id_setSessionFlushTimeoutMillis as jni$_.JMethodIDPtr, j) + set sessionFlushTimeoutMillis(core$_.int j) { + _set$sessionFlushTimeoutMillis( + reference.pointer, _id_set$sessionFlushTimeoutMillis.pointer, j) .check(); } - static final _id_getBeforeEnvelopeCallback = _class.instanceMethodId( + static final _id_get$beforeEnvelopeCallback = + SentryOptions._class.instanceMethodId( r'getBeforeEnvelopeCallback', r'()Lio/sentry/SentryOptions$BeforeEnvelopeCallback;', ); - static final _getBeforeEnvelopeCallback = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$beforeEnvelopeCallback = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public io.sentry.SentryOptions$BeforeEnvelopeCallback getBeforeEnvelopeCallback()` /// The returned object must be released after use, by calling the [release] method. - SentryOptions$BeforeEnvelopeCallback? getBeforeEnvelopeCallback() { - return _getBeforeEnvelopeCallback(reference.pointer, - _id_getBeforeEnvelopeCallback as jni$_.JMethodIDPtr) - .object( - const $SentryOptions$BeforeEnvelopeCallback$NullableType()); + SentryOptions$BeforeEnvelopeCallback? get beforeEnvelopeCallback { + return _get$beforeEnvelopeCallback( + reference.pointer, _id_get$beforeEnvelopeCallback.pointer) + .object(); } - static final _id_setBeforeEnvelopeCallback = _class.instanceMethodId( + static final _id_set$beforeEnvelopeCallback = + SentryOptions._class.instanceMethodId( r'setBeforeEnvelopeCallback', r'(Lio/sentry/SentryOptions$BeforeEnvelopeCallback;)V', ); - static final _setBeforeEnvelopeCallback = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _set$beforeEnvelopeCallback = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setBeforeEnvelopeCallback(io.sentry.SentryOptions$BeforeEnvelopeCallback beforeEnvelopeCallback)` - void setBeforeEnvelopeCallback( - SentryOptions$BeforeEnvelopeCallback? beforeEnvelopeCallback, - ) { + set beforeEnvelopeCallback( + SentryOptions$BeforeEnvelopeCallback? beforeEnvelopeCallback) { final _$beforeEnvelopeCallback = beforeEnvelopeCallback?.reference ?? jni$_.jNullReference; - _setBeforeEnvelopeCallback( + _set$beforeEnvelopeCallback( reference.pointer, - _id_setBeforeEnvelopeCallback as jni$_.JMethodIDPtr, + _id_set$beforeEnvelopeCallback.pointer, _$beforeEnvelopeCallback.pointer) .check(); } - static final _id_getSpotlightConnectionUrl = _class.instanceMethodId( + static final _id_get$spotlightConnectionUrl = + SentryOptions._class.instanceMethodId( r'getSpotlightConnectionUrl', r'()Ljava/lang/String;', ); - static final _getSpotlightConnectionUrl = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$spotlightConnectionUrl = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public java.lang.String getSpotlightConnectionUrl()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getSpotlightConnectionUrl() { - return _getSpotlightConnectionUrl(reference.pointer, - _id_getSpotlightConnectionUrl as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get spotlightConnectionUrl { + return _get$spotlightConnectionUrl( + reference.pointer, _id_get$spotlightConnectionUrl.pointer) + .object(); } - static final _id_setSpotlightConnectionUrl = _class.instanceMethodId( + static final _id_set$spotlightConnectionUrl = + SentryOptions._class.instanceMethodId( r'setSpotlightConnectionUrl', r'(Ljava/lang/String;)V', ); - static final _setSpotlightConnectionUrl = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _set$spotlightConnectionUrl = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setSpotlightConnectionUrl(java.lang.String string)` - void setSpotlightConnectionUrl( - jni$_.JString? string, - ) { + set spotlightConnectionUrl(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setSpotlightConnectionUrl( - reference.pointer, - _id_setSpotlightConnectionUrl as jni$_.JMethodIDPtr, - _$string.pointer) + _set$spotlightConnectionUrl(reference.pointer, + _id_set$spotlightConnectionUrl.pointer, _$string.pointer) .check(); } - static final _id_isEnableSpotlight = _class.instanceMethodId( + static final _id_get$isEnableSpotlight = + SentryOptions._class.instanceMethodId( r'isEnableSpotlight', r'()Z', ); - static final _isEnableSpotlight = jni$_.ProtectedJniExtensions.lookup< + static final _get$isEnableSpotlight = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -19549,18 +16672,18 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isEnableSpotlight()` - bool isEnableSpotlight() { - return _isEnableSpotlight( - reference.pointer, _id_isEnableSpotlight as jni$_.JMethodIDPtr) + core$_.bool get isEnableSpotlight { + return _get$isEnableSpotlight( + reference.pointer, _id_get$isEnableSpotlight.pointer) .boolean; } - static final _id_setEnableSpotlight = _class.instanceMethodId( + static final _id_set$enableSpotlight = SentryOptions._class.instanceMethodId( r'setEnableSpotlight', r'(Z)V', ); - static final _setEnableSpotlight = jni$_.ProtectedJniExtensions.lookup< + static final _set$enableSpotlight = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -19568,71 +16691,70 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableSpotlight(boolean z)` - void setEnableSpotlight( - bool z, - ) { - _setEnableSpotlight(reference.pointer, - _id_setEnableSpotlight as jni$_.JMethodIDPtr, z ? 1 : 0) + set enableSpotlight(core$_.bool z) { + _set$enableSpotlight( + reference.pointer, _id_set$enableSpotlight.pointer, z ? 1 : 0) .check(); } - static final _id_isEnableScopePersistence = _class.instanceMethodId( + static final _id_get$isEnableScopePersistence = + SentryOptions._class.instanceMethodId( r'isEnableScopePersistence', r'()Z', ); - static final _isEnableScopePersistence = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$isEnableScopePersistence = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public boolean isEnableScopePersistence()` - bool isEnableScopePersistence() { - return _isEnableScopePersistence(reference.pointer, - _id_isEnableScopePersistence as jni$_.JMethodIDPtr) + core$_.bool get isEnableScopePersistence { + return _get$isEnableScopePersistence( + reference.pointer, _id_get$isEnableScopePersistence.pointer) .boolean; } - static final _id_setEnableScopePersistence = _class.instanceMethodId( + static final _id_set$enableScopePersistence = + SentryOptions._class.instanceMethodId( r'setEnableScopePersistence', r'(Z)V', ); - static final _setEnableScopePersistence = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _set$enableScopePersistence = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableScopePersistence(boolean z)` - void setEnableScopePersistence( - bool z, - ) { - _setEnableScopePersistence(reference.pointer, - _id_setEnableScopePersistence as jni$_.JMethodIDPtr, z ? 1 : 0) + set enableScopePersistence(core$_.bool z) { + _set$enableScopePersistence(reference.pointer, + _id_set$enableScopePersistence.pointer, z ? 1 : 0) .check(); } - static final _id_getCron = _class.instanceMethodId( + static final _id_get$cron = SentryOptions._class.instanceMethodId( r'getCron', r'()Lio/sentry/SentryOptions$Cron;', ); - static final _getCron = jni$_.ProtectedJniExtensions.lookup< + static final _get$cron = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -19646,17 +16768,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.SentryOptions$Cron getCron()` /// The returned object must be released after use, by calling the [release] method. - SentryOptions$Cron? getCron() { - return _getCron(reference.pointer, _id_getCron as jni$_.JMethodIDPtr) - .object(const $SentryOptions$Cron$NullableType()); + SentryOptions$Cron? get cron { + return _get$cron(reference.pointer, _id_get$cron.pointer) + .object(); } - static final _id_setCron = _class.instanceMethodId( + static final _id_set$cron = SentryOptions._class.instanceMethodId( r'setCron', r'(Lio/sentry/SentryOptions$Cron;)V', ); - static final _setCron = jni$_.ProtectedJniExtensions.lookup< + static final _set$cron = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -19668,21 +16790,17 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setCron(io.sentry.SentryOptions$Cron cron)` - void setCron( - SentryOptions$Cron? cron, - ) { + set cron(SentryOptions$Cron? cron) { final _$cron = cron?.reference ?? jni$_.jNullReference; - _setCron(reference.pointer, _id_setCron as jni$_.JMethodIDPtr, - _$cron.pointer) - .check(); + _set$cron(reference.pointer, _id_set$cron.pointer, _$cron.pointer).check(); } - static final _id_getExperimental = _class.instanceMethodId( + static final _id_get$experimental = SentryOptions._class.instanceMethodId( r'getExperimental', r'()Lio/sentry/ExperimentalOptions;', ); - static final _getExperimental = jni$_.ProtectedJniExtensions.lookup< + static final _get$experimental = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -19696,18 +16814,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.ExperimentalOptions getExperimental()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getExperimental() { - return _getExperimental( - reference.pointer, _id_getExperimental as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get experimental { + return _get$experimental(reference.pointer, _id_get$experimental.pointer) + .object(); } - static final _id_getReplayController = _class.instanceMethodId( + static final _id_get$replayController = SentryOptions._class.instanceMethodId( r'getReplayController', r'()Lio/sentry/ReplayController;', ); - static final _getReplayController = jni$_.ProtectedJniExtensions.lookup< + static final _get$replayController = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -19721,18 +16838,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.ReplayController getReplayController()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getReplayController() { - return _getReplayController( - reference.pointer, _id_getReplayController as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get replayController { + return _get$replayController( + reference.pointer, _id_get$replayController.pointer) + .object(); } - static final _id_setReplayController = _class.instanceMethodId( + static final _id_set$replayController = SentryOptions._class.instanceMethodId( r'setReplayController', r'(Lio/sentry/ReplayController;)V', ); - static final _setReplayController = jni$_.ProtectedJniExtensions.lookup< + static final _set$replayController = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -19744,102 +16861,101 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setReplayController(io.sentry.ReplayController replayController)` - void setReplayController( - jni$_.JObject? replayController, - ) { + set replayController(jni$_.JObject? replayController) { final _$replayController = replayController?.reference ?? jni$_.jNullReference; - _setReplayController( - reference.pointer, - _id_setReplayController as jni$_.JMethodIDPtr, + _set$replayController(reference.pointer, _id_set$replayController.pointer, _$replayController.pointer) .check(); } - static final _id_getDistributionController = _class.instanceMethodId( + static final _id_get$distributionController = + SentryOptions._class.instanceMethodId( r'getDistributionController', r'()Lio/sentry/IDistributionApi;', ); - static final _getDistributionController = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$distributionController = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public io.sentry.IDistributionApi getDistributionController()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getDistributionController() { - return _getDistributionController(reference.pointer, - _id_getDistributionController as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get distributionController { + return _get$distributionController( + reference.pointer, _id_get$distributionController.pointer) + .object(); } - static final _id_setDistributionController = _class.instanceMethodId( + static final _id_set$distributionController = + SentryOptions._class.instanceMethodId( r'setDistributionController', r'(Lio/sentry/IDistributionApi;)V', ); - static final _setDistributionController = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _set$distributionController = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setDistributionController(io.sentry.IDistributionApi iDistributionApi)` - void setDistributionController( - jni$_.JObject? iDistributionApi, - ) { + set distributionController(jni$_.JObject? iDistributionApi) { final _$iDistributionApi = iDistributionApi?.reference ?? jni$_.jNullReference; - _setDistributionController( - reference.pointer, - _id_setDistributionController as jni$_.JMethodIDPtr, - _$iDistributionApi.pointer) + _set$distributionController(reference.pointer, + _id_set$distributionController.pointer, _$iDistributionApi.pointer) .check(); } - static final _id_isEnableScreenTracking = _class.instanceMethodId( + static final _id_get$isEnableScreenTracking = + SentryOptions._class.instanceMethodId( r'isEnableScreenTracking', r'()Z', ); - static final _isEnableScreenTracking = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$isEnableScreenTracking = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public boolean isEnableScreenTracking()` - bool isEnableScreenTracking() { - return _isEnableScreenTracking( - reference.pointer, _id_isEnableScreenTracking as jni$_.JMethodIDPtr) + core$_.bool get isEnableScreenTracking { + return _get$isEnableScreenTracking( + reference.pointer, _id_get$isEnableScreenTracking.pointer) .boolean; } - static final _id_setEnableScreenTracking = _class.instanceMethodId( + static final _id_set$enableScreenTracking = + SentryOptions._class.instanceMethodId( r'setEnableScreenTracking', r'(Z)V', ); - static final _setEnableScreenTracking = jni$_.ProtectedJniExtensions.lookup< + static final _set$enableScreenTracking = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -19847,23 +16963,21 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setEnableScreenTracking(boolean z)` - void setEnableScreenTracking( - bool z, - ) { - _setEnableScreenTracking(reference.pointer, - _id_setEnableScreenTracking as jni$_.JMethodIDPtr, z ? 1 : 0) + set enableScreenTracking(core$_.bool z) { + _set$enableScreenTracking( + reference.pointer, _id_set$enableScreenTracking.pointer, z ? 1 : 0) .check(); } - static final _id_setDefaultScopeType = _class.instanceMethodId( + static final _id_set$defaultScopeType = SentryOptions._class.instanceMethodId( r'setDefaultScopeType', r'(Lio/sentry/ScopeType;)V', ); - static final _setDefaultScopeType = jni$_.ProtectedJniExtensions.lookup< + static final _set$defaultScopeType = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -19875,21 +16989,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setDefaultScopeType(io.sentry.ScopeType scopeType)` - void setDefaultScopeType( - jni$_.JObject scopeType, - ) { + set defaultScopeType(jni$_.JObject scopeType) { final _$scopeType = scopeType.reference; - _setDefaultScopeType(reference.pointer, - _id_setDefaultScopeType as jni$_.JMethodIDPtr, _$scopeType.pointer) + _set$defaultScopeType(reference.pointer, _id_set$defaultScopeType.pointer, + _$scopeType.pointer) .check(); } - static final _id_getDefaultScopeType = _class.instanceMethodId( + static final _id_get$defaultScopeType = SentryOptions._class.instanceMethodId( r'getDefaultScopeType', r'()Lio/sentry/ScopeType;', ); - static final _getDefaultScopeType = jni$_.ProtectedJniExtensions.lookup< + static final _get$defaultScopeType = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -19903,18 +17015,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.ScopeType getDefaultScopeType()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getDefaultScopeType() { - return _getDefaultScopeType( - reference.pointer, _id_getDefaultScopeType as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get defaultScopeType { + return _get$defaultScopeType( + reference.pointer, _id_get$defaultScopeType.pointer) + .object(); } - static final _id_setInitPriority = _class.instanceMethodId( + static final _id_set$initPriority = SentryOptions._class.instanceMethodId( r'setInitPriority', r'(Lio/sentry/InitPriority;)V', ); - static final _setInitPriority = jni$_.ProtectedJniExtensions.lookup< + static final _set$initPriority = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -19926,21 +17038,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setInitPriority(io.sentry.InitPriority initPriority)` - void setInitPriority( - jni$_.JObject initPriority, - ) { + set initPriority(jni$_.JObject initPriority) { final _$initPriority = initPriority.reference; - _setInitPriority(reference.pointer, - _id_setInitPriority as jni$_.JMethodIDPtr, _$initPriority.pointer) + _set$initPriority(reference.pointer, _id_set$initPriority.pointer, + _$initPriority.pointer) .check(); } - static final _id_getInitPriority = _class.instanceMethodId( + static final _id_get$initPriority = SentryOptions._class.instanceMethodId( r'getInitPriority', r'()Lio/sentry/InitPriority;', ); - static final _getInitPriority = jni$_.ProtectedJniExtensions.lookup< + static final _get$initPriority = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -19954,18 +17064,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.InitPriority getInitPriority()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getInitPriority() { - return _getInitPriority( - reference.pointer, _id_getInitPriority as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get initPriority { + return _get$initPriority(reference.pointer, _id_get$initPriority.pointer) + .object(); } - static final _id_setForceInit = _class.instanceMethodId( + static final _id_set$forceInit = SentryOptions._class.instanceMethodId( r'setForceInit', r'(Z)V', ); - static final _setForceInit = jni$_.ProtectedJniExtensions.lookup< + static final _set$forceInit = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -19973,23 +17082,20 @@ class SentryOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setForceInit(boolean z)` - void setForceInit( - bool z, - ) { - _setForceInit(reference.pointer, _id_setForceInit as jni$_.JMethodIDPtr, - z ? 1 : 0) + set forceInit(core$_.bool z) { + _set$forceInit(reference.pointer, _id_set$forceInit.pointer, z ? 1 : 0) .check(); } - static final _id_isForceInit = _class.instanceMethodId( + static final _id_get$isForceInit = SentryOptions._class.instanceMethodId( r'isForceInit', r'()Z', ); - static final _isForceInit = jni$_.ProtectedJniExtensions.lookup< + static final _get$isForceInit = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -20002,18 +17108,17 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isForceInit()` - bool isForceInit() { - return _isForceInit( - reference.pointer, _id_isForceInit as jni$_.JMethodIDPtr) + core$_.bool get isForceInit { + return _get$isForceInit(reference.pointer, _id_get$isForceInit.pointer) .boolean; } - static final _id_setGlobalHubMode = _class.instanceMethodId( + static final _id_set$globalHubMode = SentryOptions._class.instanceMethodId( r'setGlobalHubMode', r'(Ljava/lang/Boolean;)V', ); - static final _setGlobalHubMode = jni$_.ProtectedJniExtensions.lookup< + static final _set$globalHubMode = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -20025,16 +17130,14 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setGlobalHubMode(java.lang.Boolean boolean)` - void setGlobalHubMode( - jni$_.JBoolean? boolean, - ) { + set globalHubMode(jni$_.JBoolean? boolean) { final _$boolean = boolean?.reference ?? jni$_.jNullReference; - _setGlobalHubMode(reference.pointer, - _id_setGlobalHubMode as jni$_.JMethodIDPtr, _$boolean.pointer) + _set$globalHubMode( + reference.pointer, _id_set$globalHubMode.pointer, _$boolean.pointer) .check(); } - static final _id_isGlobalHubMode = _class.instanceMethodId( + static final _id_isGlobalHubMode = SentryOptions._class.instanceMethodId( r'isGlobalHubMode', r'()Ljava/lang/Boolean;', ); @@ -20054,17 +17157,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.lang.Boolean isGlobalHubMode()` /// The returned object must be released after use, by calling the [release] method. jni$_.JBoolean? isGlobalHubMode() { - return _isGlobalHubMode( - reference.pointer, _id_isGlobalHubMode as jni$_.JMethodIDPtr) - .object(const jni$_.JBooleanNullableType()); + return _isGlobalHubMode(reference.pointer, _id_isGlobalHubMode.pointer) + .object(); } - static final _id_setOpenTelemetryMode = _class.instanceMethodId( + static final _id_set$openTelemetryMode = + SentryOptions._class.instanceMethodId( r'setOpenTelemetryMode', r'(Lio/sentry/SentryOpenTelemetryMode;)V', ); - static final _setOpenTelemetryMode = jni$_.ProtectedJniExtensions.lookup< + static final _set$openTelemetryMode = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -20076,23 +17179,20 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setOpenTelemetryMode(io.sentry.SentryOpenTelemetryMode sentryOpenTelemetryMode)` - void setOpenTelemetryMode( - jni$_.JObject sentryOpenTelemetryMode, - ) { + set openTelemetryMode(jni$_.JObject sentryOpenTelemetryMode) { final _$sentryOpenTelemetryMode = sentryOpenTelemetryMode.reference; - _setOpenTelemetryMode( - reference.pointer, - _id_setOpenTelemetryMode as jni$_.JMethodIDPtr, + _set$openTelemetryMode(reference.pointer, _id_set$openTelemetryMode.pointer, _$sentryOpenTelemetryMode.pointer) .check(); } - static final _id_getOpenTelemetryMode = _class.instanceMethodId( + static final _id_get$openTelemetryMode = + SentryOptions._class.instanceMethodId( r'getOpenTelemetryMode', r'()Lio/sentry/SentryOpenTelemetryMode;', ); - static final _getOpenTelemetryMode = jni$_.ProtectedJniExtensions.lookup< + static final _get$openTelemetryMode = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -20106,18 +17206,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.SentryOpenTelemetryMode getOpenTelemetryMode()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getOpenTelemetryMode() { - return _getOpenTelemetryMode( - reference.pointer, _id_getOpenTelemetryMode as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get openTelemetryMode { + return _get$openTelemetryMode( + reference.pointer, _id_get$openTelemetryMode.pointer) + .object(); } - static final _id_getSessionReplay = _class.instanceMethodId( + static final _id_get$sessionReplay = SentryOptions._class.instanceMethodId( r'getSessionReplay', r'()Lio/sentry/SentryReplayOptions;', ); - static final _getSessionReplay = jni$_.ProtectedJniExtensions.lookup< + static final _get$sessionReplay = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -20131,18 +17231,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.SentryReplayOptions getSessionReplay()` /// The returned object must be released after use, by calling the [release] method. - SentryReplayOptions getSessionReplay() { - return _getSessionReplay( - reference.pointer, _id_getSessionReplay as jni$_.JMethodIDPtr) - .object(const $SentryReplayOptions$Type()); + SentryReplayOptions get sessionReplay { + return _get$sessionReplay(reference.pointer, _id_get$sessionReplay.pointer) + .object(); } - static final _id_setSessionReplay = _class.instanceMethodId( + static final _id_set$sessionReplay = SentryOptions._class.instanceMethodId( r'setSessionReplay', r'(Lio/sentry/SentryReplayOptions;)V', ); - static final _setSessionReplay = jni$_.ProtectedJniExtensions.lookup< + static final _set$sessionReplay = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -20154,23 +17253,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setSessionReplay(io.sentry.SentryReplayOptions sentryReplayOptions)` - void setSessionReplay( - SentryReplayOptions sentryReplayOptions, - ) { + set sessionReplay(SentryReplayOptions sentryReplayOptions) { final _$sentryReplayOptions = sentryReplayOptions.reference; - _setSessionReplay( - reference.pointer, - _id_setSessionReplay as jni$_.JMethodIDPtr, + _set$sessionReplay(reference.pointer, _id_set$sessionReplay.pointer, _$sentryReplayOptions.pointer) .check(); } - static final _id_getFeedbackOptions = _class.instanceMethodId( + static final _id_get$feedbackOptions = SentryOptions._class.instanceMethodId( r'getFeedbackOptions', r'()Lio/sentry/SentryFeedbackOptions;', ); - static final _getFeedbackOptions = jni$_.ProtectedJniExtensions.lookup< + static final _get$feedbackOptions = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -20184,18 +17279,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.SentryFeedbackOptions getFeedbackOptions()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getFeedbackOptions() { - return _getFeedbackOptions( - reference.pointer, _id_getFeedbackOptions as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get feedbackOptions { + return _get$feedbackOptions( + reference.pointer, _id_get$feedbackOptions.pointer) + .object(); } - static final _id_setFeedbackOptions = _class.instanceMethodId( + static final _id_set$feedbackOptions = SentryOptions._class.instanceMethodId( r'setFeedbackOptions', r'(Lio/sentry/SentryFeedbackOptions;)V', ); - static final _setFeedbackOptions = jni$_.ProtectedJniExtensions.lookup< + static final _set$feedbackOptions = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -20207,23 +17302,20 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setFeedbackOptions(io.sentry.SentryFeedbackOptions sentryFeedbackOptions)` - void setFeedbackOptions( - jni$_.JObject sentryFeedbackOptions, - ) { + set feedbackOptions(jni$_.JObject sentryFeedbackOptions) { final _$sentryFeedbackOptions = sentryFeedbackOptions.reference; - _setFeedbackOptions( - reference.pointer, - _id_setFeedbackOptions as jni$_.JMethodIDPtr, + _set$feedbackOptions(reference.pointer, _id_set$feedbackOptions.pointer, _$sentryFeedbackOptions.pointer) .check(); } - static final _id_setCaptureOpenTelemetryEvents = _class.instanceMethodId( + static final _id_set$captureOpenTelemetryEvents = + SentryOptions._class.instanceMethodId( r'setCaptureOpenTelemetryEvents', r'(Z)V', ); - static final _setCaptureOpenTelemetryEvents = + static final _set$captureOpenTelemetryEvents = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -20231,23 +17323,22 @@ class SentryOptions extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setCaptureOpenTelemetryEvents(boolean z)` - void setCaptureOpenTelemetryEvents( - bool z, - ) { - _setCaptureOpenTelemetryEvents(reference.pointer, - _id_setCaptureOpenTelemetryEvents as jni$_.JMethodIDPtr, z ? 1 : 0) + set captureOpenTelemetryEvents(core$_.bool z) { + _set$captureOpenTelemetryEvents(reference.pointer, + _id_set$captureOpenTelemetryEvents.pointer, z ? 1 : 0) .check(); } - static final _id_isCaptureOpenTelemetryEvents = _class.instanceMethodId( + static final _id_get$isCaptureOpenTelemetryEvents = + SentryOptions._class.instanceMethodId( r'isCaptureOpenTelemetryEvents', r'()Z', ); - static final _isCaptureOpenTelemetryEvents = + static final _get$isCaptureOpenTelemetryEvents = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -20261,18 +17352,18 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isCaptureOpenTelemetryEvents()` - bool isCaptureOpenTelemetryEvents() { - return _isCaptureOpenTelemetryEvents(reference.pointer, - _id_isCaptureOpenTelemetryEvents as jni$_.JMethodIDPtr) + core$_.bool get isCaptureOpenTelemetryEvents { + return _get$isCaptureOpenTelemetryEvents( + reference.pointer, _id_get$isCaptureOpenTelemetryEvents.pointer) .boolean; } - static final _id_getSocketTagger = _class.instanceMethodId( + static final _id_get$socketTagger = SentryOptions._class.instanceMethodId( r'getSocketTagger', r'()Lio/sentry/ISocketTagger;', ); - static final _getSocketTagger = jni$_.ProtectedJniExtensions.lookup< + static final _get$socketTagger = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -20286,18 +17377,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.ISocketTagger getSocketTagger()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getSocketTagger() { - return _getSocketTagger( - reference.pointer, _id_getSocketTagger as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get socketTagger { + return _get$socketTagger(reference.pointer, _id_get$socketTagger.pointer) + .object(); } - static final _id_setSocketTagger = _class.instanceMethodId( + static final _id_set$socketTagger = SentryOptions._class.instanceMethodId( r'setSocketTagger', r'(Lio/sentry/ISocketTagger;)V', ); - static final _setSocketTagger = jni$_.ProtectedJniExtensions.lookup< + static final _set$socketTagger = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -20309,64 +17399,14 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setSocketTagger(io.sentry.ISocketTagger iSocketTagger)` - void setSocketTagger( - jni$_.JObject? iSocketTagger, - ) { + set socketTagger(jni$_.JObject? iSocketTagger) { final _$iSocketTagger = iSocketTagger?.reference ?? jni$_.jNullReference; - _setSocketTagger(reference.pointer, - _id_setSocketTagger as jni$_.JMethodIDPtr, _$iSocketTagger.pointer) + _set$socketTagger(reference.pointer, _id_set$socketTagger.pointer, + _$iSocketTagger.pointer) .check(); } - static final _id_empty = _class.staticMethodId( - r'empty', - r'()Lio/sentry/SentryOptions;', - ); - - static final _empty = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `static public io.sentry.SentryOptions empty()` - /// The returned object must be released after use, by calling the [release] method. - static SentryOptions empty() { - return _empty(_class.reference.pointer, _id_empty as jni$_.JMethodIDPtr) - .object(const $SentryOptions$Type()); - } - - static final _id_new$ = _class.constructorId( - r'()V', - ); - - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public void ()` - /// The returned object must be released after use, by calling the [release] method. - factory SentryOptions() { - return SentryOptions.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); - } - - static final _id_merge = _class.instanceMethodId( + static final _id_merge = SentryOptions._class.instanceMethodId( r'merge', r'(Lio/sentry/ExternalOptions;)V', ); @@ -20387,17 +17427,16 @@ class SentryOptions extends jni$_.JObject { jni$_.JObject externalOptions, ) { final _$externalOptions = externalOptions.reference; - _merge(reference.pointer, _id_merge as jni$_.JMethodIDPtr, - _$externalOptions.pointer) + _merge(reference.pointer, _id_merge.pointer, _$externalOptions.pointer) .check(); } - static final _id_getSpanFactory = _class.instanceMethodId( + static final _id_get$spanFactory = SentryOptions._class.instanceMethodId( r'getSpanFactory', r'()Lio/sentry/ISpanFactory;', ); - static final _getSpanFactory = jni$_.ProtectedJniExtensions.lookup< + static final _get$spanFactory = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -20411,18 +17450,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.ISpanFactory getSpanFactory()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getSpanFactory() { - return _getSpanFactory( - reference.pointer, _id_getSpanFactory as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get spanFactory { + return _get$spanFactory(reference.pointer, _id_get$spanFactory.pointer) + .object(); } - static final _id_setSpanFactory = _class.instanceMethodId( + static final _id_set$spanFactory = SentryOptions._class.instanceMethodId( r'setSpanFactory', r'(Lio/sentry/ISpanFactory;)V', ); - static final _setSpanFactory = jni$_.ProtectedJniExtensions.lookup< + static final _set$spanFactory = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -20434,21 +17472,20 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setSpanFactory(io.sentry.ISpanFactory iSpanFactory)` - void setSpanFactory( - jni$_.JObject iSpanFactory, - ) { + set spanFactory(jni$_.JObject iSpanFactory) { final _$iSpanFactory = iSpanFactory.reference; - _setSpanFactory(reference.pointer, _id_setSpanFactory as jni$_.JMethodIDPtr, + _set$spanFactory(reference.pointer, _id_set$spanFactory.pointer, _$iSpanFactory.pointer) .check(); } - static final _id_getScopesStorageFactory = _class.instanceMethodId( + static final _id_get$scopesStorageFactory = + SentryOptions._class.instanceMethodId( r'getScopesStorageFactory', r'()Lio/sentry/IScopesStorageFactory;', ); - static final _getScopesStorageFactory = jni$_.ProtectedJniExtensions.lookup< + static final _get$scopesStorageFactory = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -20462,18 +17499,19 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.IScopesStorageFactory getScopesStorageFactory()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getScopesStorageFactory() { - return _getScopesStorageFactory(reference.pointer, - _id_getScopesStorageFactory as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get scopesStorageFactory { + return _get$scopesStorageFactory( + reference.pointer, _id_get$scopesStorageFactory.pointer) + .object(); } - static final _id_setScopesStorageFactory = _class.instanceMethodId( + static final _id_set$scopesStorageFactory = + SentryOptions._class.instanceMethodId( r'setScopesStorageFactory', r'(Lio/sentry/IScopesStorageFactory;)V', ); - static final _setScopesStorageFactory = jni$_.ProtectedJniExtensions.lookup< + static final _set$scopesStorageFactory = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -20485,24 +17523,22 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setScopesStorageFactory(io.sentry.IScopesStorageFactory iScopesStorageFactory)` - void setScopesStorageFactory( - jni$_.JObject? iScopesStorageFactory, - ) { + set scopesStorageFactory(jni$_.JObject? iScopesStorageFactory) { final _$iScopesStorageFactory = iScopesStorageFactory?.reference ?? jni$_.jNullReference; - _setScopesStorageFactory( + _set$scopesStorageFactory( reference.pointer, - _id_setScopesStorageFactory as jni$_.JMethodIDPtr, + _id_set$scopesStorageFactory.pointer, _$iScopesStorageFactory.pointer) .check(); } - static final _id_getLogs = _class.instanceMethodId( + static final _id_get$logs = SentryOptions._class.instanceMethodId( r'getLogs', r'()Lio/sentry/SentryOptions$Logs;', ); - static final _getLogs = jni$_.ProtectedJniExtensions.lookup< + static final _get$logs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -20516,17 +17552,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.SentryOptions$Logs getLogs()` /// The returned object must be released after use, by calling the [release] method. - SentryOptions$Logs getLogs() { - return _getLogs(reference.pointer, _id_getLogs as jni$_.JMethodIDPtr) - .object(const $SentryOptions$Logs$Type()); + SentryOptions$Logs get logs { + return _get$logs(reference.pointer, _id_get$logs.pointer) + .object(); } - static final _id_setLogs = _class.instanceMethodId( + static final _id_set$logs = SentryOptions._class.instanceMethodId( r'setLogs', r'(Lio/sentry/SentryOptions$Logs;)V', ); - static final _setLogs = jni$_.ProtectedJniExtensions.lookup< + static final _set$logs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -20538,21 +17574,17 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setLogs(io.sentry.SentryOptions$Logs logs)` - void setLogs( - SentryOptions$Logs logs, - ) { + set logs(SentryOptions$Logs logs) { final _$logs = logs.reference; - _setLogs(reference.pointer, _id_setLogs as jni$_.JMethodIDPtr, - _$logs.pointer) - .check(); + _set$logs(reference.pointer, _id_set$logs.pointer, _$logs.pointer).check(); } - static final _id_getMetrics = _class.instanceMethodId( + static final _id_get$metrics = SentryOptions._class.instanceMethodId( r'getMetrics', r'()Lio/sentry/SentryOptions$Metrics;', ); - static final _getMetrics = jni$_.ProtectedJniExtensions.lookup< + static final _get$metrics = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -20566,17 +17598,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.SentryOptions$Metrics getMetrics()` /// The returned object must be released after use, by calling the [release] method. - SentryOptions$Metrics getMetrics() { - return _getMetrics(reference.pointer, _id_getMetrics as jni$_.JMethodIDPtr) - .object(const $SentryOptions$Metrics$Type()); + SentryOptions$Metrics get metrics { + return _get$metrics(reference.pointer, _id_get$metrics.pointer) + .object(); } - static final _id_setMetrics = _class.instanceMethodId( + static final _id_set$metrics = SentryOptions._class.instanceMethodId( r'setMetrics', r'(Lio/sentry/SentryOptions$Metrics;)V', ); - static final _setMetrics = jni$_.ProtectedJniExtensions.lookup< + static final _set$metrics = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -20588,21 +17620,18 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setMetrics(io.sentry.SentryOptions$Metrics metrics)` - void setMetrics( - SentryOptions$Metrics metrics, - ) { + set metrics(SentryOptions$Metrics metrics) { final _$metrics = metrics.reference; - _setMetrics(reference.pointer, _id_setMetrics as jni$_.JMethodIDPtr, - _$metrics.pointer) + _set$metrics(reference.pointer, _id_set$metrics.pointer, _$metrics.pointer) .check(); } - static final _id_getDistribution = _class.instanceMethodId( + static final _id_get$distribution = SentryOptions._class.instanceMethodId( r'getDistribution', r'()Lio/sentry/SentryOptions$DistributionOptions;', ); - static final _getDistribution = jni$_.ProtectedJniExtensions.lookup< + static final _get$distribution = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -20616,19 +17645,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public io.sentry.SentryOptions$DistributionOptions getDistribution()` /// The returned object must be released after use, by calling the [release] method. - SentryOptions$DistributionOptions getDistribution() { - return _getDistribution( - reference.pointer, _id_getDistribution as jni$_.JMethodIDPtr) - .object( - const $SentryOptions$DistributionOptions$Type()); + SentryOptions$DistributionOptions get distribution { + return _get$distribution(reference.pointer, _id_get$distribution.pointer) + .object(); } - static final _id_setDistribution = _class.instanceMethodId( + static final _id_set$distribution = SentryOptions._class.instanceMethodId( r'setDistribution', r'(Lio/sentry/SentryOptions$DistributionOptions;)V', ); - static final _setDistribution = jni$_.ProtectedJniExtensions.lookup< + static final _set$distribution = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -20640,150 +17667,39 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setDistribution(io.sentry.SentryOptions$DistributionOptions distributionOptions)` - void setDistribution( - SentryOptions$DistributionOptions distributionOptions, - ) { + set distribution(SentryOptions$DistributionOptions distributionOptions) { final _$distributionOptions = distributionOptions.reference; - _setDistribution( - reference.pointer, - _id_setDistribution as jni$_.JMethodIDPtr, + _set$distribution(reference.pointer, _id_set$distribution.pointer, _$distributionOptions.pointer) .check(); } } -final class $SentryOptions$NullableType extends jni$_.JObjType { +final class $SentryOptions$Type$ extends jni$_.JType { @jni$_.internal - const $SentryOptions$NullableType(); + const $SentryOptions$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryOptions;'; - - @jni$_.internal - @core$_.override - SentryOptions? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : SentryOptions.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryOptions$NullableType) && - other is $SentryOptions$NullableType; - } -} - -final class $SentryOptions$Type extends jni$_.JObjType { - @jni$_.internal - const $SentryOptions$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryOptions;'; - - @jni$_.internal - @core$_.override - SentryOptions fromReference(jni$_.JReference reference) => - SentryOptions.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryOptions$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryOptions$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryOptions$Type) && - other is $SentryOptions$Type; - } } /// from: `io.sentry.SentryReplayOptions$BeforeErrorSamplingCallback` -class SentryReplayOptions$BeforeErrorSamplingCallback extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryReplayOptions$BeforeErrorSamplingCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryReplayOptions$BeforeErrorSamplingCallback._( + jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName( r'io/sentry/SentryReplayOptions$BeforeErrorSamplingCallback'); /// The type which includes information such as the signature of this class. - static const nullableType = - $SentryReplayOptions$BeforeErrorSamplingCallback$NullableType(); - static const type = $SentryReplayOptions$BeforeErrorSamplingCallback$Type(); - static final _id_execute = _class.instanceMethodId( - r'execute', - r'(Lio/sentry/SentryEvent;Lio/sentry/Hint;)Z', - ); - - static final _execute = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); - - /// from: `public abstract boolean execute(io.sentry.SentryEvent sentryEvent, io.sentry.Hint hint)` - bool execute( - SentryEvent sentryEvent, - Hint hint, - ) { - final _$sentryEvent = sentryEvent.reference; - final _$hint = hint.reference; - return _execute(reference.pointer, _id_execute as jni$_.JMethodIDPtr, - _$sentryEvent.pointer, _$hint.pointer) - .boolean; - } + static const jni$_.JType + type = $SentryReplayOptions$BeforeErrorSamplingCallback$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map + static final core$_ + .Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -20804,7 +17720,7 @@ class SentryReplayOptions$BeforeErrorSamplingCallback extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -20812,10 +17728,10 @@ class SentryReplayOptions$BeforeErrorSamplingCallback extends jni$_.JObject { final $a = $i.args; if ($d == r'execute(Lio/sentry/SentryEvent;Lio/sentry/Hint;)Z') { final $r = _$impls[$p]!.execute( - $a![0]!.as(const $SentryEvent$Type(), releaseOriginal: true), - $a![1]!.as(const $Hint$Type(), releaseOriginal: true), + ($a![0] as SentryEvent), + ($a![1] as Hint), ); - return jni$_.JBoolean($r).reference.toPointer(); + return $r.toJBoolean().reference.toPointer(); } } catch (e) { return jni$_.ProtectedJniExtensions.newDartException(e); @@ -20853,139 +17769,89 @@ class SentryReplayOptions$BeforeErrorSamplingCallback extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return SentryReplayOptions$BeforeErrorSamplingCallback.fromReference( - $i.implementReference(), - ); + return $i.implement(); + } +} + +extension SentryReplayOptions$BeforeErrorSamplingCallback$$Methods + on SentryReplayOptions$BeforeErrorSamplingCallback { + static final _id_execute = + SentryReplayOptions$BeforeErrorSamplingCallback._class.instanceMethodId( + r'execute', + r'(Lio/sentry/SentryEvent;Lio/sentry/Hint;)Z', + ); + + static final _execute = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `public abstract boolean execute(io.sentry.SentryEvent sentryEvent, io.sentry.Hint hint)` + core$_.bool execute( + SentryEvent sentryEvent, + Hint hint, + ) { + final _$sentryEvent = sentryEvent.reference; + final _$hint = hint.reference; + return _execute(reference.pointer, _id_execute.pointer, + _$sentryEvent.pointer, _$hint.pointer) + .boolean; } } abstract base mixin class $SentryReplayOptions$BeforeErrorSamplingCallback { factory $SentryReplayOptions$BeforeErrorSamplingCallback({ - required bool Function(SentryEvent sentryEvent, Hint hint) execute, + required core$_.bool Function(SentryEvent sentryEvent, Hint hint) execute, }) = _$SentryReplayOptions$BeforeErrorSamplingCallback; - bool execute(SentryEvent sentryEvent, Hint hint); + core$_.bool execute(SentryEvent sentryEvent, Hint hint); } final class _$SentryReplayOptions$BeforeErrorSamplingCallback with $SentryReplayOptions$BeforeErrorSamplingCallback { _$SentryReplayOptions$BeforeErrorSamplingCallback({ - required bool Function(SentryEvent sentryEvent, Hint hint) execute, + required core$_.bool Function(SentryEvent sentryEvent, Hint hint) execute, }) : _execute = execute; - final bool Function(SentryEvent sentryEvent, Hint hint) _execute; + final core$_.bool Function(SentryEvent sentryEvent, Hint hint) _execute; - bool execute(SentryEvent sentryEvent, Hint hint) { + core$_.bool execute(SentryEvent sentryEvent, Hint hint) { return _execute(sentryEvent, hint); } } -final class $SentryReplayOptions$BeforeErrorSamplingCallback$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryReplayOptions$BeforeErrorSamplingCallback$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lio/sentry/SentryReplayOptions$BeforeErrorSamplingCallback;'; - - @jni$_.internal - @core$_.override - SentryReplayOptions$BeforeErrorSamplingCallback? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : SentryReplayOptions$BeforeErrorSamplingCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType - get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($SentryReplayOptions$BeforeErrorSamplingCallback$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryReplayOptions$BeforeErrorSamplingCallback$NullableType) && - other is $SentryReplayOptions$BeforeErrorSamplingCallback$NullableType; - } -} - -final class $SentryReplayOptions$BeforeErrorSamplingCallback$Type - extends jni$_.JObjType { +final class $SentryReplayOptions$BeforeErrorSamplingCallback$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryReplayOptions$BeforeErrorSamplingCallback$Type(); + const $SentryReplayOptions$BeforeErrorSamplingCallback$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryReplayOptions$BeforeErrorSamplingCallback;'; - - @jni$_.internal - @core$_.override - SentryReplayOptions$BeforeErrorSamplingCallback fromReference( - jni$_.JReference reference) => - SentryReplayOptions$BeforeErrorSamplingCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType - get nullableType => - const $SentryReplayOptions$BeforeErrorSamplingCallback$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($SentryReplayOptions$BeforeErrorSamplingCallback$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryReplayOptions$BeforeErrorSamplingCallback$Type) && - other is $SentryReplayOptions$BeforeErrorSamplingCallback$Type; - } } /// from: `io.sentry.SentryReplayOptions$SentryReplayQuality` -class SentryReplayOptions$SentryReplayQuality extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryReplayOptions$SentryReplayQuality.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryReplayOptions$SentryReplayQuality._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName( r'io/sentry/SentryReplayOptions$SentryReplayQuality'); /// The type which includes information such as the signature of this class. - static const nullableType = - $SentryReplayOptions$SentryReplayQuality$NullableType(); - static const type = $SentryReplayOptions$SentryReplayQuality$Type(); + static const jni$_.JType type = + $SentryReplayOptions$SentryReplayQuality$Type$(); static final _id_LOW = _class.staticFieldId( r'LOW', r'Lio/sentry/SentryReplayOptions$SentryReplayQuality;', @@ -20993,8 +17859,9 @@ class SentryReplayOptions$SentryReplayQuality extends jni$_.JObject { /// from: `static public final io.sentry.SentryReplayOptions$SentryReplayQuality LOW` /// The returned object must be released after use, by calling the [release] method. - static SentryReplayOptions$SentryReplayQuality get LOW => _id_LOW.get( - _class, const $SentryReplayOptions$SentryReplayQuality$Type()); + static SentryReplayOptions$SentryReplayQuality get LOW => + _id_LOW.get(_class, SentryReplayOptions$SentryReplayQuality.type) + as SentryReplayOptions$SentryReplayQuality; static final _id_MEDIUM = _class.staticFieldId( r'MEDIUM', @@ -21003,8 +17870,9 @@ class SentryReplayOptions$SentryReplayQuality extends jni$_.JObject { /// from: `static public final io.sentry.SentryReplayOptions$SentryReplayQuality MEDIUM` /// The returned object must be released after use, by calling the [release] method. - static SentryReplayOptions$SentryReplayQuality get MEDIUM => _id_MEDIUM.get( - _class, const $SentryReplayOptions$SentryReplayQuality$Type()); + static SentryReplayOptions$SentryReplayQuality get MEDIUM => + _id_MEDIUM.get(_class, SentryReplayOptions$SentryReplayQuality.type) + as SentryReplayOptions$SentryReplayQuality; static final _id_HIGH = _class.staticFieldId( r'HIGH', @@ -21013,33 +17881,9 @@ class SentryReplayOptions$SentryReplayQuality extends jni$_.JObject { /// from: `static public final io.sentry.SentryReplayOptions$SentryReplayQuality HIGH` /// The returned object must be released after use, by calling the [release] method. - static SentryReplayOptions$SentryReplayQuality get HIGH => _id_HIGH.get( - _class, const $SentryReplayOptions$SentryReplayQuality$Type()); - - static final _id_sizeScale = _class.instanceFieldId( - r'sizeScale', - r'F', - ); - - /// from: `public final float sizeScale` - double get sizeScale => _id_sizeScale.get(this, const jni$_.jfloatType()); - - static final _id_bitRate = _class.instanceFieldId( - r'bitRate', - r'I', - ); - - /// from: `public final int bitRate` - int get bitRate => _id_bitRate.get(this, const jni$_.jintType()); - - static final _id_screenshotQuality = _class.instanceFieldId( - r'screenshotQuality', - r'I', - ); - - /// from: `public final int screenshotQuality` - int get screenshotQuality => - _id_screenshotQuality.get(this, const jni$_.jintType()); + static SentryReplayOptions$SentryReplayQuality get HIGH => + _id_HIGH.get(_class, SentryReplayOptions$SentryReplayQuality.type) + as SentryReplayOptions$SentryReplayQuality; static final _id_values = _class.staticMethodId( r'values', @@ -21061,11 +17905,8 @@ class SentryReplayOptions$SentryReplayQuality extends jni$_.JObject { /// from: `static public io.sentry.SentryReplayOptions$SentryReplayQuality[] values()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JArray? values() { - return _values(_class.reference.pointer, _id_values as jni$_.JMethodIDPtr) - .object?>( - const jni$_ - .JArrayNullableType( - $SentryReplayOptions$SentryReplayQuality$NullableType())); + return _values(_class.reference.pointer, _id_values.pointer) + .object?>(); } static final _id_valueOf = _class.staticMethodId( @@ -21090,13 +17931,46 @@ class SentryReplayOptions$SentryReplayQuality extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - return _valueOf(_class.reference.pointer, _id_valueOf as jni$_.JMethodIDPtr, - _$string.pointer) - .object( - const $SentryReplayOptions$SentryReplayQuality$NullableType()); + return _valueOf( + _class.reference.pointer, _id_valueOf.pointer, _$string.pointer) + .object(); } +} + +extension SentryReplayOptions$SentryReplayQuality$$Methods + on SentryReplayOptions$SentryReplayQuality { + static final _id_sizeScale = + SentryReplayOptions$SentryReplayQuality._class.instanceFieldId( + r'sizeScale', + r'F', + ); + + /// from: `public final float sizeScale` + core$_.double get sizeScale => + _id_sizeScale.getNullable(this, jni$_.jfloat.type) as core$_.double; + + static final _id_bitRate = + SentryReplayOptions$SentryReplayQuality._class.instanceFieldId( + r'bitRate', + r'I', + ); + + /// from: `public final int bitRate` + core$_.int get bitRate => + _id_bitRate.getNullable(this, jni$_.jint.type) as core$_.int; + + static final _id_screenshotQuality = + SentryReplayOptions$SentryReplayQuality._class.instanceFieldId( + r'screenshotQuality', + r'I', + ); - static final _id_serializedName = _class.instanceMethodId( + /// from: `public final int screenshotQuality` + core$_.int get screenshotQuality => + _id_screenshotQuality.getNullable(this, jni$_.jint.type) as core$_.int; + + static final _id_serializedName = + SentryReplayOptions$SentryReplayQuality._class.instanceMethodId( r'serializedName', r'()Ljava/lang/String;', ); @@ -21116,123 +17990,39 @@ class SentryReplayOptions$SentryReplayQuality extends jni$_.JObject { /// from: `public java.lang.String serializedName()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString serializedName() { - return _serializedName( - reference.pointer, _id_serializedName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + return _serializedName(reference.pointer, _id_serializedName.pointer) + .object(); } } -final class $SentryReplayOptions$SentryReplayQuality$NullableType - extends jni$_.JObjType { +final class $SentryReplayOptions$SentryReplayQuality$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryReplayOptions$SentryReplayQuality$NullableType(); + const $SentryReplayOptions$SentryReplayQuality$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryReplayOptions$SentryReplayQuality;'; - - @jni$_.internal - @core$_.override - SentryReplayOptions$SentryReplayQuality? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : SentryReplayOptions$SentryReplayQuality.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($SentryReplayOptions$SentryReplayQuality$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryReplayOptions$SentryReplayQuality$NullableType) && - other is $SentryReplayOptions$SentryReplayQuality$NullableType; - } -} - -final class $SentryReplayOptions$SentryReplayQuality$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryReplayOptions$SentryReplayQuality$Type(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lio/sentry/SentryReplayOptions$SentryReplayQuality;'; - - @jni$_.internal - @core$_.override - SentryReplayOptions$SentryReplayQuality fromReference( - jni$_.JReference reference) => - SentryReplayOptions$SentryReplayQuality.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryReplayOptions$SentryReplayQuality$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryReplayOptions$SentryReplayQuality$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryReplayOptions$SentryReplayQuality$Type) && - other is $SentryReplayOptions$SentryReplayQuality$Type; - } } /// from: `io.sentry.SentryReplayOptions` -class SentryReplayOptions extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryReplayOptions.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryReplayOptions._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryReplayOptions'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryReplayOptions$NullableType(); - static const type = $SentryReplayOptions$Type(); + static const jni$_.JType type = + $SentryReplayOptions$Type$(); /// from: `static public final int MAX_NETWORK_BODY_SIZE` static const MAX_NETWORK_BODY_SIZE = 153600; - static final _id_getNetworkDetailsDefaultHeaders = _class.staticMethodId( + static final _id_get$networkDetailsDefaultHeaders = _class.staticMethodId( r'getNetworkDetailsDefaultHeaders', r'()Ljava/util/List;', ); - static final _getNetworkDetailsDefaultHeaders = + static final _get$networkDetailsDefaultHeaders = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -21247,11 +18037,10 @@ class SentryReplayOptions extends jni$_.JObject { /// from: `static public java.util.List getNetworkDetailsDefaultHeaders()` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JList getNetworkDetailsDefaultHeaders() { - return _getNetworkDetailsDefaultHeaders(_class.reference.pointer, - _id_getNetworkDetailsDefaultHeaders as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JStringNullableType())); + static jni$_.JList get networkDetailsDefaultHeaders { + return _get$networkDetailsDefaultHeaders(_class.reference.pointer, + _id_get$networkDetailsDefaultHeaders.pointer) + .object>(); } static final _id_new$ = _class.constructorId( @@ -21268,18 +18057,18 @@ class SentryReplayOptions extends jni$_.JObject { 'globalEnv_NewObject') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + jni$_.JMethodIDPtr, core$_.int, jni$_.Pointer)>(); /// from: `public void (boolean z, io.sentry.protocol.SdkVersion sdkVersion)` /// The returned object must be released after use, by calling the [release] method. factory SentryReplayOptions( - bool z, + core$_.bool z, SdkVersion? sdkVersion, ) { final _$sdkVersion = sdkVersion?.reference ?? jni$_.jNullReference; - return SentryReplayOptions.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, z ? 1 : 0, _$sdkVersion.pointer) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer, z ? 1 : 0, + _$sdkVersion.pointer) + .object(); } static final _id_new$1 = _class.constructorId( @@ -21315,21 +18104,20 @@ class SentryReplayOptions extends jni$_.JObject { final _$double = double?.reference ?? jni$_.jNullReference; final _$double1 = double1?.reference ?? jni$_.jNullReference; final _$sdkVersion = sdkVersion?.reference ?? jni$_.jNullReference; - return SentryReplayOptions.fromReference(_new$1( - _class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, - _$double.pointer, - _$double1.pointer, - _$sdkVersion.pointer) - .reference); + return _new$1(_class.reference.pointer, _id_new$1.pointer, _$double.pointer, + _$double1.pointer, _$sdkVersion.pointer) + .object(); } +} - static final _id_getOnErrorSampleRate = _class.instanceMethodId( +extension SentryReplayOptions$$Methods on SentryReplayOptions { + static final _id_get$onErrorSampleRate = + SentryReplayOptions._class.instanceMethodId( r'getOnErrorSampleRate', r'()Ljava/lang/Double;', ); - static final _getOnErrorSampleRate = jni$_.ProtectedJniExtensions.lookup< + static final _get$onErrorSampleRate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21343,42 +18131,45 @@ class SentryReplayOptions extends jni$_.JObject { /// from: `public java.lang.Double getOnErrorSampleRate()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JDouble? getOnErrorSampleRate() { - return _getOnErrorSampleRate( - reference.pointer, _id_getOnErrorSampleRate as jni$_.JMethodIDPtr) - .object(const jni$_.JDoubleNullableType()); + jni$_.JDouble? get onErrorSampleRate { + return _get$onErrorSampleRate( + reference.pointer, _id_get$onErrorSampleRate.pointer) + .object(); } - static final _id_isSessionReplayEnabled = _class.instanceMethodId( + static final _id_get$isSessionReplayEnabled = + SentryReplayOptions._class.instanceMethodId( r'isSessionReplayEnabled', r'()Z', ); - static final _isSessionReplayEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$isSessionReplayEnabled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public boolean isSessionReplayEnabled()` - bool isSessionReplayEnabled() { - return _isSessionReplayEnabled( - reference.pointer, _id_isSessionReplayEnabled as jni$_.JMethodIDPtr) + core$_.bool get isSessionReplayEnabled { + return _get$isSessionReplayEnabled( + reference.pointer, _id_get$isSessionReplayEnabled.pointer) .boolean; } - static final _id_setOnErrorSampleRate = _class.instanceMethodId( + static final _id_set$onErrorSampleRate = + SentryReplayOptions._class.instanceMethodId( r'setOnErrorSampleRate', r'(Ljava/lang/Double;)V', ); - static final _setOnErrorSampleRate = jni$_.ProtectedJniExtensions.lookup< + static final _set$onErrorSampleRate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -21390,21 +18181,20 @@ class SentryReplayOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setOnErrorSampleRate(java.lang.Double double)` - void setOnErrorSampleRate( - jni$_.JDouble? double, - ) { + set onErrorSampleRate(jni$_.JDouble? double) { final _$double = double?.reference ?? jni$_.jNullReference; - _setOnErrorSampleRate(reference.pointer, - _id_setOnErrorSampleRate as jni$_.JMethodIDPtr, _$double.pointer) + _set$onErrorSampleRate(reference.pointer, _id_set$onErrorSampleRate.pointer, + _$double.pointer) .check(); } - static final _id_getSessionSampleRate = _class.instanceMethodId( + static final _id_get$sessionSampleRate = + SentryReplayOptions._class.instanceMethodId( r'getSessionSampleRate', r'()Ljava/lang/Double;', ); - static final _getSessionSampleRate = jni$_.ProtectedJniExtensions.lookup< + static final _get$sessionSampleRate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21418,18 +18208,19 @@ class SentryReplayOptions extends jni$_.JObject { /// from: `public java.lang.Double getSessionSampleRate()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JDouble? getSessionSampleRate() { - return _getSessionSampleRate( - reference.pointer, _id_getSessionSampleRate as jni$_.JMethodIDPtr) - .object(const jni$_.JDoubleNullableType()); + jni$_.JDouble? get sessionSampleRate { + return _get$sessionSampleRate( + reference.pointer, _id_get$sessionSampleRate.pointer) + .object(); } - static final _id_isSessionReplayForErrorsEnabled = _class.instanceMethodId( + static final _id_get$isSessionReplayForErrorsEnabled = + SentryReplayOptions._class.instanceMethodId( r'isSessionReplayForErrorsEnabled', r'()Z', ); - static final _isSessionReplayForErrorsEnabled = + static final _get$isSessionReplayForErrorsEnabled = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -21443,18 +18234,19 @@ class SentryReplayOptions extends jni$_.JObject { )>(); /// from: `public boolean isSessionReplayForErrorsEnabled()` - bool isSessionReplayForErrorsEnabled() { - return _isSessionReplayForErrorsEnabled(reference.pointer, - _id_isSessionReplayForErrorsEnabled as jni$_.JMethodIDPtr) + core$_.bool get isSessionReplayForErrorsEnabled { + return _get$isSessionReplayForErrorsEnabled( + reference.pointer, _id_get$isSessionReplayForErrorsEnabled.pointer) .boolean; } - static final _id_setSessionSampleRate = _class.instanceMethodId( + static final _id_set$sessionSampleRate = + SentryReplayOptions._class.instanceMethodId( r'setSessionSampleRate', r'(Ljava/lang/Double;)V', ); - static final _setSessionSampleRate = jni$_.ProtectedJniExtensions.lookup< + static final _set$sessionSampleRate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -21466,21 +18258,20 @@ class SentryReplayOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setSessionSampleRate(java.lang.Double double)` - void setSessionSampleRate( - jni$_.JDouble? double, - ) { + set sessionSampleRate(jni$_.JDouble? double) { final _$double = double?.reference ?? jni$_.jNullReference; - _setSessionSampleRate(reference.pointer, - _id_setSessionSampleRate as jni$_.JMethodIDPtr, _$double.pointer) + _set$sessionSampleRate(reference.pointer, _id_set$sessionSampleRate.pointer, + _$double.pointer) .check(); } - static final _id_setMaskAllText = _class.instanceMethodId( + static final _id_set$maskAllText = + SentryReplayOptions._class.instanceMethodId( r'setMaskAllText', r'(Z)V', ); - static final _setMaskAllText = jni$_.ProtectedJniExtensions.lookup< + static final _set$maskAllText = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -21488,23 +18279,21 @@ class SentryReplayOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setMaskAllText(boolean z)` - void setMaskAllText( - bool z, - ) { - _setMaskAllText(reference.pointer, _id_setMaskAllText as jni$_.JMethodIDPtr, - z ? 1 : 0) + set maskAllText(core$_.bool z) { + _set$maskAllText(reference.pointer, _id_set$maskAllText.pointer, z ? 1 : 0) .check(); } - static final _id_setMaskAllImages = _class.instanceMethodId( + static final _id_set$maskAllImages = + SentryReplayOptions._class.instanceMethodId( r'setMaskAllImages', r'(Z)V', ); - static final _setMaskAllImages = jni$_.ProtectedJniExtensions.lookup< + static final _set$maskAllImages = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -21512,18 +18301,17 @@ class SentryReplayOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setMaskAllImages(boolean z)` - void setMaskAllImages( - bool z, - ) { - _setMaskAllImages(reference.pointer, - _id_setMaskAllImages as jni$_.JMethodIDPtr, z ? 1 : 0) + set maskAllImages(core$_.bool z) { + _set$maskAllImages( + reference.pointer, _id_set$maskAllImages.pointer, z ? 1 : 0) .check(); } - static final _id_addMaskViewClass = _class.instanceMethodId( + static final _id_addMaskViewClass = + SentryReplayOptions._class.instanceMethodId( r'addMaskViewClass', r'(Ljava/lang/String;)V', ); @@ -21544,12 +18332,13 @@ class SentryReplayOptions extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - _addMaskViewClass(reference.pointer, - _id_addMaskViewClass as jni$_.JMethodIDPtr, _$string.pointer) + _addMaskViewClass( + reference.pointer, _id_addMaskViewClass.pointer, _$string.pointer) .check(); } - static final _id_addUnmaskViewClass = _class.instanceMethodId( + static final _id_addUnmaskViewClass = + SentryReplayOptions._class.instanceMethodId( r'addUnmaskViewClass', r'(Ljava/lang/String;)V', ); @@ -21570,17 +18359,17 @@ class SentryReplayOptions extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - _addUnmaskViewClass(reference.pointer, - _id_addUnmaskViewClass as jni$_.JMethodIDPtr, _$string.pointer) + _addUnmaskViewClass( + reference.pointer, _id_addUnmaskViewClass.pointer, _$string.pointer) .check(); } - static final _id_getQuality = _class.instanceMethodId( + static final _id_get$quality = SentryReplayOptions._class.instanceMethodId( r'getQuality', r'()Lio/sentry/SentryReplayOptions$SentryReplayQuality;', ); - static final _getQuality = jni$_.ProtectedJniExtensions.lookup< + static final _get$quality = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21594,18 +18383,17 @@ class SentryReplayOptions extends jni$_.JObject { /// from: `public io.sentry.SentryReplayOptions$SentryReplayQuality getQuality()` /// The returned object must be released after use, by calling the [release] method. - SentryReplayOptions$SentryReplayQuality getQuality() { - return _getQuality(reference.pointer, _id_getQuality as jni$_.JMethodIDPtr) - .object( - const $SentryReplayOptions$SentryReplayQuality$Type()); + SentryReplayOptions$SentryReplayQuality get quality { + return _get$quality(reference.pointer, _id_get$quality.pointer) + .object(); } - static final _id_setQuality = _class.instanceMethodId( + static final _id_set$quality = SentryReplayOptions._class.instanceMethodId( r'setQuality', r'(Lio/sentry/SentryReplayOptions$SentryReplayQuality;)V', ); - static final _setQuality = jni$_.ProtectedJniExtensions.lookup< + static final _set$quality = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -21617,21 +18405,19 @@ class SentryReplayOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setQuality(io.sentry.SentryReplayOptions$SentryReplayQuality sentryReplayQuality)` - void setQuality( - SentryReplayOptions$SentryReplayQuality sentryReplayQuality, - ) { + set quality(SentryReplayOptions$SentryReplayQuality sentryReplayQuality) { final _$sentryReplayQuality = sentryReplayQuality.reference; - _setQuality(reference.pointer, _id_setQuality as jni$_.JMethodIDPtr, + _set$quality(reference.pointer, _id_set$quality.pointer, _$sentryReplayQuality.pointer) .check(); } - static final _id_getFrameRate = _class.instanceMethodId( + static final _id_get$frameRate = SentryReplayOptions._class.instanceMethodId( r'getFrameRate', r'()I', ); - static final _getFrameRate = jni$_.ProtectedJniExtensions.lookup< + static final _get$frameRate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21644,18 +18430,17 @@ class SentryReplayOptions extends jni$_.JObject { )>(); /// from: `public int getFrameRate()` - int getFrameRate() { - return _getFrameRate( - reference.pointer, _id_getFrameRate as jni$_.JMethodIDPtr) - .integer; + core$_.int get frameRate { + return _get$frameRate(reference.pointer, _id_get$frameRate.pointer).integer; } - static final _id_getErrorReplayDuration = _class.instanceMethodId( + static final _id_get$errorReplayDuration = + SentryReplayOptions._class.instanceMethodId( r'getErrorReplayDuration', r'()J', ); - static final _getErrorReplayDuration = jni$_.ProtectedJniExtensions.lookup< + static final _get$errorReplayDuration = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21668,42 +18453,45 @@ class SentryReplayOptions extends jni$_.JObject { )>(); /// from: `public long getErrorReplayDuration()` - int getErrorReplayDuration() { - return _getErrorReplayDuration( - reference.pointer, _id_getErrorReplayDuration as jni$_.JMethodIDPtr) + core$_.int get errorReplayDuration { + return _get$errorReplayDuration( + reference.pointer, _id_get$errorReplayDuration.pointer) .long; } - static final _id_getSessionSegmentDuration = _class.instanceMethodId( + static final _id_get$sessionSegmentDuration = + SentryReplayOptions._class.instanceMethodId( r'getSessionSegmentDuration', r'()J', ); - static final _getSessionSegmentDuration = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$sessionSegmentDuration = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallLongMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public long getSessionSegmentDuration()` - int getSessionSegmentDuration() { - return _getSessionSegmentDuration(reference.pointer, - _id_getSessionSegmentDuration as jni$_.JMethodIDPtr) + core$_.int get sessionSegmentDuration { + return _get$sessionSegmentDuration( + reference.pointer, _id_get$sessionSegmentDuration.pointer) .long; } - static final _id_getSessionDuration = _class.instanceMethodId( + static final _id_get$sessionDuration = + SentryReplayOptions._class.instanceMethodId( r'getSessionDuration', r'()J', ); - static final _getSessionDuration = jni$_.ProtectedJniExtensions.lookup< + static final _get$sessionDuration = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21716,13 +18504,14 @@ class SentryReplayOptions extends jni$_.JObject { )>(); /// from: `public long getSessionDuration()` - int getSessionDuration() { - return _getSessionDuration( - reference.pointer, _id_getSessionDuration as jni$_.JMethodIDPtr) + core$_.int get sessionDuration { + return _get$sessionDuration( + reference.pointer, _id_get$sessionDuration.pointer) .long; } - static final _id_trackCustomMasking = _class.instanceMethodId( + static final _id_trackCustomMasking = + SentryReplayOptions._class.instanceMethodId( r'trackCustomMasking', r'()V', ); @@ -21741,17 +18530,17 @@ class SentryReplayOptions extends jni$_.JObject { /// from: `public void trackCustomMasking()` void trackCustomMasking() { - _trackCustomMasking( - reference.pointer, _id_trackCustomMasking as jni$_.JMethodIDPtr) + _trackCustomMasking(reference.pointer, _id_trackCustomMasking.pointer) .check(); } - static final _id_isTrackConfiguration = _class.instanceMethodId( + static final _id_get$isTrackConfiguration = + SentryReplayOptions._class.instanceMethodId( r'isTrackConfiguration', r'()Z', ); - static final _isTrackConfiguration = jni$_.ProtectedJniExtensions.lookup< + static final _get$isTrackConfiguration = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21764,18 +18553,19 @@ class SentryReplayOptions extends jni$_.JObject { )>(); /// from: `public boolean isTrackConfiguration()` - bool isTrackConfiguration() { - return _isTrackConfiguration( - reference.pointer, _id_isTrackConfiguration as jni$_.JMethodIDPtr) + core$_.bool get isTrackConfiguration { + return _get$isTrackConfiguration( + reference.pointer, _id_get$isTrackConfiguration.pointer) .boolean; } - static final _id_setTrackConfiguration = _class.instanceMethodId( + static final _id_set$trackConfiguration = + SentryReplayOptions._class.instanceMethodId( r'setTrackConfiguration', r'(Z)V', ); - static final _setTrackConfiguration = jni$_.ProtectedJniExtensions.lookup< + static final _set$trackConfiguration = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -21783,23 +18573,21 @@ class SentryReplayOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setTrackConfiguration(boolean z)` - void setTrackConfiguration( - bool z, - ) { - _setTrackConfiguration(reference.pointer, - _id_setTrackConfiguration as jni$_.JMethodIDPtr, z ? 1 : 0) + set trackConfiguration(core$_.bool z) { + _set$trackConfiguration( + reference.pointer, _id_set$trackConfiguration.pointer, z ? 1 : 0) .check(); } - static final _id_getSdkVersion = _class.instanceMethodId( + static final _id_get$sdkVersion = SentryReplayOptions._class.instanceMethodId( r'getSdkVersion', r'()Lio/sentry/protocol/SdkVersion;', ); - static final _getSdkVersion = jni$_.ProtectedJniExtensions.lookup< + static final _get$sdkVersion = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21813,18 +18601,17 @@ class SentryReplayOptions extends jni$_.JObject { /// from: `public io.sentry.protocol.SdkVersion getSdkVersion()` /// The returned object must be released after use, by calling the [release] method. - SdkVersion? getSdkVersion() { - return _getSdkVersion( - reference.pointer, _id_getSdkVersion as jni$_.JMethodIDPtr) - .object(const $SdkVersion$NullableType()); + SdkVersion? get sdkVersion { + return _get$sdkVersion(reference.pointer, _id_get$sdkVersion.pointer) + .object(); } - static final _id_setSdkVersion = _class.instanceMethodId( + static final _id_set$sdkVersion = SentryReplayOptions._class.instanceMethodId( r'setSdkVersion', r'(Lio/sentry/protocol/SdkVersion;)V', ); - static final _setSdkVersion = jni$_.ProtectedJniExtensions.lookup< + static final _set$sdkVersion = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -21836,21 +18623,19 @@ class SentryReplayOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setSdkVersion(io.sentry.protocol.SdkVersion sdkVersion)` - void setSdkVersion( - SdkVersion? sdkVersion, - ) { + set sdkVersion(SdkVersion? sdkVersion) { final _$sdkVersion = sdkVersion?.reference ?? jni$_.jNullReference; - _setSdkVersion(reference.pointer, _id_setSdkVersion as jni$_.JMethodIDPtr, - _$sdkVersion.pointer) + _set$sdkVersion( + reference.pointer, _id_set$sdkVersion.pointer, _$sdkVersion.pointer) .check(); } - static final _id_isDebug = _class.instanceMethodId( + static final _id_get$isDebug = SentryReplayOptions._class.instanceMethodId( r'isDebug', r'()Z', ); - static final _isDebug = jni$_.ProtectedJniExtensions.lookup< + static final _get$isDebug = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21863,17 +18648,16 @@ class SentryReplayOptions extends jni$_.JObject { )>(); /// from: `public boolean isDebug()` - bool isDebug() { - return _isDebug(reference.pointer, _id_isDebug as jni$_.JMethodIDPtr) - .boolean; + core$_.bool get isDebug { + return _get$isDebug(reference.pointer, _id_get$isDebug.pointer).boolean; } - static final _id_setDebug = _class.instanceMethodId( + static final _id_set$debug = SentryReplayOptions._class.instanceMethodId( r'setDebug', r'(Z)V', ); - static final _setDebug = jni$_.ProtectedJniExtensions.lookup< + static final _set$debug = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -21881,22 +18665,20 @@ class SentryReplayOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setDebug(boolean z)` - void setDebug( - bool z, - ) { - _setDebug(reference.pointer, _id_setDebug as jni$_.JMethodIDPtr, z ? 1 : 0) - .check(); + set debug(core$_.bool z) { + _set$debug(reference.pointer, _id_set$debug.pointer, z ? 1 : 0).check(); } - static final _id_getScreenshotStrategy = _class.instanceMethodId( + static final _id_get$screenshotStrategy = + SentryReplayOptions._class.instanceMethodId( r'getScreenshotStrategy', r'()Lio/sentry/ScreenshotStrategyType;', ); - static final _getScreenshotStrategy = jni$_.ProtectedJniExtensions.lookup< + static final _get$screenshotStrategy = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21910,18 +18692,19 @@ class SentryReplayOptions extends jni$_.JObject { /// from: `public io.sentry.ScreenshotStrategyType getScreenshotStrategy()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getScreenshotStrategy() { - return _getScreenshotStrategy( - reference.pointer, _id_getScreenshotStrategy as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get screenshotStrategy { + return _get$screenshotStrategy( + reference.pointer, _id_get$screenshotStrategy.pointer) + .object(); } - static final _id_setScreenshotStrategy = _class.instanceMethodId( + static final _id_set$screenshotStrategy = + SentryReplayOptions._class.instanceMethodId( r'setScreenshotStrategy', r'(Lio/sentry/ScreenshotStrategyType;)V', ); - static final _setScreenshotStrategy = jni$_.ProtectedJniExtensions.lookup< + static final _set$screenshotStrategy = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -21933,75 +18716,75 @@ class SentryReplayOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setScreenshotStrategy(io.sentry.ScreenshotStrategyType screenshotStrategyType)` - void setScreenshotStrategy( - jni$_.JObject screenshotStrategyType, - ) { + set screenshotStrategy(jni$_.JObject screenshotStrategyType) { final _$screenshotStrategyType = screenshotStrategyType.reference; - _setScreenshotStrategy( + _set$screenshotStrategy( reference.pointer, - _id_setScreenshotStrategy as jni$_.JMethodIDPtr, + _id_set$screenshotStrategy.pointer, _$screenshotStrategyType.pointer) .check(); } - static final _id_getNetworkDetailAllowUrls = _class.instanceMethodId( + static final _id_get$networkDetailAllowUrls = + SentryReplayOptions._class.instanceMethodId( r'getNetworkDetailAllowUrls', r'()Ljava/util/List;', ); - static final _getNetworkDetailAllowUrls = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$networkDetailAllowUrls = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public java.util.List getNetworkDetailAllowUrls()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList getNetworkDetailAllowUrls() { - return _getNetworkDetailAllowUrls(reference.pointer, - _id_getNetworkDetailAllowUrls as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JStringNullableType())); + jni$_.JList get networkDetailAllowUrls { + return _get$networkDetailAllowUrls( + reference.pointer, _id_get$networkDetailAllowUrls.pointer) + .object>(); } - static final _id_setNetworkDetailAllowUrls = _class.instanceMethodId( + static final _id_set$networkDetailAllowUrls = + SentryReplayOptions._class.instanceMethodId( r'setNetworkDetailAllowUrls', r'(Ljava/util/List;)V', ); - static final _setNetworkDetailAllowUrls = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _set$networkDetailAllowUrls = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setNetworkDetailAllowUrls(java.util.List list)` - void setNetworkDetailAllowUrls( - jni$_.JList list, - ) { + set networkDetailAllowUrls(jni$_.JList list) { final _$list = list.reference; - _setNetworkDetailAllowUrls(reference.pointer, - _id_setNetworkDetailAllowUrls as jni$_.JMethodIDPtr, _$list.pointer) + _set$networkDetailAllowUrls(reference.pointer, + _id_set$networkDetailAllowUrls.pointer, _$list.pointer) .check(); } - static final _id_getNetworkDetailDenyUrls = _class.instanceMethodId( + static final _id_get$networkDetailDenyUrls = + SentryReplayOptions._class.instanceMethodId( r'getNetworkDetailDenyUrls', r'()Ljava/util/List;', ); - static final _getNetworkDetailDenyUrls = jni$_.ProtectedJniExtensions.lookup< + static final _get$networkDetailDenyUrls = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -22015,19 +18798,19 @@ class SentryReplayOptions extends jni$_.JObject { /// from: `public java.util.List getNetworkDetailDenyUrls()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList getNetworkDetailDenyUrls() { - return _getNetworkDetailDenyUrls(reference.pointer, - _id_getNetworkDetailDenyUrls as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JStringNullableType())); + jni$_.JList get networkDetailDenyUrls { + return _get$networkDetailDenyUrls( + reference.pointer, _id_get$networkDetailDenyUrls.pointer) + .object>(); } - static final _id_setNetworkDetailDenyUrls = _class.instanceMethodId( + static final _id_set$networkDetailDenyUrls = + SentryReplayOptions._class.instanceMethodId( r'setNetworkDetailDenyUrls', r'(Ljava/util/List;)V', ); - static final _setNetworkDetailDenyUrls = jni$_.ProtectedJniExtensions.lookup< + static final _set$networkDetailDenyUrls = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -22039,45 +18822,46 @@ class SentryReplayOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setNetworkDetailDenyUrls(java.util.List list)` - void setNetworkDetailDenyUrls( - jni$_.JList list, - ) { + set networkDetailDenyUrls(jni$_.JList list) { final _$list = list.reference; - _setNetworkDetailDenyUrls(reference.pointer, - _id_setNetworkDetailDenyUrls as jni$_.JMethodIDPtr, _$list.pointer) + _set$networkDetailDenyUrls(reference.pointer, + _id_set$networkDetailDenyUrls.pointer, _$list.pointer) .check(); } - static final _id_isNetworkCaptureBodies = _class.instanceMethodId( + static final _id_get$isNetworkCaptureBodies = + SentryReplayOptions._class.instanceMethodId( r'isNetworkCaptureBodies', r'()Z', ); - static final _isNetworkCaptureBodies = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$isNetworkCaptureBodies = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public boolean isNetworkCaptureBodies()` - bool isNetworkCaptureBodies() { - return _isNetworkCaptureBodies( - reference.pointer, _id_isNetworkCaptureBodies as jni$_.JMethodIDPtr) + core$_.bool get isNetworkCaptureBodies { + return _get$isNetworkCaptureBodies( + reference.pointer, _id_get$isNetworkCaptureBodies.pointer) .boolean; } - static final _id_setNetworkCaptureBodies = _class.instanceMethodId( + static final _id_set$networkCaptureBodies = + SentryReplayOptions._class.instanceMethodId( r'setNetworkCaptureBodies', r'(Z)V', ); - static final _setNetworkCaptureBodies = jni$_.ProtectedJniExtensions.lookup< + static final _set$networkCaptureBodies = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -22085,23 +18869,22 @@ class SentryReplayOptions extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setNetworkCaptureBodies(boolean z)` - void setNetworkCaptureBodies( - bool z, - ) { - _setNetworkCaptureBodies(reference.pointer, - _id_setNetworkCaptureBodies as jni$_.JMethodIDPtr, z ? 1 : 0) + set networkCaptureBodies(core$_.bool z) { + _set$networkCaptureBodies( + reference.pointer, _id_set$networkCaptureBodies.pointer, z ? 1 : 0) .check(); } - static final _id_getNetworkRequestHeaders = _class.instanceMethodId( + static final _id_get$networkRequestHeaders = + SentryReplayOptions._class.instanceMethodId( r'getNetworkRequestHeaders', r'()Ljava/util/List;', ); - static final _getNetworkRequestHeaders = jni$_.ProtectedJniExtensions.lookup< + static final _get$networkRequestHeaders = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -22115,19 +18898,19 @@ class SentryReplayOptions extends jni$_.JObject { /// from: `public java.util.List getNetworkRequestHeaders()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList getNetworkRequestHeaders() { - return _getNetworkRequestHeaders(reference.pointer, - _id_getNetworkRequestHeaders as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JStringNullableType())); + jni$_.JList get networkRequestHeaders { + return _get$networkRequestHeaders( + reference.pointer, _id_get$networkRequestHeaders.pointer) + .object>(); } - static final _id_setNetworkRequestHeaders = _class.instanceMethodId( + static final _id_set$networkRequestHeaders = + SentryReplayOptions._class.instanceMethodId( r'setNetworkRequestHeaders', r'(Ljava/util/List;)V', ); - static final _setNetworkRequestHeaders = jni$_.ProtectedJniExtensions.lookup< + static final _set$networkRequestHeaders = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -22139,73 +18922,73 @@ class SentryReplayOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setNetworkRequestHeaders(java.util.List list)` - void setNetworkRequestHeaders( - jni$_.JList list, - ) { + set networkRequestHeaders(jni$_.JList list) { final _$list = list.reference; - _setNetworkRequestHeaders(reference.pointer, - _id_setNetworkRequestHeaders as jni$_.JMethodIDPtr, _$list.pointer) + _set$networkRequestHeaders(reference.pointer, + _id_set$networkRequestHeaders.pointer, _$list.pointer) .check(); } - static final _id_getNetworkResponseHeaders = _class.instanceMethodId( + static final _id_get$networkResponseHeaders = + SentryReplayOptions._class.instanceMethodId( r'getNetworkResponseHeaders', r'()Ljava/util/List;', ); - static final _getNetworkResponseHeaders = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$networkResponseHeaders = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public java.util.List getNetworkResponseHeaders()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList getNetworkResponseHeaders() { - return _getNetworkResponseHeaders(reference.pointer, - _id_getNetworkResponseHeaders as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JStringNullableType())); + jni$_.JList get networkResponseHeaders { + return _get$networkResponseHeaders( + reference.pointer, _id_get$networkResponseHeaders.pointer) + .object>(); } - static final _id_setNetworkResponseHeaders = _class.instanceMethodId( + static final _id_set$networkResponseHeaders = + SentryReplayOptions._class.instanceMethodId( r'setNetworkResponseHeaders', r'(Ljava/util/List;)V', ); - static final _setNetworkResponseHeaders = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _set$networkResponseHeaders = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setNetworkResponseHeaders(java.util.List list)` - void setNetworkResponseHeaders( - jni$_.JList list, - ) { + set networkResponseHeaders(jni$_.JList list) { final _$list = list.reference; - _setNetworkResponseHeaders(reference.pointer, - _id_setNetworkResponseHeaders as jni$_.JMethodIDPtr, _$list.pointer) + _set$networkResponseHeaders(reference.pointer, + _id_set$networkResponseHeaders.pointer, _$list.pointer) .check(); } - static final _id_getBeforeErrorSampling = _class.instanceMethodId( + static final _id_get$beforeErrorSampling = + SentryReplayOptions._class.instanceMethodId( r'getBeforeErrorSampling', r'()Lio/sentry/SentryReplayOptions$BeforeErrorSamplingCallback;', ); - static final _getBeforeErrorSampling = jni$_.ProtectedJniExtensions.lookup< + static final _get$beforeErrorSampling = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -22219,19 +19002,19 @@ class SentryReplayOptions extends jni$_.JObject { /// from: `public io.sentry.SentryReplayOptions$BeforeErrorSamplingCallback getBeforeErrorSampling()` /// The returned object must be released after use, by calling the [release] method. - SentryReplayOptions$BeforeErrorSamplingCallback? getBeforeErrorSampling() { - return _getBeforeErrorSampling( - reference.pointer, _id_getBeforeErrorSampling as jni$_.JMethodIDPtr) - .object( - const $SentryReplayOptions$BeforeErrorSamplingCallback$NullableType()); + SentryReplayOptions$BeforeErrorSamplingCallback? get beforeErrorSampling { + return _get$beforeErrorSampling( + reference.pointer, _id_get$beforeErrorSampling.pointer) + .object(); } - static final _id_setBeforeErrorSampling = _class.instanceMethodId( + static final _id_set$beforeErrorSampling = + SentryReplayOptions._class.instanceMethodId( r'setBeforeErrorSampling', r'(Lio/sentry/SentryReplayOptions$BeforeErrorSamplingCallback;)V', ); - static final _setBeforeErrorSampling = jni$_.ProtectedJniExtensions.lookup< + static final _set$beforeErrorSampling = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -22243,115 +19026,38 @@ class SentryReplayOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setBeforeErrorSampling(io.sentry.SentryReplayOptions$BeforeErrorSamplingCallback beforeErrorSamplingCallback)` - void setBeforeErrorSampling( - SentryReplayOptions$BeforeErrorSamplingCallback? - beforeErrorSamplingCallback, - ) { + set beforeErrorSampling( + SentryReplayOptions$BeforeErrorSamplingCallback? + beforeErrorSamplingCallback) { final _$beforeErrorSamplingCallback = beforeErrorSamplingCallback?.reference ?? jni$_.jNullReference; - _setBeforeErrorSampling( + _set$beforeErrorSampling( reference.pointer, - _id_setBeforeErrorSampling as jni$_.JMethodIDPtr, + _id_set$beforeErrorSampling.pointer, _$beforeErrorSamplingCallback.pointer) .check(); } } -final class $SentryReplayOptions$NullableType - extends jni$_.JObjType { +final class $SentryReplayOptions$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryReplayOptions$NullableType(); + const $SentryReplayOptions$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryReplayOptions;'; - - @jni$_.internal - @core$_.override - SentryReplayOptions? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryReplayOptions.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryReplayOptions$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryReplayOptions$NullableType) && - other is $SentryReplayOptions$NullableType; - } -} - -final class $SentryReplayOptions$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryReplayOptions$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryReplayOptions;'; - - @jni$_.internal - @core$_.override - SentryReplayOptions fromReference(jni$_.JReference reference) => - SentryReplayOptions.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryReplayOptions$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryReplayOptions$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryReplayOptions$Type) && - other is $SentryReplayOptions$Type; - } } /// from: `io.sentry.SentryReplayEvent$Deserializer` -class SentryReplayEvent$Deserializer extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryReplayEvent$Deserializer.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryReplayEvent$Deserializer._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryReplayEvent$Deserializer'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryReplayEvent$Deserializer$NullableType(); - static const type = $SentryReplayEvent$Deserializer$Type(); + static const jni$_.JType type = + $SentryReplayEvent$Deserializer$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -22371,12 +19077,15 @@ class SentryReplayEvent$Deserializer extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryReplayEvent$Deserializer() { - return SentryReplayEvent$Deserializer.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_deserialize = _class.instanceMethodId( +extension SentryReplayEvent$Deserializer$$Methods + on SentryReplayEvent$Deserializer { + static final _id_deserialize = + SentryReplayEvent$Deserializer._class.instanceMethodId( r'deserialize', r'(Lio/sentry/ObjectReader;Lio/sentry/ILogger;)Lio/sentry/SentryReplayEvent;', ); @@ -22406,111 +19115,31 @@ class SentryReplayEvent$Deserializer extends jni$_.JObject { ) { final _$objectReader = objectReader.reference; final _$iLogger = iLogger.reference; - return _deserialize( - reference.pointer, - _id_deserialize as jni$_.JMethodIDPtr, - _$objectReader.pointer, - _$iLogger.pointer) - .object(const $SentryReplayEvent$Type()); + return _deserialize(reference.pointer, _id_deserialize.pointer, + _$objectReader.pointer, _$iLogger.pointer) + .object(); } } -final class $SentryReplayEvent$Deserializer$NullableType - extends jni$_.JObjType { +final class $SentryReplayEvent$Deserializer$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryReplayEvent$Deserializer$NullableType(); + const $SentryReplayEvent$Deserializer$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryReplayEvent$Deserializer;'; - - @jni$_.internal - @core$_.override - SentryReplayEvent$Deserializer? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryReplayEvent$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryReplayEvent$Deserializer$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryReplayEvent$Deserializer$NullableType) && - other is $SentryReplayEvent$Deserializer$NullableType; - } -} - -final class $SentryReplayEvent$Deserializer$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryReplayEvent$Deserializer$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryReplayEvent$Deserializer;'; - - @jni$_.internal - @core$_.override - SentryReplayEvent$Deserializer fromReference(jni$_.JReference reference) => - SentryReplayEvent$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryReplayEvent$Deserializer$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryReplayEvent$Deserializer$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryReplayEvent$Deserializer$Type) && - other is $SentryReplayEvent$Deserializer$Type; - } } /// from: `io.sentry.SentryReplayEvent$JsonKeys` -class SentryReplayEvent$JsonKeys extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryReplayEvent$JsonKeys.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryReplayEvent$JsonKeys._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryReplayEvent$JsonKeys'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryReplayEvent$JsonKeys$NullableType(); - static const type = $SentryReplayEvent$JsonKeys$Type(); + static const jni$_.JType type = + $SentryReplayEvent$JsonKeys$Type$(); static final _id_TYPE = _class.staticFieldId( r'TYPE', r'Ljava/lang/String;', @@ -22519,7 +19148,7 @@ class SentryReplayEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String TYPE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TYPE => - _id_TYPE.get(_class, const jni$_.JStringNullableType()); + _id_TYPE.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_REPLAY_TYPE = _class.staticFieldId( r'REPLAY_TYPE', @@ -22529,7 +19158,7 @@ class SentryReplayEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String REPLAY_TYPE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get REPLAY_TYPE => - _id_REPLAY_TYPE.get(_class, const jni$_.JStringNullableType()); + _id_REPLAY_TYPE.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_REPLAY_ID = _class.staticFieldId( r'REPLAY_ID', @@ -22539,7 +19168,7 @@ class SentryReplayEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String REPLAY_ID` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get REPLAY_ID => - _id_REPLAY_ID.get(_class, const jni$_.JStringNullableType()); + _id_REPLAY_ID.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_SEGMENT_ID = _class.staticFieldId( r'SEGMENT_ID', @@ -22549,7 +19178,7 @@ class SentryReplayEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String SEGMENT_ID` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get SEGMENT_ID => - _id_SEGMENT_ID.get(_class, const jni$_.JStringNullableType()); + _id_SEGMENT_ID.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_TIMESTAMP = _class.staticFieldId( r'TIMESTAMP', @@ -22559,7 +19188,7 @@ class SentryReplayEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String TIMESTAMP` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TIMESTAMP => - _id_TIMESTAMP.get(_class, const jni$_.JStringNullableType()); + _id_TIMESTAMP.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_REPLAY_START_TIMESTAMP = _class.staticFieldId( r'REPLAY_START_TIMESTAMP', @@ -22569,7 +19198,8 @@ class SentryReplayEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String REPLAY_START_TIMESTAMP` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get REPLAY_START_TIMESTAMP => - _id_REPLAY_START_TIMESTAMP.get(_class, const jni$_.JStringNullableType()); + _id_REPLAY_START_TIMESTAMP.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_URLS = _class.staticFieldId( r'URLS', @@ -22579,7 +19209,7 @@ class SentryReplayEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String URLS` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get URLS => - _id_URLS.get(_class, const jni$_.JStringNullableType()); + _id_URLS.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_ERROR_IDS = _class.staticFieldId( r'ERROR_IDS', @@ -22589,7 +19219,7 @@ class SentryReplayEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String ERROR_IDS` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get ERROR_IDS => - _id_ERROR_IDS.get(_class, const jni$_.JStringNullableType()); + _id_ERROR_IDS.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_TRACE_IDS = _class.staticFieldId( r'TRACE_IDS', @@ -22599,7 +19229,7 @@ class SentryReplayEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String TRACE_IDS` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TRACE_IDS => - _id_TRACE_IDS.get(_class, const jni$_.JStringNullableType()); + _id_TRACE_IDS.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_new$ = _class.constructorId( r'()V', @@ -22620,108 +19250,30 @@ class SentryReplayEvent$JsonKeys extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryReplayEvent$JsonKeys() { - return SentryReplayEvent$JsonKeys.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } } -final class $SentryReplayEvent$JsonKeys$NullableType - extends jni$_.JObjType { +final class $SentryReplayEvent$JsonKeys$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryReplayEvent$JsonKeys$NullableType(); + const $SentryReplayEvent$JsonKeys$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryReplayEvent$JsonKeys;'; - - @jni$_.internal - @core$_.override - SentryReplayEvent$JsonKeys? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryReplayEvent$JsonKeys.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryReplayEvent$JsonKeys$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryReplayEvent$JsonKeys$NullableType) && - other is $SentryReplayEvent$JsonKeys$NullableType; - } -} - -final class $SentryReplayEvent$JsonKeys$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryReplayEvent$JsonKeys$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryReplayEvent$JsonKeys;'; - - @jni$_.internal - @core$_.override - SentryReplayEvent$JsonKeys fromReference(jni$_.JReference reference) => - SentryReplayEvent$JsonKeys.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryReplayEvent$JsonKeys$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryReplayEvent$JsonKeys$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryReplayEvent$JsonKeys$Type) && - other is $SentryReplayEvent$JsonKeys$Type; - } } /// from: `io.sentry.SentryReplayEvent$ReplayType$Deserializer` -class SentryReplayEvent$ReplayType$Deserializer extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryReplayEvent$ReplayType$Deserializer.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryReplayEvent$ReplayType$Deserializer._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName( r'io/sentry/SentryReplayEvent$ReplayType$Deserializer'); /// The type which includes information such as the signature of this class. - static const nullableType = - $SentryReplayEvent$ReplayType$Deserializer$NullableType(); - static const type = $SentryReplayEvent$ReplayType$Deserializer$Type(); + static const jni$_.JType type = + $SentryReplayEvent$ReplayType$Deserializer$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -22741,12 +19293,15 @@ class SentryReplayEvent$ReplayType$Deserializer extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryReplayEvent$ReplayType$Deserializer() { - return SentryReplayEvent$ReplayType$Deserializer.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_deserialize = _class.instanceMethodId( +extension SentryReplayEvent$ReplayType$Deserializer$$Methods + on SentryReplayEvent$ReplayType$Deserializer { + static final _id_deserialize = + SentryReplayEvent$ReplayType$Deserializer._class.instanceMethodId( r'deserialize', r'(Lio/sentry/ObjectReader;Lio/sentry/ILogger;)Lio/sentry/SentryReplayEvent$ReplayType;', ); @@ -22776,120 +19331,32 @@ class SentryReplayEvent$ReplayType$Deserializer extends jni$_.JObject { ) { final _$objectReader = objectReader.reference; final _$iLogger = iLogger.reference; - return _deserialize( - reference.pointer, - _id_deserialize as jni$_.JMethodIDPtr, - _$objectReader.pointer, - _$iLogger.pointer) - .object( - const $SentryReplayEvent$ReplayType$Type()); - } -} - -final class $SentryReplayEvent$ReplayType$Deserializer$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryReplayEvent$ReplayType$Deserializer$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lio/sentry/SentryReplayEvent$ReplayType$Deserializer;'; - - @jni$_.internal - @core$_.override - SentryReplayEvent$ReplayType$Deserializer? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : SentryReplayEvent$ReplayType$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($SentryReplayEvent$ReplayType$Deserializer$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryReplayEvent$ReplayType$Deserializer$NullableType) && - other is $SentryReplayEvent$ReplayType$Deserializer$NullableType; + return _deserialize(reference.pointer, _id_deserialize.pointer, + _$objectReader.pointer, _$iLogger.pointer) + .object(); } } -final class $SentryReplayEvent$ReplayType$Deserializer$Type - extends jni$_.JObjType { +final class $SentryReplayEvent$ReplayType$Deserializer$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryReplayEvent$ReplayType$Deserializer$Type(); + const $SentryReplayEvent$ReplayType$Deserializer$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryReplayEvent$ReplayType$Deserializer;'; - - @jni$_.internal - @core$_.override - SentryReplayEvent$ReplayType$Deserializer fromReference( - jni$_.JReference reference) => - SentryReplayEvent$ReplayType$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryReplayEvent$ReplayType$Deserializer$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($SentryReplayEvent$ReplayType$Deserializer$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($SentryReplayEvent$ReplayType$Deserializer$Type) && - other is $SentryReplayEvent$ReplayType$Deserializer$Type; - } } /// from: `io.sentry.SentryReplayEvent$ReplayType` -class SentryReplayEvent$ReplayType extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryReplayEvent$ReplayType.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryReplayEvent$ReplayType._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryReplayEvent$ReplayType'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryReplayEvent$ReplayType$NullableType(); - static const type = $SentryReplayEvent$ReplayType$Type(); + static const jni$_.JType type = + $SentryReplayEvent$ReplayType$Type$(); static final _id_SESSION = _class.staticFieldId( r'SESSION', r'Lio/sentry/SentryReplayEvent$ReplayType;', @@ -22898,7 +19365,8 @@ class SentryReplayEvent$ReplayType extends jni$_.JObject { /// from: `static public final io.sentry.SentryReplayEvent$ReplayType SESSION` /// The returned object must be released after use, by calling the [release] method. static SentryReplayEvent$ReplayType get SESSION => - _id_SESSION.get(_class, const $SentryReplayEvent$ReplayType$Type()); + _id_SESSION.get(_class, SentryReplayEvent$ReplayType.type) + as SentryReplayEvent$ReplayType; static final _id_BUFFER = _class.staticFieldId( r'BUFFER', @@ -22908,7 +19376,8 @@ class SentryReplayEvent$ReplayType extends jni$_.JObject { /// from: `static public final io.sentry.SentryReplayEvent$ReplayType BUFFER` /// The returned object must be released after use, by calling the [release] method. static SentryReplayEvent$ReplayType get BUFFER => - _id_BUFFER.get(_class, const $SentryReplayEvent$ReplayType$Type()); + _id_BUFFER.get(_class, SentryReplayEvent$ReplayType.type) + as SentryReplayEvent$ReplayType; static final _id_values = _class.staticMethodId( r'values', @@ -22930,10 +19399,8 @@ class SentryReplayEvent$ReplayType extends jni$_.JObject { /// from: `static public io.sentry.SentryReplayEvent$ReplayType[] values()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JArray? values() { - return _values(_class.reference.pointer, _id_values as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - $SentryReplayEvent$ReplayType$NullableType())); + return _values(_class.reference.pointer, _id_values.pointer) + .object?>(); } static final _id_valueOf = _class.staticMethodId( @@ -22958,13 +19425,16 @@ class SentryReplayEvent$ReplayType extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - return _valueOf(_class.reference.pointer, _id_valueOf as jni$_.JMethodIDPtr, - _$string.pointer) - .object( - const $SentryReplayEvent$ReplayType$NullableType()); + return _valueOf( + _class.reference.pointer, _id_valueOf.pointer, _$string.pointer) + .object(); } +} - static final _id_serialize = _class.instanceMethodId( +extension SentryReplayEvent$ReplayType$$Methods + on SentryReplayEvent$ReplayType { + static final _id_serialize = + SentryReplayEvent$ReplayType._class.instanceMethodId( r'serialize', r'(Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V', ); @@ -22993,106 +19463,29 @@ class SentryReplayEvent$ReplayType extends jni$_.JObject { ) { final _$objectWriter = objectWriter.reference; final _$iLogger = iLogger.reference; - _serialize(reference.pointer, _id_serialize as jni$_.JMethodIDPtr, - _$objectWriter.pointer, _$iLogger.pointer) + _serialize(reference.pointer, _id_serialize.pointer, _$objectWriter.pointer, + _$iLogger.pointer) .check(); } } -final class $SentryReplayEvent$ReplayType$NullableType - extends jni$_.JObjType { +final class $SentryReplayEvent$ReplayType$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryReplayEvent$ReplayType$NullableType(); + const $SentryReplayEvent$ReplayType$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryReplayEvent$ReplayType;'; - - @jni$_.internal - @core$_.override - SentryReplayEvent$ReplayType? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryReplayEvent$ReplayType.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryReplayEvent$ReplayType$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryReplayEvent$ReplayType$NullableType) && - other is $SentryReplayEvent$ReplayType$NullableType; - } -} - -final class $SentryReplayEvent$ReplayType$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryReplayEvent$ReplayType$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryReplayEvent$ReplayType;'; - - @jni$_.internal - @core$_.override - SentryReplayEvent$ReplayType fromReference(jni$_.JReference reference) => - SentryReplayEvent$ReplayType.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryReplayEvent$ReplayType$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryReplayEvent$ReplayType$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryReplayEvent$ReplayType$Type) && - other is $SentryReplayEvent$ReplayType$Type; - } } /// from: `io.sentry.SentryReplayEvent` -class SentryReplayEvent extends SentryBaseEvent { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryReplayEvent.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryReplayEvent._(jni$_.JObject _$this) + implements SentryBaseEvent, jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryReplayEvent'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryReplayEvent$NullableType(); - static const type = $SentryReplayEvent$Type(); + static const jni$_.JType type = $SentryReplayEvent$Type$(); /// from: `static public final long REPLAY_VIDEO_MAX_SIZE` static const REPLAY_VIDEO_MAX_SIZE = 10485760; @@ -23104,7 +19497,8 @@ class SentryReplayEvent extends SentryBaseEvent { /// from: `static public final java.lang.String REPLAY_EVENT_TYPE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get REPLAY_EVENT_TYPE => - _id_REPLAY_EVENT_TYPE.get(_class, const jni$_.JStringNullableType()); + _id_REPLAY_EVENT_TYPE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_new$ = _class.constructorId( r'()V', @@ -23125,17 +19519,18 @@ class SentryReplayEvent extends SentryBaseEvent { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryReplayEvent() { - return SentryReplayEvent.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_getVideoFile = _class.instanceMethodId( +extension SentryReplayEvent$$Methods on SentryReplayEvent { + static final _id_get$videoFile = SentryReplayEvent._class.instanceMethodId( r'getVideoFile', r'()Ljava/io/File;', ); - static final _getVideoFile = jni$_.ProtectedJniExtensions.lookup< + static final _get$videoFile = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -23149,18 +19544,17 @@ class SentryReplayEvent extends SentryBaseEvent { /// from: `public java.io.File getVideoFile()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getVideoFile() { - return _getVideoFile( - reference.pointer, _id_getVideoFile as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get videoFile { + return _get$videoFile(reference.pointer, _id_get$videoFile.pointer) + .object(); } - static final _id_setVideoFile = _class.instanceMethodId( + static final _id_set$videoFile = SentryReplayEvent._class.instanceMethodId( r'setVideoFile', r'(Ljava/io/File;)V', ); - static final _setVideoFile = jni$_.ProtectedJniExtensions.lookup< + static final _set$videoFile = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -23172,21 +19566,18 @@ class SentryReplayEvent extends SentryBaseEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setVideoFile(java.io.File file)` - void setVideoFile( - jni$_.JObject? file, - ) { + set videoFile(jni$_.JObject? file) { final _$file = file?.reference ?? jni$_.jNullReference; - _setVideoFile(reference.pointer, _id_setVideoFile as jni$_.JMethodIDPtr, - _$file.pointer) + _set$videoFile(reference.pointer, _id_set$videoFile.pointer, _$file.pointer) .check(); } - static final _id_getType = _class.instanceMethodId( + static final _id_get$type$1 = SentryReplayEvent._class.instanceMethodId( r'getType', r'()Ljava/lang/String;', ); - static final _getType = jni$_.ProtectedJniExtensions.lookup< + static final _get$type$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -23200,17 +19591,17 @@ class SentryReplayEvent extends SentryBaseEvent { /// from: `public java.lang.String getType()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString getType() { - return _getType(reference.pointer, _id_getType as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + jni$_.JString get type$1 { + return _get$type$1(reference.pointer, _id_get$type$1.pointer) + .object(); } - static final _id_setType = _class.instanceMethodId( + static final _id_set$type$1 = SentryReplayEvent._class.instanceMethodId( r'setType', r'(Ljava/lang/String;)V', ); - static final _setType = jni$_.ProtectedJniExtensions.lookup< + static final _set$type$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -23222,21 +19613,18 @@ class SentryReplayEvent extends SentryBaseEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setType(java.lang.String string)` - void setType( - jni$_.JString string, - ) { + set type$1(jni$_.JString string) { final _$string = string.reference; - _setType(reference.pointer, _id_setType as jni$_.JMethodIDPtr, - _$string.pointer) + _set$type$1(reference.pointer, _id_set$type$1.pointer, _$string.pointer) .check(); } - static final _id_getReplayId = _class.instanceMethodId( + static final _id_get$replayId = SentryReplayEvent._class.instanceMethodId( r'getReplayId', r'()Lio/sentry/protocol/SentryId;', ); - static final _getReplayId = jni$_.ProtectedJniExtensions.lookup< + static final _get$replayId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -23250,18 +19638,17 @@ class SentryReplayEvent extends SentryBaseEvent { /// from: `public io.sentry.protocol.SentryId getReplayId()` /// The returned object must be released after use, by calling the [release] method. - SentryId? getReplayId() { - return _getReplayId( - reference.pointer, _id_getReplayId as jni$_.JMethodIDPtr) - .object(const $SentryId$NullableType()); + SentryId? get replayId { + return _get$replayId(reference.pointer, _id_get$replayId.pointer) + .object(); } - static final _id_setReplayId = _class.instanceMethodId( + static final _id_set$replayId = SentryReplayEvent._class.instanceMethodId( r'setReplayId', r'(Lio/sentry/protocol/SentryId;)V', ); - static final _setReplayId = jni$_.ProtectedJniExtensions.lookup< + static final _set$replayId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -23273,21 +19660,19 @@ class SentryReplayEvent extends SentryBaseEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setReplayId(io.sentry.protocol.SentryId sentryId)` - void setReplayId( - SentryId? sentryId, - ) { + set replayId(SentryId? sentryId) { final _$sentryId = sentryId?.reference ?? jni$_.jNullReference; - _setReplayId(reference.pointer, _id_setReplayId as jni$_.JMethodIDPtr, - _$sentryId.pointer) + _set$replayId( + reference.pointer, _id_set$replayId.pointer, _$sentryId.pointer) .check(); } - static final _id_getSegmentId = _class.instanceMethodId( + static final _id_get$segmentId = SentryReplayEvent._class.instanceMethodId( r'getSegmentId', r'()I', ); - static final _getSegmentId = jni$_.ProtectedJniExtensions.lookup< + static final _get$segmentId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -23300,18 +19685,16 @@ class SentryReplayEvent extends SentryBaseEvent { )>(); /// from: `public int getSegmentId()` - int getSegmentId() { - return _getSegmentId( - reference.pointer, _id_getSegmentId as jni$_.JMethodIDPtr) - .integer; + core$_.int get segmentId { + return _get$segmentId(reference.pointer, _id_get$segmentId.pointer).integer; } - static final _id_setSegmentId = _class.instanceMethodId( + static final _id_set$segmentId = SentryReplayEvent._class.instanceMethodId( r'setSegmentId', r'(I)V', ); - static final _setSegmentId = jni$_.ProtectedJniExtensions.lookup< + static final _set$segmentId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -23319,22 +19702,19 @@ class SentryReplayEvent extends SentryBaseEvent { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setSegmentId(int i)` - void setSegmentId( - int i, - ) { - _setSegmentId(reference.pointer, _id_setSegmentId as jni$_.JMethodIDPtr, i) - .check(); + set segmentId(core$_.int i) { + _set$segmentId(reference.pointer, _id_set$segmentId.pointer, i).check(); } - static final _id_getTimestamp = _class.instanceMethodId( + static final _id_get$timestamp = SentryReplayEvent._class.instanceMethodId( r'getTimestamp', r'()Ljava/util/Date;', ); - static final _getTimestamp = jni$_.ProtectedJniExtensions.lookup< + static final _get$timestamp = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -23348,18 +19728,17 @@ class SentryReplayEvent extends SentryBaseEvent { /// from: `public java.util.Date getTimestamp()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getTimestamp() { - return _getTimestamp( - reference.pointer, _id_getTimestamp as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get timestamp { + return _get$timestamp(reference.pointer, _id_get$timestamp.pointer) + .object(); } - static final _id_setTimestamp = _class.instanceMethodId( + static final _id_set$timestamp = SentryReplayEvent._class.instanceMethodId( r'setTimestamp', r'(Ljava/util/Date;)V', ); - static final _setTimestamp = jni$_.ProtectedJniExtensions.lookup< + static final _set$timestamp = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -23371,21 +19750,19 @@ class SentryReplayEvent extends SentryBaseEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setTimestamp(java.util.Date date)` - void setTimestamp( - jni$_.JObject date, - ) { + set timestamp(jni$_.JObject date) { final _$date = date.reference; - _setTimestamp(reference.pointer, _id_setTimestamp as jni$_.JMethodIDPtr, - _$date.pointer) + _set$timestamp(reference.pointer, _id_set$timestamp.pointer, _$date.pointer) .check(); } - static final _id_getReplayStartTimestamp = _class.instanceMethodId( + static final _id_get$replayStartTimestamp = + SentryReplayEvent._class.instanceMethodId( r'getReplayStartTimestamp', r'()Ljava/util/Date;', ); - static final _getReplayStartTimestamp = jni$_.ProtectedJniExtensions.lookup< + static final _get$replayStartTimestamp = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -23399,18 +19776,19 @@ class SentryReplayEvent extends SentryBaseEvent { /// from: `public java.util.Date getReplayStartTimestamp()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getReplayStartTimestamp() { - return _getReplayStartTimestamp(reference.pointer, - _id_getReplayStartTimestamp as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get replayStartTimestamp { + return _get$replayStartTimestamp( + reference.pointer, _id_get$replayStartTimestamp.pointer) + .object(); } - static final _id_setReplayStartTimestamp = _class.instanceMethodId( + static final _id_set$replayStartTimestamp = + SentryReplayEvent._class.instanceMethodId( r'setReplayStartTimestamp', r'(Ljava/util/Date;)V', ); - static final _setReplayStartTimestamp = jni$_.ProtectedJniExtensions.lookup< + static final _set$replayStartTimestamp = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -23422,21 +19800,19 @@ class SentryReplayEvent extends SentryBaseEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setReplayStartTimestamp(java.util.Date date)` - void setReplayStartTimestamp( - jni$_.JObject? date, - ) { + set replayStartTimestamp(jni$_.JObject? date) { final _$date = date?.reference ?? jni$_.jNullReference; - _setReplayStartTimestamp(reference.pointer, - _id_setReplayStartTimestamp as jni$_.JMethodIDPtr, _$date.pointer) + _set$replayStartTimestamp(reference.pointer, + _id_set$replayStartTimestamp.pointer, _$date.pointer) .check(); } - static final _id_getUrls = _class.instanceMethodId( + static final _id_get$urls = SentryReplayEvent._class.instanceMethodId( r'getUrls', r'()Ljava/util/List;', ); - static final _getUrls = jni$_.ProtectedJniExtensions.lookup< + static final _get$urls = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -23450,19 +19826,17 @@ class SentryReplayEvent extends SentryBaseEvent { /// from: `public java.util.List getUrls()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? getUrls() { - return _getUrls(reference.pointer, _id_getUrls as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - jni$_.JStringNullableType())); + jni$_.JList? get urls { + return _get$urls(reference.pointer, _id_get$urls.pointer) + .object?>(); } - static final _id_setUrls = _class.instanceMethodId( + static final _id_set$urls = SentryReplayEvent._class.instanceMethodId( r'setUrls', r'(Ljava/util/List;)V', ); - static final _setUrls = jni$_.ProtectedJniExtensions.lookup< + static final _set$urls = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -23474,21 +19848,17 @@ class SentryReplayEvent extends SentryBaseEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setUrls(java.util.List list)` - void setUrls( - jni$_.JList? list, - ) { + set urls(jni$_.JList? list) { final _$list = list?.reference ?? jni$_.jNullReference; - _setUrls(reference.pointer, _id_setUrls as jni$_.JMethodIDPtr, - _$list.pointer) - .check(); + _set$urls(reference.pointer, _id_set$urls.pointer, _$list.pointer).check(); } - static final _id_getErrorIds = _class.instanceMethodId( + static final _id_get$errorIds = SentryReplayEvent._class.instanceMethodId( r'getErrorIds', r'()Ljava/util/List;', ); - static final _getErrorIds = jni$_.ProtectedJniExtensions.lookup< + static final _get$errorIds = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -23502,20 +19872,17 @@ class SentryReplayEvent extends SentryBaseEvent { /// from: `public java.util.List getErrorIds()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? getErrorIds() { - return _getErrorIds( - reference.pointer, _id_getErrorIds as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - jni$_.JStringNullableType())); + jni$_.JList? get errorIds { + return _get$errorIds(reference.pointer, _id_get$errorIds.pointer) + .object?>(); } - static final _id_setErrorIds = _class.instanceMethodId( + static final _id_set$errorIds = SentryReplayEvent._class.instanceMethodId( r'setErrorIds', r'(Ljava/util/List;)V', ); - static final _setErrorIds = jni$_.ProtectedJniExtensions.lookup< + static final _set$errorIds = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -23527,21 +19894,18 @@ class SentryReplayEvent extends SentryBaseEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setErrorIds(java.util.List list)` - void setErrorIds( - jni$_.JList? list, - ) { + set errorIds(jni$_.JList? list) { final _$list = list?.reference ?? jni$_.jNullReference; - _setErrorIds(reference.pointer, _id_setErrorIds as jni$_.JMethodIDPtr, - _$list.pointer) + _set$errorIds(reference.pointer, _id_set$errorIds.pointer, _$list.pointer) .check(); } - static final _id_getTraceIds = _class.instanceMethodId( + static final _id_get$traceIds = SentryReplayEvent._class.instanceMethodId( r'getTraceIds', r'()Ljava/util/List;', ); - static final _getTraceIds = jni$_.ProtectedJniExtensions.lookup< + static final _get$traceIds = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -23555,20 +19919,17 @@ class SentryReplayEvent extends SentryBaseEvent { /// from: `public java.util.List getTraceIds()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? getTraceIds() { - return _getTraceIds( - reference.pointer, _id_getTraceIds as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - jni$_.JStringNullableType())); + jni$_.JList? get traceIds { + return _get$traceIds(reference.pointer, _id_get$traceIds.pointer) + .object?>(); } - static final _id_setTraceIds = _class.instanceMethodId( + static final _id_set$traceIds = SentryReplayEvent._class.instanceMethodId( r'setTraceIds', r'(Ljava/util/List;)V', ); - static final _setTraceIds = jni$_.ProtectedJniExtensions.lookup< + static final _set$traceIds = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -23580,21 +19941,18 @@ class SentryReplayEvent extends SentryBaseEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setTraceIds(java.util.List list)` - void setTraceIds( - jni$_.JList? list, - ) { + set traceIds(jni$_.JList? list) { final _$list = list?.reference ?? jni$_.jNullReference; - _setTraceIds(reference.pointer, _id_setTraceIds as jni$_.JMethodIDPtr, - _$list.pointer) + _set$traceIds(reference.pointer, _id_set$traceIds.pointer, _$list.pointer) .check(); } - static final _id_getReplayType = _class.instanceMethodId( + static final _id_get$replayType = SentryReplayEvent._class.instanceMethodId( r'getReplayType', r'()Lio/sentry/SentryReplayEvent$ReplayType;', ); - static final _getReplayType = jni$_.ProtectedJniExtensions.lookup< + static final _get$replayType = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -23608,19 +19966,17 @@ class SentryReplayEvent extends SentryBaseEvent { /// from: `public io.sentry.SentryReplayEvent$ReplayType getReplayType()` /// The returned object must be released after use, by calling the [release] method. - SentryReplayEvent$ReplayType getReplayType() { - return _getReplayType( - reference.pointer, _id_getReplayType as jni$_.JMethodIDPtr) - .object( - const $SentryReplayEvent$ReplayType$Type()); + SentryReplayEvent$ReplayType get replayType { + return _get$replayType(reference.pointer, _id_get$replayType.pointer) + .object(); } - static final _id_setReplayType = _class.instanceMethodId( + static final _id_set$replayType = SentryReplayEvent._class.instanceMethodId( r'setReplayType', r'(Lio/sentry/SentryReplayEvent$ReplayType;)V', ); - static final _setReplayType = jni$_.ProtectedJniExtensions.lookup< + static final _set$replayType = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -23632,16 +19988,14 @@ class SentryReplayEvent extends SentryBaseEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setReplayType(io.sentry.SentryReplayEvent$ReplayType replayType)` - void setReplayType( - SentryReplayEvent$ReplayType replayType, - ) { + set replayType(SentryReplayEvent$ReplayType replayType) { final _$replayType = replayType.reference; - _setReplayType(reference.pointer, _id_setReplayType as jni$_.JMethodIDPtr, - _$replayType.pointer) + _set$replayType( + reference.pointer, _id_set$replayType.pointer, _$replayType.pointer) .check(); } - static final _id_equals = _class.instanceMethodId( + static final _id_equals = SentryReplayEvent._class.instanceMethodId( r'equals', r'(Ljava/lang/Object;)Z', ); @@ -23658,16 +20012,15 @@ class SentryReplayEvent extends SentryBaseEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( + core$_.bool equals( jni$_.JObject? object, ) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) + return _equals(reference.pointer, _id_equals.pointer, _$object.pointer) .boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( + static final _id_hashCode$1 = SentryReplayEvent._class.instanceMethodId( r'hashCode', r'()I', ); @@ -23685,12 +20038,11 @@ class SentryReplayEvent extends SentryBaseEvent { )>(); /// from: `public int hashCode()` - int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + core$_.int hashCode$1() { + return _hashCode$1(reference.pointer, _id_hashCode$1.pointer).integer; } - static final _id_serialize = _class.instanceMethodId( + static final _id_serialize = SentryReplayEvent._class.instanceMethodId( r'serialize', r'(Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V', ); @@ -23719,17 +20071,17 @@ class SentryReplayEvent extends SentryBaseEvent { ) { final _$objectWriter = objectWriter.reference; final _$iLogger = iLogger.reference; - _serialize(reference.pointer, _id_serialize as jni$_.JMethodIDPtr, - _$objectWriter.pointer, _$iLogger.pointer) + _serialize(reference.pointer, _id_serialize.pointer, _$objectWriter.pointer, + _$iLogger.pointer) .check(); } - static final _id_getUnknown = _class.instanceMethodId( + static final _id_get$unknown = SentryReplayEvent._class.instanceMethodId( r'getUnknown', r'()Ljava/util/Map;', ); - static final _getUnknown = jni$_.ProtectedJniExtensions.lookup< + static final _get$unknown = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -23743,19 +20095,17 @@ class SentryReplayEvent extends SentryBaseEvent { /// from: `public java.util.Map getUnknown()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JMap? getUnknown() { - return _getUnknown(reference.pointer, _id_getUnknown as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JMapNullableType( - jni$_.JStringNullableType(), jni$_.JObjectNullableType())); + jni$_.JMap? get unknown { + return _get$unknown(reference.pointer, _id_get$unknown.pointer) + .object?>(); } - static final _id_setUnknown = _class.instanceMethodId( + static final _id_set$unknown = SentryReplayEvent._class.instanceMethodId( r'setUnknown', r'(Ljava/util/Map;)V', ); - static final _setUnknown = jni$_.ProtectedJniExtensions.lookup< + static final _set$unknown = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -23767,110 +20117,31 @@ class SentryReplayEvent extends SentryBaseEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setUnknown(java.util.Map map)` - void setUnknown( - jni$_.JMap? map, - ) { + set unknown(jni$_.JMap? map) { final _$map = map?.reference ?? jni$_.jNullReference; - _setUnknown(reference.pointer, _id_setUnknown as jni$_.JMethodIDPtr, - _$map.pointer) + _set$unknown(reference.pointer, _id_set$unknown.pointer, _$map.pointer) .check(); } } -final class $SentryReplayEvent$NullableType - extends jni$_.JObjType { +final class $SentryReplayEvent$Type$ extends jni$_.JType { @jni$_.internal - const $SentryReplayEvent$NullableType(); + const $SentryReplayEvent$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryReplayEvent;'; - - @jni$_.internal - @core$_.override - SentryReplayEvent? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryReplayEvent.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const $SentryBaseEvent$NullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 2; - - @core$_.override - int get hashCode => ($SentryReplayEvent$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryReplayEvent$NullableType) && - other is $SentryReplayEvent$NullableType; - } -} - -final class $SentryReplayEvent$Type extends jni$_.JObjType { - @jni$_.internal - const $SentryReplayEvent$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryReplayEvent;'; - - @jni$_.internal - @core$_.override - SentryReplayEvent fromReference(jni$_.JReference reference) => - SentryReplayEvent.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const $SentryBaseEvent$NullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryReplayEvent$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 2; - - @core$_.override - int get hashCode => ($SentryReplayEvent$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryReplayEvent$Type) && - other is $SentryReplayEvent$Type; - } } /// from: `io.sentry.SentryEvent$Deserializer` -class SentryEvent$Deserializer extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryEvent$Deserializer.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryEvent$Deserializer._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryEvent$Deserializer'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryEvent$Deserializer$NullableType(); - static const type = $SentryEvent$Deserializer$Type(); + static const jni$_.JType type = + $SentryEvent$Deserializer$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -23890,12 +20161,14 @@ class SentryEvent$Deserializer extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryEvent$Deserializer() { - return SentryEvent$Deserializer.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_deserialize = _class.instanceMethodId( +extension SentryEvent$Deserializer$$Methods on SentryEvent$Deserializer { + static final _id_deserialize = + SentryEvent$Deserializer._class.instanceMethodId( r'deserialize', r'(Lio/sentry/ObjectReader;Lio/sentry/ILogger;)Lio/sentry/SentryEvent;', ); @@ -23925,109 +20198,30 @@ class SentryEvent$Deserializer extends jni$_.JObject { ) { final _$objectReader = objectReader.reference; final _$iLogger = iLogger.reference; - return _deserialize( - reference.pointer, - _id_deserialize as jni$_.JMethodIDPtr, - _$objectReader.pointer, - _$iLogger.pointer) - .object(const $SentryEvent$Type()); + return _deserialize(reference.pointer, _id_deserialize.pointer, + _$objectReader.pointer, _$iLogger.pointer) + .object(); } } -final class $SentryEvent$Deserializer$NullableType - extends jni$_.JObjType { +final class $SentryEvent$Deserializer$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryEvent$Deserializer$NullableType(); + const $SentryEvent$Deserializer$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryEvent$Deserializer;'; - - @jni$_.internal - @core$_.override - SentryEvent$Deserializer? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryEvent$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryEvent$Deserializer$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryEvent$Deserializer$NullableType) && - other is $SentryEvent$Deserializer$NullableType; - } -} - -final class $SentryEvent$Deserializer$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryEvent$Deserializer$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryEvent$Deserializer;'; - - @jni$_.internal - @core$_.override - SentryEvent$Deserializer fromReference(jni$_.JReference reference) => - SentryEvent$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryEvent$Deserializer$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryEvent$Deserializer$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryEvent$Deserializer$Type) && - other is $SentryEvent$Deserializer$Type; - } } /// from: `io.sentry.SentryEvent$JsonKeys` -class SentryEvent$JsonKeys extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryEvent$JsonKeys.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryEvent$JsonKeys._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryEvent$JsonKeys'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryEvent$JsonKeys$NullableType(); - static const type = $SentryEvent$JsonKeys$Type(); + static const jni$_.JType type = + $SentryEvent$JsonKeys$Type$(); static final _id_TIMESTAMP = _class.staticFieldId( r'TIMESTAMP', r'Ljava/lang/String;', @@ -24036,7 +20230,7 @@ class SentryEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String TIMESTAMP` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TIMESTAMP => - _id_TIMESTAMP.get(_class, const jni$_.JStringNullableType()); + _id_TIMESTAMP.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_MESSAGE = _class.staticFieldId( r'MESSAGE', @@ -24046,7 +20240,7 @@ class SentryEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String MESSAGE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get MESSAGE => - _id_MESSAGE.get(_class, const jni$_.JStringNullableType()); + _id_MESSAGE.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_LOGGER = _class.staticFieldId( r'LOGGER', @@ -24056,7 +20250,7 @@ class SentryEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String LOGGER` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get LOGGER => - _id_LOGGER.get(_class, const jni$_.JStringNullableType()); + _id_LOGGER.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_THREADS = _class.staticFieldId( r'THREADS', @@ -24066,7 +20260,7 @@ class SentryEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String THREADS` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get THREADS => - _id_THREADS.get(_class, const jni$_.JStringNullableType()); + _id_THREADS.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_EXCEPTION = _class.staticFieldId( r'EXCEPTION', @@ -24076,7 +20270,7 @@ class SentryEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String EXCEPTION` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get EXCEPTION => - _id_EXCEPTION.get(_class, const jni$_.JStringNullableType()); + _id_EXCEPTION.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_LEVEL = _class.staticFieldId( r'LEVEL', @@ -24086,7 +20280,7 @@ class SentryEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String LEVEL` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get LEVEL => - _id_LEVEL.get(_class, const jni$_.JStringNullableType()); + _id_LEVEL.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_TRANSACTION = _class.staticFieldId( r'TRANSACTION', @@ -24096,7 +20290,7 @@ class SentryEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String TRANSACTION` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TRANSACTION => - _id_TRANSACTION.get(_class, const jni$_.JStringNullableType()); + _id_TRANSACTION.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_FINGERPRINT = _class.staticFieldId( r'FINGERPRINT', @@ -24106,7 +20300,7 @@ class SentryEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String FINGERPRINT` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get FINGERPRINT => - _id_FINGERPRINT.get(_class, const jni$_.JStringNullableType()); + _id_FINGERPRINT.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_MODULES = _class.staticFieldId( r'MODULES', @@ -24116,7 +20310,7 @@ class SentryEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String MODULES` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get MODULES => - _id_MODULES.get(_class, const jni$_.JStringNullableType()); + _id_MODULES.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_new$ = _class.constructorId( r'()V', @@ -24137,106 +20331,28 @@ class SentryEvent$JsonKeys extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryEvent$JsonKeys() { - return SentryEvent$JsonKeys.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); - } -} - -final class $SentryEvent$JsonKeys$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryEvent$JsonKeys$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryEvent$JsonKeys;'; - - @jni$_.internal - @core$_.override - SentryEvent$JsonKeys? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryEvent$JsonKeys.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryEvent$JsonKeys$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryEvent$JsonKeys$NullableType) && - other is $SentryEvent$JsonKeys$NullableType; + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } } -final class $SentryEvent$JsonKeys$Type - extends jni$_.JObjType { +final class $SentryEvent$JsonKeys$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryEvent$JsonKeys$Type(); + const $SentryEvent$JsonKeys$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryEvent$JsonKeys;'; - - @jni$_.internal - @core$_.override - SentryEvent$JsonKeys fromReference(jni$_.JReference reference) => - SentryEvent$JsonKeys.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryEvent$JsonKeys$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryEvent$JsonKeys$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryEvent$JsonKeys$Type) && - other is $SentryEvent$JsonKeys$Type; - } } /// from: `io.sentry.SentryEvent` -class SentryEvent extends SentryBaseEvent { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryEvent.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryEvent._(jni$_.JObject _$this) + implements SentryBaseEvent, jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryEvent'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryEvent$NullableType(); - static const type = $SentryEvent$Type(); + static const jni$_.JType type = $SentryEvent$Type$(); static final _id_new$ = _class.constructorId( r'(Ljava/lang/Throwable;)V', ); @@ -24258,9 +20374,9 @@ class SentryEvent extends SentryBaseEvent { jni$_.JObject? throwable, ) { final _$throwable = throwable?.reference ?? jni$_.jNullReference; - return SentryEvent.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$throwable.pointer) - .reference); + return _new$( + _class.reference.pointer, _id_new$.pointer, _$throwable.pointer) + .object(); } static final _id_new$1 = _class.constructorId( @@ -24282,9 +20398,8 @@ class SentryEvent extends SentryBaseEvent { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryEvent.new$1() { - return SentryEvent.fromReference( - _new$1(_class.reference.pointer, _id_new$1 as jni$_.JMethodIDPtr) - .reference); + return _new$1(_class.reference.pointer, _id_new$1.pointer) + .object(); } static final _id_new$2 = _class.constructorId( @@ -24308,68 +20423,18 @@ class SentryEvent extends SentryBaseEvent { jni$_.JObject date, ) { final _$date = date.reference; - return SentryEvent.fromReference(_new$2(_class.reference.pointer, - _id_new$2 as jni$_.JMethodIDPtr, _$date.pointer) - .reference); - } - - static final _id_getTimestamp = _class.instanceMethodId( - r'getTimestamp', - r'()Ljava/util/Date;', - ); - - static final _getTimestamp = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public java.util.Date getTimestamp()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getTimestamp() { - return _getTimestamp( - reference.pointer, _id_getTimestamp as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); - } - - static final _id_setTimestamp = _class.instanceMethodId( - r'setTimestamp', - r'(Ljava/util/Date;)V', - ); - - static final _setTimestamp = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public void setTimestamp(java.util.Date date)` - void setTimestamp( - jni$_.JObject date, - ) { - final _$date = date.reference; - _setTimestamp(reference.pointer, _id_setTimestamp as jni$_.JMethodIDPtr, - _$date.pointer) - .check(); + return _new$2(_class.reference.pointer, _id_new$2.pointer, _$date.pointer) + .object(); } +} - static final _id_getMessage = _class.instanceMethodId( +extension SentryEvent$$Methods on SentryEvent { + static final _id_get$message = SentryEvent._class.instanceMethodId( r'getMessage', r'()Lio/sentry/protocol/Message;', ); - static final _getMessage = jni$_.ProtectedJniExtensions.lookup< + static final _get$message = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -24383,17 +20448,17 @@ class SentryEvent extends SentryBaseEvent { /// from: `public io.sentry.protocol.Message getMessage()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getMessage() { - return _getMessage(reference.pointer, _id_getMessage as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get message { + return _get$message(reference.pointer, _id_get$message.pointer) + .object(); } - static final _id_setMessage = _class.instanceMethodId( + static final _id_set$message = SentryEvent._class.instanceMethodId( r'setMessage', r'(Lio/sentry/protocol/Message;)V', ); - static final _setMessage = jni$_.ProtectedJniExtensions.lookup< + static final _set$message = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -24405,21 +20470,18 @@ class SentryEvent extends SentryBaseEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setMessage(io.sentry.protocol.Message message)` - void setMessage( - jni$_.JObject? message, - ) { + set message(jni$_.JObject? message) { final _$message = message?.reference ?? jni$_.jNullReference; - _setMessage(reference.pointer, _id_setMessage as jni$_.JMethodIDPtr, - _$message.pointer) + _set$message(reference.pointer, _id_set$message.pointer, _$message.pointer) .check(); } - static final _id_getLogger = _class.instanceMethodId( + static final _id_get$logger = SentryEvent._class.instanceMethodId( r'getLogger', r'()Ljava/lang/String;', ); - static final _getLogger = jni$_.ProtectedJniExtensions.lookup< + static final _get$logger = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -24433,17 +20495,17 @@ class SentryEvent extends SentryBaseEvent { /// from: `public java.lang.String getLogger()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getLogger() { - return _getLogger(reference.pointer, _id_getLogger as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get logger { + return _get$logger(reference.pointer, _id_get$logger.pointer) + .object(); } - static final _id_setLogger = _class.instanceMethodId( + static final _id_set$logger = SentryEvent._class.instanceMethodId( r'setLogger', r'(Ljava/lang/String;)V', ); - static final _setLogger = jni$_.ProtectedJniExtensions.lookup< + static final _set$logger = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -24455,21 +20517,18 @@ class SentryEvent extends SentryBaseEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setLogger(java.lang.String string)` - void setLogger( - jni$_.JString? string, - ) { + set logger(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setLogger(reference.pointer, _id_setLogger as jni$_.JMethodIDPtr, - _$string.pointer) + _set$logger(reference.pointer, _id_set$logger.pointer, _$string.pointer) .check(); } - static final _id_getThreads = _class.instanceMethodId( + static final _id_get$threads = SentryEvent._class.instanceMethodId( r'getThreads', r'()Ljava/util/List;', ); - static final _getThreads = jni$_.ProtectedJniExtensions.lookup< + static final _get$threads = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -24483,19 +20542,17 @@ class SentryEvent extends SentryBaseEvent { /// from: `public java.util.List getThreads()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? getThreads() { - return _getThreads(reference.pointer, _id_getThreads as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); + jni$_.JList? get threads { + return _get$threads(reference.pointer, _id_get$threads.pointer) + .object?>(); } - static final _id_setThreads = _class.instanceMethodId( + static final _id_set$threads = SentryEvent._class.instanceMethodId( r'setThreads', r'(Ljava/util/List;)V', ); - static final _setThreads = jni$_.ProtectedJniExtensions.lookup< + static final _set$threads = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -24507,21 +20564,18 @@ class SentryEvent extends SentryBaseEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setThreads(java.util.List list)` - void setThreads( - jni$_.JList? list, - ) { + set threads(jni$_.JList? list) { final _$list = list?.reference ?? jni$_.jNullReference; - _setThreads(reference.pointer, _id_setThreads as jni$_.JMethodIDPtr, - _$list.pointer) + _set$threads(reference.pointer, _id_set$threads.pointer, _$list.pointer) .check(); } - static final _id_getExceptions = _class.instanceMethodId( + static final _id_get$exceptions = SentryEvent._class.instanceMethodId( r'getExceptions', r'()Ljava/util/List;', ); - static final _getExceptions = jni$_.ProtectedJniExtensions.lookup< + static final _get$exceptions = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -24535,20 +20589,17 @@ class SentryEvent extends SentryBaseEvent { /// from: `public java.util.List getExceptions()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? getExceptions() { - return _getExceptions( - reference.pointer, _id_getExceptions as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); + jni$_.JList? get exceptions { + return _get$exceptions(reference.pointer, _id_get$exceptions.pointer) + .object?>(); } - static final _id_setExceptions = _class.instanceMethodId( + static final _id_set$exceptions = SentryEvent._class.instanceMethodId( r'setExceptions', r'(Ljava/util/List;)V', ); - static final _setExceptions = jni$_.ProtectedJniExtensions.lookup< + static final _set$exceptions = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -24560,21 +20611,19 @@ class SentryEvent extends SentryBaseEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setExceptions(java.util.List list)` - void setExceptions( - jni$_.JList? list, - ) { + set exceptions(jni$_.JList? list) { final _$list = list?.reference ?? jni$_.jNullReference; - _setExceptions(reference.pointer, _id_setExceptions as jni$_.JMethodIDPtr, - _$list.pointer) + _set$exceptions( + reference.pointer, _id_set$exceptions.pointer, _$list.pointer) .check(); } - static final _id_getLevel = _class.instanceMethodId( + static final _id_get$level = SentryEvent._class.instanceMethodId( r'getLevel', r'()Lio/sentry/SentryLevel;', ); - static final _getLevel = jni$_.ProtectedJniExtensions.lookup< + static final _get$level = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -24588,17 +20637,17 @@ class SentryEvent extends SentryBaseEvent { /// from: `public io.sentry.SentryLevel getLevel()` /// The returned object must be released after use, by calling the [release] method. - SentryLevel? getLevel() { - return _getLevel(reference.pointer, _id_getLevel as jni$_.JMethodIDPtr) - .object(const $SentryLevel$NullableType()); + SentryLevel? get level { + return _get$level(reference.pointer, _id_get$level.pointer) + .object(); } - static final _id_setLevel = _class.instanceMethodId( + static final _id_set$level = SentryEvent._class.instanceMethodId( r'setLevel', r'(Lio/sentry/SentryLevel;)V', ); - static final _setLevel = jni$_.ProtectedJniExtensions.lookup< + static final _set$level = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -24610,21 +20659,18 @@ class SentryEvent extends SentryBaseEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setLevel(io.sentry.SentryLevel sentryLevel)` - void setLevel( - SentryLevel? sentryLevel, - ) { + set level(SentryLevel? sentryLevel) { final _$sentryLevel = sentryLevel?.reference ?? jni$_.jNullReference; - _setLevel(reference.pointer, _id_setLevel as jni$_.JMethodIDPtr, - _$sentryLevel.pointer) + _set$level(reference.pointer, _id_set$level.pointer, _$sentryLevel.pointer) .check(); } - static final _id_getTransaction = _class.instanceMethodId( + static final _id_get$transaction = SentryEvent._class.instanceMethodId( r'getTransaction', r'()Ljava/lang/String;', ); - static final _getTransaction = jni$_.ProtectedJniExtensions.lookup< + static final _get$transaction = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -24638,18 +20684,17 @@ class SentryEvent extends SentryBaseEvent { /// from: `public java.lang.String getTransaction()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getTransaction() { - return _getTransaction( - reference.pointer, _id_getTransaction as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get transaction { + return _get$transaction(reference.pointer, _id_get$transaction.pointer) + .object(); } - static final _id_setTransaction = _class.instanceMethodId( + static final _id_set$transaction = SentryEvent._class.instanceMethodId( r'setTransaction', r'(Ljava/lang/String;)V', ); - static final _setTransaction = jni$_.ProtectedJniExtensions.lookup< + static final _set$transaction = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -24661,21 +20706,19 @@ class SentryEvent extends SentryBaseEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setTransaction(java.lang.String string)` - void setTransaction( - jni$_.JString? string, - ) { + set transaction(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setTransaction(reference.pointer, _id_setTransaction as jni$_.JMethodIDPtr, - _$string.pointer) + _set$transaction( + reference.pointer, _id_set$transaction.pointer, _$string.pointer) .check(); } - static final _id_getFingerprints = _class.instanceMethodId( + static final _id_get$fingerprints = SentryEvent._class.instanceMethodId( r'getFingerprints', r'()Ljava/util/List;', ); - static final _getFingerprints = jni$_.ProtectedJniExtensions.lookup< + static final _get$fingerprints = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -24689,20 +20732,17 @@ class SentryEvent extends SentryBaseEvent { /// from: `public java.util.List getFingerprints()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? getFingerprints() { - return _getFingerprints( - reference.pointer, _id_getFingerprints as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - jni$_.JStringNullableType())); + jni$_.JList? get fingerprints { + return _get$fingerprints(reference.pointer, _id_get$fingerprints.pointer) + .object?>(); } - static final _id_setFingerprints = _class.instanceMethodId( + static final _id_set$fingerprints = SentryEvent._class.instanceMethodId( r'setFingerprints', r'(Ljava/util/List;)V', ); - static final _setFingerprints = jni$_.ProtectedJniExtensions.lookup< + static final _set$fingerprints = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -24714,21 +20754,19 @@ class SentryEvent extends SentryBaseEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setFingerprints(java.util.List list)` - void setFingerprints( - jni$_.JList? list, - ) { + set fingerprints(jni$_.JList? list) { final _$list = list?.reference ?? jni$_.jNullReference; - _setFingerprints(reference.pointer, - _id_setFingerprints as jni$_.JMethodIDPtr, _$list.pointer) + _set$fingerprints( + reference.pointer, _id_set$fingerprints.pointer, _$list.pointer) .check(); } - static final _id_setModules = _class.instanceMethodId( + static final _id_set$modules = SentryEvent._class.instanceMethodId( r'setModules', r'(Ljava/util/Map;)V', ); - static final _setModules = jni$_.ProtectedJniExtensions.lookup< + static final _set$modules = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -24740,16 +20778,13 @@ class SentryEvent extends SentryBaseEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setModules(java.util.Map map)` - void setModules( - jni$_.JMap? map, - ) { + set modules(jni$_.JMap? map) { final _$map = map?.reference ?? jni$_.jNullReference; - _setModules(reference.pointer, _id_setModules as jni$_.JMethodIDPtr, - _$map.pointer) + _set$modules(reference.pointer, _id_set$modules.pointer, _$map.pointer) .check(); } - static final _id_setModule = _class.instanceMethodId( + static final _id_setModule = SentryEvent._class.instanceMethodId( r'setModule', r'(Ljava/lang/String;Ljava/lang/String;)V', ); @@ -24778,12 +20813,12 @@ class SentryEvent extends SentryBaseEvent { ) { final _$string = string.reference; final _$string1 = string1.reference; - _setModule(reference.pointer, _id_setModule as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) + _setModule(reference.pointer, _id_setModule.pointer, _$string.pointer, + _$string1.pointer) .check(); } - static final _id_removeModule = _class.instanceMethodId( + static final _id_removeModule = SentryEvent._class.instanceMethodId( r'removeModule', r'(Ljava/lang/String;)V', ); @@ -24804,12 +20839,11 @@ class SentryEvent extends SentryBaseEvent { jni$_.JString string, ) { final _$string = string.reference; - _removeModule(reference.pointer, _id_removeModule as jni$_.JMethodIDPtr, - _$string.pointer) + _removeModule(reference.pointer, _id_removeModule.pointer, _$string.pointer) .check(); } - static final _id_getModule = _class.instanceMethodId( + static final _id_getModule = SentryEvent._class.instanceMethodId( r'getModule', r'(Ljava/lang/String;)Ljava/lang/String;', ); @@ -24831,17 +20865,17 @@ class SentryEvent extends SentryBaseEvent { jni$_.JString string, ) { final _$string = string.reference; - return _getModule(reference.pointer, _id_getModule as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const jni$_.JStringNullableType()); + return _getModule( + reference.pointer, _id_getModule.pointer, _$string.pointer) + .object(); } - static final _id_isCrashed = _class.instanceMethodId( + static final _id_get$isCrashed = SentryEvent._class.instanceMethodId( r'isCrashed', r'()Z', ); - static final _isCrashed = jni$_.ProtectedJniExtensions.lookup< + static final _get$isCrashed = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -24854,17 +20888,16 @@ class SentryEvent extends SentryBaseEvent { )>(); /// from: `public boolean isCrashed()` - bool isCrashed() { - return _isCrashed(reference.pointer, _id_isCrashed as jni$_.JMethodIDPtr) - .boolean; + core$_.bool get isCrashed { + return _get$isCrashed(reference.pointer, _id_get$isCrashed.pointer).boolean; } - static final _id_getUnhandledException = _class.instanceMethodId( + static final _id_get$unhandledException = SentryEvent._class.instanceMethodId( r'getUnhandledException', r'()Lio/sentry/protocol/SentryException;', ); - static final _getUnhandledException = jni$_.ProtectedJniExtensions.lookup< + static final _get$unhandledException = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -24878,18 +20911,18 @@ class SentryEvent extends SentryBaseEvent { /// from: `public io.sentry.protocol.SentryException getUnhandledException()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getUnhandledException() { - return _getUnhandledException( - reference.pointer, _id_getUnhandledException as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get unhandledException { + return _get$unhandledException( + reference.pointer, _id_get$unhandledException.pointer) + .object(); } - static final _id_isErrored = _class.instanceMethodId( + static final _id_get$isErrored = SentryEvent._class.instanceMethodId( r'isErrored', r'()Z', ); - static final _isErrored = jni$_.ProtectedJniExtensions.lookup< + static final _get$isErrored = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -24902,12 +20935,11 @@ class SentryEvent extends SentryBaseEvent { )>(); /// from: `public boolean isErrored()` - bool isErrored() { - return _isErrored(reference.pointer, _id_isErrored as jni$_.JMethodIDPtr) - .boolean; + core$_.bool get isErrored { + return _get$isErrored(reference.pointer, _id_get$isErrored.pointer).boolean; } - static final _id_serialize = _class.instanceMethodId( + static final _id_serialize = SentryEvent._class.instanceMethodId( r'serialize', r'(Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V', ); @@ -24936,17 +20968,17 @@ class SentryEvent extends SentryBaseEvent { ) { final _$objectWriter = objectWriter.reference; final _$iLogger = iLogger.reference; - _serialize(reference.pointer, _id_serialize as jni$_.JMethodIDPtr, - _$objectWriter.pointer, _$iLogger.pointer) + _serialize(reference.pointer, _id_serialize.pointer, _$objectWriter.pointer, + _$iLogger.pointer) .check(); } - static final _id_getUnknown = _class.instanceMethodId( + static final _id_get$unknown = SentryEvent._class.instanceMethodId( r'getUnknown', r'()Ljava/util/Map;', ); - static final _getUnknown = jni$_.ProtectedJniExtensions.lookup< + static final _get$unknown = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -24960,19 +20992,17 @@ class SentryEvent extends SentryBaseEvent { /// from: `public java.util.Map getUnknown()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JMap? getUnknown() { - return _getUnknown(reference.pointer, _id_getUnknown as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JMapNullableType( - jni$_.JStringNullableType(), jni$_.JObjectNullableType())); + jni$_.JMap? get unknown { + return _get$unknown(reference.pointer, _id_get$unknown.pointer) + .object?>(); } - static final _id_setUnknown = _class.instanceMethodId( + static final _id_set$unknown = SentryEvent._class.instanceMethodId( r'setUnknown', r'(Ljava/util/Map;)V', ); - static final _setUnknown = jni$_.ProtectedJniExtensions.lookup< + static final _set$unknown = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -24984,108 +21014,31 @@ class SentryEvent extends SentryBaseEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setUnknown(java.util.Map map)` - void setUnknown( - jni$_.JMap? map, - ) { + set unknown(jni$_.JMap? map) { final _$map = map?.reference ?? jni$_.jNullReference; - _setUnknown(reference.pointer, _id_setUnknown as jni$_.JMethodIDPtr, - _$map.pointer) + _set$unknown(reference.pointer, _id_set$unknown.pointer, _$map.pointer) .check(); } } -final class $SentryEvent$NullableType extends jni$_.JObjType { +final class $SentryEvent$Type$ extends jni$_.JType { @jni$_.internal - const $SentryEvent$NullableType(); + const $SentryEvent$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryEvent;'; - - @jni$_.internal - @core$_.override - SentryEvent? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : SentryEvent.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const $SentryBaseEvent$NullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 2; - - @core$_.override - int get hashCode => ($SentryEvent$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryEvent$NullableType) && - other is $SentryEvent$NullableType; - } -} - -final class $SentryEvent$Type extends jni$_.JObjType { - @jni$_.internal - const $SentryEvent$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryEvent;'; - - @jni$_.internal - @core$_.override - SentryEvent fromReference(jni$_.JReference reference) => - SentryEvent.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const $SentryBaseEvent$NullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryEvent$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 2; - - @core$_.override - int get hashCode => ($SentryEvent$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryEvent$Type) && - other is $SentryEvent$Type; - } } /// from: `io.sentry.SentryBaseEvent$Deserializer` -class SentryBaseEvent$Deserializer extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryBaseEvent$Deserializer.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryBaseEvent$Deserializer._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryBaseEvent$Deserializer'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryBaseEvent$Deserializer$NullableType(); - static const type = $SentryBaseEvent$Deserializer$Type(); + static const jni$_.JType type = + $SentryBaseEvent$Deserializer$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -25105,12 +21058,15 @@ class SentryBaseEvent$Deserializer extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryBaseEvent$Deserializer() { - return SentryBaseEvent$Deserializer.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_deserializeValue = _class.instanceMethodId( +extension SentryBaseEvent$Deserializer$$Methods + on SentryBaseEvent$Deserializer { + static final _id_deserializeValue = + SentryBaseEvent$Deserializer._class.instanceMethodId( r'deserializeValue', r'(Lio/sentry/SentryBaseEvent;Ljava/lang/String;Lio/sentry/ObjectReader;Lio/sentry/ILogger;)Z', ); @@ -25137,7 +21093,7 @@ class SentryBaseEvent$Deserializer extends jni$_.JObject { jni$_.Pointer)>(); /// from: `public boolean deserializeValue(io.sentry.SentryBaseEvent sentryBaseEvent, java.lang.String string, io.sentry.ObjectReader objectReader, io.sentry.ILogger iLogger)` - bool deserializeValue( + core$_.bool deserializeValue( SentryBaseEvent sentryBaseEvent, jni$_.JString string, jni$_.JObject objectReader, @@ -25149,7 +21105,7 @@ class SentryBaseEvent$Deserializer extends jni$_.JObject { final _$iLogger = iLogger.reference; return _deserializeValue( reference.pointer, - _id_deserializeValue as jni$_.JMethodIDPtr, + _id_deserializeValue.pointer, _$sentryBaseEvent.pointer, _$string.pointer, _$objectReader.pointer, @@ -25158,101 +21114,25 @@ class SentryBaseEvent$Deserializer extends jni$_.JObject { } } -final class $SentryBaseEvent$Deserializer$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryBaseEvent$Deserializer$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryBaseEvent$Deserializer;'; - - @jni$_.internal - @core$_.override - SentryBaseEvent$Deserializer? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryBaseEvent$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryBaseEvent$Deserializer$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryBaseEvent$Deserializer$NullableType) && - other is $SentryBaseEvent$Deserializer$NullableType; - } -} - -final class $SentryBaseEvent$Deserializer$Type - extends jni$_.JObjType { +final class $SentryBaseEvent$Deserializer$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryBaseEvent$Deserializer$Type(); + const $SentryBaseEvent$Deserializer$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryBaseEvent$Deserializer;'; - - @jni$_.internal - @core$_.override - SentryBaseEvent$Deserializer fromReference(jni$_.JReference reference) => - SentryBaseEvent$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryBaseEvent$Deserializer$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryBaseEvent$Deserializer$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryBaseEvent$Deserializer$Type) && - other is $SentryBaseEvent$Deserializer$Type; - } } /// from: `io.sentry.SentryBaseEvent$JsonKeys` -class SentryBaseEvent$JsonKeys extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryBaseEvent$JsonKeys.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryBaseEvent$JsonKeys._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryBaseEvent$JsonKeys'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryBaseEvent$JsonKeys$NullableType(); - static const type = $SentryBaseEvent$JsonKeys$Type(); + static const jni$_.JType type = + $SentryBaseEvent$JsonKeys$Type$(); static final _id_EVENT_ID = _class.staticFieldId( r'EVENT_ID', r'Ljava/lang/String;', @@ -25261,7 +21141,7 @@ class SentryBaseEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String EVENT_ID` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get EVENT_ID => - _id_EVENT_ID.get(_class, const jni$_.JStringNullableType()); + _id_EVENT_ID.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_CONTEXTS = _class.staticFieldId( r'CONTEXTS', @@ -25271,7 +21151,7 @@ class SentryBaseEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String CONTEXTS` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get CONTEXTS => - _id_CONTEXTS.get(_class, const jni$_.JStringNullableType()); + _id_CONTEXTS.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_SDK = _class.staticFieldId( r'SDK', @@ -25281,7 +21161,7 @@ class SentryBaseEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String SDK` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get SDK => - _id_SDK.get(_class, const jni$_.JStringNullableType()); + _id_SDK.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_REQUEST = _class.staticFieldId( r'REQUEST', @@ -25291,7 +21171,7 @@ class SentryBaseEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String REQUEST` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get REQUEST => - _id_REQUEST.get(_class, const jni$_.JStringNullableType()); + _id_REQUEST.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_TAGS = _class.staticFieldId( r'TAGS', @@ -25301,7 +21181,7 @@ class SentryBaseEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String TAGS` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TAGS => - _id_TAGS.get(_class, const jni$_.JStringNullableType()); + _id_TAGS.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_RELEASE = _class.staticFieldId( r'RELEASE', @@ -25311,7 +21191,7 @@ class SentryBaseEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String RELEASE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get RELEASE => - _id_RELEASE.get(_class, const jni$_.JStringNullableType()); + _id_RELEASE.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_ENVIRONMENT = _class.staticFieldId( r'ENVIRONMENT', @@ -25321,7 +21201,7 @@ class SentryBaseEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String ENVIRONMENT` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get ENVIRONMENT => - _id_ENVIRONMENT.get(_class, const jni$_.JStringNullableType()); + _id_ENVIRONMENT.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_PLATFORM = _class.staticFieldId( r'PLATFORM', @@ -25331,7 +21211,7 @@ class SentryBaseEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String PLATFORM` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get PLATFORM => - _id_PLATFORM.get(_class, const jni$_.JStringNullableType()); + _id_PLATFORM.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_USER = _class.staticFieldId( r'USER', @@ -25341,7 +21221,7 @@ class SentryBaseEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String USER` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get USER => - _id_USER.get(_class, const jni$_.JStringNullableType()); + _id_USER.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_SERVER_NAME = _class.staticFieldId( r'SERVER_NAME', @@ -25351,7 +21231,7 @@ class SentryBaseEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String SERVER_NAME` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get SERVER_NAME => - _id_SERVER_NAME.get(_class, const jni$_.JStringNullableType()); + _id_SERVER_NAME.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_DIST = _class.staticFieldId( r'DIST', @@ -25361,7 +21241,7 @@ class SentryBaseEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String DIST` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get DIST => - _id_DIST.get(_class, const jni$_.JStringNullableType()); + _id_DIST.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_BREADCRUMBS = _class.staticFieldId( r'BREADCRUMBS', @@ -25371,7 +21251,7 @@ class SentryBaseEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String BREADCRUMBS` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get BREADCRUMBS => - _id_BREADCRUMBS.get(_class, const jni$_.JStringNullableType()); + _id_BREADCRUMBS.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_DEBUG_META = _class.staticFieldId( r'DEBUG_META', @@ -25381,7 +21261,7 @@ class SentryBaseEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String DEBUG_META` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get DEBUG_META => - _id_DEBUG_META.get(_class, const jni$_.JStringNullableType()); + _id_DEBUG_META.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_EXTRA = _class.staticFieldId( r'EXTRA', @@ -25391,7 +21271,7 @@ class SentryBaseEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String EXTRA` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get EXTRA => - _id_EXTRA.get(_class, const jni$_.JStringNullableType()); + _id_EXTRA.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_new$ = _class.constructorId( r'()V', @@ -25412,107 +21292,30 @@ class SentryBaseEvent$JsonKeys extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryBaseEvent$JsonKeys() { - return SentryBaseEvent$JsonKeys.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } } -final class $SentryBaseEvent$JsonKeys$NullableType - extends jni$_.JObjType { +final class $SentryBaseEvent$JsonKeys$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryBaseEvent$JsonKeys$NullableType(); + const $SentryBaseEvent$JsonKeys$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryBaseEvent$JsonKeys;'; - - @jni$_.internal - @core$_.override - SentryBaseEvent$JsonKeys? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryBaseEvent$JsonKeys.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryBaseEvent$JsonKeys$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryBaseEvent$JsonKeys$NullableType) && - other is $SentryBaseEvent$JsonKeys$NullableType; - } -} - -final class $SentryBaseEvent$JsonKeys$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryBaseEvent$JsonKeys$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryBaseEvent$JsonKeys;'; - - @jni$_.internal - @core$_.override - SentryBaseEvent$JsonKeys fromReference(jni$_.JReference reference) => - SentryBaseEvent$JsonKeys.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryBaseEvent$JsonKeys$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryBaseEvent$JsonKeys$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryBaseEvent$JsonKeys$Type) && - other is $SentryBaseEvent$JsonKeys$Type; - } } /// from: `io.sentry.SentryBaseEvent$Serializer` -class SentryBaseEvent$Serializer extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryBaseEvent$Serializer.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryBaseEvent$Serializer._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryBaseEvent$Serializer'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryBaseEvent$Serializer$NullableType(); - static const type = $SentryBaseEvent$Serializer$Type(); + static const jni$_.JType type = + $SentryBaseEvent$Serializer$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -25532,12 +21335,14 @@ class SentryBaseEvent$Serializer extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryBaseEvent$Serializer() { - return SentryBaseEvent$Serializer.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_serialize = _class.instanceMethodId( +extension SentryBaseEvent$Serializer$$Methods on SentryBaseEvent$Serializer { + static final _id_serialize = + SentryBaseEvent$Serializer._class.instanceMethodId( r'serialize', r'(Lio/sentry/SentryBaseEvent;Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V', ); @@ -25572,7 +21377,7 @@ class SentryBaseEvent$Serializer extends jni$_.JObject { final _$iLogger = iLogger.reference; _serialize( reference.pointer, - _id_serialize as jni$_.JMethodIDPtr, + _id_serialize.pointer, _$sentryBaseEvent.pointer, _$objectWriter.pointer, _$iLogger.pointer) @@ -25580,100 +21385,23 @@ class SentryBaseEvent$Serializer extends jni$_.JObject { } } -final class $SentryBaseEvent$Serializer$NullableType - extends jni$_.JObjType { +final class $SentryBaseEvent$Serializer$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryBaseEvent$Serializer$NullableType(); + const $SentryBaseEvent$Serializer$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryBaseEvent$Serializer;'; - - @jni$_.internal - @core$_.override - SentryBaseEvent$Serializer? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryBaseEvent$Serializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryBaseEvent$Serializer$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryBaseEvent$Serializer$NullableType) && - other is $SentryBaseEvent$Serializer$NullableType; - } -} - -final class $SentryBaseEvent$Serializer$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryBaseEvent$Serializer$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryBaseEvent$Serializer;'; - - @jni$_.internal - @core$_.override - SentryBaseEvent$Serializer fromReference(jni$_.JReference reference) => - SentryBaseEvent$Serializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryBaseEvent$Serializer$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryBaseEvent$Serializer$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryBaseEvent$Serializer$Type) && - other is $SentryBaseEvent$Serializer$Type; - } } /// from: `io.sentry.SentryBaseEvent` -class SentryBaseEvent extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryBaseEvent.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryBaseEvent._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryBaseEvent'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryBaseEvent$NullableType(); - static const type = $SentryBaseEvent$Type(); + static const jni$_.JType type = $SentryBaseEvent$Type$(); static final _id_DEFAULT_PLATFORM = _class.staticFieldId( r'DEFAULT_PLATFORM', r'Ljava/lang/String;', @@ -25682,14 +21410,17 @@ class SentryBaseEvent extends jni$_.JObject { /// from: `static public final java.lang.String DEFAULT_PLATFORM` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get DEFAULT_PLATFORM => - _id_DEFAULT_PLATFORM.get(_class, const jni$_.JStringNullableType()); + _id_DEFAULT_PLATFORM.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; +} - static final _id_getEventId = _class.instanceMethodId( +extension SentryBaseEvent$$Methods on SentryBaseEvent { + static final _id_get$eventId = SentryBaseEvent._class.instanceMethodId( r'getEventId', r'()Lio/sentry/protocol/SentryId;', ); - static final _getEventId = jni$_.ProtectedJniExtensions.lookup< + static final _get$eventId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -25703,17 +21434,17 @@ class SentryBaseEvent extends jni$_.JObject { /// from: `public io.sentry.protocol.SentryId getEventId()` /// The returned object must be released after use, by calling the [release] method. - SentryId? getEventId() { - return _getEventId(reference.pointer, _id_getEventId as jni$_.JMethodIDPtr) - .object(const $SentryId$NullableType()); + SentryId? get eventId { + return _get$eventId(reference.pointer, _id_get$eventId.pointer) + .object(); } - static final _id_setEventId = _class.instanceMethodId( + static final _id_set$eventId = SentryBaseEvent._class.instanceMethodId( r'setEventId', r'(Lio/sentry/protocol/SentryId;)V', ); - static final _setEventId = jni$_.ProtectedJniExtensions.lookup< + static final _set$eventId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -25725,21 +21456,18 @@ class SentryBaseEvent extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setEventId(io.sentry.protocol.SentryId sentryId)` - void setEventId( - SentryId? sentryId, - ) { + set eventId(SentryId? sentryId) { final _$sentryId = sentryId?.reference ?? jni$_.jNullReference; - _setEventId(reference.pointer, _id_setEventId as jni$_.JMethodIDPtr, - _$sentryId.pointer) + _set$eventId(reference.pointer, _id_set$eventId.pointer, _$sentryId.pointer) .check(); } - static final _id_getContexts = _class.instanceMethodId( + static final _id_get$contexts = SentryBaseEvent._class.instanceMethodId( r'getContexts', r'()Lio/sentry/protocol/Contexts;', ); - static final _getContexts = jni$_.ProtectedJniExtensions.lookup< + static final _get$contexts = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -25753,18 +21481,17 @@ class SentryBaseEvent extends jni$_.JObject { /// from: `public io.sentry.protocol.Contexts getContexts()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getContexts() { - return _getContexts( - reference.pointer, _id_getContexts as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get contexts { + return _get$contexts(reference.pointer, _id_get$contexts.pointer) + .object(); } - static final _id_getSdk = _class.instanceMethodId( + static final _id_get$sdk = SentryBaseEvent._class.instanceMethodId( r'getSdk', r'()Lio/sentry/protocol/SdkVersion;', ); - static final _getSdk = jni$_.ProtectedJniExtensions.lookup< + static final _get$sdk = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -25778,17 +21505,17 @@ class SentryBaseEvent extends jni$_.JObject { /// from: `public io.sentry.protocol.SdkVersion getSdk()` /// The returned object must be released after use, by calling the [release] method. - SdkVersion? getSdk() { - return _getSdk(reference.pointer, _id_getSdk as jni$_.JMethodIDPtr) - .object(const $SdkVersion$NullableType()); + SdkVersion? get sdk { + return _get$sdk(reference.pointer, _id_get$sdk.pointer) + .object(); } - static final _id_setSdk = _class.instanceMethodId( + static final _id_set$sdk = SentryBaseEvent._class.instanceMethodId( r'setSdk', r'(Lio/sentry/protocol/SdkVersion;)V', ); - static final _setSdk = jni$_.ProtectedJniExtensions.lookup< + static final _set$sdk = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -25800,21 +21527,18 @@ class SentryBaseEvent extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setSdk(io.sentry.protocol.SdkVersion sdkVersion)` - void setSdk( - SdkVersion? sdkVersion, - ) { + set sdk(SdkVersion? sdkVersion) { final _$sdkVersion = sdkVersion?.reference ?? jni$_.jNullReference; - _setSdk(reference.pointer, _id_setSdk as jni$_.JMethodIDPtr, - _$sdkVersion.pointer) + _set$sdk(reference.pointer, _id_set$sdk.pointer, _$sdkVersion.pointer) .check(); } - static final _id_getRequest = _class.instanceMethodId( + static final _id_get$request = SentryBaseEvent._class.instanceMethodId( r'getRequest', r'()Lio/sentry/protocol/Request;', ); - static final _getRequest = jni$_.ProtectedJniExtensions.lookup< + static final _get$request = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -25828,17 +21552,17 @@ class SentryBaseEvent extends jni$_.JObject { /// from: `public io.sentry.protocol.Request getRequest()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getRequest() { - return _getRequest(reference.pointer, _id_getRequest as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get request { + return _get$request(reference.pointer, _id_get$request.pointer) + .object(); } - static final _id_setRequest = _class.instanceMethodId( + static final _id_set$request = SentryBaseEvent._class.instanceMethodId( r'setRequest', r'(Lio/sentry/protocol/Request;)V', ); - static final _setRequest = jni$_.ProtectedJniExtensions.lookup< + static final _set$request = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -25850,21 +21574,18 @@ class SentryBaseEvent extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setRequest(io.sentry.protocol.Request request)` - void setRequest( - jni$_.JObject? request, - ) { + set request(jni$_.JObject? request) { final _$request = request?.reference ?? jni$_.jNullReference; - _setRequest(reference.pointer, _id_setRequest as jni$_.JMethodIDPtr, - _$request.pointer) + _set$request(reference.pointer, _id_set$request.pointer, _$request.pointer) .check(); } - static final _id_getThrowable = _class.instanceMethodId( + static final _id_get$throwable = SentryBaseEvent._class.instanceMethodId( r'getThrowable', r'()Ljava/lang/Throwable;', ); - static final _getThrowable = jni$_.ProtectedJniExtensions.lookup< + static final _get$throwable = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -25878,18 +21599,18 @@ class SentryBaseEvent extends jni$_.JObject { /// from: `public java.lang.Throwable getThrowable()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getThrowable() { - return _getThrowable( - reference.pointer, _id_getThrowable as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get throwable { + return _get$throwable(reference.pointer, _id_get$throwable.pointer) + .object(); } - static final _id_getThrowableMechanism = _class.instanceMethodId( + static final _id_get$throwableMechanism = + SentryBaseEvent._class.instanceMethodId( r'getThrowableMechanism', r'()Ljava/lang/Throwable;', ); - static final _getThrowableMechanism = jni$_.ProtectedJniExtensions.lookup< + static final _get$throwableMechanism = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -25903,18 +21624,18 @@ class SentryBaseEvent extends jni$_.JObject { /// from: `public java.lang.Throwable getThrowableMechanism()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getThrowableMechanism() { - return _getThrowableMechanism( - reference.pointer, _id_getThrowableMechanism as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get throwableMechanism { + return _get$throwableMechanism( + reference.pointer, _id_get$throwableMechanism.pointer) + .object(); } - static final _id_setThrowable = _class.instanceMethodId( + static final _id_set$throwable = SentryBaseEvent._class.instanceMethodId( r'setThrowable', r'(Ljava/lang/Throwable;)V', ); - static final _setThrowable = jni$_.ProtectedJniExtensions.lookup< + static final _set$throwable = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -25926,21 +21647,19 @@ class SentryBaseEvent extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setThrowable(java.lang.Throwable throwable)` - void setThrowable( - jni$_.JObject? throwable, - ) { + set throwable(jni$_.JObject? throwable) { final _$throwable = throwable?.reference ?? jni$_.jNullReference; - _setThrowable(reference.pointer, _id_setThrowable as jni$_.JMethodIDPtr, - _$throwable.pointer) + _set$throwable( + reference.pointer, _id_set$throwable.pointer, _$throwable.pointer) .check(); } - static final _id_getTags = _class.instanceMethodId( + static final _id_get$tags = SentryBaseEvent._class.instanceMethodId( r'getTags', r'()Ljava/util/Map;', ); - static final _getTags = jni$_.ProtectedJniExtensions.lookup< + static final _get$tags = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -25954,19 +21673,17 @@ class SentryBaseEvent extends jni$_.JObject { /// from: `public java.util.Map getTags()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JMap? getTags() { - return _getTags(reference.pointer, _id_getTags as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JMapNullableType( - jni$_.JStringNullableType(), jni$_.JStringNullableType())); + jni$_.JMap? get tags { + return _get$tags(reference.pointer, _id_get$tags.pointer) + .object?>(); } - static final _id_setTags = _class.instanceMethodId( + static final _id_set$tags = SentryBaseEvent._class.instanceMethodId( r'setTags', r'(Ljava/util/Map;)V', ); - static final _setTags = jni$_.ProtectedJniExtensions.lookup< + static final _set$tags = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -25978,16 +21695,12 @@ class SentryBaseEvent extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setTags(java.util.Map map)` - void setTags( - jni$_.JMap? map, - ) { + set tags(jni$_.JMap? map) { final _$map = map?.reference ?? jni$_.jNullReference; - _setTags( - reference.pointer, _id_setTags as jni$_.JMethodIDPtr, _$map.pointer) - .check(); + _set$tags(reference.pointer, _id_set$tags.pointer, _$map.pointer).check(); } - static final _id_removeTag = _class.instanceMethodId( + static final _id_removeTag = SentryBaseEvent._class.instanceMethodId( r'removeTag', r'(Ljava/lang/String;)V', ); @@ -26008,12 +21721,11 @@ class SentryBaseEvent extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - _removeTag(reference.pointer, _id_removeTag as jni$_.JMethodIDPtr, - _$string.pointer) + _removeTag(reference.pointer, _id_removeTag.pointer, _$string.pointer) .check(); } - static final _id_getTag = _class.instanceMethodId( + static final _id_getTag = SentryBaseEvent._class.instanceMethodId( r'getTag', r'(Ljava/lang/String;)Ljava/lang/String;', ); @@ -26035,12 +21747,11 @@ class SentryBaseEvent extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - return _getTag(reference.pointer, _id_getTag as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const jni$_.JStringNullableType()); + return _getTag(reference.pointer, _id_getTag.pointer, _$string.pointer) + .object(); } - static final _id_setTag = _class.instanceMethodId( + static final _id_setTag = SentryBaseEvent._class.instanceMethodId( r'setTag', r'(Ljava/lang/String;Ljava/lang/String;)V', ); @@ -26069,17 +21780,17 @@ class SentryBaseEvent extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _setTag(reference.pointer, _id_setTag as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) + _setTag(reference.pointer, _id_setTag.pointer, _$string.pointer, + _$string1.pointer) .check(); } - static final _id_getRelease = _class.instanceMethodId( + static final _id_get$release$1 = SentryBaseEvent._class.instanceMethodId( r'getRelease', r'()Ljava/lang/String;', ); - static final _getRelease = jni$_.ProtectedJniExtensions.lookup< + static final _get$release$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -26093,17 +21804,17 @@ class SentryBaseEvent extends jni$_.JObject { /// from: `public java.lang.String getRelease()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getRelease() { - return _getRelease(reference.pointer, _id_getRelease as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get release$1 { + return _get$release$1(reference.pointer, _id_get$release$1.pointer) + .object(); } - static final _id_setRelease = _class.instanceMethodId( + static final _id_set$release$1 = SentryBaseEvent._class.instanceMethodId( r'setRelease', r'(Ljava/lang/String;)V', ); - static final _setRelease = jni$_.ProtectedJniExtensions.lookup< + static final _set$release$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -26115,21 +21826,19 @@ class SentryBaseEvent extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setRelease(java.lang.String string)` - void setRelease( - jni$_.JString? string, - ) { + set release$1(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setRelease(reference.pointer, _id_setRelease as jni$_.JMethodIDPtr, - _$string.pointer) + _set$release$1( + reference.pointer, _id_set$release$1.pointer, _$string.pointer) .check(); } - static final _id_getEnvironment = _class.instanceMethodId( + static final _id_get$environment = SentryBaseEvent._class.instanceMethodId( r'getEnvironment', r'()Ljava/lang/String;', ); - static final _getEnvironment = jni$_.ProtectedJniExtensions.lookup< + static final _get$environment = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -26143,18 +21852,17 @@ class SentryBaseEvent extends jni$_.JObject { /// from: `public java.lang.String getEnvironment()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getEnvironment() { - return _getEnvironment( - reference.pointer, _id_getEnvironment as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get environment { + return _get$environment(reference.pointer, _id_get$environment.pointer) + .object(); } - static final _id_setEnvironment = _class.instanceMethodId( + static final _id_set$environment = SentryBaseEvent._class.instanceMethodId( r'setEnvironment', r'(Ljava/lang/String;)V', ); - static final _setEnvironment = jni$_.ProtectedJniExtensions.lookup< + static final _set$environment = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -26166,21 +21874,19 @@ class SentryBaseEvent extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setEnvironment(java.lang.String string)` - void setEnvironment( - jni$_.JString? string, - ) { + set environment(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setEnvironment(reference.pointer, _id_setEnvironment as jni$_.JMethodIDPtr, - _$string.pointer) + _set$environment( + reference.pointer, _id_set$environment.pointer, _$string.pointer) .check(); } - static final _id_getPlatform = _class.instanceMethodId( + static final _id_get$platform = SentryBaseEvent._class.instanceMethodId( r'getPlatform', r'()Ljava/lang/String;', ); - static final _getPlatform = jni$_.ProtectedJniExtensions.lookup< + static final _get$platform = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -26194,18 +21900,17 @@ class SentryBaseEvent extends jni$_.JObject { /// from: `public java.lang.String getPlatform()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getPlatform() { - return _getPlatform( - reference.pointer, _id_getPlatform as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get platform { + return _get$platform(reference.pointer, _id_get$platform.pointer) + .object(); } - static final _id_setPlatform = _class.instanceMethodId( + static final _id_set$platform = SentryBaseEvent._class.instanceMethodId( r'setPlatform', r'(Ljava/lang/String;)V', ); - static final _setPlatform = jni$_.ProtectedJniExtensions.lookup< + static final _set$platform = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -26217,21 +21922,18 @@ class SentryBaseEvent extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setPlatform(java.lang.String string)` - void setPlatform( - jni$_.JString? string, - ) { + set platform(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setPlatform(reference.pointer, _id_setPlatform as jni$_.JMethodIDPtr, - _$string.pointer) + _set$platform(reference.pointer, _id_set$platform.pointer, _$string.pointer) .check(); } - static final _id_getServerName = _class.instanceMethodId( + static final _id_get$serverName = SentryBaseEvent._class.instanceMethodId( r'getServerName', r'()Ljava/lang/String;', ); - static final _getServerName = jni$_.ProtectedJniExtensions.lookup< + static final _get$serverName = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -26245,18 +21947,17 @@ class SentryBaseEvent extends jni$_.JObject { /// from: `public java.lang.String getServerName()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getServerName() { - return _getServerName( - reference.pointer, _id_getServerName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get serverName { + return _get$serverName(reference.pointer, _id_get$serverName.pointer) + .object(); } - static final _id_setServerName = _class.instanceMethodId( + static final _id_set$serverName = SentryBaseEvent._class.instanceMethodId( r'setServerName', r'(Ljava/lang/String;)V', ); - static final _setServerName = jni$_.ProtectedJniExtensions.lookup< + static final _set$serverName = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -26268,21 +21969,19 @@ class SentryBaseEvent extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setServerName(java.lang.String string)` - void setServerName( - jni$_.JString? string, - ) { + set serverName(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setServerName(reference.pointer, _id_setServerName as jni$_.JMethodIDPtr, - _$string.pointer) + _set$serverName( + reference.pointer, _id_set$serverName.pointer, _$string.pointer) .check(); } - static final _id_getDist = _class.instanceMethodId( + static final _id_get$dist = SentryBaseEvent._class.instanceMethodId( r'getDist', r'()Ljava/lang/String;', ); - static final _getDist = jni$_.ProtectedJniExtensions.lookup< + static final _get$dist = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -26296,17 +21995,17 @@ class SentryBaseEvent extends jni$_.JObject { /// from: `public java.lang.String getDist()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getDist() { - return _getDist(reference.pointer, _id_getDist as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get dist { + return _get$dist(reference.pointer, _id_get$dist.pointer) + .object(); } - static final _id_setDist = _class.instanceMethodId( + static final _id_set$dist = SentryBaseEvent._class.instanceMethodId( r'setDist', r'(Ljava/lang/String;)V', ); - static final _setDist = jni$_.ProtectedJniExtensions.lookup< + static final _set$dist = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -26318,21 +22017,18 @@ class SentryBaseEvent extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setDist(java.lang.String string)` - void setDist( - jni$_.JString? string, - ) { + set dist(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setDist(reference.pointer, _id_setDist as jni$_.JMethodIDPtr, - _$string.pointer) + _set$dist(reference.pointer, _id_set$dist.pointer, _$string.pointer) .check(); } - static final _id_getUser = _class.instanceMethodId( + static final _id_get$user = SentryBaseEvent._class.instanceMethodId( r'getUser', r'()Lio/sentry/protocol/User;', ); - static final _getUser = jni$_.ProtectedJniExtensions.lookup< + static final _get$user = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -26346,17 +22042,16 @@ class SentryBaseEvent extends jni$_.JObject { /// from: `public io.sentry.protocol.User getUser()` /// The returned object must be released after use, by calling the [release] method. - User? getUser() { - return _getUser(reference.pointer, _id_getUser as jni$_.JMethodIDPtr) - .object(const $User$NullableType()); + User? get user { + return _get$user(reference.pointer, _id_get$user.pointer).object(); } - static final _id_setUser = _class.instanceMethodId( + static final _id_set$user = SentryBaseEvent._class.instanceMethodId( r'setUser', r'(Lio/sentry/protocol/User;)V', ); - static final _setUser = jni$_.ProtectedJniExtensions.lookup< + static final _set$user = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -26368,21 +22063,17 @@ class SentryBaseEvent extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setUser(io.sentry.protocol.User user)` - void setUser( - User? user, - ) { + set user(User? user) { final _$user = user?.reference ?? jni$_.jNullReference; - _setUser(reference.pointer, _id_setUser as jni$_.JMethodIDPtr, - _$user.pointer) - .check(); + _set$user(reference.pointer, _id_set$user.pointer, _$user.pointer).check(); } - static final _id_getBreadcrumbs = _class.instanceMethodId( + static final _id_get$breadcrumbs = SentryBaseEvent._class.instanceMethodId( r'getBreadcrumbs', r'()Ljava/util/List;', ); - static final _getBreadcrumbs = jni$_.ProtectedJniExtensions.lookup< + static final _get$breadcrumbs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -26396,20 +22087,17 @@ class SentryBaseEvent extends jni$_.JObject { /// from: `public java.util.List getBreadcrumbs()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? getBreadcrumbs() { - return _getBreadcrumbs( - reference.pointer, _id_getBreadcrumbs as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - $Breadcrumb$NullableType())); + jni$_.JList? get breadcrumbs { + return _get$breadcrumbs(reference.pointer, _id_get$breadcrumbs.pointer) + .object?>(); } - static final _id_setBreadcrumbs = _class.instanceMethodId( + static final _id_set$breadcrumbs = SentryBaseEvent._class.instanceMethodId( r'setBreadcrumbs', r'(Ljava/util/List;)V', ); - static final _setBreadcrumbs = jni$_.ProtectedJniExtensions.lookup< + static final _set$breadcrumbs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -26421,16 +22109,14 @@ class SentryBaseEvent extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setBreadcrumbs(java.util.List list)` - void setBreadcrumbs( - jni$_.JList? list, - ) { + set breadcrumbs(jni$_.JList? list) { final _$list = list?.reference ?? jni$_.jNullReference; - _setBreadcrumbs(reference.pointer, _id_setBreadcrumbs as jni$_.JMethodIDPtr, - _$list.pointer) + _set$breadcrumbs( + reference.pointer, _id_set$breadcrumbs.pointer, _$list.pointer) .check(); } - static final _id_addBreadcrumb = _class.instanceMethodId( + static final _id_addBreadcrumb = SentryBaseEvent._class.instanceMethodId( r'addBreadcrumb', r'(Lio/sentry/Breadcrumb;)V', ); @@ -26451,17 +22137,17 @@ class SentryBaseEvent extends jni$_.JObject { Breadcrumb breadcrumb, ) { final _$breadcrumb = breadcrumb.reference; - _addBreadcrumb(reference.pointer, _id_addBreadcrumb as jni$_.JMethodIDPtr, - _$breadcrumb.pointer) + _addBreadcrumb( + reference.pointer, _id_addBreadcrumb.pointer, _$breadcrumb.pointer) .check(); } - static final _id_getDebugMeta = _class.instanceMethodId( + static final _id_get$debugMeta = SentryBaseEvent._class.instanceMethodId( r'getDebugMeta', r'()Lio/sentry/protocol/DebugMeta;', ); - static final _getDebugMeta = jni$_.ProtectedJniExtensions.lookup< + static final _get$debugMeta = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -26475,18 +22161,17 @@ class SentryBaseEvent extends jni$_.JObject { /// from: `public io.sentry.protocol.DebugMeta getDebugMeta()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getDebugMeta() { - return _getDebugMeta( - reference.pointer, _id_getDebugMeta as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get debugMeta { + return _get$debugMeta(reference.pointer, _id_get$debugMeta.pointer) + .object(); } - static final _id_setDebugMeta = _class.instanceMethodId( + static final _id_set$debugMeta = SentryBaseEvent._class.instanceMethodId( r'setDebugMeta', r'(Lio/sentry/protocol/DebugMeta;)V', ); - static final _setDebugMeta = jni$_.ProtectedJniExtensions.lookup< + static final _set$debugMeta = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -26498,21 +22183,19 @@ class SentryBaseEvent extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setDebugMeta(io.sentry.protocol.DebugMeta debugMeta)` - void setDebugMeta( - jni$_.JObject? debugMeta, - ) { + set debugMeta(jni$_.JObject? debugMeta) { final _$debugMeta = debugMeta?.reference ?? jni$_.jNullReference; - _setDebugMeta(reference.pointer, _id_setDebugMeta as jni$_.JMethodIDPtr, - _$debugMeta.pointer) + _set$debugMeta( + reference.pointer, _id_set$debugMeta.pointer, _$debugMeta.pointer) .check(); } - static final _id_getExtras = _class.instanceMethodId( + static final _id_get$extras = SentryBaseEvent._class.instanceMethodId( r'getExtras', r'()Ljava/util/Map;', ); - static final _getExtras = jni$_.ProtectedJniExtensions.lookup< + static final _get$extras = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -26526,19 +22209,17 @@ class SentryBaseEvent extends jni$_.JObject { /// from: `public java.util.Map getExtras()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JMap? getExtras() { - return _getExtras(reference.pointer, _id_getExtras as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JMapNullableType( - jni$_.JStringNullableType(), jni$_.JObjectNullableType())); + jni$_.JMap? get extras { + return _get$extras(reference.pointer, _id_get$extras.pointer) + .object?>(); } - static final _id_setExtras = _class.instanceMethodId( + static final _id_set$extras = SentryBaseEvent._class.instanceMethodId( r'setExtras', r'(Ljava/util/Map;)V', ); - static final _setExtras = jni$_.ProtectedJniExtensions.lookup< + static final _set$extras = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -26550,16 +22231,13 @@ class SentryBaseEvent extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setExtras(java.util.Map map)` - void setExtras( - jni$_.JMap? map, - ) { + set extras(jni$_.JMap? map) { final _$map = map?.reference ?? jni$_.jNullReference; - _setExtras(reference.pointer, _id_setExtras as jni$_.JMethodIDPtr, - _$map.pointer) + _set$extras(reference.pointer, _id_set$extras.pointer, _$map.pointer) .check(); } - static final _id_setExtra = _class.instanceMethodId( + static final _id_setExtra = SentryBaseEvent._class.instanceMethodId( r'setExtra', r'(Ljava/lang/String;Ljava/lang/Object;)V', ); @@ -26588,12 +22266,12 @@ class SentryBaseEvent extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$object = object?.reference ?? jni$_.jNullReference; - _setExtra(reference.pointer, _id_setExtra as jni$_.JMethodIDPtr, - _$string.pointer, _$object.pointer) + _setExtra(reference.pointer, _id_setExtra.pointer, _$string.pointer, + _$object.pointer) .check(); } - static final _id_removeExtra = _class.instanceMethodId( + static final _id_removeExtra = SentryBaseEvent._class.instanceMethodId( r'removeExtra', r'(Ljava/lang/String;)V', ); @@ -26614,12 +22292,11 @@ class SentryBaseEvent extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - _removeExtra(reference.pointer, _id_removeExtra as jni$_.JMethodIDPtr, - _$string.pointer) + _removeExtra(reference.pointer, _id_removeExtra.pointer, _$string.pointer) .check(); } - static final _id_getExtra = _class.instanceMethodId( + static final _id_getExtra = SentryBaseEvent._class.instanceMethodId( r'getExtra', r'(Ljava/lang/String;)Ljava/lang/Object;', ); @@ -26641,12 +22318,11 @@ class SentryBaseEvent extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - return _getExtra(reference.pointer, _id_getExtra as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const jni$_.JObjectNullableType()); + return _getExtra(reference.pointer, _id_getExtra.pointer, _$string.pointer) + .object(); } - static final _id_addBreadcrumb$1 = _class.instanceMethodId( + static final _id_addBreadcrumb$1 = SentryBaseEvent._class.instanceMethodId( r'addBreadcrumb', r'(Ljava/lang/String;)V', ); @@ -26667,105 +22343,30 @@ class SentryBaseEvent extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - _addBreadcrumb$1(reference.pointer, - _id_addBreadcrumb$1 as jni$_.JMethodIDPtr, _$string.pointer) + _addBreadcrumb$1( + reference.pointer, _id_addBreadcrumb$1.pointer, _$string.pointer) .check(); } } -final class $SentryBaseEvent$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryBaseEvent$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryBaseEvent;'; - - @jni$_.internal - @core$_.override - SentryBaseEvent? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : SentryBaseEvent.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryBaseEvent$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryBaseEvent$NullableType) && - other is $SentryBaseEvent$NullableType; - } -} - -final class $SentryBaseEvent$Type extends jni$_.JObjType { +final class $SentryBaseEvent$Type$ extends jni$_.JType { @jni$_.internal - const $SentryBaseEvent$Type(); + const $SentryBaseEvent$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryBaseEvent;'; - - @jni$_.internal - @core$_.override - SentryBaseEvent fromReference(jni$_.JReference reference) => - SentryBaseEvent.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryBaseEvent$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryBaseEvent$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryBaseEvent$Type) && - other is $SentryBaseEvent$Type; - } } /// from: `io.sentry.SentryLevel$Deserializer` -class SentryLevel$Deserializer extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryLevel$Deserializer.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryLevel$Deserializer._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryLevel$Deserializer'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryLevel$Deserializer$NullableType(); - static const type = $SentryLevel$Deserializer$Type(); + static const jni$_.JType type = + $SentryLevel$Deserializer$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -26785,12 +22386,14 @@ class SentryLevel$Deserializer extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryLevel$Deserializer() { - return SentryLevel$Deserializer.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_deserialize = _class.instanceMethodId( +extension SentryLevel$Deserializer$$Methods on SentryLevel$Deserializer { + static final _id_deserialize = + SentryLevel$Deserializer._class.instanceMethodId( r'deserialize', r'(Lio/sentry/ObjectReader;Lio/sentry/ILogger;)Lio/sentry/SentryLevel;', ); @@ -26820,109 +22423,28 @@ class SentryLevel$Deserializer extends jni$_.JObject { ) { final _$objectReader = objectReader.reference; final _$iLogger = iLogger.reference; - return _deserialize( - reference.pointer, - _id_deserialize as jni$_.JMethodIDPtr, - _$objectReader.pointer, - _$iLogger.pointer) - .object(const $SentryLevel$Type()); + return _deserialize(reference.pointer, _id_deserialize.pointer, + _$objectReader.pointer, _$iLogger.pointer) + .object(); } } -final class $SentryLevel$Deserializer$NullableType - extends jni$_.JObjType { +final class $SentryLevel$Deserializer$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryLevel$Deserializer$NullableType(); + const $SentryLevel$Deserializer$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryLevel$Deserializer;'; - - @jni$_.internal - @core$_.override - SentryLevel$Deserializer? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryLevel$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryLevel$Deserializer$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryLevel$Deserializer$NullableType) && - other is $SentryLevel$Deserializer$NullableType; - } -} - -final class $SentryLevel$Deserializer$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryLevel$Deserializer$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryLevel$Deserializer;'; - - @jni$_.internal - @core$_.override - SentryLevel$Deserializer fromReference(jni$_.JReference reference) => - SentryLevel$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryLevel$Deserializer$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryLevel$Deserializer$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryLevel$Deserializer$Type) && - other is $SentryLevel$Deserializer$Type; - } } /// from: `io.sentry.SentryLevel` -class SentryLevel extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryLevel.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryLevel._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryLevel'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryLevel$NullableType(); - static const type = $SentryLevel$Type(); + static const jni$_.JType type = $SentryLevel$Type$(); static final _id_DEBUG = _class.staticFieldId( r'DEBUG', r'Lio/sentry/SentryLevel;', @@ -26931,7 +22453,7 @@ class SentryLevel extends jni$_.JObject { /// from: `static public final io.sentry.SentryLevel DEBUG` /// The returned object must be released after use, by calling the [release] method. static SentryLevel get DEBUG => - _id_DEBUG.get(_class, const $SentryLevel$Type()); + _id_DEBUG.get(_class, SentryLevel.type) as SentryLevel; static final _id_INFO = _class.staticFieldId( r'INFO', @@ -26941,7 +22463,7 @@ class SentryLevel extends jni$_.JObject { /// from: `static public final io.sentry.SentryLevel INFO` /// The returned object must be released after use, by calling the [release] method. static SentryLevel get INFO => - _id_INFO.get(_class, const $SentryLevel$Type()); + _id_INFO.get(_class, SentryLevel.type) as SentryLevel; static final _id_WARNING = _class.staticFieldId( r'WARNING', @@ -26951,7 +22473,7 @@ class SentryLevel extends jni$_.JObject { /// from: `static public final io.sentry.SentryLevel WARNING` /// The returned object must be released after use, by calling the [release] method. static SentryLevel get WARNING => - _id_WARNING.get(_class, const $SentryLevel$Type()); + _id_WARNING.get(_class, SentryLevel.type) as SentryLevel; static final _id_ERROR = _class.staticFieldId( r'ERROR', @@ -26961,7 +22483,7 @@ class SentryLevel extends jni$_.JObject { /// from: `static public final io.sentry.SentryLevel ERROR` /// The returned object must be released after use, by calling the [release] method. static SentryLevel get ERROR => - _id_ERROR.get(_class, const $SentryLevel$Type()); + _id_ERROR.get(_class, SentryLevel.type) as SentryLevel; static final _id_FATAL = _class.staticFieldId( r'FATAL', @@ -26971,7 +22493,7 @@ class SentryLevel extends jni$_.JObject { /// from: `static public final io.sentry.SentryLevel FATAL` /// The returned object must be released after use, by calling the [release] method. static SentryLevel get FATAL => - _id_FATAL.get(_class, const $SentryLevel$Type()); + _id_FATAL.get(_class, SentryLevel.type) as SentryLevel; static final _id_values = _class.staticMethodId( r'values', @@ -26993,10 +22515,8 @@ class SentryLevel extends jni$_.JObject { /// from: `static public io.sentry.SentryLevel[] values()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JArray? values() { - return _values(_class.reference.pointer, _id_values as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - $SentryLevel$NullableType())); + return _values(_class.reference.pointer, _id_values.pointer) + .object?>(); } static final _id_valueOf = _class.staticMethodId( @@ -27021,12 +22541,14 @@ class SentryLevel extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - return _valueOf(_class.reference.pointer, _id_valueOf as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $SentryLevel$NullableType()); + return _valueOf( + _class.reference.pointer, _id_valueOf.pointer, _$string.pointer) + .object(); } +} - static final _id_serialize = _class.instanceMethodId( +extension SentryLevel$$Methods on SentryLevel { + static final _id_serialize = SentryLevel._class.instanceMethodId( r'serialize', r'(Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V', ); @@ -27055,103 +22577,27 @@ class SentryLevel extends jni$_.JObject { ) { final _$objectWriter = objectWriter.reference; final _$iLogger = iLogger.reference; - _serialize(reference.pointer, _id_serialize as jni$_.JMethodIDPtr, - _$objectWriter.pointer, _$iLogger.pointer) + _serialize(reference.pointer, _id_serialize.pointer, _$objectWriter.pointer, + _$iLogger.pointer) .check(); } } -final class $SentryLevel$NullableType extends jni$_.JObjType { - @jni$_.internal - const $SentryLevel$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryLevel;'; - - @jni$_.internal - @core$_.override - SentryLevel? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : SentryLevel.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryLevel$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryLevel$NullableType) && - other is $SentryLevel$NullableType; - } -} - -final class $SentryLevel$Type extends jni$_.JObjType { +final class $SentryLevel$Type$ extends jni$_.JType { @jni$_.internal - const $SentryLevel$Type(); + const $SentryLevel$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryLevel;'; - - @jni$_.internal - @core$_.override - SentryLevel fromReference(jni$_.JReference reference) => - SentryLevel.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryLevel$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryLevel$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryLevel$Type) && - other is $SentryLevel$Type; - } } /// from: `io.sentry.Hint` -class Hint extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Hint.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Hint._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/Hint'); /// The type which includes information such as the signature of this class. - static const nullableType = $Hint$NullableType(); - static const type = $Hint$Type(); + static const jni$_.JType type = $Hint$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -27171,9 +22617,7 @@ class Hint extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Hint() { - return Hint.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer).object(); } static final _id_withAttachment = _class.staticMethodId( @@ -27198,9 +22642,9 @@ class Hint extends jni$_.JObject { jni$_.JObject? attachment, ) { final _$attachment = attachment?.reference ?? jni$_.jNullReference; - return _withAttachment(_class.reference.pointer, - _id_withAttachment as jni$_.JMethodIDPtr, _$attachment.pointer) - .object(const $Hint$Type()); + return _withAttachment(_class.reference.pointer, _id_withAttachment.pointer, + _$attachment.pointer) + .object(); } static final _id_withAttachments = _class.staticMethodId( @@ -27226,11 +22670,13 @@ class Hint extends jni$_.JObject { ) { final _$list = list?.reference ?? jni$_.jNullReference; return _withAttachments(_class.reference.pointer, - _id_withAttachments as jni$_.JMethodIDPtr, _$list.pointer) - .object(const $Hint$Type()); + _id_withAttachments.pointer, _$list.pointer) + .object(); } +} - static final _id_set = _class.instanceMethodId( +extension Hint$$Methods on Hint { + static final _id_set = Hint._class.instanceMethodId( r'set', r'(Ljava/lang/String;Ljava/lang/Object;)V', ); @@ -27259,12 +22705,11 @@ class Hint extends jni$_.JObject { ) { final _$string = string.reference; final _$object = object?.reference ?? jni$_.jNullReference; - _set(reference.pointer, _id_set as jni$_.JMethodIDPtr, _$string.pointer, - _$object.pointer) + _set(reference.pointer, _id_set.pointer, _$string.pointer, _$object.pointer) .check(); } - static final _id_get = _class.instanceMethodId( + static final _id_get = Hint._class.instanceMethodId( r'get', r'(Ljava/lang/String;)Ljava/lang/Object;', ); @@ -27286,12 +22731,11 @@ class Hint extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - return _get( - reference.pointer, _id_get as jni$_.JMethodIDPtr, _$string.pointer) - .object(const jni$_.JObjectNullableType()); + return _get(reference.pointer, _id_get.pointer, _$string.pointer) + .object(); } - static final _id_getAs = _class.instanceMethodId( + static final _id_getAs = Hint._class.instanceMethodId( r'getAs', r'(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;', ); @@ -27317,17 +22761,16 @@ class Hint extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. $T? getAs<$T extends jni$_.JObject?>( jni$_.JString string, - jni$_.JObject class$, { - required jni$_.JObjType<$T> T, - }) { + jni$_.JObject class$, + ) { final _$string = string.reference; final _$class$ = class$.reference; - return _getAs(reference.pointer, _id_getAs as jni$_.JMethodIDPtr, - _$string.pointer, _$class$.pointer) - .object<$T?>(T.nullableType); + return _getAs(reference.pointer, _id_getAs.pointer, _$string.pointer, + _$class$.pointer) + .object<$T?>(); } - static final _id_remove = _class.instanceMethodId( + static final _id_remove = Hint._class.instanceMethodId( r'remove', r'(Ljava/lang/String;)V', ); @@ -27348,12 +22791,10 @@ class Hint extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - _remove(reference.pointer, _id_remove as jni$_.JMethodIDPtr, - _$string.pointer) - .check(); + _remove(reference.pointer, _id_remove.pointer, _$string.pointer).check(); } - static final _id_addAttachment = _class.instanceMethodId( + static final _id_addAttachment = Hint._class.instanceMethodId( r'addAttachment', r'(Lio/sentry/Attachment;)V', ); @@ -27374,12 +22815,12 @@ class Hint extends jni$_.JObject { jni$_.JObject? attachment, ) { final _$attachment = attachment?.reference ?? jni$_.jNullReference; - _addAttachment(reference.pointer, _id_addAttachment as jni$_.JMethodIDPtr, - _$attachment.pointer) + _addAttachment( + reference.pointer, _id_addAttachment.pointer, _$attachment.pointer) .check(); } - static final _id_addAttachments = _class.instanceMethodId( + static final _id_addAttachments = Hint._class.instanceMethodId( r'addAttachments', r'(Ljava/util/List;)V', ); @@ -27400,17 +22841,17 @@ class Hint extends jni$_.JObject { jni$_.JList? list, ) { final _$list = list?.reference ?? jni$_.jNullReference; - _addAttachments(reference.pointer, _id_addAttachments as jni$_.JMethodIDPtr, - _$list.pointer) + _addAttachments( + reference.pointer, _id_addAttachments.pointer, _$list.pointer) .check(); } - static final _id_getAttachments = _class.instanceMethodId( + static final _id_get$attachments = Hint._class.instanceMethodId( r'getAttachments', r'()Ljava/util/List;', ); - static final _getAttachments = jni$_.ProtectedJniExtensions.lookup< + static final _get$attachments = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -27424,14 +22865,12 @@ class Hint extends jni$_.JObject { /// from: `public java.util.List getAttachments()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList getAttachments() { - return _getAttachments( - reference.pointer, _id_getAttachments as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectNullableType())); + jni$_.JList get attachments { + return _get$attachments(reference.pointer, _id_get$attachments.pointer) + .object>(); } - static final _id_replaceAttachments = _class.instanceMethodId( + static final _id_replaceAttachments = Hint._class.instanceMethodId( r'replaceAttachments', r'(Ljava/util/List;)V', ); @@ -27452,12 +22891,12 @@ class Hint extends jni$_.JObject { jni$_.JList? list, ) { final _$list = list?.reference ?? jni$_.jNullReference; - _replaceAttachments(reference.pointer, - _id_replaceAttachments as jni$_.JMethodIDPtr, _$list.pointer) + _replaceAttachments( + reference.pointer, _id_replaceAttachments.pointer, _$list.pointer) .check(); } - static final _id_clearAttachments = _class.instanceMethodId( + static final _id_clearAttachments = Hint._class.instanceMethodId( r'clearAttachments', r'()V', ); @@ -27476,12 +22915,10 @@ class Hint extends jni$_.JObject { /// from: `public void clearAttachments()` void clearAttachments() { - _clearAttachments( - reference.pointer, _id_clearAttachments as jni$_.JMethodIDPtr) - .check(); + _clearAttachments(reference.pointer, _id_clearAttachments.pointer).check(); } - static final _id_clear = _class.instanceMethodId( + static final _id_clear = Hint._class.instanceMethodId( r'clear', r'()V', ); @@ -27500,15 +22937,15 @@ class Hint extends jni$_.JObject { /// from: `public void clear()` void clear() { - _clear(reference.pointer, _id_clear as jni$_.JMethodIDPtr).check(); + _clear(reference.pointer, _id_clear.pointer).check(); } - static final _id_setScreenshot = _class.instanceMethodId( + static final _id_set$screenshot = Hint._class.instanceMethodId( r'setScreenshot', r'(Lio/sentry/Attachment;)V', ); - static final _setScreenshot = jni$_.ProtectedJniExtensions.lookup< + static final _set$screenshot = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -27520,21 +22957,19 @@ class Hint extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setScreenshot(io.sentry.Attachment attachment)` - void setScreenshot( - jni$_.JObject? attachment, - ) { + set screenshot(jni$_.JObject? attachment) { final _$attachment = attachment?.reference ?? jni$_.jNullReference; - _setScreenshot(reference.pointer, _id_setScreenshot as jni$_.JMethodIDPtr, - _$attachment.pointer) + _set$screenshot( + reference.pointer, _id_set$screenshot.pointer, _$attachment.pointer) .check(); } - static final _id_getScreenshot = _class.instanceMethodId( + static final _id_get$screenshot = Hint._class.instanceMethodId( r'getScreenshot', r'()Lio/sentry/Attachment;', ); - static final _getScreenshot = jni$_.ProtectedJniExtensions.lookup< + static final _get$screenshot = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -27548,18 +22983,17 @@ class Hint extends jni$_.JObject { /// from: `public io.sentry.Attachment getScreenshot()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getScreenshot() { - return _getScreenshot( - reference.pointer, _id_getScreenshot as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get screenshot { + return _get$screenshot(reference.pointer, _id_get$screenshot.pointer) + .object(); } - static final _id_setViewHierarchy = _class.instanceMethodId( + static final _id_set$viewHierarchy = Hint._class.instanceMethodId( r'setViewHierarchy', r'(Lio/sentry/Attachment;)V', ); - static final _setViewHierarchy = jni$_.ProtectedJniExtensions.lookup< + static final _set$viewHierarchy = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -27571,21 +23005,19 @@ class Hint extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setViewHierarchy(io.sentry.Attachment attachment)` - void setViewHierarchy( - jni$_.JObject? attachment, - ) { + set viewHierarchy(jni$_.JObject? attachment) { final _$attachment = attachment?.reference ?? jni$_.jNullReference; - _setViewHierarchy(reference.pointer, - _id_setViewHierarchy as jni$_.JMethodIDPtr, _$attachment.pointer) + _set$viewHierarchy(reference.pointer, _id_set$viewHierarchy.pointer, + _$attachment.pointer) .check(); } - static final _id_getViewHierarchy = _class.instanceMethodId( + static final _id_get$viewHierarchy = Hint._class.instanceMethodId( r'getViewHierarchy', r'()Lio/sentry/Attachment;', ); - static final _getViewHierarchy = jni$_.ProtectedJniExtensions.lookup< + static final _get$viewHierarchy = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -27599,18 +23031,17 @@ class Hint extends jni$_.JObject { /// from: `public io.sentry.Attachment getViewHierarchy()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getViewHierarchy() { - return _getViewHierarchy( - reference.pointer, _id_getViewHierarchy as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get viewHierarchy { + return _get$viewHierarchy(reference.pointer, _id_get$viewHierarchy.pointer) + .object(); } - static final _id_setThreadDump = _class.instanceMethodId( + static final _id_set$threadDump = Hint._class.instanceMethodId( r'setThreadDump', r'(Lio/sentry/Attachment;)V', ); - static final _setThreadDump = jni$_.ProtectedJniExtensions.lookup< + static final _set$threadDump = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -27622,21 +23053,19 @@ class Hint extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setThreadDump(io.sentry.Attachment attachment)` - void setThreadDump( - jni$_.JObject? attachment, - ) { + set threadDump(jni$_.JObject? attachment) { final _$attachment = attachment?.reference ?? jni$_.jNullReference; - _setThreadDump(reference.pointer, _id_setThreadDump as jni$_.JMethodIDPtr, - _$attachment.pointer) + _set$threadDump( + reference.pointer, _id_set$threadDump.pointer, _$attachment.pointer) .check(); } - static final _id_getThreadDump = _class.instanceMethodId( + static final _id_get$threadDump = Hint._class.instanceMethodId( r'getThreadDump', r'()Lio/sentry/Attachment;', ); - static final _getThreadDump = jni$_.ProtectedJniExtensions.lookup< + static final _get$threadDump = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -27650,18 +23079,17 @@ class Hint extends jni$_.JObject { /// from: `public io.sentry.Attachment getThreadDump()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getThreadDump() { - return _getThreadDump( - reference.pointer, _id_getThreadDump as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get threadDump { + return _get$threadDump(reference.pointer, _id_get$threadDump.pointer) + .object(); } - static final _id_getReplayRecording = _class.instanceMethodId( + static final _id_get$replayRecording = Hint._class.instanceMethodId( r'getReplayRecording', r'()Lio/sentry/ReplayRecording;', ); - static final _getReplayRecording = jni$_.ProtectedJniExtensions.lookup< + static final _get$replayRecording = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -27675,18 +23103,18 @@ class Hint extends jni$_.JObject { /// from: `public io.sentry.ReplayRecording getReplayRecording()` /// The returned object must be released after use, by calling the [release] method. - ReplayRecording? getReplayRecording() { - return _getReplayRecording( - reference.pointer, _id_getReplayRecording as jni$_.JMethodIDPtr) - .object(const $ReplayRecording$NullableType()); + ReplayRecording? get replayRecording { + return _get$replayRecording( + reference.pointer, _id_get$replayRecording.pointer) + .object(); } - static final _id_setReplayRecording = _class.instanceMethodId( + static final _id_set$replayRecording = Hint._class.instanceMethodId( r'setReplayRecording', r'(Lio/sentry/ReplayRecording;)V', ); - static final _setReplayRecording = jni$_.ProtectedJniExtensions.lookup< + static final _set$replayRecording = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -27698,108 +23126,33 @@ class Hint extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setReplayRecording(io.sentry.ReplayRecording replayRecording)` - void setReplayRecording( - ReplayRecording? replayRecording, - ) { + set replayRecording(ReplayRecording? replayRecording) { final _$replayRecording = replayRecording?.reference ?? jni$_.jNullReference; - _setReplayRecording( - reference.pointer, - _id_setReplayRecording as jni$_.JMethodIDPtr, + _set$replayRecording(reference.pointer, _id_set$replayRecording.pointer, _$replayRecording.pointer) .check(); } } -final class $Hint$NullableType extends jni$_.JObjType { +final class $Hint$Type$ extends jni$_.JType { @jni$_.internal - const $Hint$NullableType(); + const $Hint$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/Hint;'; - - @jni$_.internal - @core$_.override - Hint? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Hint.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Hint$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Hint$NullableType) && - other is $Hint$NullableType; - } -} - -final class $Hint$Type extends jni$_.JObjType { - @jni$_.internal - const $Hint$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/Hint;'; - - @jni$_.internal - @core$_.override - Hint fromReference(jni$_.JReference reference) => Hint.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => const $Hint$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Hint$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Hint$Type) && other is $Hint$Type; - } } /// from: `io.sentry.ReplayRecording$Deserializer` -class ReplayRecording$Deserializer extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - ReplayRecording$Deserializer.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type ReplayRecording$Deserializer._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/ReplayRecording$Deserializer'); /// The type which includes information such as the signature of this class. - static const nullableType = $ReplayRecording$Deserializer$NullableType(); - static const type = $ReplayRecording$Deserializer$Type(); + static const jni$_.JType type = + $ReplayRecording$Deserializer$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -27819,12 +23172,15 @@ class ReplayRecording$Deserializer extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory ReplayRecording$Deserializer() { - return ReplayRecording$Deserializer.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_deserialize = _class.instanceMethodId( +extension ReplayRecording$Deserializer$$Methods + on ReplayRecording$Deserializer { + static final _id_deserialize = + ReplayRecording$Deserializer._class.instanceMethodId( r'deserialize', r'(Lio/sentry/ObjectReader;Lio/sentry/ILogger;)Lio/sentry/ReplayRecording;', ); @@ -27854,110 +23210,31 @@ class ReplayRecording$Deserializer extends jni$_.JObject { ) { final _$objectReader = objectReader.reference; final _$iLogger = iLogger.reference; - return _deserialize( - reference.pointer, - _id_deserialize as jni$_.JMethodIDPtr, - _$objectReader.pointer, - _$iLogger.pointer) - .object(const $ReplayRecording$Type()); + return _deserialize(reference.pointer, _id_deserialize.pointer, + _$objectReader.pointer, _$iLogger.pointer) + .object(); } } -final class $ReplayRecording$Deserializer$NullableType - extends jni$_.JObjType { +final class $ReplayRecording$Deserializer$Type$ + extends jni$_.JType { @jni$_.internal - const $ReplayRecording$Deserializer$NullableType(); + const $ReplayRecording$Deserializer$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/ReplayRecording$Deserializer;'; - - @jni$_.internal - @core$_.override - ReplayRecording$Deserializer? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : ReplayRecording$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ReplayRecording$Deserializer$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ReplayRecording$Deserializer$NullableType) && - other is $ReplayRecording$Deserializer$NullableType; - } -} - -final class $ReplayRecording$Deserializer$Type - extends jni$_.JObjType { - @jni$_.internal - const $ReplayRecording$Deserializer$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/ReplayRecording$Deserializer;'; - - @jni$_.internal - @core$_.override - ReplayRecording$Deserializer fromReference(jni$_.JReference reference) => - ReplayRecording$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $ReplayRecording$Deserializer$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ReplayRecording$Deserializer$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ReplayRecording$Deserializer$Type) && - other is $ReplayRecording$Deserializer$Type; - } } /// from: `io.sentry.ReplayRecording$JsonKeys` -class ReplayRecording$JsonKeys extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - ReplayRecording$JsonKeys.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type ReplayRecording$JsonKeys._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/ReplayRecording$JsonKeys'); /// The type which includes information such as the signature of this class. - static const nullableType = $ReplayRecording$JsonKeys$NullableType(); - static const type = $ReplayRecording$JsonKeys$Type(); + static const jni$_.JType type = + $ReplayRecording$JsonKeys$Type$(); static final _id_SEGMENT_ID = _class.staticFieldId( r'SEGMENT_ID', r'Ljava/lang/String;', @@ -27966,7 +23243,7 @@ class ReplayRecording$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String SEGMENT_ID` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get SEGMENT_ID => - _id_SEGMENT_ID.get(_class, const jni$_.JStringNullableType()); + _id_SEGMENT_ID.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_new$ = _class.constructorId( r'()V', @@ -27987,106 +23264,28 @@ class ReplayRecording$JsonKeys extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory ReplayRecording$JsonKeys() { - return ReplayRecording$JsonKeys.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } } -final class $ReplayRecording$JsonKeys$NullableType - extends jni$_.JObjType { +final class $ReplayRecording$JsonKeys$Type$ + extends jni$_.JType { @jni$_.internal - const $ReplayRecording$JsonKeys$NullableType(); + const $ReplayRecording$JsonKeys$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/ReplayRecording$JsonKeys;'; - - @jni$_.internal - @core$_.override - ReplayRecording$JsonKeys? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : ReplayRecording$JsonKeys.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ReplayRecording$JsonKeys$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ReplayRecording$JsonKeys$NullableType) && - other is $ReplayRecording$JsonKeys$NullableType; - } -} - -final class $ReplayRecording$JsonKeys$Type - extends jni$_.JObjType { - @jni$_.internal - const $ReplayRecording$JsonKeys$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/ReplayRecording$JsonKeys;'; - - @jni$_.internal - @core$_.override - ReplayRecording$JsonKeys fromReference(jni$_.JReference reference) => - ReplayRecording$JsonKeys.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $ReplayRecording$JsonKeys$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ReplayRecording$JsonKeys$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ReplayRecording$JsonKeys$Type) && - other is $ReplayRecording$JsonKeys$Type; - } } /// from: `io.sentry.ReplayRecording` -class ReplayRecording extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - ReplayRecording.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type ReplayRecording._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/ReplayRecording'); /// The type which includes information such as the signature of this class. - static const nullableType = $ReplayRecording$NullableType(); - static const type = $ReplayRecording$Type(); + static const jni$_.JType type = $ReplayRecording$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -28106,17 +23305,18 @@ class ReplayRecording extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory ReplayRecording() { - return ReplayRecording.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_getSegmentId = _class.instanceMethodId( +extension ReplayRecording$$Methods on ReplayRecording { + static final _id_get$segmentId = ReplayRecording._class.instanceMethodId( r'getSegmentId', r'()Ljava/lang/Integer;', ); - static final _getSegmentId = jni$_.ProtectedJniExtensions.lookup< + static final _get$segmentId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -28130,18 +23330,17 @@ class ReplayRecording extends jni$_.JObject { /// from: `public java.lang.Integer getSegmentId()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JInteger? getSegmentId() { - return _getSegmentId( - reference.pointer, _id_getSegmentId as jni$_.JMethodIDPtr) - .object(const jni$_.JIntegerNullableType()); + jni$_.JInteger? get segmentId { + return _get$segmentId(reference.pointer, _id_get$segmentId.pointer) + .object(); } - static final _id_setSegmentId = _class.instanceMethodId( + static final _id_set$segmentId = ReplayRecording._class.instanceMethodId( r'setSegmentId', r'(Ljava/lang/Integer;)V', ); - static final _setSegmentId = jni$_.ProtectedJniExtensions.lookup< + static final _set$segmentId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -28153,21 +23352,19 @@ class ReplayRecording extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setSegmentId(java.lang.Integer integer)` - void setSegmentId( - jni$_.JInteger? integer, - ) { + set segmentId(jni$_.JInteger? integer) { final _$integer = integer?.reference ?? jni$_.jNullReference; - _setSegmentId(reference.pointer, _id_setSegmentId as jni$_.JMethodIDPtr, - _$integer.pointer) + _set$segmentId( + reference.pointer, _id_set$segmentId.pointer, _$integer.pointer) .check(); } - static final _id_getPayload = _class.instanceMethodId( + static final _id_get$payload = ReplayRecording._class.instanceMethodId( r'getPayload', r'()Ljava/util/List;', ); - static final _getPayload = jni$_.ProtectedJniExtensions.lookup< + static final _get$payload = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -28181,19 +23378,17 @@ class ReplayRecording extends jni$_.JObject { /// from: `public java.util.List getPayload()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? getPayload() { - return _getPayload(reference.pointer, _id_getPayload as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - $RRWebEvent$NullableType())); + jni$_.JList? get payload { + return _get$payload(reference.pointer, _id_get$payload.pointer) + .object?>(); } - static final _id_setPayload = _class.instanceMethodId( + static final _id_set$payload = ReplayRecording._class.instanceMethodId( r'setPayload', r'(Ljava/util/List;)V', ); - static final _setPayload = jni$_.ProtectedJniExtensions.lookup< + static final _set$payload = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -28205,16 +23400,13 @@ class ReplayRecording extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setPayload(java.util.List list)` - void setPayload( - jni$_.JList? list, - ) { + set payload(jni$_.JList? list) { final _$list = list?.reference ?? jni$_.jNullReference; - _setPayload(reference.pointer, _id_setPayload as jni$_.JMethodIDPtr, - _$list.pointer) + _set$payload(reference.pointer, _id_set$payload.pointer, _$list.pointer) .check(); } - static final _id_equals = _class.instanceMethodId( + static final _id_equals = ReplayRecording._class.instanceMethodId( r'equals', r'(Ljava/lang/Object;)Z', ); @@ -28231,16 +23423,15 @@ class ReplayRecording extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( + core$_.bool equals( jni$_.JObject? object, ) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) + return _equals(reference.pointer, _id_equals.pointer, _$object.pointer) .boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( + static final _id_hashCode$1 = ReplayRecording._class.instanceMethodId( r'hashCode', r'()I', ); @@ -28258,12 +23449,11 @@ class ReplayRecording extends jni$_.JObject { )>(); /// from: `public int hashCode()` - int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + core$_.int hashCode$1() { + return _hashCode$1(reference.pointer, _id_hashCode$1.pointer).integer; } - static final _id_serialize = _class.instanceMethodId( + static final _id_serialize = ReplayRecording._class.instanceMethodId( r'serialize', r'(Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V', ); @@ -28292,17 +23482,17 @@ class ReplayRecording extends jni$_.JObject { ) { final _$objectWriter = objectWriter.reference; final _$iLogger = iLogger.reference; - _serialize(reference.pointer, _id_serialize as jni$_.JMethodIDPtr, - _$objectWriter.pointer, _$iLogger.pointer) + _serialize(reference.pointer, _id_serialize.pointer, _$objectWriter.pointer, + _$iLogger.pointer) .check(); } - static final _id_getUnknown = _class.instanceMethodId( + static final _id_get$unknown = ReplayRecording._class.instanceMethodId( r'getUnknown', r'()Ljava/util/Map;', ); - static final _getUnknown = jni$_.ProtectedJniExtensions.lookup< + static final _get$unknown = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -28316,19 +23506,17 @@ class ReplayRecording extends jni$_.JObject { /// from: `public java.util.Map getUnknown()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JMap? getUnknown() { - return _getUnknown(reference.pointer, _id_getUnknown as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JMapNullableType( - jni$_.JStringNullableType(), jni$_.JObjectNullableType())); + jni$_.JMap? get unknown { + return _get$unknown(reference.pointer, _id_get$unknown.pointer) + .object?>(); } - static final _id_setUnknown = _class.instanceMethodId( + static final _id_set$unknown = ReplayRecording._class.instanceMethodId( r'setUnknown', r'(Ljava/util/Map;)V', ); - static final _setUnknown = jni$_.ProtectedJniExtensions.lookup< + static final _set$unknown = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -28340,109 +23528,31 @@ class ReplayRecording extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setUnknown(java.util.Map map)` - void setUnknown( - jni$_.JMap? map, - ) { + set unknown(jni$_.JMap? map) { final _$map = map?.reference ?? jni$_.jNullReference; - _setUnknown(reference.pointer, _id_setUnknown as jni$_.JMethodIDPtr, - _$map.pointer) + _set$unknown(reference.pointer, _id_set$unknown.pointer, _$map.pointer) .check(); } } -final class $ReplayRecording$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $ReplayRecording$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/ReplayRecording;'; - - @jni$_.internal - @core$_.override - ReplayRecording? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : ReplayRecording.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ReplayRecording$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ReplayRecording$NullableType) && - other is $ReplayRecording$NullableType; - } -} - -final class $ReplayRecording$Type extends jni$_.JObjType { +final class $ReplayRecording$Type$ extends jni$_.JType { @jni$_.internal - const $ReplayRecording$Type(); + const $ReplayRecording$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/ReplayRecording;'; - - @jni$_.internal - @core$_.override - ReplayRecording fromReference(jni$_.JReference reference) => - ReplayRecording.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $ReplayRecording$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ReplayRecording$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ReplayRecording$Type) && - other is $ReplayRecording$Type; - } } /// from: `io.sentry.Breadcrumb$Deserializer` -class Breadcrumb$Deserializer extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Breadcrumb$Deserializer.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Breadcrumb$Deserializer._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/Breadcrumb$Deserializer'); /// The type which includes information such as the signature of this class. - static const nullableType = $Breadcrumb$Deserializer$NullableType(); - static const type = $Breadcrumb$Deserializer$Type(); + static const jni$_.JType type = + $Breadcrumb$Deserializer$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -28462,12 +23572,14 @@ class Breadcrumb$Deserializer extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Breadcrumb$Deserializer() { - return Breadcrumb$Deserializer.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_deserialize = _class.instanceMethodId( +extension Breadcrumb$Deserializer$$Methods on Breadcrumb$Deserializer { + static final _id_deserialize = + Breadcrumb$Deserializer._class.instanceMethodId( r'deserialize', r'(Lio/sentry/ObjectReader;Lio/sentry/ILogger;)Lio/sentry/Breadcrumb;', ); @@ -28497,109 +23609,30 @@ class Breadcrumb$Deserializer extends jni$_.JObject { ) { final _$objectReader = objectReader.reference; final _$iLogger = iLogger.reference; - return _deserialize( - reference.pointer, - _id_deserialize as jni$_.JMethodIDPtr, - _$objectReader.pointer, - _$iLogger.pointer) - .object(const $Breadcrumb$Type()); - } -} - -final class $Breadcrumb$Deserializer$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $Breadcrumb$Deserializer$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/Breadcrumb$Deserializer;'; - - @jni$_.internal - @core$_.override - Breadcrumb$Deserializer? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : Breadcrumb$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Breadcrumb$Deserializer$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Breadcrumb$Deserializer$NullableType) && - other is $Breadcrumb$Deserializer$NullableType; + return _deserialize(reference.pointer, _id_deserialize.pointer, + _$objectReader.pointer, _$iLogger.pointer) + .object(); } } -final class $Breadcrumb$Deserializer$Type - extends jni$_.JObjType { +final class $Breadcrumb$Deserializer$Type$ + extends jni$_.JType { @jni$_.internal - const $Breadcrumb$Deserializer$Type(); + const $Breadcrumb$Deserializer$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/Breadcrumb$Deserializer;'; - - @jni$_.internal - @core$_.override - Breadcrumb$Deserializer fromReference(jni$_.JReference reference) => - Breadcrumb$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $Breadcrumb$Deserializer$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Breadcrumb$Deserializer$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Breadcrumb$Deserializer$Type) && - other is $Breadcrumb$Deserializer$Type; - } } /// from: `io.sentry.Breadcrumb$JsonKeys` -class Breadcrumb$JsonKeys extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Breadcrumb$JsonKeys.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Breadcrumb$JsonKeys._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/Breadcrumb$JsonKeys'); /// The type which includes information such as the signature of this class. - static const nullableType = $Breadcrumb$JsonKeys$NullableType(); - static const type = $Breadcrumb$JsonKeys$Type(); + static const jni$_.JType type = + $Breadcrumb$JsonKeys$Type$(); static final _id_TIMESTAMP = _class.staticFieldId( r'TIMESTAMP', r'Ljava/lang/String;', @@ -28608,7 +23641,7 @@ class Breadcrumb$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String TIMESTAMP` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TIMESTAMP => - _id_TIMESTAMP.get(_class, const jni$_.JStringNullableType()); + _id_TIMESTAMP.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_MESSAGE = _class.staticFieldId( r'MESSAGE', @@ -28618,7 +23651,7 @@ class Breadcrumb$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String MESSAGE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get MESSAGE => - _id_MESSAGE.get(_class, const jni$_.JStringNullableType()); + _id_MESSAGE.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_TYPE = _class.staticFieldId( r'TYPE', @@ -28628,7 +23661,7 @@ class Breadcrumb$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String TYPE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TYPE => - _id_TYPE.get(_class, const jni$_.JStringNullableType()); + _id_TYPE.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_DATA = _class.staticFieldId( r'DATA', @@ -28638,7 +23671,7 @@ class Breadcrumb$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String DATA` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get DATA => - _id_DATA.get(_class, const jni$_.JStringNullableType()); + _id_DATA.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_CATEGORY = _class.staticFieldId( r'CATEGORY', @@ -28648,7 +23681,7 @@ class Breadcrumb$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String CATEGORY` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get CATEGORY => - _id_CATEGORY.get(_class, const jni$_.JStringNullableType()); + _id_CATEGORY.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_ORIGIN = _class.staticFieldId( r'ORIGIN', @@ -28658,7 +23691,7 @@ class Breadcrumb$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String ORIGIN` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get ORIGIN => - _id_ORIGIN.get(_class, const jni$_.JStringNullableType()); + _id_ORIGIN.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_LEVEL = _class.staticFieldId( r'LEVEL', @@ -28668,7 +23701,7 @@ class Breadcrumb$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String LEVEL` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get LEVEL => - _id_LEVEL.get(_class, const jni$_.JStringNullableType()); + _id_LEVEL.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_new$ = _class.constructorId( r'()V', @@ -28689,106 +23722,27 @@ class Breadcrumb$JsonKeys extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Breadcrumb$JsonKeys() { - return Breadcrumb$JsonKeys.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } } -final class $Breadcrumb$JsonKeys$NullableType - extends jni$_.JObjType { +final class $Breadcrumb$JsonKeys$Type$ + extends jni$_.JType { @jni$_.internal - const $Breadcrumb$JsonKeys$NullableType(); + const $Breadcrumb$JsonKeys$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/Breadcrumb$JsonKeys;'; - - @jni$_.internal - @core$_.override - Breadcrumb$JsonKeys? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : Breadcrumb$JsonKeys.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Breadcrumb$JsonKeys$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Breadcrumb$JsonKeys$NullableType) && - other is $Breadcrumb$JsonKeys$NullableType; - } -} - -final class $Breadcrumb$JsonKeys$Type - extends jni$_.JObjType { - @jni$_.internal - const $Breadcrumb$JsonKeys$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/Breadcrumb$JsonKeys;'; - - @jni$_.internal - @core$_.override - Breadcrumb$JsonKeys fromReference(jni$_.JReference reference) => - Breadcrumb$JsonKeys.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $Breadcrumb$JsonKeys$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Breadcrumb$JsonKeys$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Breadcrumb$JsonKeys$Type) && - other is $Breadcrumb$JsonKeys$Type; - } } /// from: `io.sentry.Breadcrumb` -class Breadcrumb extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Breadcrumb.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Breadcrumb._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/Breadcrumb'); /// The type which includes information such as the signature of this class. - static const nullableType = $Breadcrumb$NullableType(); - static const type = $Breadcrumb$Type(); + static const jni$_.JType type = $Breadcrumb$Type$(); static final _id_new$ = _class.constructorId( r'(Ljava/util/Date;)V', ); @@ -28810,9 +23764,8 @@ class Breadcrumb extends jni$_.JObject { jni$_.JObject date, ) { final _$date = date.reference; - return Breadcrumb.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$date.pointer) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer, _$date.pointer) + .object(); } static final _id_new$1 = _class.constructorId( @@ -28827,16 +23780,15 @@ class Breadcrumb extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_NewObject') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void (long j)` /// The returned object must be released after use, by calling the [release] method. factory Breadcrumb.new$1( - int j, + core$_.int j, ) { - return Breadcrumb.fromReference( - _new$1(_class.reference.pointer, _id_new$1 as jni$_.JMethodIDPtr, j) - .reference); + return _new$1(_class.reference.pointer, _id_new$1.pointer, j) + .object(); } static final _id_fromMap = _class.staticMethodId( @@ -28869,9 +23821,9 @@ class Breadcrumb extends jni$_.JObject { ) { final _$map = map.reference; final _$sentryOptions = sentryOptions.reference; - return _fromMap(_class.reference.pointer, _id_fromMap as jni$_.JMethodIDPtr, + return _fromMap(_class.reference.pointer, _id_fromMap.pointer, _$map.pointer, _$sentryOptions.pointer) - .object(const $Breadcrumb$NullableType()); + .object(); } static final _id_http = _class.staticMethodId( @@ -28904,9 +23856,9 @@ class Breadcrumb extends jni$_.JObject { ) { final _$string = string.reference; final _$string1 = string1.reference; - return _http(_class.reference.pointer, _id_http as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) - .object(const $Breadcrumb$Type()); + return _http(_class.reference.pointer, _id_http.pointer, _$string.pointer, + _$string1.pointer) + .object(); } static final _id_http$1 = _class.staticMethodId( @@ -28943,9 +23895,9 @@ class Breadcrumb extends jni$_.JObject { final _$string = string.reference; final _$string1 = string1.reference; final _$integer = integer?.reference ?? jni$_.jNullReference; - return _http$1(_class.reference.pointer, _id_http$1 as jni$_.JMethodIDPtr, + return _http$1(_class.reference.pointer, _id_http$1.pointer, _$string.pointer, _$string1.pointer, _$integer.pointer) - .object(const $Breadcrumb$Type()); + .object(); } static final _id_graphqlOperation = _class.staticMethodId( @@ -28984,11 +23936,11 @@ class Breadcrumb extends jni$_.JObject { final _$string2 = string2?.reference ?? jni$_.jNullReference; return _graphqlOperation( _class.reference.pointer, - _id_graphqlOperation as jni$_.JMethodIDPtr, + _id_graphqlOperation.pointer, _$string.pointer, _$string1.pointer, _$string2.pointer) - .object(const $Breadcrumb$Type()); + .object(); } static final _id_graphqlDataFetcher = _class.staticMethodId( @@ -29031,12 +23983,12 @@ class Breadcrumb extends jni$_.JObject { final _$string3 = string3?.reference ?? jni$_.jNullReference; return _graphqlDataFetcher( _class.reference.pointer, - _id_graphqlDataFetcher as jni$_.JMethodIDPtr, + _id_graphqlDataFetcher.pointer, _$string.pointer, _$string1.pointer, _$string2.pointer, _$string3.pointer) - .object(const $Breadcrumb$Type()); + .object(); } static final _id_graphqlDataLoader = _class.staticMethodId( @@ -29079,12 +24031,12 @@ class Breadcrumb extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; return _graphqlDataLoader( _class.reference.pointer, - _id_graphqlDataLoader as jni$_.JMethodIDPtr, + _id_graphqlDataLoader.pointer, _$iterable.pointer, _$class$.pointer, _$class1.pointer, _$string.pointer) - .object(const $Breadcrumb$Type()); + .object(); } static final _id_navigation = _class.staticMethodId( @@ -29117,12 +24069,9 @@ class Breadcrumb extends jni$_.JObject { ) { final _$string = string.reference; final _$string1 = string1.reference; - return _navigation( - _class.reference.pointer, - _id_navigation as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer) - .object(const $Breadcrumb$Type()); + return _navigation(_class.reference.pointer, _id_navigation.pointer, + _$string.pointer, _$string1.pointer) + .object(); } static final _id_transaction = _class.staticMethodId( @@ -29147,9 +24096,9 @@ class Breadcrumb extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - return _transaction(_class.reference.pointer, - _id_transaction as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $Breadcrumb$Type()); + return _transaction( + _class.reference.pointer, _id_transaction.pointer, _$string.pointer) + .object(); } static final _id_debug = _class.staticMethodId( @@ -29174,9 +24123,8 @@ class Breadcrumb extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - return _debug(_class.reference.pointer, _id_debug as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $Breadcrumb$Type()); + return _debug(_class.reference.pointer, _id_debug.pointer, _$string.pointer) + .object(); } static final _id_error = _class.staticMethodId( @@ -29201,9 +24149,8 @@ class Breadcrumb extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - return _error(_class.reference.pointer, _id_error as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $Breadcrumb$Type()); + return _error(_class.reference.pointer, _id_error.pointer, _$string.pointer) + .object(); } static final _id_info = _class.staticMethodId( @@ -29228,9 +24175,8 @@ class Breadcrumb extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - return _info(_class.reference.pointer, _id_info as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $Breadcrumb$Type()); + return _info(_class.reference.pointer, _id_info.pointer, _$string.pointer) + .object(); } static final _id_query = _class.staticMethodId( @@ -29255,9 +24201,8 @@ class Breadcrumb extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - return _query(_class.reference.pointer, _id_query as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $Breadcrumb$Type()); + return _query(_class.reference.pointer, _id_query.pointer, _$string.pointer) + .object(); } static final _id_ui = _class.staticMethodId( @@ -29290,9 +24235,9 @@ class Breadcrumb extends jni$_.JObject { ) { final _$string = string.reference; final _$string1 = string1.reference; - return _ui(_class.reference.pointer, _id_ui as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) - .object(const $Breadcrumb$Type()); + return _ui(_class.reference.pointer, _id_ui.pointer, _$string.pointer, + _$string1.pointer) + .object(); } static final _id_user = _class.staticMethodId( @@ -29325,9 +24270,9 @@ class Breadcrumb extends jni$_.JObject { ) { final _$string = string.reference; final _$string1 = string1.reference; - return _user(_class.reference.pointer, _id_user as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) - .object(const $Breadcrumb$Type()); + return _user(_class.reference.pointer, _id_user.pointer, _$string.pointer, + _$string1.pointer) + .object(); } static final _id_userInteraction = _class.staticMethodId( @@ -29366,11 +24311,11 @@ class Breadcrumb extends jni$_.JObject { final _$string2 = string2?.reference ?? jni$_.jNullReference; return _userInteraction( _class.reference.pointer, - _id_userInteraction as jni$_.JMethodIDPtr, + _id_userInteraction.pointer, _$string.pointer, _$string1.pointer, _$string2.pointer) - .object(const $Breadcrumb$Type()); + .object(); } static final _id_userInteraction$1 = _class.staticMethodId( @@ -29417,13 +24362,13 @@ class Breadcrumb extends jni$_.JObject { final _$map = map.reference; return _userInteraction$1( _class.reference.pointer, - _id_userInteraction$1 as jni$_.JMethodIDPtr, + _id_userInteraction$1.pointer, _$string.pointer, _$string1.pointer, _$string2.pointer, _$string3.pointer, _$map.pointer) - .object(const $Breadcrumb$Type()); + .object(); } static final _id_userInteraction$2 = _class.staticMethodId( @@ -29466,12 +24411,12 @@ class Breadcrumb extends jni$_.JObject { final _$map = map.reference; return _userInteraction$2( _class.reference.pointer, - _id_userInteraction$2 as jni$_.JMethodIDPtr, + _id_userInteraction$2.pointer, _$string.pointer, _$string1.pointer, _$string2.pointer, _$map.pointer) - .object(const $Breadcrumb$Type()); + .object(); } static final _id_new$2 = _class.constructorId( @@ -29493,9 +24438,8 @@ class Breadcrumb extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Breadcrumb.new$2() { - return Breadcrumb.fromReference( - _new$2(_class.reference.pointer, _id_new$2 as jni$_.JMethodIDPtr) - .reference); + return _new$2(_class.reference.pointer, _id_new$2.pointer) + .object(); } static final _id_new$3 = _class.constructorId( @@ -29519,17 +24463,18 @@ class Breadcrumb extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - return Breadcrumb.fromReference(_new$3(_class.reference.pointer, - _id_new$3 as jni$_.JMethodIDPtr, _$string.pointer) - .reference); + return _new$3(_class.reference.pointer, _id_new$3.pointer, _$string.pointer) + .object(); } +} - static final _id_getTimestamp = _class.instanceMethodId( +extension Breadcrumb$$Methods on Breadcrumb { + static final _id_get$timestamp = Breadcrumb._class.instanceMethodId( r'getTimestamp', r'()Ljava/util/Date;', ); - static final _getTimestamp = jni$_.ProtectedJniExtensions.lookup< + static final _get$timestamp = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -29543,18 +24488,17 @@ class Breadcrumb extends jni$_.JObject { /// from: `public java.util.Date getTimestamp()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getTimestamp() { - return _getTimestamp( - reference.pointer, _id_getTimestamp as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get timestamp { + return _get$timestamp(reference.pointer, _id_get$timestamp.pointer) + .object(); } - static final _id_getMessage = _class.instanceMethodId( + static final _id_get$message = Breadcrumb._class.instanceMethodId( r'getMessage', r'()Ljava/lang/String;', ); - static final _getMessage = jni$_.ProtectedJniExtensions.lookup< + static final _get$message = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -29568,17 +24512,17 @@ class Breadcrumb extends jni$_.JObject { /// from: `public java.lang.String getMessage()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getMessage() { - return _getMessage(reference.pointer, _id_getMessage as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get message { + return _get$message(reference.pointer, _id_get$message.pointer) + .object(); } - static final _id_setMessage = _class.instanceMethodId( + static final _id_set$message = Breadcrumb._class.instanceMethodId( r'setMessage', r'(Ljava/lang/String;)V', ); - static final _setMessage = jni$_.ProtectedJniExtensions.lookup< + static final _set$message = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -29590,21 +24534,18 @@ class Breadcrumb extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setMessage(java.lang.String string)` - void setMessage( - jni$_.JString? string, - ) { + set message(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setMessage(reference.pointer, _id_setMessage as jni$_.JMethodIDPtr, - _$string.pointer) + _set$message(reference.pointer, _id_set$message.pointer, _$string.pointer) .check(); } - static final _id_getType = _class.instanceMethodId( + static final _id_get$type$1 = Breadcrumb._class.instanceMethodId( r'getType', r'()Ljava/lang/String;', ); - static final _getType = jni$_.ProtectedJniExtensions.lookup< + static final _get$type$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -29618,17 +24559,17 @@ class Breadcrumb extends jni$_.JObject { /// from: `public java.lang.String getType()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getType() { - return _getType(reference.pointer, _id_getType as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get type$1 { + return _get$type$1(reference.pointer, _id_get$type$1.pointer) + .object(); } - static final _id_setType = _class.instanceMethodId( + static final _id_set$type$1 = Breadcrumb._class.instanceMethodId( r'setType', r'(Ljava/lang/String;)V', ); - static final _setType = jni$_.ProtectedJniExtensions.lookup< + static final _set$type$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -29640,21 +24581,18 @@ class Breadcrumb extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setType(java.lang.String string)` - void setType( - jni$_.JString? string, - ) { + set type$1(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setType(reference.pointer, _id_setType as jni$_.JMethodIDPtr, - _$string.pointer) + _set$type$1(reference.pointer, _id_set$type$1.pointer, _$string.pointer) .check(); } - static final _id_getData = _class.instanceMethodId( + static final _id_get$data = Breadcrumb._class.instanceMethodId( r'getData', r'()Ljava/util/Map;', ); - static final _getData = jni$_.ProtectedJniExtensions.lookup< + static final _get$data = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -29668,19 +24606,17 @@ class Breadcrumb extends jni$_.JObject { /// from: `public java.util.Map getData()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JMap getData() { - return _getData(reference.pointer, _id_getData as jni$_.JMethodIDPtr) - .object>( - const jni$_.JMapType( - jni$_.JStringNullableType(), jni$_.JObjectNullableType())); + jni$_.JMap get data { + return _get$data(reference.pointer, _id_get$data.pointer) + .object>(); } - static final _id_getData$1 = _class.instanceMethodId( + static final _id_getData = Breadcrumb._class.instanceMethodId( r'getData', r'(Ljava/lang/String;)Ljava/lang/Object;', ); - static final _getData$1 = jni$_.ProtectedJniExtensions.lookup< + static final _getData = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -29693,16 +24629,15 @@ class Breadcrumb extends jni$_.JObject { /// from: `public java.lang.Object getData(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getData$1( + jni$_.JObject? getData( jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - return _getData$1(reference.pointer, _id_getData$1 as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const jni$_.JObjectNullableType()); + return _getData(reference.pointer, _id_getData.pointer, _$string.pointer) + .object(); } - static final _id_setData = _class.instanceMethodId( + static final _id_setData = Breadcrumb._class.instanceMethodId( r'setData', r'(Ljava/lang/String;Ljava/lang/Object;)V', ); @@ -29731,12 +24666,12 @@ class Breadcrumb extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$object = object?.reference ?? jni$_.jNullReference; - _setData(reference.pointer, _id_setData as jni$_.JMethodIDPtr, - _$string.pointer, _$object.pointer) + _setData(reference.pointer, _id_setData.pointer, _$string.pointer, + _$object.pointer) .check(); } - static final _id_removeData = _class.instanceMethodId( + static final _id_removeData = Breadcrumb._class.instanceMethodId( r'removeData', r'(Ljava/lang/String;)V', ); @@ -29757,17 +24692,16 @@ class Breadcrumb extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - _removeData(reference.pointer, _id_removeData as jni$_.JMethodIDPtr, - _$string.pointer) + _removeData(reference.pointer, _id_removeData.pointer, _$string.pointer) .check(); } - static final _id_getCategory = _class.instanceMethodId( + static final _id_get$category = Breadcrumb._class.instanceMethodId( r'getCategory', r'()Ljava/lang/String;', ); - static final _getCategory = jni$_.ProtectedJniExtensions.lookup< + static final _get$category = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -29781,18 +24715,17 @@ class Breadcrumb extends jni$_.JObject { /// from: `public java.lang.String getCategory()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getCategory() { - return _getCategory( - reference.pointer, _id_getCategory as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get category { + return _get$category(reference.pointer, _id_get$category.pointer) + .object(); } - static final _id_setCategory = _class.instanceMethodId( + static final _id_set$category = Breadcrumb._class.instanceMethodId( r'setCategory', r'(Ljava/lang/String;)V', ); - static final _setCategory = jni$_.ProtectedJniExtensions.lookup< + static final _set$category = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -29804,21 +24737,18 @@ class Breadcrumb extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setCategory(java.lang.String string)` - void setCategory( - jni$_.JString? string, - ) { + set category(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setCategory(reference.pointer, _id_setCategory as jni$_.JMethodIDPtr, - _$string.pointer) + _set$category(reference.pointer, _id_set$category.pointer, _$string.pointer) .check(); } - static final _id_getOrigin = _class.instanceMethodId( + static final _id_get$origin = Breadcrumb._class.instanceMethodId( r'getOrigin', r'()Ljava/lang/String;', ); - static final _getOrigin = jni$_.ProtectedJniExtensions.lookup< + static final _get$origin = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -29832,17 +24762,17 @@ class Breadcrumb extends jni$_.JObject { /// from: `public java.lang.String getOrigin()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getOrigin() { - return _getOrigin(reference.pointer, _id_getOrigin as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get origin { + return _get$origin(reference.pointer, _id_get$origin.pointer) + .object(); } - static final _id_setOrigin = _class.instanceMethodId( + static final _id_set$origin = Breadcrumb._class.instanceMethodId( r'setOrigin', r'(Ljava/lang/String;)V', ); - static final _setOrigin = jni$_.ProtectedJniExtensions.lookup< + static final _set$origin = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -29854,21 +24784,18 @@ class Breadcrumb extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setOrigin(java.lang.String string)` - void setOrigin( - jni$_.JString? string, - ) { + set origin(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setOrigin(reference.pointer, _id_setOrigin as jni$_.JMethodIDPtr, - _$string.pointer) + _set$origin(reference.pointer, _id_set$origin.pointer, _$string.pointer) .check(); } - static final _id_getLevel = _class.instanceMethodId( + static final _id_get$level = Breadcrumb._class.instanceMethodId( r'getLevel', r'()Lio/sentry/SentryLevel;', ); - static final _getLevel = jni$_.ProtectedJniExtensions.lookup< + static final _get$level = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -29882,17 +24809,17 @@ class Breadcrumb extends jni$_.JObject { /// from: `public io.sentry.SentryLevel getLevel()` /// The returned object must be released after use, by calling the [release] method. - SentryLevel? getLevel() { - return _getLevel(reference.pointer, _id_getLevel as jni$_.JMethodIDPtr) - .object(const $SentryLevel$NullableType()); + SentryLevel? get level { + return _get$level(reference.pointer, _id_get$level.pointer) + .object(); } - static final _id_setLevel = _class.instanceMethodId( + static final _id_set$level = Breadcrumb._class.instanceMethodId( r'setLevel', r'(Lio/sentry/SentryLevel;)V', ); - static final _setLevel = jni$_.ProtectedJniExtensions.lookup< + static final _set$level = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -29904,16 +24831,13 @@ class Breadcrumb extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setLevel(io.sentry.SentryLevel sentryLevel)` - void setLevel( - SentryLevel? sentryLevel, - ) { + set level(SentryLevel? sentryLevel) { final _$sentryLevel = sentryLevel?.reference ?? jni$_.jNullReference; - _setLevel(reference.pointer, _id_setLevel as jni$_.JMethodIDPtr, - _$sentryLevel.pointer) + _set$level(reference.pointer, _id_set$level.pointer, _$sentryLevel.pointer) .check(); } - static final _id_equals = _class.instanceMethodId( + static final _id_equals = Breadcrumb._class.instanceMethodId( r'equals', r'(Ljava/lang/Object;)Z', ); @@ -29930,16 +24854,15 @@ class Breadcrumb extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( + core$_.bool equals( jni$_.JObject? object, ) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) + return _equals(reference.pointer, _id_equals.pointer, _$object.pointer) .boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( + static final _id_hashCode$1 = Breadcrumb._class.instanceMethodId( r'hashCode', r'()I', ); @@ -29957,17 +24880,16 @@ class Breadcrumb extends jni$_.JObject { )>(); /// from: `public int hashCode()` - int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + core$_.int hashCode$1() { + return _hashCode$1(reference.pointer, _id_hashCode$1.pointer).integer; } - static final _id_getUnknown = _class.instanceMethodId( + static final _id_get$unknown = Breadcrumb._class.instanceMethodId( r'getUnknown', r'()Ljava/util/Map;', ); - static final _getUnknown = jni$_.ProtectedJniExtensions.lookup< + static final _get$unknown = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -29981,19 +24903,17 @@ class Breadcrumb extends jni$_.JObject { /// from: `public java.util.Map getUnknown()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JMap? getUnknown() { - return _getUnknown(reference.pointer, _id_getUnknown as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JMapNullableType( - jni$_.JStringNullableType(), jni$_.JObjectNullableType())); + jni$_.JMap? get unknown { + return _get$unknown(reference.pointer, _id_get$unknown.pointer) + .object?>(); } - static final _id_setUnknown = _class.instanceMethodId( + static final _id_set$unknown = Breadcrumb._class.instanceMethodId( r'setUnknown', r'(Ljava/util/Map;)V', ); - static final _setUnknown = jni$_.ProtectedJniExtensions.lookup< + static final _set$unknown = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -30005,16 +24925,13 @@ class Breadcrumb extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setUnknown(java.util.Map map)` - void setUnknown( - jni$_.JMap? map, - ) { + set unknown(jni$_.JMap? map) { final _$map = map?.reference ?? jni$_.jNullReference; - _setUnknown(reference.pointer, _id_setUnknown as jni$_.JMethodIDPtr, - _$map.pointer) + _set$unknown(reference.pointer, _id_set$unknown.pointer, _$map.pointer) .check(); } - static final _id_compareTo = _class.instanceMethodId( + static final _id_compareTo = Breadcrumb._class.instanceMethodId( r'compareTo', r'(Lio/sentry/Breadcrumb;)I', ); @@ -30031,16 +24948,16 @@ class Breadcrumb extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public int compareTo(io.sentry.Breadcrumb breadcrumb)` - int compareTo( + core$_.int compareTo( Breadcrumb breadcrumb, ) { final _$breadcrumb = breadcrumb.reference; - return _compareTo(reference.pointer, _id_compareTo as jni$_.JMethodIDPtr, - _$breadcrumb.pointer) + return _compareTo( + reference.pointer, _id_compareTo.pointer, _$breadcrumb.pointer) .integer; } - static final _id_serialize = _class.instanceMethodId( + static final _id_serialize = Breadcrumb._class.instanceMethodId( r'serialize', r'(Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V', ); @@ -30069,124 +24986,49 @@ class Breadcrumb extends jni$_.JObject { ) { final _$objectWriter = objectWriter.reference; final _$iLogger = iLogger.reference; - _serialize(reference.pointer, _id_serialize as jni$_.JMethodIDPtr, - _$objectWriter.pointer, _$iLogger.pointer) + _serialize(reference.pointer, _id_serialize.pointer, _$objectWriter.pointer, + _$iLogger.pointer) .check(); } - bool operator <(Breadcrumb breadcrumb) { + core$_.bool operator <(Breadcrumb breadcrumb) { return compareTo(breadcrumb) < 0; } - bool operator <=(Breadcrumb breadcrumb) { + core$_.bool operator <=(Breadcrumb breadcrumb) { return compareTo(breadcrumb) <= 0; } - bool operator >(Breadcrumb breadcrumb) { + core$_.bool operator >(Breadcrumb breadcrumb) { return compareTo(breadcrumb) > 0; } - bool operator >=(Breadcrumb breadcrumb) { + core$_.bool operator >=(Breadcrumb breadcrumb) { return compareTo(breadcrumb) >= 0; } } -final class $Breadcrumb$NullableType extends jni$_.JObjType { +final class $Breadcrumb$Type$ extends jni$_.JType { @jni$_.internal - const $Breadcrumb$NullableType(); + const $Breadcrumb$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/Breadcrumb;'; - - @jni$_.internal - @core$_.override - Breadcrumb? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Breadcrumb.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Breadcrumb$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Breadcrumb$NullableType) && - other is $Breadcrumb$NullableType; - } -} - -final class $Breadcrumb$Type extends jni$_.JObjType { - @jni$_.internal - const $Breadcrumb$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/Breadcrumb;'; - - @jni$_.internal - @core$_.override - Breadcrumb fromReference(jni$_.JReference reference) => - Breadcrumb.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $Breadcrumb$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Breadcrumb$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Breadcrumb$Type) && other is $Breadcrumb$Type; - } } /// from: `io.sentry.ScopesAdapter` -class ScopesAdapter extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - ScopesAdapter.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type ScopesAdapter._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/ScopesAdapter'); /// The type which includes information such as the signature of this class. - static const nullableType = $ScopesAdapter$NullableType(); - static const type = $ScopesAdapter$Type(); - static final _id_getInstance = _class.staticMethodId( + static const jni$_.JType type = $ScopesAdapter$Type$(); + static final _id_get$instance = _class.staticMethodId( r'getInstance', r'()Lio/sentry/ScopesAdapter;', ); - static final _getInstance = jni$_.ProtectedJniExtensions.lookup< + static final _get$instance = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -30200,18 +25042,19 @@ class ScopesAdapter extends jni$_.JObject { /// from: `static public io.sentry.ScopesAdapter getInstance()` /// The returned object must be released after use, by calling the [release] method. - static ScopesAdapter? getInstance() { - return _getInstance( - _class.reference.pointer, _id_getInstance as jni$_.JMethodIDPtr) - .object(const $ScopesAdapter$NullableType()); + static ScopesAdapter? get instance { + return _get$instance(_class.reference.pointer, _id_get$instance.pointer) + .object(); } +} - static final _id_isEnabled = _class.instanceMethodId( +extension ScopesAdapter$$Methods on ScopesAdapter { + static final _id_get$isEnabled = ScopesAdapter._class.instanceMethodId( r'isEnabled', r'()Z', ); - static final _isEnabled = jni$_.ProtectedJniExtensions.lookup< + static final _get$isEnabled = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -30224,12 +25067,11 @@ class ScopesAdapter extends jni$_.JObject { )>(); /// from: `public boolean isEnabled()` - bool isEnabled() { - return _isEnabled(reference.pointer, _id_isEnabled as jni$_.JMethodIDPtr) - .boolean; + core$_.bool get isEnabled { + return _get$isEnabled(reference.pointer, _id_get$isEnabled.pointer).boolean; } - static final _id_captureEvent = _class.instanceMethodId( + static final _id_captureEvent = ScopesAdapter._class.instanceMethodId( r'captureEvent', r'(Lio/sentry/SentryEvent;Lio/sentry/Hint;)Lio/sentry/protocol/SentryId;', ); @@ -30259,15 +25101,12 @@ class ScopesAdapter extends jni$_.JObject { ) { final _$sentryEvent = sentryEvent.reference; final _$hint = hint?.reference ?? jni$_.jNullReference; - return _captureEvent( - reference.pointer, - _id_captureEvent as jni$_.JMethodIDPtr, - _$sentryEvent.pointer, - _$hint.pointer) - .object(const $SentryId$Type()); + return _captureEvent(reference.pointer, _id_captureEvent.pointer, + _$sentryEvent.pointer, _$hint.pointer) + .object(); } - static final _id_captureEvent$1 = _class.instanceMethodId( + static final _id_captureEvent$1 = ScopesAdapter._class.instanceMethodId( r'captureEvent', r'(Lio/sentry/SentryEvent;Lio/sentry/Hint;Lio/sentry/ScopeCallback;)Lio/sentry/protocol/SentryId;', ); @@ -30301,16 +25140,12 @@ class ScopesAdapter extends jni$_.JObject { final _$sentryEvent = sentryEvent.reference; final _$hint = hint?.reference ?? jni$_.jNullReference; final _$scopeCallback = scopeCallback.reference; - return _captureEvent$1( - reference.pointer, - _id_captureEvent$1 as jni$_.JMethodIDPtr, - _$sentryEvent.pointer, - _$hint.pointer, - _$scopeCallback.pointer) - .object(const $SentryId$Type()); + return _captureEvent$1(reference.pointer, _id_captureEvent$1.pointer, + _$sentryEvent.pointer, _$hint.pointer, _$scopeCallback.pointer) + .object(); } - static final _id_captureMessage = _class.instanceMethodId( + static final _id_captureMessage = ScopesAdapter._class.instanceMethodId( r'captureMessage', r'(Ljava/lang/String;Lio/sentry/SentryLevel;)Lio/sentry/protocol/SentryId;', ); @@ -30340,15 +25175,12 @@ class ScopesAdapter extends jni$_.JObject { ) { final _$string = string.reference; final _$sentryLevel = sentryLevel.reference; - return _captureMessage( - reference.pointer, - _id_captureMessage as jni$_.JMethodIDPtr, - _$string.pointer, - _$sentryLevel.pointer) - .object(const $SentryId$Type()); + return _captureMessage(reference.pointer, _id_captureMessage.pointer, + _$string.pointer, _$sentryLevel.pointer) + .object(); } - static final _id_captureMessage$1 = _class.instanceMethodId( + static final _id_captureMessage$1 = ScopesAdapter._class.instanceMethodId( r'captureMessage', r'(Ljava/lang/String;Lio/sentry/SentryLevel;Lio/sentry/ScopeCallback;)Lio/sentry/protocol/SentryId;', ); @@ -30382,16 +25214,12 @@ class ScopesAdapter extends jni$_.JObject { final _$string = string.reference; final _$sentryLevel = sentryLevel.reference; final _$scopeCallback = scopeCallback.reference; - return _captureMessage$1( - reference.pointer, - _id_captureMessage$1 as jni$_.JMethodIDPtr, - _$string.pointer, - _$sentryLevel.pointer, - _$scopeCallback.pointer) - .object(const $SentryId$Type()); + return _captureMessage$1(reference.pointer, _id_captureMessage$1.pointer, + _$string.pointer, _$sentryLevel.pointer, _$scopeCallback.pointer) + .object(); } - static final _id_captureFeedback = _class.instanceMethodId( + static final _id_captureFeedback = ScopesAdapter._class.instanceMethodId( r'captureFeedback', r'(Lio/sentry/protocol/Feedback;)Lio/sentry/protocol/SentryId;', ); @@ -30413,12 +25241,12 @@ class ScopesAdapter extends jni$_.JObject { jni$_.JObject feedback, ) { final _$feedback = feedback.reference; - return _captureFeedback(reference.pointer, - _id_captureFeedback as jni$_.JMethodIDPtr, _$feedback.pointer) - .object(const $SentryId$Type()); + return _captureFeedback( + reference.pointer, _id_captureFeedback.pointer, _$feedback.pointer) + .object(); } - static final _id_captureFeedback$1 = _class.instanceMethodId( + static final _id_captureFeedback$1 = ScopesAdapter._class.instanceMethodId( r'captureFeedback', r'(Lio/sentry/protocol/Feedback;Lio/sentry/Hint;)Lio/sentry/protocol/SentryId;', ); @@ -30448,15 +25276,12 @@ class ScopesAdapter extends jni$_.JObject { ) { final _$feedback = feedback.reference; final _$hint = hint?.reference ?? jni$_.jNullReference; - return _captureFeedback$1( - reference.pointer, - _id_captureFeedback$1 as jni$_.JMethodIDPtr, - _$feedback.pointer, - _$hint.pointer) - .object(const $SentryId$Type()); + return _captureFeedback$1(reference.pointer, _id_captureFeedback$1.pointer, + _$feedback.pointer, _$hint.pointer) + .object(); } - static final _id_captureFeedback$2 = _class.instanceMethodId( + static final _id_captureFeedback$2 = ScopesAdapter._class.instanceMethodId( r'captureFeedback', r'(Lio/sentry/protocol/Feedback;Lio/sentry/Hint;Lio/sentry/ScopeCallback;)Lio/sentry/protocol/SentryId;', ); @@ -30490,16 +25315,12 @@ class ScopesAdapter extends jni$_.JObject { final _$feedback = feedback.reference; final _$hint = hint?.reference ?? jni$_.jNullReference; final _$scopeCallback = scopeCallback?.reference ?? jni$_.jNullReference; - return _captureFeedback$2( - reference.pointer, - _id_captureFeedback$2 as jni$_.JMethodIDPtr, - _$feedback.pointer, - _$hint.pointer, - _$scopeCallback.pointer) - .object(const $SentryId$Type()); + return _captureFeedback$2(reference.pointer, _id_captureFeedback$2.pointer, + _$feedback.pointer, _$hint.pointer, _$scopeCallback.pointer) + .object(); } - static final _id_captureEnvelope = _class.instanceMethodId( + static final _id_captureEnvelope = ScopesAdapter._class.instanceMethodId( r'captureEnvelope', r'(Lio/sentry/SentryEnvelope;Lio/sentry/Hint;)Lio/sentry/protocol/SentryId;', ); @@ -30529,15 +25350,12 @@ class ScopesAdapter extends jni$_.JObject { ) { final _$sentryEnvelope = sentryEnvelope.reference; final _$hint = hint?.reference ?? jni$_.jNullReference; - return _captureEnvelope( - reference.pointer, - _id_captureEnvelope as jni$_.JMethodIDPtr, - _$sentryEnvelope.pointer, - _$hint.pointer) - .object(const $SentryId$Type()); + return _captureEnvelope(reference.pointer, _id_captureEnvelope.pointer, + _$sentryEnvelope.pointer, _$hint.pointer) + .object(); } - static final _id_captureException = _class.instanceMethodId( + static final _id_captureException = ScopesAdapter._class.instanceMethodId( r'captureException', r'(Ljava/lang/Throwable;Lio/sentry/Hint;)Lio/sentry/protocol/SentryId;', ); @@ -30567,15 +25385,12 @@ class ScopesAdapter extends jni$_.JObject { ) { final _$throwable = throwable.reference; final _$hint = hint?.reference ?? jni$_.jNullReference; - return _captureException( - reference.pointer, - _id_captureException as jni$_.JMethodIDPtr, - _$throwable.pointer, - _$hint.pointer) - .object(const $SentryId$Type()); + return _captureException(reference.pointer, _id_captureException.pointer, + _$throwable.pointer, _$hint.pointer) + .object(); } - static final _id_captureException$1 = _class.instanceMethodId( + static final _id_captureException$1 = ScopesAdapter._class.instanceMethodId( r'captureException', r'(Ljava/lang/Throwable;Lio/sentry/Hint;Lio/sentry/ScopeCallback;)Lio/sentry/protocol/SentryId;', ); @@ -30611,14 +25426,14 @@ class ScopesAdapter extends jni$_.JObject { final _$scopeCallback = scopeCallback.reference; return _captureException$1( reference.pointer, - _id_captureException$1 as jni$_.JMethodIDPtr, + _id_captureException$1.pointer, _$throwable.pointer, _$hint.pointer, _$scopeCallback.pointer) - .object(const $SentryId$Type()); + .object(); } - static final _id_captureUserFeedback = _class.instanceMethodId( + static final _id_captureUserFeedback = ScopesAdapter._class.instanceMethodId( r'captureUserFeedback', r'(Lio/sentry/UserFeedback;)V', ); @@ -30639,14 +25454,12 @@ class ScopesAdapter extends jni$_.JObject { jni$_.JObject userFeedback, ) { final _$userFeedback = userFeedback.reference; - _captureUserFeedback( - reference.pointer, - _id_captureUserFeedback as jni$_.JMethodIDPtr, + _captureUserFeedback(reference.pointer, _id_captureUserFeedback.pointer, _$userFeedback.pointer) .check(); } - static final _id_startSession = _class.instanceMethodId( + static final _id_startSession = ScopesAdapter._class.instanceMethodId( r'startSession', r'()V', ); @@ -30665,11 +25478,10 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public void startSession()` void startSession() { - _startSession(reference.pointer, _id_startSession as jni$_.JMethodIDPtr) - .check(); + _startSession(reference.pointer, _id_startSession.pointer).check(); } - static final _id_endSession = _class.instanceMethodId( + static final _id_endSession = ScopesAdapter._class.instanceMethodId( r'endSession', r'()V', ); @@ -30688,11 +25500,10 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public void endSession()` void endSession() { - _endSession(reference.pointer, _id_endSession as jni$_.JMethodIDPtr) - .check(); + _endSession(reference.pointer, _id_endSession.pointer).check(); } - static final _id_close = _class.instanceMethodId( + static final _id_close = ScopesAdapter._class.instanceMethodId( r'close', r'(Z)V', ); @@ -30705,17 +25516,16 @@ class ScopesAdapter extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void close(boolean z)` void close( - bool z, + core$_.bool z, ) { - _close(reference.pointer, _id_close as jni$_.JMethodIDPtr, z ? 1 : 0) - .check(); + _close(reference.pointer, _id_close.pointer, z ? 1 : 0).check(); } - static final _id_close$1 = _class.instanceMethodId( + static final _id_close$1 = ScopesAdapter._class.instanceMethodId( r'close', r'()V', ); @@ -30734,10 +25544,10 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public void close()` void close$1() { - _close$1(reference.pointer, _id_close$1 as jni$_.JMethodIDPtr).check(); + _close$1(reference.pointer, _id_close$1.pointer).check(); } - static final _id_addBreadcrumb = _class.instanceMethodId( + static final _id_addBreadcrumb = ScopesAdapter._class.instanceMethodId( r'addBreadcrumb', r'(Lio/sentry/Breadcrumb;Lio/sentry/Hint;)V', ); @@ -30766,12 +25576,12 @@ class ScopesAdapter extends jni$_.JObject { ) { final _$breadcrumb = breadcrumb.reference; final _$hint = hint?.reference ?? jni$_.jNullReference; - _addBreadcrumb(reference.pointer, _id_addBreadcrumb as jni$_.JMethodIDPtr, + _addBreadcrumb(reference.pointer, _id_addBreadcrumb.pointer, _$breadcrumb.pointer, _$hint.pointer) .check(); } - static final _id_addBreadcrumb$1 = _class.instanceMethodId( + static final _id_addBreadcrumb$1 = ScopesAdapter._class.instanceMethodId( r'addBreadcrumb', r'(Lio/sentry/Breadcrumb;)V', ); @@ -30792,17 +25602,17 @@ class ScopesAdapter extends jni$_.JObject { Breadcrumb breadcrumb, ) { final _$breadcrumb = breadcrumb.reference; - _addBreadcrumb$1(reference.pointer, - _id_addBreadcrumb$1 as jni$_.JMethodIDPtr, _$breadcrumb.pointer) + _addBreadcrumb$1(reference.pointer, _id_addBreadcrumb$1.pointer, + _$breadcrumb.pointer) .check(); } - static final _id_setLevel = _class.instanceMethodId( + static final _id_set$level = ScopesAdapter._class.instanceMethodId( r'setLevel', r'(Lio/sentry/SentryLevel;)V', ); - static final _setLevel = jni$_.ProtectedJniExtensions.lookup< + static final _set$level = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -30814,21 +25624,18 @@ class ScopesAdapter extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setLevel(io.sentry.SentryLevel sentryLevel)` - void setLevel( - SentryLevel? sentryLevel, - ) { + set level(SentryLevel? sentryLevel) { final _$sentryLevel = sentryLevel?.reference ?? jni$_.jNullReference; - _setLevel(reference.pointer, _id_setLevel as jni$_.JMethodIDPtr, - _$sentryLevel.pointer) + _set$level(reference.pointer, _id_set$level.pointer, _$sentryLevel.pointer) .check(); } - static final _id_setTransaction = _class.instanceMethodId( + static final _id_set$transaction = ScopesAdapter._class.instanceMethodId( r'setTransaction', r'(Ljava/lang/String;)V', ); - static final _setTransaction = jni$_.ProtectedJniExtensions.lookup< + static final _set$transaction = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -30840,21 +25647,19 @@ class ScopesAdapter extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setTransaction(java.lang.String string)` - void setTransaction( - jni$_.JString? string, - ) { + set transaction(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setTransaction(reference.pointer, _id_setTransaction as jni$_.JMethodIDPtr, - _$string.pointer) + _set$transaction( + reference.pointer, _id_set$transaction.pointer, _$string.pointer) .check(); } - static final _id_setUser = _class.instanceMethodId( + static final _id_set$user = ScopesAdapter._class.instanceMethodId( r'setUser', r'(Lio/sentry/protocol/User;)V', ); - static final _setUser = jni$_.ProtectedJniExtensions.lookup< + static final _set$user = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -30866,21 +25671,17 @@ class ScopesAdapter extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setUser(io.sentry.protocol.User user)` - void setUser( - User? user, - ) { + set user(User? user) { final _$user = user?.reference ?? jni$_.jNullReference; - _setUser(reference.pointer, _id_setUser as jni$_.JMethodIDPtr, - _$user.pointer) - .check(); + _set$user(reference.pointer, _id_set$user.pointer, _$user.pointer).check(); } - static final _id_setFingerprint = _class.instanceMethodId( + static final _id_set$fingerprint = ScopesAdapter._class.instanceMethodId( r'setFingerprint', r'(Ljava/util/List;)V', ); - static final _setFingerprint = jni$_.ProtectedJniExtensions.lookup< + static final _set$fingerprint = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -30892,16 +25693,14 @@ class ScopesAdapter extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setFingerprint(java.util.List list)` - void setFingerprint( - jni$_.JList list, - ) { + set fingerprint(jni$_.JList list) { final _$list = list.reference; - _setFingerprint(reference.pointer, _id_setFingerprint as jni$_.JMethodIDPtr, - _$list.pointer) + _set$fingerprint( + reference.pointer, _id_set$fingerprint.pointer, _$list.pointer) .check(); } - static final _id_clearBreadcrumbs = _class.instanceMethodId( + static final _id_clearBreadcrumbs = ScopesAdapter._class.instanceMethodId( r'clearBreadcrumbs', r'()V', ); @@ -30920,12 +25719,10 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public void clearBreadcrumbs()` void clearBreadcrumbs() { - _clearBreadcrumbs( - reference.pointer, _id_clearBreadcrumbs as jni$_.JMethodIDPtr) - .check(); + _clearBreadcrumbs(reference.pointer, _id_clearBreadcrumbs.pointer).check(); } - static final _id_setTag = _class.instanceMethodId( + static final _id_setTag = ScopesAdapter._class.instanceMethodId( r'setTag', r'(Ljava/lang/String;Ljava/lang/String;)V', ); @@ -30954,12 +25751,12 @@ class ScopesAdapter extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _setTag(reference.pointer, _id_setTag as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) + _setTag(reference.pointer, _id_setTag.pointer, _$string.pointer, + _$string1.pointer) .check(); } - static final _id_removeTag = _class.instanceMethodId( + static final _id_removeTag = ScopesAdapter._class.instanceMethodId( r'removeTag', r'(Ljava/lang/String;)V', ); @@ -30980,12 +25777,11 @@ class ScopesAdapter extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - _removeTag(reference.pointer, _id_removeTag as jni$_.JMethodIDPtr, - _$string.pointer) + _removeTag(reference.pointer, _id_removeTag.pointer, _$string.pointer) .check(); } - static final _id_setExtra = _class.instanceMethodId( + static final _id_setExtra = ScopesAdapter._class.instanceMethodId( r'setExtra', r'(Ljava/lang/String;Ljava/lang/String;)V', ); @@ -31014,12 +25810,12 @@ class ScopesAdapter extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _setExtra(reference.pointer, _id_setExtra as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) + _setExtra(reference.pointer, _id_setExtra.pointer, _$string.pointer, + _$string1.pointer) .check(); } - static final _id_removeExtra = _class.instanceMethodId( + static final _id_removeExtra = ScopesAdapter._class.instanceMethodId( r'removeExtra', r'(Ljava/lang/String;)V', ); @@ -31040,17 +25836,16 @@ class ScopesAdapter extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - _removeExtra(reference.pointer, _id_removeExtra as jni$_.JMethodIDPtr, - _$string.pointer) + _removeExtra(reference.pointer, _id_removeExtra.pointer, _$string.pointer) .check(); } - static final _id_getLastEventId = _class.instanceMethodId( + static final _id_get$lastEventId = ScopesAdapter._class.instanceMethodId( r'getLastEventId', r'()Lio/sentry/protocol/SentryId;', ); - static final _getLastEventId = jni$_.ProtectedJniExtensions.lookup< + static final _get$lastEventId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31064,13 +25859,12 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public io.sentry.protocol.SentryId getLastEventId()` /// The returned object must be released after use, by calling the [release] method. - SentryId getLastEventId() { - return _getLastEventId( - reference.pointer, _id_getLastEventId as jni$_.JMethodIDPtr) - .object(const $SentryId$Type()); + SentryId get lastEventId { + return _get$lastEventId(reference.pointer, _id_get$lastEventId.pointer) + .object(); } - static final _id_pushScope = _class.instanceMethodId( + static final _id_pushScope = ScopesAdapter._class.instanceMethodId( r'pushScope', r'()Lio/sentry/ISentryLifecycleToken;', ); @@ -31090,11 +25884,11 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public io.sentry.ISentryLifecycleToken pushScope()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject pushScope() { - return _pushScope(reference.pointer, _id_pushScope as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _pushScope(reference.pointer, _id_pushScope.pointer) + .object(); } - static final _id_pushIsolationScope = _class.instanceMethodId( + static final _id_pushIsolationScope = ScopesAdapter._class.instanceMethodId( r'pushIsolationScope', r'()Lio/sentry/ISentryLifecycleToken;', ); @@ -31115,11 +25909,11 @@ class ScopesAdapter extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. jni$_.JObject pushIsolationScope() { return _pushIsolationScope( - reference.pointer, _id_pushIsolationScope as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + reference.pointer, _id_pushIsolationScope.pointer) + .object(); } - static final _id_popScope = _class.instanceMethodId( + static final _id_popScope = ScopesAdapter._class.instanceMethodId( r'popScope', r'()V', ); @@ -31138,10 +25932,10 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public void popScope()` void popScope() { - _popScope(reference.pointer, _id_popScope as jni$_.JMethodIDPtr).check(); + _popScope(reference.pointer, _id_popScope.pointer).check(); } - static final _id_withScope = _class.instanceMethodId( + static final _id_withScope = ScopesAdapter._class.instanceMethodId( r'withScope', r'(Lio/sentry/ScopeCallback;)V', ); @@ -31162,12 +25956,12 @@ class ScopesAdapter extends jni$_.JObject { ScopeCallback scopeCallback, ) { final _$scopeCallback = scopeCallback.reference; - _withScope(reference.pointer, _id_withScope as jni$_.JMethodIDPtr, - _$scopeCallback.pointer) + _withScope( + reference.pointer, _id_withScope.pointer, _$scopeCallback.pointer) .check(); } - static final _id_withIsolationScope = _class.instanceMethodId( + static final _id_withIsolationScope = ScopesAdapter._class.instanceMethodId( r'withIsolationScope', r'(Lio/sentry/ScopeCallback;)V', ); @@ -31188,14 +25982,12 @@ class ScopesAdapter extends jni$_.JObject { ScopeCallback scopeCallback, ) { final _$scopeCallback = scopeCallback.reference; - _withIsolationScope( - reference.pointer, - _id_withIsolationScope as jni$_.JMethodIDPtr, + _withIsolationScope(reference.pointer, _id_withIsolationScope.pointer, _$scopeCallback.pointer) .check(); } - static final _id_configureScope = _class.instanceMethodId( + static final _id_configureScope = ScopesAdapter._class.instanceMethodId( r'configureScope', r'(Lio/sentry/ScopeType;Lio/sentry/ScopeCallback;)V', ); @@ -31224,12 +26016,12 @@ class ScopesAdapter extends jni$_.JObject { ) { final _$scopeType = scopeType?.reference ?? jni$_.jNullReference; final _$scopeCallback = scopeCallback.reference; - _configureScope(reference.pointer, _id_configureScope as jni$_.JMethodIDPtr, + _configureScope(reference.pointer, _id_configureScope.pointer, _$scopeType.pointer, _$scopeCallback.pointer) .check(); } - static final _id_bindClient = _class.instanceMethodId( + static final _id_bindClient = ScopesAdapter._class.instanceMethodId( r'bindClient', r'(Lio/sentry/ISentryClient;)V', ); @@ -31250,17 +26042,17 @@ class ScopesAdapter extends jni$_.JObject { jni$_.JObject iSentryClient, ) { final _$iSentryClient = iSentryClient.reference; - _bindClient(reference.pointer, _id_bindClient as jni$_.JMethodIDPtr, - _$iSentryClient.pointer) + _bindClient( + reference.pointer, _id_bindClient.pointer, _$iSentryClient.pointer) .check(); } - static final _id_isHealthy = _class.instanceMethodId( + static final _id_get$isHealthy = ScopesAdapter._class.instanceMethodId( r'isHealthy', r'()Z', ); - static final _isHealthy = jni$_.ProtectedJniExtensions.lookup< + static final _get$isHealthy = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31273,12 +26065,11 @@ class ScopesAdapter extends jni$_.JObject { )>(); /// from: `public boolean isHealthy()` - bool isHealthy() { - return _isHealthy(reference.pointer, _id_isHealthy as jni$_.JMethodIDPtr) - .boolean; + core$_.bool get isHealthy { + return _get$isHealthy(reference.pointer, _id_get$isHealthy.pointer).boolean; } - static final _id_flush = _class.instanceMethodId( + static final _id_flush = ScopesAdapter._class.instanceMethodId( r'flush', r'(J)V', ); @@ -31291,16 +26082,16 @@ class ScopesAdapter extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void flush(long j)` void flush( - int j, + core$_.int j, ) { - _flush(reference.pointer, _id_flush as jni$_.JMethodIDPtr, j).check(); + _flush(reference.pointer, _id_flush.pointer, j).check(); } - static final _id_clone = _class.instanceMethodId( + static final _id_clone = ScopesAdapter._class.instanceMethodId( r'clone', r'()Lio/sentry/IHub;', ); @@ -31320,11 +26111,10 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public io.sentry.IHub clone()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject clone() { - return _clone(reference.pointer, _id_clone as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _clone(reference.pointer, _id_clone.pointer).object(); } - static final _id_forkedScopes = _class.instanceMethodId( + static final _id_forkedScopes = ScopesAdapter._class.instanceMethodId( r'forkedScopes', r'(Ljava/lang/String;)Lio/sentry/IScopes;', ); @@ -31346,12 +26136,12 @@ class ScopesAdapter extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - return _forkedScopes(reference.pointer, - _id_forkedScopes as jni$_.JMethodIDPtr, _$string.pointer) - .object(const jni$_.JObjectType()); + return _forkedScopes( + reference.pointer, _id_forkedScopes.pointer, _$string.pointer) + .object(); } - static final _id_forkedCurrentScope = _class.instanceMethodId( + static final _id_forkedCurrentScope = ScopesAdapter._class.instanceMethodId( r'forkedCurrentScope', r'(Ljava/lang/String;)Lio/sentry/IScopes;', ); @@ -31373,12 +26163,12 @@ class ScopesAdapter extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - return _forkedCurrentScope(reference.pointer, - _id_forkedCurrentScope as jni$_.JMethodIDPtr, _$string.pointer) - .object(const jni$_.JObjectType()); + return _forkedCurrentScope( + reference.pointer, _id_forkedCurrentScope.pointer, _$string.pointer) + .object(); } - static final _id_forkedRootScopes = _class.instanceMethodId( + static final _id_forkedRootScopes = ScopesAdapter._class.instanceMethodId( r'forkedRootScopes', r'(Ljava/lang/String;)Lio/sentry/IScopes;', ); @@ -31400,12 +26190,12 @@ class ScopesAdapter extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - return _forkedRootScopes(reference.pointer, - _id_forkedRootScopes as jni$_.JMethodIDPtr, _$string.pointer) - .object(const jni$_.JObjectType()); + return _forkedRootScopes( + reference.pointer, _id_forkedRootScopes.pointer, _$string.pointer) + .object(); } - static final _id_makeCurrent = _class.instanceMethodId( + static final _id_makeCurrent = ScopesAdapter._class.instanceMethodId( r'makeCurrent', r'()Lio/sentry/ISentryLifecycleToken;', ); @@ -31425,17 +26215,16 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public io.sentry.ISentryLifecycleToken makeCurrent()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject makeCurrent() { - return _makeCurrent( - reference.pointer, _id_makeCurrent as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _makeCurrent(reference.pointer, _id_makeCurrent.pointer) + .object(); } - static final _id_getScope = _class.instanceMethodId( + static final _id_get$scope = ScopesAdapter._class.instanceMethodId( r'getScope', r'()Lio/sentry/IScope;', ); - static final _getScope = jni$_.ProtectedJniExtensions.lookup< + static final _get$scope = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31449,17 +26238,17 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public io.sentry.IScope getScope()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getScope() { - return _getScope(reference.pointer, _id_getScope as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get scope { + return _get$scope(reference.pointer, _id_get$scope.pointer) + .object(); } - static final _id_getIsolationScope = _class.instanceMethodId( + static final _id_get$isolationScope = ScopesAdapter._class.instanceMethodId( r'getIsolationScope', r'()Lio/sentry/IScope;', ); - static final _getIsolationScope = jni$_.ProtectedJniExtensions.lookup< + static final _get$isolationScope = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31473,18 +26262,18 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public io.sentry.IScope getIsolationScope()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getIsolationScope() { - return _getIsolationScope( - reference.pointer, _id_getIsolationScope as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get isolationScope { + return _get$isolationScope( + reference.pointer, _id_get$isolationScope.pointer) + .object(); } - static final _id_getGlobalScope = _class.instanceMethodId( + static final _id_get$globalScope = ScopesAdapter._class.instanceMethodId( r'getGlobalScope', r'()Lio/sentry/IScope;', ); - static final _getGlobalScope = jni$_.ProtectedJniExtensions.lookup< + static final _get$globalScope = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31498,18 +26287,17 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public io.sentry.IScope getGlobalScope()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getGlobalScope() { - return _getGlobalScope( - reference.pointer, _id_getGlobalScope as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get globalScope { + return _get$globalScope(reference.pointer, _id_get$globalScope.pointer) + .object(); } - static final _id_getParentScopes = _class.instanceMethodId( + static final _id_get$parentScopes = ScopesAdapter._class.instanceMethodId( r'getParentScopes', r'()Lio/sentry/IScopes;', ); - static final _getParentScopes = jni$_.ProtectedJniExtensions.lookup< + static final _get$parentScopes = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31523,13 +26311,12 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public io.sentry.IScopes getParentScopes()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getParentScopes() { - return _getParentScopes( - reference.pointer, _id_getParentScopes as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get parentScopes { + return _get$parentScopes(reference.pointer, _id_get$parentScopes.pointer) + .object(); } - static final _id_isAncestorOf = _class.instanceMethodId( + static final _id_isAncestorOf = ScopesAdapter._class.instanceMethodId( r'isAncestorOf', r'(Lio/sentry/IScopes;)Z', ); @@ -31546,16 +26333,16 @@ class ScopesAdapter extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public boolean isAncestorOf(io.sentry.IScopes iScopes)` - bool isAncestorOf( + core$_.bool isAncestorOf( jni$_.JObject? iScopes, ) { final _$iScopes = iScopes?.reference ?? jni$_.jNullReference; - return _isAncestorOf(reference.pointer, - _id_isAncestorOf as jni$_.JMethodIDPtr, _$iScopes.pointer) + return _isAncestorOf( + reference.pointer, _id_isAncestorOf.pointer, _$iScopes.pointer) .boolean; } - static final _id_captureTransaction = _class.instanceMethodId( + static final _id_captureTransaction = ScopesAdapter._class.instanceMethodId( r'captureTransaction', r'(Lio/sentry/protocol/SentryTransaction;Lio/sentry/TraceContext;Lio/sentry/Hint;Lio/sentry/ProfilingTraceData;)Lio/sentry/protocol/SentryId;', ); @@ -31596,15 +26383,15 @@ class ScopesAdapter extends jni$_.JObject { profilingTraceData?.reference ?? jni$_.jNullReference; return _captureTransaction( reference.pointer, - _id_captureTransaction as jni$_.JMethodIDPtr, + _id_captureTransaction.pointer, _$sentryTransaction.pointer, _$traceContext.pointer, _$hint.pointer, _$profilingTraceData.pointer) - .object(const $SentryId$Type()); + .object(); } - static final _id_captureProfileChunk = _class.instanceMethodId( + static final _id_captureProfileChunk = ScopesAdapter._class.instanceMethodId( r'captureProfileChunk', r'(Lio/sentry/ProfileChunk;)Lio/sentry/protocol/SentryId;', ); @@ -31626,14 +26413,12 @@ class ScopesAdapter extends jni$_.JObject { jni$_.JObject profileChunk, ) { final _$profileChunk = profileChunk.reference; - return _captureProfileChunk( - reference.pointer, - _id_captureProfileChunk as jni$_.JMethodIDPtr, - _$profileChunk.pointer) - .object(const $SentryId$Type()); + return _captureProfileChunk(reference.pointer, + _id_captureProfileChunk.pointer, _$profileChunk.pointer) + .object(); } - static final _id_startTransaction = _class.instanceMethodId( + static final _id_startTransaction = ScopesAdapter._class.instanceMethodId( r'startTransaction', r'(Lio/sentry/TransactionContext;Lio/sentry/TransactionOptions;)Lio/sentry/ITransaction;', ); @@ -31663,15 +26448,12 @@ class ScopesAdapter extends jni$_.JObject { ) { final _$transactionContext = transactionContext.reference; final _$transactionOptions = transactionOptions.reference; - return _startTransaction( - reference.pointer, - _id_startTransaction as jni$_.JMethodIDPtr, - _$transactionContext.pointer, - _$transactionOptions.pointer) - .object(const jni$_.JObjectType()); + return _startTransaction(reference.pointer, _id_startTransaction.pointer, + _$transactionContext.pointer, _$transactionOptions.pointer) + .object(); } - static final _id_startProfiler = _class.instanceMethodId( + static final _id_startProfiler = ScopesAdapter._class.instanceMethodId( r'startProfiler', r'()V', ); @@ -31690,11 +26472,10 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public void startProfiler()` void startProfiler() { - _startProfiler(reference.pointer, _id_startProfiler as jni$_.JMethodIDPtr) - .check(); + _startProfiler(reference.pointer, _id_startProfiler.pointer).check(); } - static final _id_stopProfiler = _class.instanceMethodId( + static final _id_stopProfiler = ScopesAdapter._class.instanceMethodId( r'stopProfiler', r'()V', ); @@ -31713,11 +26494,10 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public void stopProfiler()` void stopProfiler() { - _stopProfiler(reference.pointer, _id_stopProfiler as jni$_.JMethodIDPtr) - .check(); + _stopProfiler(reference.pointer, _id_stopProfiler.pointer).check(); } - static final _id_setSpanContext = _class.instanceMethodId( + static final _id_setSpanContext = ScopesAdapter._class.instanceMethodId( r'setSpanContext', r'(Ljava/lang/Throwable;Lio/sentry/ISpan;Ljava/lang/String;)V', ); @@ -31750,17 +26530,17 @@ class ScopesAdapter extends jni$_.JObject { final _$throwable = throwable.reference; final _$iSpan = iSpan.reference; final _$string = string.reference; - _setSpanContext(reference.pointer, _id_setSpanContext as jni$_.JMethodIDPtr, + _setSpanContext(reference.pointer, _id_setSpanContext.pointer, _$throwable.pointer, _$iSpan.pointer, _$string.pointer) .check(); } - static final _id_getSpan = _class.instanceMethodId( + static final _id_get$span = ScopesAdapter._class.instanceMethodId( r'getSpan', r'()Lio/sentry/ISpan;', ); - static final _getSpan = jni$_.ProtectedJniExtensions.lookup< + static final _get$span = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31774,17 +26554,17 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public io.sentry.ISpan getSpan()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getSpan() { - return _getSpan(reference.pointer, _id_getSpan as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get span { + return _get$span(reference.pointer, _id_get$span.pointer) + .object(); } - static final _id_setActiveSpan = _class.instanceMethodId( + static final _id_set$activeSpan = ScopesAdapter._class.instanceMethodId( r'setActiveSpan', r'(Lio/sentry/ISpan;)V', ); - static final _setActiveSpan = jni$_.ProtectedJniExtensions.lookup< + static final _set$activeSpan = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -31796,21 +26576,19 @@ class ScopesAdapter extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setActiveSpan(io.sentry.ISpan iSpan)` - void setActiveSpan( - jni$_.JObject? iSpan, - ) { + set activeSpan(jni$_.JObject? iSpan) { final _$iSpan = iSpan?.reference ?? jni$_.jNullReference; - _setActiveSpan(reference.pointer, _id_setActiveSpan as jni$_.JMethodIDPtr, - _$iSpan.pointer) + _set$activeSpan( + reference.pointer, _id_set$activeSpan.pointer, _$iSpan.pointer) .check(); } - static final _id_getTransaction = _class.instanceMethodId( + static final _id_get$transaction$1 = ScopesAdapter._class.instanceMethodId( r'getTransaction', r'()Lio/sentry/ITransaction;', ); - static final _getTransaction = jni$_.ProtectedJniExtensions.lookup< + static final _get$transaction$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31824,18 +26602,17 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public io.sentry.ITransaction getTransaction()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getTransaction() { - return _getTransaction( - reference.pointer, _id_getTransaction as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get transaction$1 { + return _get$transaction$1(reference.pointer, _id_get$transaction$1.pointer) + .object(); } - static final _id_getOptions = _class.instanceMethodId( + static final _id_get$options = ScopesAdapter._class.instanceMethodId( r'getOptions', r'()Lio/sentry/SentryOptions;', ); - static final _getOptions = jni$_.ProtectedJniExtensions.lookup< + static final _get$options = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31849,12 +26626,12 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public io.sentry.SentryOptions getOptions()` /// The returned object must be released after use, by calling the [release] method. - SentryOptions getOptions() { - return _getOptions(reference.pointer, _id_getOptions as jni$_.JMethodIDPtr) - .object(const $SentryOptions$Type()); + SentryOptions get options { + return _get$options(reference.pointer, _id_get$options.pointer) + .object(); } - static final _id_isCrashedLastRun = _class.instanceMethodId( + static final _id_isCrashedLastRun = ScopesAdapter._class.instanceMethodId( r'isCrashedLastRun', r'()Ljava/lang/Boolean;', ); @@ -31874,12 +26651,11 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public java.lang.Boolean isCrashedLastRun()` /// The returned object must be released after use, by calling the [release] method. jni$_.JBoolean? isCrashedLastRun() { - return _isCrashedLastRun( - reference.pointer, _id_isCrashedLastRun as jni$_.JMethodIDPtr) - .object(const jni$_.JBooleanNullableType()); + return _isCrashedLastRun(reference.pointer, _id_isCrashedLastRun.pointer) + .object(); } - static final _id_reportFullyDisplayed = _class.instanceMethodId( + static final _id_reportFullyDisplayed = ScopesAdapter._class.instanceMethodId( r'reportFullyDisplayed', r'()V', ); @@ -31898,12 +26674,11 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public void reportFullyDisplayed()` void reportFullyDisplayed() { - _reportFullyDisplayed( - reference.pointer, _id_reportFullyDisplayed as jni$_.JMethodIDPtr) + _reportFullyDisplayed(reference.pointer, _id_reportFullyDisplayed.pointer) .check(); } - static final _id_continueTrace = _class.instanceMethodId( + static final _id_continueTrace = ScopesAdapter._class.instanceMethodId( r'continueTrace', r'(Ljava/lang/String;Ljava/util/List;)Lio/sentry/TransactionContext;', ); @@ -31933,20 +26708,17 @@ class ScopesAdapter extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$list = list?.reference ?? jni$_.jNullReference; - return _continueTrace( - reference.pointer, - _id_continueTrace as jni$_.JMethodIDPtr, - _$string.pointer, - _$list.pointer) - .object(const jni$_.JObjectNullableType()); + return _continueTrace(reference.pointer, _id_continueTrace.pointer, + _$string.pointer, _$list.pointer) + .object(); } - static final _id_getTraceparent = _class.instanceMethodId( + static final _id_get$traceparent = ScopesAdapter._class.instanceMethodId( r'getTraceparent', r'()Lio/sentry/SentryTraceHeader;', ); - static final _getTraceparent = jni$_.ProtectedJniExtensions.lookup< + static final _get$traceparent = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31960,18 +26732,17 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public io.sentry.SentryTraceHeader getTraceparent()` /// The returned object must be released after use, by calling the [release] method. - SentryTraceHeader? getTraceparent() { - return _getTraceparent( - reference.pointer, _id_getTraceparent as jni$_.JMethodIDPtr) - .object(const $SentryTraceHeader$NullableType()); + SentryTraceHeader? get traceparent { + return _get$traceparent(reference.pointer, _id_get$traceparent.pointer) + .object(); } - static final _id_getBaggage = _class.instanceMethodId( + static final _id_get$baggage = ScopesAdapter._class.instanceMethodId( r'getBaggage', r'()Lio/sentry/BaggageHeader;', ); - static final _getBaggage = jni$_.ProtectedJniExtensions.lookup< + static final _get$baggage = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31985,12 +26756,12 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public io.sentry.BaggageHeader getBaggage()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getBaggage() { - return _getBaggage(reference.pointer, _id_getBaggage as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get baggage { + return _get$baggage(reference.pointer, _id_get$baggage.pointer) + .object(); } - static final _id_captureCheckIn = _class.instanceMethodId( + static final _id_captureCheckIn = ScopesAdapter._class.instanceMethodId( r'captureCheckIn', r'(Lio/sentry/CheckIn;)Lio/sentry/protocol/SentryId;', ); @@ -32012,17 +26783,17 @@ class ScopesAdapter extends jni$_.JObject { jni$_.JObject checkIn, ) { final _$checkIn = checkIn.reference; - return _captureCheckIn(reference.pointer, - _id_captureCheckIn as jni$_.JMethodIDPtr, _$checkIn.pointer) - .object(const $SentryId$Type()); + return _captureCheckIn( + reference.pointer, _id_captureCheckIn.pointer, _$checkIn.pointer) + .object(); } - static final _id_getRateLimiter = _class.instanceMethodId( + static final _id_get$rateLimiter = ScopesAdapter._class.instanceMethodId( r'getRateLimiter', r'()Lio/sentry/transport/RateLimiter;', ); - static final _getRateLimiter = jni$_.ProtectedJniExtensions.lookup< + static final _get$rateLimiter = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -32036,13 +26807,12 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public io.sentry.transport.RateLimiter getRateLimiter()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getRateLimiter() { - return _getRateLimiter( - reference.pointer, _id_getRateLimiter as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get rateLimiter { + return _get$rateLimiter(reference.pointer, _id_get$rateLimiter.pointer) + .object(); } - static final _id_captureReplay = _class.instanceMethodId( + static final _id_captureReplay = ScopesAdapter._class.instanceMethodId( r'captureReplay', r'(Lio/sentry/SentryReplayEvent;Lio/sentry/Hint;)Lio/sentry/protocol/SentryId;', ); @@ -32072,15 +26842,12 @@ class ScopesAdapter extends jni$_.JObject { ) { final _$sentryReplayEvent = sentryReplayEvent.reference; final _$hint = hint?.reference ?? jni$_.jNullReference; - return _captureReplay( - reference.pointer, - _id_captureReplay as jni$_.JMethodIDPtr, - _$sentryReplayEvent.pointer, - _$hint.pointer) - .object(const $SentryId$Type()); + return _captureReplay(reference.pointer, _id_captureReplay.pointer, + _$sentryReplayEvent.pointer, _$hint.pointer) + .object(); } - static final _id_logger = _class.instanceMethodId( + static final _id_logger = ScopesAdapter._class.instanceMethodId( r'logger', r'()Lio/sentry/logger/ILoggerApi;', ); @@ -32100,11 +26867,11 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public io.sentry.logger.ILoggerApi logger()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject logger() { - return _logger(reference.pointer, _id_logger as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _logger(reference.pointer, _id_logger.pointer) + .object(); } - static final _id_metrics = _class.instanceMethodId( + static final _id_metrics = ScopesAdapter._class.instanceMethodId( r'metrics', r'()Lio/sentry/metrics/IMetricsApi;', ); @@ -32124,11 +26891,11 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public io.sentry.metrics.IMetricsApi metrics()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject metrics() { - return _metrics(reference.pointer, _id_metrics as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _metrics(reference.pointer, _id_metrics.pointer) + .object(); } - static final _id_setAttribute = _class.instanceMethodId( + static final _id_setAttribute = ScopesAdapter._class.instanceMethodId( r'setAttribute', r'(Ljava/lang/String;Ljava/lang/Object;)V', ); @@ -32157,17 +26924,17 @@ class ScopesAdapter extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$object = object?.reference ?? jni$_.jNullReference; - _setAttribute(reference.pointer, _id_setAttribute as jni$_.JMethodIDPtr, - _$string.pointer, _$object.pointer) + _setAttribute(reference.pointer, _id_setAttribute.pointer, _$string.pointer, + _$object.pointer) .check(); } - static final _id_setAttribute$1 = _class.instanceMethodId( + static final _id_set$attribute = ScopesAdapter._class.instanceMethodId( r'setAttribute', r'(Lio/sentry/SentryAttribute;)V', ); - static final _setAttribute$1 = jni$_.ProtectedJniExtensions.lookup< + static final _set$attribute = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -32179,22 +26946,20 @@ class ScopesAdapter extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setAttribute(io.sentry.SentryAttribute sentryAttribute)` - void setAttribute$1( - jni$_.JObject? sentryAttribute, - ) { + set attribute(jni$_.JObject? sentryAttribute) { final _$sentryAttribute = sentryAttribute?.reference ?? jni$_.jNullReference; - _setAttribute$1(reference.pointer, _id_setAttribute$1 as jni$_.JMethodIDPtr, + _set$attribute(reference.pointer, _id_set$attribute.pointer, _$sentryAttribute.pointer) .check(); } - static final _id_setAttributes = _class.instanceMethodId( + static final _id_set$attributes = ScopesAdapter._class.instanceMethodId( r'setAttributes', r'(Lio/sentry/SentryAttributes;)V', ); - static final _setAttributes = jni$_.ProtectedJniExtensions.lookup< + static final _set$attributes = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -32206,17 +26971,15 @@ class ScopesAdapter extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setAttributes(io.sentry.SentryAttributes sentryAttributes)` - void setAttributes( - jni$_.JObject? sentryAttributes, - ) { + set attributes(jni$_.JObject? sentryAttributes) { final _$sentryAttributes = sentryAttributes?.reference ?? jni$_.jNullReference; - _setAttributes(reference.pointer, _id_setAttributes as jni$_.JMethodIDPtr, + _set$attributes(reference.pointer, _id_set$attributes.pointer, _$sentryAttributes.pointer) .check(); } - static final _id_removeAttribute = _class.instanceMethodId( + static final _id_removeAttribute = ScopesAdapter._class.instanceMethodId( r'removeAttribute', r'(Ljava/lang/String;)V', ); @@ -32237,12 +27000,12 @@ class ScopesAdapter extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - _removeAttribute(reference.pointer, - _id_removeAttribute as jni$_.JMethodIDPtr, _$string.pointer) + _removeAttribute( + reference.pointer, _id_removeAttribute.pointer, _$string.pointer) .check(); } - static final _id_addFeatureFlag = _class.instanceMethodId( + static final _id_addFeatureFlag = ScopesAdapter._class.instanceMethodId( r'addFeatureFlag', r'(Ljava/lang/String;Ljava/lang/Boolean;)V', ); @@ -32271,134 +27034,36 @@ class ScopesAdapter extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$boolean = boolean?.reference ?? jni$_.jNullReference; - _addFeatureFlag(reference.pointer, _id_addFeatureFlag as jni$_.JMethodIDPtr, + _addFeatureFlag(reference.pointer, _id_addFeatureFlag.pointer, _$string.pointer, _$boolean.pointer) .check(); } } -final class $ScopesAdapter$NullableType extends jni$_.JObjType { +final class $ScopesAdapter$Type$ extends jni$_.JType { @jni$_.internal - const $ScopesAdapter$NullableType(); + const $ScopesAdapter$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/ScopesAdapter;'; - - @jni$_.internal - @core$_.override - ScopesAdapter? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : ScopesAdapter.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ScopesAdapter$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ScopesAdapter$NullableType) && - other is $ScopesAdapter$NullableType; - } -} - -final class $ScopesAdapter$Type extends jni$_.JObjType { - @jni$_.internal - const $ScopesAdapter$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/ScopesAdapter;'; - - @jni$_.internal - @core$_.override - ScopesAdapter fromReference(jni$_.JReference reference) => - ScopesAdapter.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $ScopesAdapter$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ScopesAdapter$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ScopesAdapter$Type) && - other is $ScopesAdapter$Type; - } } /// from: `io.sentry.Scope$IWithPropagationContext` -class Scope$IWithPropagationContext extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Scope$IWithPropagationContext.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Scope$IWithPropagationContext._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/Scope$IWithPropagationContext'); /// The type which includes information such as the signature of this class. - static const nullableType = $Scope$IWithPropagationContext$NullableType(); - static const type = $Scope$IWithPropagationContext$Type(); - static final _id_accept = _class.instanceMethodId( - r'accept', - r'(Lio/sentry/PropagationContext;)V', - ); - - static final _accept = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public abstract void accept(io.sentry.PropagationContext propagationContext)` - void accept( - jni$_.JObject propagationContext, - ) { - final _$propagationContext = propagationContext.reference; - _accept(reference.pointer, _id_accept as jni$_.JMethodIDPtr, - _$propagationContext.pointer) - .check(); - } + static const jni$_.JType type = + $Scope$IWithPropagationContext$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map _$impls = + {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -32419,7 +27084,7 @@ class Scope$IWithPropagationContext extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -32427,7 +27092,7 @@ class Scope$IWithPropagationContext extends jni$_.JObject { final $a = $i.args; if ($d == r'accept(Lio/sentry/PropagationContext;)V') { _$impls[$p]!.accept( - $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), + ($a![0] as jni$_.JObject), ); return jni$_.nullptr; } @@ -32469,20 +27134,47 @@ class Scope$IWithPropagationContext extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return Scope$IWithPropagationContext.fromReference( - $i.implementReference(), - ); + return $i.implement(); + } +} + +extension Scope$IWithPropagationContext$$Methods + on Scope$IWithPropagationContext { + static final _id_accept = + Scope$IWithPropagationContext._class.instanceMethodId( + r'accept', + r'(Lio/sentry/PropagationContext;)V', + ); + + static final _accept = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public abstract void accept(io.sentry.PropagationContext propagationContext)` + void accept( + jni$_.JObject propagationContext, + ) { + final _$propagationContext = propagationContext.reference; + _accept(reference.pointer, _id_accept.pointer, _$propagationContext.pointer) + .check(); } } abstract base mixin class $Scope$IWithPropagationContext { factory $Scope$IWithPropagationContext({ required void Function(jni$_.JObject propagationContext) accept, - bool accept$async, + core$_.bool accept$async, }) = _$Scope$IWithPropagationContext; void accept(jni$_.JObject propagationContext); - bool get accept$async => false; + core$_.bool get accept$async => false; } final class _$Scope$IWithPropagationContext @@ -32493,138 +27185,37 @@ final class _$Scope$IWithPropagationContext }) : _accept = accept; final void Function(jni$_.JObject propagationContext) _accept; - final bool accept$async; + final core$_.bool accept$async; void accept(jni$_.JObject propagationContext) { return _accept(propagationContext); } } -final class $Scope$IWithPropagationContext$NullableType - extends jni$_.JObjType { +final class $Scope$IWithPropagationContext$Type$ + extends jni$_.JType { @jni$_.internal - const $Scope$IWithPropagationContext$NullableType(); + const $Scope$IWithPropagationContext$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/Scope$IWithPropagationContext;'; - - @jni$_.internal - @core$_.override - Scope$IWithPropagationContext? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : Scope$IWithPropagationContext.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Scope$IWithPropagationContext$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Scope$IWithPropagationContext$NullableType) && - other is $Scope$IWithPropagationContext$NullableType; - } -} - -final class $Scope$IWithPropagationContext$Type - extends jni$_.JObjType { - @jni$_.internal - const $Scope$IWithPropagationContext$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/Scope$IWithPropagationContext;'; - - @jni$_.internal - @core$_.override - Scope$IWithPropagationContext fromReference(jni$_.JReference reference) => - Scope$IWithPropagationContext.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $Scope$IWithPropagationContext$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Scope$IWithPropagationContext$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Scope$IWithPropagationContext$Type) && - other is $Scope$IWithPropagationContext$Type; - } } /// from: `io.sentry.Scope$IWithTransaction` -class Scope$IWithTransaction extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Scope$IWithTransaction.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Scope$IWithTransaction._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/Scope$IWithTransaction'); /// The type which includes information such as the signature of this class. - static const nullableType = $Scope$IWithTransaction$NullableType(); - static const type = $Scope$IWithTransaction$Type(); - static final _id_accept = _class.instanceMethodId( - r'accept', - r'(Lio/sentry/ITransaction;)V', - ); - - static final _accept = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public abstract void accept(io.sentry.ITransaction iTransaction)` - void accept( - jni$_.JObject? iTransaction, - ) { - final _$iTransaction = iTransaction?.reference ?? jni$_.jNullReference; - _accept(reference.pointer, _id_accept as jni$_.JMethodIDPtr, - _$iTransaction.pointer) - .check(); - } + static const jni$_.JType type = + $Scope$IWithTransaction$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -32645,7 +27236,7 @@ class Scope$IWithTransaction extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -32653,7 +27244,7 @@ class Scope$IWithTransaction extends jni$_.JObject { final $a = $i.args; if ($d == r'accept(Lio/sentry/ITransaction;)V') { _$impls[$p]!.accept( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + ($a![0] as jni$_.JObject?), ); return jni$_.nullptr; } @@ -32695,20 +27286,45 @@ class Scope$IWithTransaction extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return Scope$IWithTransaction.fromReference( - $i.implementReference(), - ); + return $i.implement(); + } +} + +extension Scope$IWithTransaction$$Methods on Scope$IWithTransaction { + static final _id_accept = Scope$IWithTransaction._class.instanceMethodId( + r'accept', + r'(Lio/sentry/ITransaction;)V', + ); + + static final _accept = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public abstract void accept(io.sentry.ITransaction iTransaction)` + void accept( + jni$_.JObject? iTransaction, + ) { + final _$iTransaction = iTransaction?.reference ?? jni$_.jNullReference; + _accept(reference.pointer, _id_accept.pointer, _$iTransaction.pointer) + .check(); } } abstract base mixin class $Scope$IWithTransaction { factory $Scope$IWithTransaction({ required void Function(jni$_.JObject? iTransaction) accept, - bool accept$async, + core$_.bool accept$async, }) = _$Scope$IWithTransaction; void accept(jni$_.JObject? iTransaction); - bool get accept$async => false; + core$_.bool get accept$async => false; } final class _$Scope$IWithTransaction with $Scope$IWithTransaction { @@ -32718,107 +27334,29 @@ final class _$Scope$IWithTransaction with $Scope$IWithTransaction { }) : _accept = accept; final void Function(jni$_.JObject? iTransaction) _accept; - final bool accept$async; + final core$_.bool accept$async; void accept(jni$_.JObject? iTransaction) { return _accept(iTransaction); } } -final class $Scope$IWithTransaction$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $Scope$IWithTransaction$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/Scope$IWithTransaction;'; - - @jni$_.internal - @core$_.override - Scope$IWithTransaction? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : Scope$IWithTransaction.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Scope$IWithTransaction$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Scope$IWithTransaction$NullableType) && - other is $Scope$IWithTransaction$NullableType; - } -} - -final class $Scope$IWithTransaction$Type - extends jni$_.JObjType { +final class $Scope$IWithTransaction$Type$ + extends jni$_.JType { @jni$_.internal - const $Scope$IWithTransaction$Type(); + const $Scope$IWithTransaction$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/Scope$IWithTransaction;'; - - @jni$_.internal - @core$_.override - Scope$IWithTransaction fromReference(jni$_.JReference reference) => - Scope$IWithTransaction.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $Scope$IWithTransaction$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Scope$IWithTransaction$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Scope$IWithTransaction$Type) && - other is $Scope$IWithTransaction$Type; - } } /// from: `io.sentry.Scope` -class Scope extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Scope.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Scope._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/Scope'); /// The type which includes information such as the signature of this class. - static const nullableType = $Scope$NullableType(); - static const type = $Scope$Type(); + static const jni$_.JType type = $Scope$Type$(); static final _id_new$ = _class.constructorId( r'(Lio/sentry/SentryOptions;)V', ); @@ -32840,17 +27378,19 @@ class Scope extends jni$_.JObject { SentryOptions sentryOptions, ) { final _$sentryOptions = sentryOptions.reference; - return Scope.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$sentryOptions.pointer) - .reference); + return _new$( + _class.reference.pointer, _id_new$.pointer, _$sentryOptions.pointer) + .object(); } +} - static final _id_getLevel = _class.instanceMethodId( +extension Scope$$Methods on Scope { + static final _id_get$level = Scope._class.instanceMethodId( r'getLevel', r'()Lio/sentry/SentryLevel;', ); - static final _getLevel = jni$_.ProtectedJniExtensions.lookup< + static final _get$level = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -32864,17 +27404,17 @@ class Scope extends jni$_.JObject { /// from: `public io.sentry.SentryLevel getLevel()` /// The returned object must be released after use, by calling the [release] method. - SentryLevel? getLevel() { - return _getLevel(reference.pointer, _id_getLevel as jni$_.JMethodIDPtr) - .object(const $SentryLevel$NullableType()); + SentryLevel? get level { + return _get$level(reference.pointer, _id_get$level.pointer) + .object(); } - static final _id_setLevel = _class.instanceMethodId( + static final _id_set$level = Scope._class.instanceMethodId( r'setLevel', r'(Lio/sentry/SentryLevel;)V', ); - static final _setLevel = jni$_.ProtectedJniExtensions.lookup< + static final _set$level = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -32886,21 +27426,18 @@ class Scope extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setLevel(io.sentry.SentryLevel sentryLevel)` - void setLevel( - SentryLevel? sentryLevel, - ) { + set level(SentryLevel? sentryLevel) { final _$sentryLevel = sentryLevel?.reference ?? jni$_.jNullReference; - _setLevel(reference.pointer, _id_setLevel as jni$_.JMethodIDPtr, - _$sentryLevel.pointer) + _set$level(reference.pointer, _id_set$level.pointer, _$sentryLevel.pointer) .check(); } - static final _id_getTransactionName = _class.instanceMethodId( + static final _id_get$transactionName = Scope._class.instanceMethodId( r'getTransactionName', r'()Ljava/lang/String;', ); - static final _getTransactionName = jni$_.ProtectedJniExtensions.lookup< + static final _get$transactionName = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -32914,18 +27451,18 @@ class Scope extends jni$_.JObject { /// from: `public java.lang.String getTransactionName()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getTransactionName() { - return _getTransactionName( - reference.pointer, _id_getTransactionName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get transactionName { + return _get$transactionName( + reference.pointer, _id_get$transactionName.pointer) + .object(); } - static final _id_setTransaction = _class.instanceMethodId( + static final _id_set$transaction = Scope._class.instanceMethodId( r'setTransaction', r'(Ljava/lang/String;)V', ); - static final _setTransaction = jni$_.ProtectedJniExtensions.lookup< + static final _set$transaction = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -32937,21 +27474,19 @@ class Scope extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setTransaction(java.lang.String string)` - void setTransaction( - jni$_.JString string, - ) { + set transaction(jni$_.JString string) { final _$string = string.reference; - _setTransaction(reference.pointer, _id_setTransaction as jni$_.JMethodIDPtr, - _$string.pointer) + _set$transaction( + reference.pointer, _id_set$transaction.pointer, _$string.pointer) .check(); } - static final _id_getSpan = _class.instanceMethodId( + static final _id_get$span = Scope._class.instanceMethodId( r'getSpan', r'()Lio/sentry/ISpan;', ); - static final _getSpan = jni$_.ProtectedJniExtensions.lookup< + static final _get$span = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -32965,17 +27500,17 @@ class Scope extends jni$_.JObject { /// from: `public io.sentry.ISpan getSpan()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getSpan() { - return _getSpan(reference.pointer, _id_getSpan as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get span { + return _get$span(reference.pointer, _id_get$span.pointer) + .object(); } - static final _id_setActiveSpan = _class.instanceMethodId( + static final _id_set$activeSpan = Scope._class.instanceMethodId( r'setActiveSpan', r'(Lio/sentry/ISpan;)V', ); - static final _setActiveSpan = jni$_.ProtectedJniExtensions.lookup< + static final _set$activeSpan = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -32987,21 +27522,19 @@ class Scope extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setActiveSpan(io.sentry.ISpan iSpan)` - void setActiveSpan( - jni$_.JObject? iSpan, - ) { + set activeSpan(jni$_.JObject? iSpan) { final _$iSpan = iSpan?.reference ?? jni$_.jNullReference; - _setActiveSpan(reference.pointer, _id_setActiveSpan as jni$_.JMethodIDPtr, - _$iSpan.pointer) + _set$activeSpan( + reference.pointer, _id_set$activeSpan.pointer, _$iSpan.pointer) .check(); } - static final _id_setTransaction$1 = _class.instanceMethodId( + static final _id_set$transaction$1 = Scope._class.instanceMethodId( r'setTransaction', r'(Lio/sentry/ITransaction;)V', ); - static final _setTransaction$1 = jni$_.ProtectedJniExtensions.lookup< + static final _set$transaction$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -33013,21 +27546,19 @@ class Scope extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setTransaction(io.sentry.ITransaction iTransaction)` - void setTransaction$1( - jni$_.JObject? iTransaction, - ) { + set transaction$1(jni$_.JObject? iTransaction) { final _$iTransaction = iTransaction?.reference ?? jni$_.jNullReference; - _setTransaction$1(reference.pointer, - _id_setTransaction$1 as jni$_.JMethodIDPtr, _$iTransaction.pointer) + _set$transaction$1(reference.pointer, _id_set$transaction$1.pointer, + _$iTransaction.pointer) .check(); } - static final _id_getUser = _class.instanceMethodId( + static final _id_get$user = Scope._class.instanceMethodId( r'getUser', r'()Lio/sentry/protocol/User;', ); - static final _getUser = jni$_.ProtectedJniExtensions.lookup< + static final _get$user = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -33041,17 +27572,16 @@ class Scope extends jni$_.JObject { /// from: `public io.sentry.protocol.User getUser()` /// The returned object must be released after use, by calling the [release] method. - User? getUser() { - return _getUser(reference.pointer, _id_getUser as jni$_.JMethodIDPtr) - .object(const $User$NullableType()); + User? get user { + return _get$user(reference.pointer, _id_get$user.pointer).object(); } - static final _id_setUser = _class.instanceMethodId( + static final _id_set$user = Scope._class.instanceMethodId( r'setUser', r'(Lio/sentry/protocol/User;)V', ); - static final _setUser = jni$_.ProtectedJniExtensions.lookup< + static final _set$user = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -33063,21 +27593,17 @@ class Scope extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setUser(io.sentry.protocol.User user)` - void setUser( - User? user, - ) { + set user(User? user) { final _$user = user?.reference ?? jni$_.jNullReference; - _setUser(reference.pointer, _id_setUser as jni$_.JMethodIDPtr, - _$user.pointer) - .check(); + _set$user(reference.pointer, _id_set$user.pointer, _$user.pointer).check(); } - static final _id_getScreen = _class.instanceMethodId( + static final _id_get$screen = Scope._class.instanceMethodId( r'getScreen', r'()Ljava/lang/String;', ); - static final _getScreen = jni$_.ProtectedJniExtensions.lookup< + static final _get$screen = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -33091,17 +27617,17 @@ class Scope extends jni$_.JObject { /// from: `public java.lang.String getScreen()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getScreen() { - return _getScreen(reference.pointer, _id_getScreen as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get screen { + return _get$screen(reference.pointer, _id_get$screen.pointer) + .object(); } - static final _id_setScreen = _class.instanceMethodId( + static final _id_set$screen = Scope._class.instanceMethodId( r'setScreen', r'(Ljava/lang/String;)V', ); - static final _setScreen = jni$_.ProtectedJniExtensions.lookup< + static final _set$screen = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -33113,21 +27639,18 @@ class Scope extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setScreen(java.lang.String string)` - void setScreen( - jni$_.JString? string, - ) { + set screen(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setScreen(reference.pointer, _id_setScreen as jni$_.JMethodIDPtr, - _$string.pointer) + _set$screen(reference.pointer, _id_set$screen.pointer, _$string.pointer) .check(); } - static final _id_getReplayId = _class.instanceMethodId( + static final _id_get$replayId = Scope._class.instanceMethodId( r'getReplayId', r'()Lio/sentry/protocol/SentryId;', ); - static final _getReplayId = jni$_.ProtectedJniExtensions.lookup< + static final _get$replayId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -33141,18 +27664,17 @@ class Scope extends jni$_.JObject { /// from: `public io.sentry.protocol.SentryId getReplayId()` /// The returned object must be released after use, by calling the [release] method. - SentryId getReplayId() { - return _getReplayId( - reference.pointer, _id_getReplayId as jni$_.JMethodIDPtr) - .object(const $SentryId$Type()); + SentryId get replayId { + return _get$replayId(reference.pointer, _id_get$replayId.pointer) + .object(); } - static final _id_setReplayId = _class.instanceMethodId( + static final _id_set$replayId = Scope._class.instanceMethodId( r'setReplayId', r'(Lio/sentry/protocol/SentryId;)V', ); - static final _setReplayId = jni$_.ProtectedJniExtensions.lookup< + static final _set$replayId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -33164,21 +27686,19 @@ class Scope extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setReplayId(io.sentry.protocol.SentryId sentryId)` - void setReplayId( - SentryId sentryId, - ) { + set replayId(SentryId sentryId) { final _$sentryId = sentryId.reference; - _setReplayId(reference.pointer, _id_setReplayId as jni$_.JMethodIDPtr, - _$sentryId.pointer) + _set$replayId( + reference.pointer, _id_set$replayId.pointer, _$sentryId.pointer) .check(); } - static final _id_getRequest = _class.instanceMethodId( + static final _id_get$request = Scope._class.instanceMethodId( r'getRequest', r'()Lio/sentry/protocol/Request;', ); - static final _getRequest = jni$_.ProtectedJniExtensions.lookup< + static final _get$request = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -33192,17 +27712,17 @@ class Scope extends jni$_.JObject { /// from: `public io.sentry.protocol.Request getRequest()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getRequest() { - return _getRequest(reference.pointer, _id_getRequest as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get request { + return _get$request(reference.pointer, _id_get$request.pointer) + .object(); } - static final _id_setRequest = _class.instanceMethodId( + static final _id_set$request = Scope._class.instanceMethodId( r'setRequest', r'(Lio/sentry/protocol/Request;)V', ); - static final _setRequest = jni$_.ProtectedJniExtensions.lookup< + static final _set$request = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -33214,21 +27734,18 @@ class Scope extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setRequest(io.sentry.protocol.Request request)` - void setRequest( - jni$_.JObject? request, - ) { + set request(jni$_.JObject? request) { final _$request = request?.reference ?? jni$_.jNullReference; - _setRequest(reference.pointer, _id_setRequest as jni$_.JMethodIDPtr, - _$request.pointer) + _set$request(reference.pointer, _id_set$request.pointer, _$request.pointer) .check(); } - static final _id_getFingerprint = _class.instanceMethodId( + static final _id_get$fingerprint = Scope._class.instanceMethodId( r'getFingerprint', r'()Ljava/util/List;', ); - static final _getFingerprint = jni$_.ProtectedJniExtensions.lookup< + static final _get$fingerprint = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -33242,19 +27759,17 @@ class Scope extends jni$_.JObject { /// from: `public java.util.List getFingerprint()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList getFingerprint() { - return _getFingerprint( - reference.pointer, _id_getFingerprint as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JStringNullableType())); + jni$_.JList get fingerprint { + return _get$fingerprint(reference.pointer, _id_get$fingerprint.pointer) + .object>(); } - static final _id_setFingerprint = _class.instanceMethodId( + static final _id_set$fingerprint = Scope._class.instanceMethodId( r'setFingerprint', r'(Ljava/util/List;)V', ); - static final _setFingerprint = jni$_.ProtectedJniExtensions.lookup< + static final _set$fingerprint = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -33266,21 +27781,19 @@ class Scope extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setFingerprint(java.util.List list)` - void setFingerprint( - jni$_.JList list, - ) { + set fingerprint(jni$_.JList list) { final _$list = list.reference; - _setFingerprint(reference.pointer, _id_setFingerprint as jni$_.JMethodIDPtr, - _$list.pointer) + _set$fingerprint( + reference.pointer, _id_set$fingerprint.pointer, _$list.pointer) .check(); } - static final _id_getBreadcrumbs = _class.instanceMethodId( + static final _id_get$breadcrumbs = Scope._class.instanceMethodId( r'getBreadcrumbs', r'()Ljava/util/Queue;', ); - static final _getBreadcrumbs = jni$_.ProtectedJniExtensions.lookup< + static final _get$breadcrumbs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -33294,13 +27807,12 @@ class Scope extends jni$_.JObject { /// from: `public java.util.Queue getBreadcrumbs()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getBreadcrumbs() { - return _getBreadcrumbs( - reference.pointer, _id_getBreadcrumbs as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get breadcrumbs { + return _get$breadcrumbs(reference.pointer, _id_get$breadcrumbs.pointer) + .object(); } - static final _id_addBreadcrumb = _class.instanceMethodId( + static final _id_addBreadcrumb = Scope._class.instanceMethodId( r'addBreadcrumb', r'(Lio/sentry/Breadcrumb;Lio/sentry/Hint;)V', ); @@ -33329,12 +27841,12 @@ class Scope extends jni$_.JObject { ) { final _$breadcrumb = breadcrumb.reference; final _$hint = hint?.reference ?? jni$_.jNullReference; - _addBreadcrumb(reference.pointer, _id_addBreadcrumb as jni$_.JMethodIDPtr, + _addBreadcrumb(reference.pointer, _id_addBreadcrumb.pointer, _$breadcrumb.pointer, _$hint.pointer) .check(); } - static final _id_addBreadcrumb$1 = _class.instanceMethodId( + static final _id_addBreadcrumb$1 = Scope._class.instanceMethodId( r'addBreadcrumb', r'(Lio/sentry/Breadcrumb;)V', ); @@ -33355,12 +27867,12 @@ class Scope extends jni$_.JObject { Breadcrumb breadcrumb, ) { final _$breadcrumb = breadcrumb.reference; - _addBreadcrumb$1(reference.pointer, - _id_addBreadcrumb$1 as jni$_.JMethodIDPtr, _$breadcrumb.pointer) + _addBreadcrumb$1(reference.pointer, _id_addBreadcrumb$1.pointer, + _$breadcrumb.pointer) .check(); } - static final _id_clearBreadcrumbs = _class.instanceMethodId( + static final _id_clearBreadcrumbs = Scope._class.instanceMethodId( r'clearBreadcrumbs', r'()V', ); @@ -33379,12 +27891,10 @@ class Scope extends jni$_.JObject { /// from: `public void clearBreadcrumbs()` void clearBreadcrumbs() { - _clearBreadcrumbs( - reference.pointer, _id_clearBreadcrumbs as jni$_.JMethodIDPtr) - .check(); + _clearBreadcrumbs(reference.pointer, _id_clearBreadcrumbs.pointer).check(); } - static final _id_clearTransaction = _class.instanceMethodId( + static final _id_clearTransaction = Scope._class.instanceMethodId( r'clearTransaction', r'()V', ); @@ -33403,17 +27913,15 @@ class Scope extends jni$_.JObject { /// from: `public void clearTransaction()` void clearTransaction() { - _clearTransaction( - reference.pointer, _id_clearTransaction as jni$_.JMethodIDPtr) - .check(); + _clearTransaction(reference.pointer, _id_clearTransaction.pointer).check(); } - static final _id_getTransaction = _class.instanceMethodId( + static final _id_get$transaction$1 = Scope._class.instanceMethodId( r'getTransaction', r'()Lio/sentry/ITransaction;', ); - static final _getTransaction = jni$_.ProtectedJniExtensions.lookup< + static final _get$transaction$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -33427,13 +27935,12 @@ class Scope extends jni$_.JObject { /// from: `public io.sentry.ITransaction getTransaction()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getTransaction() { - return _getTransaction( - reference.pointer, _id_getTransaction as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get transaction$1 { + return _get$transaction$1(reference.pointer, _id_get$transaction$1.pointer) + .object(); } - static final _id_clear = _class.instanceMethodId( + static final _id_clear = Scope._class.instanceMethodId( r'clear', r'()V', ); @@ -33452,15 +27959,15 @@ class Scope extends jni$_.JObject { /// from: `public void clear()` void clear() { - _clear(reference.pointer, _id_clear as jni$_.JMethodIDPtr).check(); + _clear(reference.pointer, _id_clear.pointer).check(); } - static final _id_getTags = _class.instanceMethodId( + static final _id_get$tags = Scope._class.instanceMethodId( r'getTags', r'()Ljava/util/Map;', ); - static final _getTags = jni$_.ProtectedJniExtensions.lookup< + static final _get$tags = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -33474,14 +27981,12 @@ class Scope extends jni$_.JObject { /// from: `public java.util.Map getTags()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JMap getTags() { - return _getTags(reference.pointer, _id_getTags as jni$_.JMethodIDPtr) - .object>( - const jni$_.JMapType( - jni$_.JStringNullableType(), jni$_.JStringNullableType())); + jni$_.JMap get tags { + return _get$tags(reference.pointer, _id_get$tags.pointer) + .object>(); } - static final _id_setTag = _class.instanceMethodId( + static final _id_setTag = Scope._class.instanceMethodId( r'setTag', r'(Ljava/lang/String;Ljava/lang/String;)V', ); @@ -33510,12 +28015,12 @@ class Scope extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _setTag(reference.pointer, _id_setTag as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) + _setTag(reference.pointer, _id_setTag.pointer, _$string.pointer, + _$string1.pointer) .check(); } - static final _id_removeTag = _class.instanceMethodId( + static final _id_removeTag = Scope._class.instanceMethodId( r'removeTag', r'(Ljava/lang/String;)V', ); @@ -33536,17 +28041,16 @@ class Scope extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - _removeTag(reference.pointer, _id_removeTag as jni$_.JMethodIDPtr, - _$string.pointer) + _removeTag(reference.pointer, _id_removeTag.pointer, _$string.pointer) .check(); } - static final _id_getAttributes = _class.instanceMethodId( + static final _id_get$attributes = Scope._class.instanceMethodId( r'getAttributes', r'()Ljava/util/Map;', ); - static final _getAttributes = jni$_.ProtectedJniExtensions.lookup< + static final _get$attributes = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -33560,15 +28064,12 @@ class Scope extends jni$_.JObject { /// from: `public java.util.Map getAttributes()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JMap getAttributes() { - return _getAttributes( - reference.pointer, _id_getAttributes as jni$_.JMethodIDPtr) - .object>( - const jni$_.JMapType( - jni$_.JStringNullableType(), jni$_.JObjectNullableType())); + jni$_.JMap get attributes { + return _get$attributes(reference.pointer, _id_get$attributes.pointer) + .object>(); } - static final _id_setAttribute = _class.instanceMethodId( + static final _id_setAttribute = Scope._class.instanceMethodId( r'setAttribute', r'(Ljava/lang/String;Ljava/lang/Object;)V', ); @@ -33597,17 +28098,17 @@ class Scope extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$object = object?.reference ?? jni$_.jNullReference; - _setAttribute(reference.pointer, _id_setAttribute as jni$_.JMethodIDPtr, - _$string.pointer, _$object.pointer) + _setAttribute(reference.pointer, _id_setAttribute.pointer, _$string.pointer, + _$object.pointer) .check(); } - static final _id_setAttribute$1 = _class.instanceMethodId( + static final _id_set$attribute = Scope._class.instanceMethodId( r'setAttribute', r'(Lio/sentry/SentryAttribute;)V', ); - static final _setAttribute$1 = jni$_.ProtectedJniExtensions.lookup< + static final _set$attribute = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -33619,22 +28120,20 @@ class Scope extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setAttribute(io.sentry.SentryAttribute sentryAttribute)` - void setAttribute$1( - jni$_.JObject? sentryAttribute, - ) { + set attribute(jni$_.JObject? sentryAttribute) { final _$sentryAttribute = sentryAttribute?.reference ?? jni$_.jNullReference; - _setAttribute$1(reference.pointer, _id_setAttribute$1 as jni$_.JMethodIDPtr, + _set$attribute(reference.pointer, _id_set$attribute.pointer, _$sentryAttribute.pointer) .check(); } - static final _id_setAttributes = _class.instanceMethodId( + static final _id_set$attributes$1 = Scope._class.instanceMethodId( r'setAttributes', r'(Lio/sentry/SentryAttributes;)V', ); - static final _setAttributes = jni$_.ProtectedJniExtensions.lookup< + static final _set$attributes$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -33646,17 +28145,15 @@ class Scope extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setAttributes(io.sentry.SentryAttributes sentryAttributes)` - void setAttributes( - jni$_.JObject? sentryAttributes, - ) { + set attributes$1(jni$_.JObject? sentryAttributes) { final _$sentryAttributes = sentryAttributes?.reference ?? jni$_.jNullReference; - _setAttributes(reference.pointer, _id_setAttributes as jni$_.JMethodIDPtr, + _set$attributes$1(reference.pointer, _id_set$attributes$1.pointer, _$sentryAttributes.pointer) .check(); } - static final _id_removeAttribute = _class.instanceMethodId( + static final _id_removeAttribute = Scope._class.instanceMethodId( r'removeAttribute', r'(Ljava/lang/String;)V', ); @@ -33677,17 +28174,17 @@ class Scope extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - _removeAttribute(reference.pointer, - _id_removeAttribute as jni$_.JMethodIDPtr, _$string.pointer) + _removeAttribute( + reference.pointer, _id_removeAttribute.pointer, _$string.pointer) .check(); } - static final _id_getExtras = _class.instanceMethodId( + static final _id_get$extras = Scope._class.instanceMethodId( r'getExtras', r'()Ljava/util/Map;', ); - static final _getExtras = jni$_.ProtectedJniExtensions.lookup< + static final _get$extras = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -33701,14 +28198,12 @@ class Scope extends jni$_.JObject { /// from: `public java.util.Map getExtras()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JMap getExtras() { - return _getExtras(reference.pointer, _id_getExtras as jni$_.JMethodIDPtr) - .object>( - const jni$_.JMapType( - jni$_.JStringNullableType(), jni$_.JObjectNullableType())); + jni$_.JMap get extras { + return _get$extras(reference.pointer, _id_get$extras.pointer) + .object>(); } - static final _id_setExtra = _class.instanceMethodId( + static final _id_setExtra = Scope._class.instanceMethodId( r'setExtra', r'(Ljava/lang/String;Ljava/lang/String;)V', ); @@ -33737,12 +28232,12 @@ class Scope extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _setExtra(reference.pointer, _id_setExtra as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) + _setExtra(reference.pointer, _id_setExtra.pointer, _$string.pointer, + _$string1.pointer) .check(); } - static final _id_removeExtra = _class.instanceMethodId( + static final _id_removeExtra = Scope._class.instanceMethodId( r'removeExtra', r'(Ljava/lang/String;)V', ); @@ -33763,17 +28258,16 @@ class Scope extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - _removeExtra(reference.pointer, _id_removeExtra as jni$_.JMethodIDPtr, - _$string.pointer) + _removeExtra(reference.pointer, _id_removeExtra.pointer, _$string.pointer) .check(); } - static final _id_getContexts = _class.instanceMethodId( + static final _id_get$contexts = Scope._class.instanceMethodId( r'getContexts', r'()Lio/sentry/protocol/Contexts;', ); - static final _getContexts = jni$_.ProtectedJniExtensions.lookup< + static final _get$contexts = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -33787,13 +28281,12 @@ class Scope extends jni$_.JObject { /// from: `public io.sentry.protocol.Contexts getContexts()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getContexts() { - return _getContexts( - reference.pointer, _id_getContexts as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get contexts { + return _get$contexts(reference.pointer, _id_get$contexts.pointer) + .object(); } - static final _id_setContexts = _class.instanceMethodId( + static final _id_setContexts = Scope._class.instanceMethodId( r'setContexts', r'(Ljava/lang/String;Ljava/lang/Object;)V', ); @@ -33822,12 +28315,12 @@ class Scope extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$object = object?.reference ?? jni$_.jNullReference; - _setContexts(reference.pointer, _id_setContexts as jni$_.JMethodIDPtr, - _$string.pointer, _$object.pointer) + _setContexts(reference.pointer, _id_setContexts.pointer, _$string.pointer, + _$object.pointer) .check(); } - static final _id_setContexts$1 = _class.instanceMethodId( + static final _id_setContexts$1 = Scope._class.instanceMethodId( r'setContexts', r'(Ljava/lang/String;Ljava/lang/Boolean;)V', ); @@ -33856,12 +28349,12 @@ class Scope extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$boolean = boolean?.reference ?? jni$_.jNullReference; - _setContexts$1(reference.pointer, _id_setContexts$1 as jni$_.JMethodIDPtr, + _setContexts$1(reference.pointer, _id_setContexts$1.pointer, _$string.pointer, _$boolean.pointer) .check(); } - static final _id_setContexts$2 = _class.instanceMethodId( + static final _id_setContexts$2 = Scope._class.instanceMethodId( r'setContexts', r'(Ljava/lang/String;Ljava/lang/String;)V', ); @@ -33890,12 +28383,12 @@ class Scope extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _setContexts$2(reference.pointer, _id_setContexts$2 as jni$_.JMethodIDPtr, + _setContexts$2(reference.pointer, _id_setContexts$2.pointer, _$string.pointer, _$string1.pointer) .check(); } - static final _id_setContexts$3 = _class.instanceMethodId( + static final _id_setContexts$3 = Scope._class.instanceMethodId( r'setContexts', r'(Ljava/lang/String;Ljava/lang/Number;)V', ); @@ -33924,12 +28417,12 @@ class Scope extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$number = number?.reference ?? jni$_.jNullReference; - _setContexts$3(reference.pointer, _id_setContexts$3 as jni$_.JMethodIDPtr, + _setContexts$3(reference.pointer, _id_setContexts$3.pointer, _$string.pointer, _$number.pointer) .check(); } - static final _id_setContexts$4 = _class.instanceMethodId( + static final _id_setContexts$4 = Scope._class.instanceMethodId( r'setContexts', r'(Ljava/lang/String;Ljava/util/Collection;)V', ); @@ -33958,12 +28451,12 @@ class Scope extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$collection = collection?.reference ?? jni$_.jNullReference; - _setContexts$4(reference.pointer, _id_setContexts$4 as jni$_.JMethodIDPtr, + _setContexts$4(reference.pointer, _id_setContexts$4.pointer, _$string.pointer, _$collection.pointer) .check(); } - static final _id_setContexts$5 = _class.instanceMethodId( + static final _id_setContexts$5 = Scope._class.instanceMethodId( r'setContexts', r'(Ljava/lang/String;[Ljava/lang/Object;)V', ); @@ -33992,12 +28485,12 @@ class Scope extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$objects = objects?.reference ?? jni$_.jNullReference; - _setContexts$5(reference.pointer, _id_setContexts$5 as jni$_.JMethodIDPtr, + _setContexts$5(reference.pointer, _id_setContexts$5.pointer, _$string.pointer, _$objects.pointer) .check(); } - static final _id_setContexts$6 = _class.instanceMethodId( + static final _id_setContexts$6 = Scope._class.instanceMethodId( r'setContexts', r'(Ljava/lang/String;Ljava/lang/Character;)V', ); @@ -34026,12 +28519,12 @@ class Scope extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$character = character?.reference ?? jni$_.jNullReference; - _setContexts$6(reference.pointer, _id_setContexts$6 as jni$_.JMethodIDPtr, + _setContexts$6(reference.pointer, _id_setContexts$6.pointer, _$string.pointer, _$character.pointer) .check(); } - static final _id_removeContexts = _class.instanceMethodId( + static final _id_removeContexts = Scope._class.instanceMethodId( r'removeContexts', r'(Ljava/lang/String;)V', ); @@ -34052,17 +28545,17 @@ class Scope extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - _removeContexts(reference.pointer, _id_removeContexts as jni$_.JMethodIDPtr, - _$string.pointer) + _removeContexts( + reference.pointer, _id_removeContexts.pointer, _$string.pointer) .check(); } - static final _id_getAttachments = _class.instanceMethodId( + static final _id_get$attachments = Scope._class.instanceMethodId( r'getAttachments', r'()Ljava/util/List;', ); - static final _getAttachments = jni$_.ProtectedJniExtensions.lookup< + static final _get$attachments = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -34076,14 +28569,12 @@ class Scope extends jni$_.JObject { /// from: `public java.util.List getAttachments()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList getAttachments() { - return _getAttachments( - reference.pointer, _id_getAttachments as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectNullableType())); + jni$_.JList get attachments { + return _get$attachments(reference.pointer, _id_get$attachments.pointer) + .object>(); } - static final _id_addAttachment = _class.instanceMethodId( + static final _id_addAttachment = Scope._class.instanceMethodId( r'addAttachment', r'(Lio/sentry/Attachment;)V', ); @@ -34104,12 +28595,12 @@ class Scope extends jni$_.JObject { jni$_.JObject attachment, ) { final _$attachment = attachment.reference; - _addAttachment(reference.pointer, _id_addAttachment as jni$_.JMethodIDPtr, - _$attachment.pointer) + _addAttachment( + reference.pointer, _id_addAttachment.pointer, _$attachment.pointer) .check(); } - static final _id_clearAttachments = _class.instanceMethodId( + static final _id_clearAttachments = Scope._class.instanceMethodId( r'clearAttachments', r'()V', ); @@ -34128,17 +28619,15 @@ class Scope extends jni$_.JObject { /// from: `public void clearAttachments()` void clearAttachments() { - _clearAttachments( - reference.pointer, _id_clearAttachments as jni$_.JMethodIDPtr) - .check(); + _clearAttachments(reference.pointer, _id_clearAttachments.pointer).check(); } - static final _id_getEventProcessors = _class.instanceMethodId( + static final _id_get$eventProcessors = Scope._class.instanceMethodId( r'getEventProcessors', r'()Ljava/util/List;', ); - static final _getEventProcessors = jni$_.ProtectedJniExtensions.lookup< + static final _get$eventProcessors = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -34152,19 +28641,18 @@ class Scope extends jni$_.JObject { /// from: `public java.util.List getEventProcessors()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList getEventProcessors() { - return _getEventProcessors( - reference.pointer, _id_getEventProcessors as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectNullableType())); + jni$_.JList get eventProcessors { + return _get$eventProcessors( + reference.pointer, _id_get$eventProcessors.pointer) + .object>(); } - static final _id_getEventProcessorsWithOrder = _class.instanceMethodId( + static final _id_get$eventProcessorsWithOrder = Scope._class.instanceMethodId( r'getEventProcessorsWithOrder', r'()Ljava/util/List;', ); - static final _getEventProcessorsWithOrder = + static final _get$eventProcessorsWithOrder = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -34179,14 +28667,13 @@ class Scope extends jni$_.JObject { /// from: `public java.util.List getEventProcessorsWithOrder()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList getEventProcessorsWithOrder() { - return _getEventProcessorsWithOrder(reference.pointer, - _id_getEventProcessorsWithOrder as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectNullableType())); + jni$_.JList get eventProcessorsWithOrder { + return _get$eventProcessorsWithOrder( + reference.pointer, _id_get$eventProcessorsWithOrder.pointer) + .object>(); } - static final _id_addEventProcessor = _class.instanceMethodId( + static final _id_addEventProcessor = Scope._class.instanceMethodId( r'addEventProcessor', r'(Lio/sentry/EventProcessor;)V', ); @@ -34207,14 +28694,12 @@ class Scope extends jni$_.JObject { jni$_.JObject eventProcessor, ) { final _$eventProcessor = eventProcessor.reference; - _addEventProcessor( - reference.pointer, - _id_addEventProcessor as jni$_.JMethodIDPtr, + _addEventProcessor(reference.pointer, _id_addEventProcessor.pointer, _$eventProcessor.pointer) .check(); } - static final _id_withSession = _class.instanceMethodId( + static final _id_withSession = Scope._class.instanceMethodId( r'withSession', r'(Lio/sentry/Scope$IWithSession;)Lio/sentry/Session;', ); @@ -34236,12 +28721,12 @@ class Scope extends jni$_.JObject { jni$_.JObject iWithSession, ) { final _$iWithSession = iWithSession.reference; - return _withSession(reference.pointer, - _id_withSession as jni$_.JMethodIDPtr, _$iWithSession.pointer) - .object(const jni$_.JObjectNullableType()); + return _withSession( + reference.pointer, _id_withSession.pointer, _$iWithSession.pointer) + .object(); } - static final _id_startSession = _class.instanceMethodId( + static final _id_startSession = Scope._class.instanceMethodId( r'startSession', r'()Lio/sentry/Scope$SessionPair;', ); @@ -34261,12 +28746,11 @@ class Scope extends jni$_.JObject { /// from: `public io.sentry.Scope$SessionPair startSession()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? startSession() { - return _startSession( - reference.pointer, _id_startSession as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _startSession(reference.pointer, _id_startSession.pointer) + .object(); } - static final _id_endSession = _class.instanceMethodId( + static final _id_endSession = Scope._class.instanceMethodId( r'endSession', r'()Lio/sentry/Session;', ); @@ -34286,11 +28770,11 @@ class Scope extends jni$_.JObject { /// from: `public io.sentry.Session endSession()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? endSession() { - return _endSession(reference.pointer, _id_endSession as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _endSession(reference.pointer, _id_endSession.pointer) + .object(); } - static final _id_withTransaction = _class.instanceMethodId( + static final _id_withTransaction = Scope._class.instanceMethodId( r'withTransaction', r'(Lio/sentry/Scope$IWithTransaction;)V', ); @@ -34311,19 +28795,17 @@ class Scope extends jni$_.JObject { Scope$IWithTransaction iWithTransaction, ) { final _$iWithTransaction = iWithTransaction.reference; - _withTransaction( - reference.pointer, - _id_withTransaction as jni$_.JMethodIDPtr, + _withTransaction(reference.pointer, _id_withTransaction.pointer, _$iWithTransaction.pointer) .check(); } - static final _id_getOptions = _class.instanceMethodId( + static final _id_get$options = Scope._class.instanceMethodId( r'getOptions', r'()Lio/sentry/SentryOptions;', ); - static final _getOptions = jni$_.ProtectedJniExtensions.lookup< + static final _get$options = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -34337,17 +28819,17 @@ class Scope extends jni$_.JObject { /// from: `public io.sentry.SentryOptions getOptions()` /// The returned object must be released after use, by calling the [release] method. - SentryOptions getOptions() { - return _getOptions(reference.pointer, _id_getOptions as jni$_.JMethodIDPtr) - .object(const $SentryOptions$Type()); + SentryOptions get options { + return _get$options(reference.pointer, _id_get$options.pointer) + .object(); } - static final _id_getSession = _class.instanceMethodId( + static final _id_get$session = Scope._class.instanceMethodId( r'getSession', r'()Lio/sentry/Session;', ); - static final _getSession = jni$_.ProtectedJniExtensions.lookup< + static final _get$session = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -34361,12 +28843,12 @@ class Scope extends jni$_.JObject { /// from: `public io.sentry.Session getSession()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getSession() { - return _getSession(reference.pointer, _id_getSession as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get session { + return _get$session(reference.pointer, _id_get$session.pointer) + .object(); } - static final _id_clearSession = _class.instanceMethodId( + static final _id_clearSession = Scope._class.instanceMethodId( r'clearSession', r'()V', ); @@ -34385,16 +28867,15 @@ class Scope extends jni$_.JObject { /// from: `public void clearSession()` void clearSession() { - _clearSession(reference.pointer, _id_clearSession as jni$_.JMethodIDPtr) - .check(); + _clearSession(reference.pointer, _id_clearSession.pointer).check(); } - static final _id_setPropagationContext = _class.instanceMethodId( + static final _id_set$propagationContext = Scope._class.instanceMethodId( r'setPropagationContext', r'(Lio/sentry/PropagationContext;)V', ); - static final _setPropagationContext = jni$_.ProtectedJniExtensions.lookup< + static final _set$propagationContext = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -34406,23 +28887,19 @@ class Scope extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setPropagationContext(io.sentry.PropagationContext propagationContext)` - void setPropagationContext( - jni$_.JObject propagationContext, - ) { + set propagationContext(jni$_.JObject propagationContext) { final _$propagationContext = propagationContext.reference; - _setPropagationContext( - reference.pointer, - _id_setPropagationContext as jni$_.JMethodIDPtr, - _$propagationContext.pointer) + _set$propagationContext(reference.pointer, + _id_set$propagationContext.pointer, _$propagationContext.pointer) .check(); } - static final _id_getPropagationContext = _class.instanceMethodId( + static final _id_get$propagationContext = Scope._class.instanceMethodId( r'getPropagationContext', r'()Lio/sentry/PropagationContext;', ); - static final _getPropagationContext = jni$_.ProtectedJniExtensions.lookup< + static final _get$propagationContext = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -34436,13 +28913,13 @@ class Scope extends jni$_.JObject { /// from: `public io.sentry.PropagationContext getPropagationContext()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getPropagationContext() { - return _getPropagationContext( - reference.pointer, _id_getPropagationContext as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get propagationContext { + return _get$propagationContext( + reference.pointer, _id_get$propagationContext.pointer) + .object(); } - static final _id_withPropagationContext = _class.instanceMethodId( + static final _id_withPropagationContext = Scope._class.instanceMethodId( r'withPropagationContext', r'(Lio/sentry/Scope$IWithPropagationContext;)Lio/sentry/PropagationContext;', ); @@ -34466,12 +28943,12 @@ class Scope extends jni$_.JObject { final _$iWithPropagationContext = iWithPropagationContext.reference; return _withPropagationContext( reference.pointer, - _id_withPropagationContext as jni$_.JMethodIDPtr, + _id_withPropagationContext.pointer, _$iWithPropagationContext.pointer) - .object(const jni$_.JObjectType()); + .object(); } - static final _id_clone = _class.instanceMethodId( + static final _id_clone = Scope._class.instanceMethodId( r'clone', r'()Lio/sentry/IScope;', ); @@ -34491,16 +28968,15 @@ class Scope extends jni$_.JObject { /// from: `public io.sentry.IScope clone()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject clone() { - return _clone(reference.pointer, _id_clone as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _clone(reference.pointer, _id_clone.pointer).object(); } - static final _id_setLastEventId = _class.instanceMethodId( + static final _id_set$lastEventId = Scope._class.instanceMethodId( r'setLastEventId', r'(Lio/sentry/protocol/SentryId;)V', ); - static final _setLastEventId = jni$_.ProtectedJniExtensions.lookup< + static final _set$lastEventId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -34512,21 +28988,19 @@ class Scope extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setLastEventId(io.sentry.protocol.SentryId sentryId)` - void setLastEventId( - SentryId sentryId, - ) { + set lastEventId(SentryId sentryId) { final _$sentryId = sentryId.reference; - _setLastEventId(reference.pointer, _id_setLastEventId as jni$_.JMethodIDPtr, - _$sentryId.pointer) + _set$lastEventId( + reference.pointer, _id_set$lastEventId.pointer, _$sentryId.pointer) .check(); } - static final _id_getLastEventId = _class.instanceMethodId( + static final _id_get$lastEventId = Scope._class.instanceMethodId( r'getLastEventId', r'()Lio/sentry/protocol/SentryId;', ); - static final _getLastEventId = jni$_.ProtectedJniExtensions.lookup< + static final _get$lastEventId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -34540,13 +29014,12 @@ class Scope extends jni$_.JObject { /// from: `public io.sentry.protocol.SentryId getLastEventId()` /// The returned object must be released after use, by calling the [release] method. - SentryId getLastEventId() { - return _getLastEventId( - reference.pointer, _id_getLastEventId as jni$_.JMethodIDPtr) - .object(const $SentryId$Type()); + SentryId get lastEventId { + return _get$lastEventId(reference.pointer, _id_get$lastEventId.pointer) + .object(); } - static final _id_bindClient = _class.instanceMethodId( + static final _id_bindClient = Scope._class.instanceMethodId( r'bindClient', r'(Lio/sentry/ISentryClient;)V', ); @@ -34567,17 +29040,17 @@ class Scope extends jni$_.JObject { jni$_.JObject iSentryClient, ) { final _$iSentryClient = iSentryClient.reference; - _bindClient(reference.pointer, _id_bindClient as jni$_.JMethodIDPtr, - _$iSentryClient.pointer) + _bindClient( + reference.pointer, _id_bindClient.pointer, _$iSentryClient.pointer) .check(); } - static final _id_getClient = _class.instanceMethodId( + static final _id_get$client = Scope._class.instanceMethodId( r'getClient', r'()Lio/sentry/ISentryClient;', ); - static final _getClient = jni$_.ProtectedJniExtensions.lookup< + static final _get$client = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -34591,12 +29064,12 @@ class Scope extends jni$_.JObject { /// from: `public io.sentry.ISentryClient getClient()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getClient() { - return _getClient(reference.pointer, _id_getClient as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get client { + return _get$client(reference.pointer, _id_get$client.pointer) + .object(); } - static final _id_addFeatureFlag = _class.instanceMethodId( + static final _id_addFeatureFlag = Scope._class.instanceMethodId( r'addFeatureFlag', r'(Ljava/lang/String;Ljava/lang/Boolean;)V', ); @@ -34625,17 +29098,17 @@ class Scope extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$boolean = boolean?.reference ?? jni$_.jNullReference; - _addFeatureFlag(reference.pointer, _id_addFeatureFlag as jni$_.JMethodIDPtr, + _addFeatureFlag(reference.pointer, _id_addFeatureFlag.pointer, _$string.pointer, _$boolean.pointer) .check(); } - static final _id_getFeatureFlags = _class.instanceMethodId( + static final _id_get$featureFlags = Scope._class.instanceMethodId( r'getFeatureFlags', r'()Lio/sentry/protocol/FeatureFlags;', ); - static final _getFeatureFlags = jni$_.ProtectedJniExtensions.lookup< + static final _get$featureFlags = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -34649,18 +29122,17 @@ class Scope extends jni$_.JObject { /// from: `public io.sentry.protocol.FeatureFlags getFeatureFlags()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getFeatureFlags() { - return _getFeatureFlags( - reference.pointer, _id_getFeatureFlags as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get featureFlags { + return _get$featureFlags(reference.pointer, _id_get$featureFlags.pointer) + .object(); } - static final _id_getFeatureFlagBuffer = _class.instanceMethodId( + static final _id_get$featureFlagBuffer = Scope._class.instanceMethodId( r'getFeatureFlagBuffer', r'()Lio/sentry/featureflags/IFeatureFlagBuffer;', ); - static final _getFeatureFlagBuffer = jni$_.ProtectedJniExtensions.lookup< + static final _get$featureFlagBuffer = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -34674,13 +29146,13 @@ class Scope extends jni$_.JObject { /// from: `public io.sentry.featureflags.IFeatureFlagBuffer getFeatureFlagBuffer()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getFeatureFlagBuffer() { - return _getFeatureFlagBuffer( - reference.pointer, _id_getFeatureFlagBuffer as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get featureFlagBuffer { + return _get$featureFlagBuffer( + reference.pointer, _id_get$featureFlagBuffer.pointer) + .object(); } - static final _id_assignTraceContext = _class.instanceMethodId( + static final _id_assignTraceContext = Scope._class.instanceMethodId( r'assignTraceContext', r'(Lio/sentry/SentryEvent;)V', ); @@ -34701,12 +29173,12 @@ class Scope extends jni$_.JObject { SentryEvent sentryEvent, ) { final _$sentryEvent = sentryEvent.reference; - _assignTraceContext(reference.pointer, - _id_assignTraceContext as jni$_.JMethodIDPtr, _$sentryEvent.pointer) + _assignTraceContext(reference.pointer, _id_assignTraceContext.pointer, + _$sentryEvent.pointer) .check(); } - static final _id_setSpanContext = _class.instanceMethodId( + static final _id_setSpanContext = Scope._class.instanceMethodId( r'setSpanContext', r'(Ljava/lang/Throwable;Lio/sentry/ISpan;Ljava/lang/String;)V', ); @@ -34739,12 +29211,12 @@ class Scope extends jni$_.JObject { final _$throwable = throwable.reference; final _$iSpan = iSpan.reference; final _$string = string.reference; - _setSpanContext(reference.pointer, _id_setSpanContext as jni$_.JMethodIDPtr, + _setSpanContext(reference.pointer, _id_setSpanContext.pointer, _$throwable.pointer, _$iSpan.pointer, _$string.pointer) .check(); } - static final _id_replaceOptions = _class.instanceMethodId( + static final _id_replaceOptions = Scope._class.instanceMethodId( r'replaceOptions', r'(Lio/sentry/SentryOptions;)V', ); @@ -34765,129 +29237,32 @@ class Scope extends jni$_.JObject { SentryOptions sentryOptions, ) { final _$sentryOptions = sentryOptions.reference; - _replaceOptions(reference.pointer, _id_replaceOptions as jni$_.JMethodIDPtr, + _replaceOptions(reference.pointer, _id_replaceOptions.pointer, _$sentryOptions.pointer) .check(); } } -final class $Scope$NullableType extends jni$_.JObjType { +final class $Scope$Type$ extends jni$_.JType { @jni$_.internal - const $Scope$NullableType(); + const $Scope$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/Scope;'; - - @jni$_.internal - @core$_.override - Scope? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Scope.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Scope$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Scope$NullableType) && - other is $Scope$NullableType; - } -} - -final class $Scope$Type extends jni$_.JObjType { - @jni$_.internal - const $Scope$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/Scope;'; - - @jni$_.internal - @core$_.override - Scope fromReference(jni$_.JReference reference) => Scope.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => const $Scope$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Scope$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Scope$Type) && other is $Scope$Type; - } } /// from: `io.sentry.ScopeCallback` -class ScopeCallback extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - ScopeCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type ScopeCallback._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/ScopeCallback'); /// The type which includes information such as the signature of this class. - static const nullableType = $ScopeCallback$NullableType(); - static const type = $ScopeCallback$Type(); - static final _id_run = _class.instanceMethodId( - r'run', - r'(Lio/sentry/IScope;)V', - ); - - static final _run = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public abstract void run(io.sentry.IScope iScope)` - void run( - jni$_.JObject iScope, - ) { - final _$iScope = iScope.reference; - _run(reference.pointer, _id_run as jni$_.JMethodIDPtr, _$iScope.pointer) - .check(); - } + static const jni$_.JType type = $ScopeCallback$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -34908,7 +29283,7 @@ class ScopeCallback extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -34916,7 +29291,7 @@ class ScopeCallback extends jni$_.JObject { final $a = $i.args; if ($d == r'run(Lio/sentry/IScope;)V') { _$impls[$p]!.run( - $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), + ($a![0] as jni$_.JObject), ); return jni$_.nullptr; } @@ -34958,20 +29333,44 @@ class ScopeCallback extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return ScopeCallback.fromReference( - $i.implementReference(), - ); + return $i.implement(); + } +} + +extension ScopeCallback$$Methods on ScopeCallback { + static final _id_run = ScopeCallback._class.instanceMethodId( + r'run', + r'(Lio/sentry/IScope;)V', + ); + + static final _run = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public abstract void run(io.sentry.IScope iScope)` + void run( + jni$_.JObject iScope, + ) { + final _$iScope = iScope.reference; + _run(reference.pointer, _id_run.pointer, _$iScope.pointer).check(); } } abstract base mixin class $ScopeCallback { factory $ScopeCallback({ required void Function(jni$_.JObject iScope) run, - bool run$async, + core$_.bool run$async, }) = _$ScopeCallback; void run(jni$_.JObject iScope); - bool get run$async => false; + core$_.bool get run$async => false; } final class _$ScopeCallback with $ScopeCallback { @@ -34981,105 +29380,30 @@ final class _$ScopeCallback with $ScopeCallback { }) : _run = run; final void Function(jni$_.JObject iScope) _run; - final bool run$async; + final core$_.bool run$async; void run(jni$_.JObject iScope) { return _run(iScope); } } -final class $ScopeCallback$NullableType extends jni$_.JObjType { +final class $ScopeCallback$Type$ extends jni$_.JType { @jni$_.internal - const $ScopeCallback$NullableType(); + const $ScopeCallback$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/ScopeCallback;'; - - @jni$_.internal - @core$_.override - ScopeCallback? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : ScopeCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ScopeCallback$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ScopeCallback$NullableType) && - other is $ScopeCallback$NullableType; - } -} - -final class $ScopeCallback$Type extends jni$_.JObjType { - @jni$_.internal - const $ScopeCallback$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/ScopeCallback;'; - - @jni$_.internal - @core$_.override - ScopeCallback fromReference(jni$_.JReference reference) => - ScopeCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $ScopeCallback$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ScopeCallback$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ScopeCallback$Type) && - other is $ScopeCallback$Type; - } } /// from: `io.sentry.protocol.User$Deserializer` -class User$Deserializer extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - User$Deserializer.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type User$Deserializer._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/protocol/User$Deserializer'); /// The type which includes information such as the signature of this class. - static const nullableType = $User$Deserializer$NullableType(); - static const type = $User$Deserializer$Type(); + static const jni$_.JType type = $User$Deserializer$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -35099,12 +29423,13 @@ class User$Deserializer extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory User$Deserializer() { - return User$Deserializer.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_deserialize = _class.instanceMethodId( +extension User$Deserializer$$Methods on User$Deserializer { + static final _id_deserialize = User$Deserializer._class.instanceMethodId( r'deserialize', r'(Lio/sentry/ObjectReader;Lio/sentry/ILogger;)Lio/sentry/protocol/User;', ); @@ -35134,109 +29459,28 @@ class User$Deserializer extends jni$_.JObject { ) { final _$objectReader = objectReader.reference; final _$iLogger = iLogger.reference; - return _deserialize( - reference.pointer, - _id_deserialize as jni$_.JMethodIDPtr, - _$objectReader.pointer, - _$iLogger.pointer) - .object(const $User$Type()); + return _deserialize(reference.pointer, _id_deserialize.pointer, + _$objectReader.pointer, _$iLogger.pointer) + .object(); } } -final class $User$Deserializer$NullableType - extends jni$_.JObjType { +final class $User$Deserializer$Type$ extends jni$_.JType { @jni$_.internal - const $User$Deserializer$NullableType(); + const $User$Deserializer$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/protocol/User$Deserializer;'; - - @jni$_.internal - @core$_.override - User$Deserializer? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : User$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($User$Deserializer$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($User$Deserializer$NullableType) && - other is $User$Deserializer$NullableType; - } -} - -final class $User$Deserializer$Type extends jni$_.JObjType { - @jni$_.internal - const $User$Deserializer$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/protocol/User$Deserializer;'; - - @jni$_.internal - @core$_.override - User$Deserializer fromReference(jni$_.JReference reference) => - User$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $User$Deserializer$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($User$Deserializer$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($User$Deserializer$Type) && - other is $User$Deserializer$Type; - } } /// from: `io.sentry.protocol.User$JsonKeys` -class User$JsonKeys extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - User$JsonKeys.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type User$JsonKeys._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/protocol/User$JsonKeys'); /// The type which includes information such as the signature of this class. - static const nullableType = $User$JsonKeys$NullableType(); - static const type = $User$JsonKeys$Type(); + static const jni$_.JType type = $User$JsonKeys$Type$(); static final _id_EMAIL = _class.staticFieldId( r'EMAIL', r'Ljava/lang/String;', @@ -35245,7 +29489,7 @@ class User$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String EMAIL` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get EMAIL => - _id_EMAIL.get(_class, const jni$_.JStringNullableType()); + _id_EMAIL.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_ID = _class.staticFieldId( r'ID', @@ -35255,7 +29499,7 @@ class User$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String ID` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get ID => - _id_ID.get(_class, const jni$_.JStringNullableType()); + _id_ID.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_USERNAME = _class.staticFieldId( r'USERNAME', @@ -35265,7 +29509,7 @@ class User$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String USERNAME` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get USERNAME => - _id_USERNAME.get(_class, const jni$_.JStringNullableType()); + _id_USERNAME.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_IP_ADDRESS = _class.staticFieldId( r'IP_ADDRESS', @@ -35275,7 +29519,7 @@ class User$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String IP_ADDRESS` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get IP_ADDRESS => - _id_IP_ADDRESS.get(_class, const jni$_.JStringNullableType()); + _id_IP_ADDRESS.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_NAME = _class.staticFieldId( r'NAME', @@ -35285,7 +29529,7 @@ class User$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String NAME` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get NAME => - _id_NAME.get(_class, const jni$_.JStringNullableType()); + _id_NAME.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_GEO = _class.staticFieldId( r'GEO', @@ -35295,7 +29539,7 @@ class User$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String GEO` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get GEO => - _id_GEO.get(_class, const jni$_.JStringNullableType()); + _id_GEO.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_DATA = _class.staticFieldId( r'DATA', @@ -35305,7 +29549,7 @@ class User$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String DATA` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get DATA => - _id_DATA.get(_class, const jni$_.JStringNullableType()); + _id_DATA.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_new$ = _class.constructorId( r'()V', @@ -35326,103 +29570,26 @@ class User$JsonKeys extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory User$JsonKeys() { - return User$JsonKeys.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } } -final class $User$JsonKeys$NullableType extends jni$_.JObjType { +final class $User$JsonKeys$Type$ extends jni$_.JType { @jni$_.internal - const $User$JsonKeys$NullableType(); + const $User$JsonKeys$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/protocol/User$JsonKeys;'; - - @jni$_.internal - @core$_.override - User$JsonKeys? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : User$JsonKeys.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($User$JsonKeys$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($User$JsonKeys$NullableType) && - other is $User$JsonKeys$NullableType; - } -} - -final class $User$JsonKeys$Type extends jni$_.JObjType { - @jni$_.internal - const $User$JsonKeys$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/protocol/User$JsonKeys;'; - - @jni$_.internal - @core$_.override - User$JsonKeys fromReference(jni$_.JReference reference) => - User$JsonKeys.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $User$JsonKeys$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($User$JsonKeys$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($User$JsonKeys$Type) && - other is $User$JsonKeys$Type; - } } /// from: `io.sentry.protocol.User` -class User extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - User.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type User._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/protocol/User'); /// The type which includes information such as the signature of this class. - static const nullableType = $User$NullableType(); - static const type = $User$Type(); + static const jni$_.JType type = $User$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -35442,9 +29609,7 @@ class User extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory User() { - return User.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer).object(); } static final _id_new$1 = _class.constructorId( @@ -35468,9 +29633,8 @@ class User extends jni$_.JObject { User user, ) { final _$user = user.reference; - return User.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$user.pointer) - .reference); + return _new$1(_class.reference.pointer, _id_new$1.pointer, _$user.pointer) + .object(); } static final _id_fromMap = _class.staticMethodId( @@ -35503,17 +29667,19 @@ class User extends jni$_.JObject { ) { final _$map = map.reference; final _$sentryOptions = sentryOptions.reference; - return _fromMap(_class.reference.pointer, _id_fromMap as jni$_.JMethodIDPtr, + return _fromMap(_class.reference.pointer, _id_fromMap.pointer, _$map.pointer, _$sentryOptions.pointer) - .object(const $User$NullableType()); + .object(); } +} - static final _id_getEmail = _class.instanceMethodId( +extension User$$Methods on User { + static final _id_get$email = User._class.instanceMethodId( r'getEmail', r'()Ljava/lang/String;', ); - static final _getEmail = jni$_.ProtectedJniExtensions.lookup< + static final _get$email = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -35527,17 +29693,17 @@ class User extends jni$_.JObject { /// from: `public java.lang.String getEmail()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getEmail() { - return _getEmail(reference.pointer, _id_getEmail as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get email { + return _get$email(reference.pointer, _id_get$email.pointer) + .object(); } - static final _id_setEmail = _class.instanceMethodId( + static final _id_set$email = User._class.instanceMethodId( r'setEmail', r'(Ljava/lang/String;)V', ); - static final _setEmail = jni$_.ProtectedJniExtensions.lookup< + static final _set$email = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -35549,21 +29715,18 @@ class User extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setEmail(java.lang.String string)` - void setEmail( - jni$_.JString? string, - ) { + set email(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setEmail(reference.pointer, _id_setEmail as jni$_.JMethodIDPtr, - _$string.pointer) + _set$email(reference.pointer, _id_set$email.pointer, _$string.pointer) .check(); } - static final _id_getId = _class.instanceMethodId( + static final _id_get$id = User._class.instanceMethodId( r'getId', r'()Ljava/lang/String;', ); - static final _getId = jni$_.ProtectedJniExtensions.lookup< + static final _get$id = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -35577,17 +29740,17 @@ class User extends jni$_.JObject { /// from: `public java.lang.String getId()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getId() { - return _getId(reference.pointer, _id_getId as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get id { + return _get$id(reference.pointer, _id_get$id.pointer) + .object(); } - static final _id_setId = _class.instanceMethodId( + static final _id_set$id = User._class.instanceMethodId( r'setId', r'(Ljava/lang/String;)V', ); - static final _setId = jni$_.ProtectedJniExtensions.lookup< + static final _set$id = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -35599,20 +29762,17 @@ class User extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setId(java.lang.String string)` - void setId( - jni$_.JString? string, - ) { + set id(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setId(reference.pointer, _id_setId as jni$_.JMethodIDPtr, _$string.pointer) - .check(); + _set$id(reference.pointer, _id_set$id.pointer, _$string.pointer).check(); } - static final _id_getUsername = _class.instanceMethodId( + static final _id_get$username = User._class.instanceMethodId( r'getUsername', r'()Ljava/lang/String;', ); - static final _getUsername = jni$_.ProtectedJniExtensions.lookup< + static final _get$username = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -35626,18 +29786,17 @@ class User extends jni$_.JObject { /// from: `public java.lang.String getUsername()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getUsername() { - return _getUsername( - reference.pointer, _id_getUsername as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get username { + return _get$username(reference.pointer, _id_get$username.pointer) + .object(); } - static final _id_setUsername = _class.instanceMethodId( + static final _id_set$username = User._class.instanceMethodId( r'setUsername', r'(Ljava/lang/String;)V', ); - static final _setUsername = jni$_.ProtectedJniExtensions.lookup< + static final _set$username = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -35649,21 +29808,18 @@ class User extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setUsername(java.lang.String string)` - void setUsername( - jni$_.JString? string, - ) { + set username(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setUsername(reference.pointer, _id_setUsername as jni$_.JMethodIDPtr, - _$string.pointer) + _set$username(reference.pointer, _id_set$username.pointer, _$string.pointer) .check(); } - static final _id_getIpAddress = _class.instanceMethodId( + static final _id_get$ipAddress = User._class.instanceMethodId( r'getIpAddress', r'()Ljava/lang/String;', ); - static final _getIpAddress = jni$_.ProtectedJniExtensions.lookup< + static final _get$ipAddress = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -35677,18 +29833,17 @@ class User extends jni$_.JObject { /// from: `public java.lang.String getIpAddress()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getIpAddress() { - return _getIpAddress( - reference.pointer, _id_getIpAddress as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get ipAddress { + return _get$ipAddress(reference.pointer, _id_get$ipAddress.pointer) + .object(); } - static final _id_setIpAddress = _class.instanceMethodId( + static final _id_set$ipAddress = User._class.instanceMethodId( r'setIpAddress', r'(Ljava/lang/String;)V', ); - static final _setIpAddress = jni$_.ProtectedJniExtensions.lookup< + static final _set$ipAddress = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -35700,21 +29855,19 @@ class User extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setIpAddress(java.lang.String string)` - void setIpAddress( - jni$_.JString? string, - ) { + set ipAddress(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setIpAddress(reference.pointer, _id_setIpAddress as jni$_.JMethodIDPtr, - _$string.pointer) + _set$ipAddress( + reference.pointer, _id_set$ipAddress.pointer, _$string.pointer) .check(); } - static final _id_getName = _class.instanceMethodId( + static final _id_get$name = User._class.instanceMethodId( r'getName', r'()Ljava/lang/String;', ); - static final _getName = jni$_.ProtectedJniExtensions.lookup< + static final _get$name = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -35728,17 +29881,17 @@ class User extends jni$_.JObject { /// from: `public java.lang.String getName()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getName() { - return _getName(reference.pointer, _id_getName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get name { + return _get$name(reference.pointer, _id_get$name.pointer) + .object(); } - static final _id_setName = _class.instanceMethodId( + static final _id_set$name = User._class.instanceMethodId( r'setName', r'(Ljava/lang/String;)V', ); - static final _setName = jni$_.ProtectedJniExtensions.lookup< + static final _set$name = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -35750,21 +29903,18 @@ class User extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setName(java.lang.String string)` - void setName( - jni$_.JString? string, - ) { + set name(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setName(reference.pointer, _id_setName as jni$_.JMethodIDPtr, - _$string.pointer) + _set$name(reference.pointer, _id_set$name.pointer, _$string.pointer) .check(); } - static final _id_getGeo = _class.instanceMethodId( + static final _id_get$geo = User._class.instanceMethodId( r'getGeo', r'()Lio/sentry/protocol/Geo;', ); - static final _getGeo = jni$_.ProtectedJniExtensions.lookup< + static final _get$geo = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -35778,17 +29928,17 @@ class User extends jni$_.JObject { /// from: `public io.sentry.protocol.Geo getGeo()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getGeo() { - return _getGeo(reference.pointer, _id_getGeo as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get geo { + return _get$geo(reference.pointer, _id_get$geo.pointer) + .object(); } - static final _id_setGeo = _class.instanceMethodId( + static final _id_set$geo = User._class.instanceMethodId( r'setGeo', r'(Lio/sentry/protocol/Geo;)V', ); - static final _setGeo = jni$_.ProtectedJniExtensions.lookup< + static final _set$geo = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -35800,20 +29950,17 @@ class User extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setGeo(io.sentry.protocol.Geo geo)` - void setGeo( - jni$_.JObject? geo, - ) { + set geo(jni$_.JObject? geo) { final _$geo = geo?.reference ?? jni$_.jNullReference; - _setGeo(reference.pointer, _id_setGeo as jni$_.JMethodIDPtr, _$geo.pointer) - .check(); + _set$geo(reference.pointer, _id_set$geo.pointer, _$geo.pointer).check(); } - static final _id_getData = _class.instanceMethodId( + static final _id_get$data = User._class.instanceMethodId( r'getData', r'()Ljava/util/Map;', ); - static final _getData = jni$_.ProtectedJniExtensions.lookup< + static final _get$data = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -35827,19 +29974,17 @@ class User extends jni$_.JObject { /// from: `public java.util.Map getData()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JMap? getData() { - return _getData(reference.pointer, _id_getData as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JMapNullableType( - jni$_.JStringNullableType(), jni$_.JStringType())); + jni$_.JMap? get data { + return _get$data(reference.pointer, _id_get$data.pointer) + .object?>(); } - static final _id_setData = _class.instanceMethodId( + static final _id_set$data = User._class.instanceMethodId( r'setData', r'(Ljava/util/Map;)V', ); - static final _setData = jni$_.ProtectedJniExtensions.lookup< + static final _set$data = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -35851,16 +29996,12 @@ class User extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setData(java.util.Map map)` - void setData( - jni$_.JMap? map, - ) { + set data(jni$_.JMap? map) { final _$map = map?.reference ?? jni$_.jNullReference; - _setData( - reference.pointer, _id_setData as jni$_.JMethodIDPtr, _$map.pointer) - .check(); + _set$data(reference.pointer, _id_set$data.pointer, _$map.pointer).check(); } - static final _id_equals = _class.instanceMethodId( + static final _id_equals = User._class.instanceMethodId( r'equals', r'(Ljava/lang/Object;)Z', ); @@ -35877,16 +30018,15 @@ class User extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( + core$_.bool equals( jni$_.JObject? object, ) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) + return _equals(reference.pointer, _id_equals.pointer, _$object.pointer) .boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( + static final _id_hashCode$1 = User._class.instanceMethodId( r'hashCode', r'()I', ); @@ -35904,17 +30044,16 @@ class User extends jni$_.JObject { )>(); /// from: `public int hashCode()` - int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + core$_.int hashCode$1() { + return _hashCode$1(reference.pointer, _id_hashCode$1.pointer).integer; } - static final _id_getUnknown = _class.instanceMethodId( + static final _id_get$unknown = User._class.instanceMethodId( r'getUnknown', r'()Ljava/util/Map;', ); - static final _getUnknown = jni$_.ProtectedJniExtensions.lookup< + static final _get$unknown = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -35928,19 +30067,17 @@ class User extends jni$_.JObject { /// from: `public java.util.Map getUnknown()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JMap? getUnknown() { - return _getUnknown(reference.pointer, _id_getUnknown as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JMapNullableType( - jni$_.JStringNullableType(), jni$_.JObjectNullableType())); + jni$_.JMap? get unknown { + return _get$unknown(reference.pointer, _id_get$unknown.pointer) + .object?>(); } - static final _id_setUnknown = _class.instanceMethodId( + static final _id_set$unknown = User._class.instanceMethodId( r'setUnknown', r'(Ljava/util/Map;)V', ); - static final _setUnknown = jni$_.ProtectedJniExtensions.lookup< + static final _set$unknown = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -35952,16 +30089,13 @@ class User extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setUnknown(java.util.Map map)` - void setUnknown( - jni$_.JMap? map, - ) { + set unknown(jni$_.JMap? map) { final _$map = map?.reference ?? jni$_.jNullReference; - _setUnknown(reference.pointer, _id_setUnknown as jni$_.JMethodIDPtr, - _$map.pointer) + _set$unknown(reference.pointer, _id_set$unknown.pointer, _$map.pointer) .check(); } - static final _id_serialize = _class.instanceMethodId( + static final _id_serialize = User._class.instanceMethodId( r'serialize', r'(Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V', ); @@ -35990,101 +30124,30 @@ class User extends jni$_.JObject { ) { final _$objectWriter = objectWriter.reference; final _$iLogger = iLogger.reference; - _serialize(reference.pointer, _id_serialize as jni$_.JMethodIDPtr, - _$objectWriter.pointer, _$iLogger.pointer) + _serialize(reference.pointer, _id_serialize.pointer, _$objectWriter.pointer, + _$iLogger.pointer) .check(); } } -final class $User$NullableType extends jni$_.JObjType { - @jni$_.internal - const $User$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/protocol/User;'; - - @jni$_.internal - @core$_.override - User? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : User.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($User$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($User$NullableType) && - other is $User$NullableType; - } -} - -final class $User$Type extends jni$_.JObjType { +final class $User$Type$ extends jni$_.JType { @jni$_.internal - const $User$Type(); + const $User$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/protocol/User;'; - - @jni$_.internal - @core$_.override - User fromReference(jni$_.JReference reference) => User.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => const $User$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($User$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($User$Type) && other is $User$Type; - } } /// from: `io.sentry.protocol.SentryId$Deserializer` -class SentryId$Deserializer extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryId$Deserializer.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryId$Deserializer._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/protocol/SentryId$Deserializer'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryId$Deserializer$NullableType(); - static const type = $SentryId$Deserializer$Type(); + static const jni$_.JType type = + $SentryId$Deserializer$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -36104,12 +30167,13 @@ class SentryId$Deserializer extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryId$Deserializer() { - return SentryId$Deserializer.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_deserialize = _class.instanceMethodId( +extension SentryId$Deserializer$$Methods on SentryId$Deserializer { + static final _id_deserialize = SentryId$Deserializer._class.instanceMethodId( r'deserialize', r'(Lio/sentry/ObjectReader;Lio/sentry/ILogger;)Lio/sentry/protocol/SentryId;', ); @@ -36139,109 +30203,28 @@ class SentryId$Deserializer extends jni$_.JObject { ) { final _$objectReader = objectReader.reference; final _$iLogger = iLogger.reference; - return _deserialize( - reference.pointer, - _id_deserialize as jni$_.JMethodIDPtr, - _$objectReader.pointer, - _$iLogger.pointer) - .object(const $SentryId$Type()); + return _deserialize(reference.pointer, _id_deserialize.pointer, + _$objectReader.pointer, _$iLogger.pointer) + .object(); } } -final class $SentryId$Deserializer$NullableType - extends jni$_.JObjType { +final class $SentryId$Deserializer$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryId$Deserializer$NullableType(); + const $SentryId$Deserializer$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/protocol/SentryId$Deserializer;'; - - @jni$_.internal - @core$_.override - SentryId$Deserializer? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryId$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryId$Deserializer$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryId$Deserializer$NullableType) && - other is $SentryId$Deserializer$NullableType; - } -} - -final class $SentryId$Deserializer$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryId$Deserializer$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/protocol/SentryId$Deserializer;'; - - @jni$_.internal - @core$_.override - SentryId$Deserializer fromReference(jni$_.JReference reference) => - SentryId$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryId$Deserializer$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryId$Deserializer$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryId$Deserializer$Type) && - other is $SentryId$Deserializer$Type; - } } /// from: `io.sentry.protocol.SentryId` -class SentryId extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryId.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryId._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/protocol/SentryId'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryId$NullableType(); - static const type = $SentryId$Type(); + static const jni$_.JType type = $SentryId$Type$(); static final _id_EMPTY_ID = _class.staticFieldId( r'EMPTY_ID', r'Lio/sentry/protocol/SentryId;', @@ -36250,7 +30233,7 @@ class SentryId extends jni$_.JObject { /// from: `static public final io.sentry.protocol.SentryId EMPTY_ID` /// The returned object must be released after use, by calling the [release] method. static SentryId? get EMPTY_ID => - _id_EMPTY_ID.get(_class, const $SentryId$NullableType()); + _id_EMPTY_ID.getNullable(_class, SentryId.type) as SentryId?; static final _id_new$ = _class.constructorId( r'()V', @@ -36271,9 +30254,7 @@ class SentryId extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryId() { - return SentryId.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer).object(); } static final _id_new$1 = _class.constructorId( @@ -36297,9 +30278,8 @@ class SentryId extends jni$_.JObject { jni$_.JObject? uUID, ) { final _$uUID = uUID?.reference ?? jni$_.jNullReference; - return SentryId.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$uUID.pointer) - .reference); + return _new$1(_class.reference.pointer, _id_new$1.pointer, _$uUID.pointer) + .object(); } static final _id_new$2 = _class.constructorId( @@ -36323,12 +30303,13 @@ class SentryId extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - return SentryId.fromReference(_new$2(_class.reference.pointer, - _id_new$2 as jni$_.JMethodIDPtr, _$string.pointer) - .reference); + return _new$2(_class.reference.pointer, _id_new$2.pointer, _$string.pointer) + .object(); } +} - static final _id_toString$1 = _class.instanceMethodId( +extension SentryId$$Methods on SentryId { + static final _id_toString$1 = SentryId._class.instanceMethodId( r'toString', r'()Ljava/lang/String;', ); @@ -36348,11 +30329,11 @@ class SentryId extends jni$_.JObject { /// from: `public java.lang.String toString()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? toString$1() { - return _toString$1(reference.pointer, _id_toString$1 as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _toString$1(reference.pointer, _id_toString$1.pointer) + .object(); } - static final _id_equals = _class.instanceMethodId( + static final _id_equals = SentryId._class.instanceMethodId( r'equals', r'(Ljava/lang/Object;)Z', ); @@ -36369,16 +30350,15 @@ class SentryId extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( + core$_.bool equals( jni$_.JObject? object, ) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) + return _equals(reference.pointer, _id_equals.pointer, _$object.pointer) .boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( + static final _id_hashCode$1 = SentryId._class.instanceMethodId( r'hashCode', r'()I', ); @@ -36396,12 +30376,11 @@ class SentryId extends jni$_.JObject { )>(); /// from: `public int hashCode()` - int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + core$_.int hashCode$1() { + return _hashCode$1(reference.pointer, _id_hashCode$1.pointer).integer; } - static final _id_serialize = _class.instanceMethodId( + static final _id_serialize = SentryId._class.instanceMethodId( r'serialize', r'(Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V', ); @@ -36430,101 +30409,30 @@ class SentryId extends jni$_.JObject { ) { final _$objectWriter = objectWriter.reference; final _$iLogger = iLogger.reference; - _serialize(reference.pointer, _id_serialize as jni$_.JMethodIDPtr, - _$objectWriter.pointer, _$iLogger.pointer) + _serialize(reference.pointer, _id_serialize.pointer, _$objectWriter.pointer, + _$iLogger.pointer) .check(); } } -final class $SentryId$NullableType extends jni$_.JObjType { - @jni$_.internal - const $SentryId$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/protocol/SentryId;'; - - @jni$_.internal - @core$_.override - SentryId? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : SentryId.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryId$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryId$NullableType) && - other is $SentryId$NullableType; - } -} - -final class $SentryId$Type extends jni$_.JObjType { +final class $SentryId$Type$ extends jni$_.JType { @jni$_.internal - const $SentryId$Type(); + const $SentryId$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/protocol/SentryId;'; - - @jni$_.internal - @core$_.override - SentryId fromReference(jni$_.JReference reference) => SentryId.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => const $SentryId$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryId$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryId$Type) && other is $SentryId$Type; - } } /// from: `io.sentry.protocol.SdkVersion$Deserializer` -class SdkVersion$Deserializer extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SdkVersion$Deserializer.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SdkVersion$Deserializer._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/protocol/SdkVersion$Deserializer'); /// The type which includes information such as the signature of this class. - static const nullableType = $SdkVersion$Deserializer$NullableType(); - static const type = $SdkVersion$Deserializer$Type(); + static const jni$_.JType type = + $SdkVersion$Deserializer$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -36544,12 +30452,14 @@ class SdkVersion$Deserializer extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SdkVersion$Deserializer() { - return SdkVersion$Deserializer.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_deserialize = _class.instanceMethodId( +extension SdkVersion$Deserializer$$Methods on SdkVersion$Deserializer { + static final _id_deserialize = + SdkVersion$Deserializer._class.instanceMethodId( r'deserialize', r'(Lio/sentry/ObjectReader;Lio/sentry/ILogger;)Lio/sentry/protocol/SdkVersion;', ); @@ -36579,110 +30489,31 @@ class SdkVersion$Deserializer extends jni$_.JObject { ) { final _$objectReader = objectReader.reference; final _$iLogger = iLogger.reference; - return _deserialize( - reference.pointer, - _id_deserialize as jni$_.JMethodIDPtr, - _$objectReader.pointer, - _$iLogger.pointer) - .object(const $SdkVersion$Type()); + return _deserialize(reference.pointer, _id_deserialize.pointer, + _$objectReader.pointer, _$iLogger.pointer) + .object(); } } -final class $SdkVersion$Deserializer$NullableType - extends jni$_.JObjType { +final class $SdkVersion$Deserializer$Type$ + extends jni$_.JType { @jni$_.internal - const $SdkVersion$Deserializer$NullableType(); + const $SdkVersion$Deserializer$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/protocol/SdkVersion$Deserializer;'; - - @jni$_.internal - @core$_.override - SdkVersion$Deserializer? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SdkVersion$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SdkVersion$Deserializer$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SdkVersion$Deserializer$NullableType) && - other is $SdkVersion$Deserializer$NullableType; - } -} - -final class $SdkVersion$Deserializer$Type - extends jni$_.JObjType { - @jni$_.internal - const $SdkVersion$Deserializer$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/protocol/SdkVersion$Deserializer;'; - - @jni$_.internal - @core$_.override - SdkVersion$Deserializer fromReference(jni$_.JReference reference) => - SdkVersion$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SdkVersion$Deserializer$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SdkVersion$Deserializer$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SdkVersion$Deserializer$Type) && - other is $SdkVersion$Deserializer$Type; - } } /// from: `io.sentry.protocol.SdkVersion$JsonKeys` -class SdkVersion$JsonKeys extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SdkVersion$JsonKeys.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SdkVersion$JsonKeys._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/protocol/SdkVersion$JsonKeys'); /// The type which includes information such as the signature of this class. - static const nullableType = $SdkVersion$JsonKeys$NullableType(); - static const type = $SdkVersion$JsonKeys$Type(); + static const jni$_.JType type = + $SdkVersion$JsonKeys$Type$(); static final _id_NAME = _class.staticFieldId( r'NAME', r'Ljava/lang/String;', @@ -36691,7 +30522,7 @@ class SdkVersion$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String NAME` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get NAME => - _id_NAME.get(_class, const jni$_.JStringNullableType()); + _id_NAME.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_VERSION = _class.staticFieldId( r'VERSION', @@ -36701,7 +30532,7 @@ class SdkVersion$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String VERSION` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get VERSION => - _id_VERSION.get(_class, const jni$_.JStringNullableType()); + _id_VERSION.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_PACKAGES = _class.staticFieldId( r'PACKAGES', @@ -36711,7 +30542,7 @@ class SdkVersion$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String PACKAGES` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get PACKAGES => - _id_PACKAGES.get(_class, const jni$_.JStringNullableType()); + _id_PACKAGES.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_INTEGRATIONS = _class.staticFieldId( r'INTEGRATIONS', @@ -36721,7 +30552,8 @@ class SdkVersion$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String INTEGRATIONS` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get INTEGRATIONS => - _id_INTEGRATIONS.get(_class, const jni$_.JStringNullableType()); + _id_INTEGRATIONS.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_new$ = _class.constructorId( r'()V', @@ -36742,106 +30574,27 @@ class SdkVersion$JsonKeys extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SdkVersion$JsonKeys() { - return SdkVersion$JsonKeys.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } } -final class $SdkVersion$JsonKeys$NullableType - extends jni$_.JObjType { +final class $SdkVersion$JsonKeys$Type$ + extends jni$_.JType { @jni$_.internal - const $SdkVersion$JsonKeys$NullableType(); + const $SdkVersion$JsonKeys$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/protocol/SdkVersion$JsonKeys;'; - - @jni$_.internal - @core$_.override - SdkVersion$JsonKeys? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SdkVersion$JsonKeys.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SdkVersion$JsonKeys$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SdkVersion$JsonKeys$NullableType) && - other is $SdkVersion$JsonKeys$NullableType; - } -} - -final class $SdkVersion$JsonKeys$Type - extends jni$_.JObjType { - @jni$_.internal - const $SdkVersion$JsonKeys$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/protocol/SdkVersion$JsonKeys;'; - - @jni$_.internal - @core$_.override - SdkVersion$JsonKeys fromReference(jni$_.JReference reference) => - SdkVersion$JsonKeys.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SdkVersion$JsonKeys$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SdkVersion$JsonKeys$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SdkVersion$JsonKeys$Type) && - other is $SdkVersion$JsonKeys$Type; - } } /// from: `io.sentry.protocol.SdkVersion` -class SdkVersion extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SdkVersion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SdkVersion._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/protocol/SdkVersion'); /// The type which includes information such as the signature of this class. - static const nullableType = $SdkVersion$NullableType(); - static const type = $SdkVersion$Type(); + static const jni$_.JType type = $SdkVersion$Type$(); static final _id_new$ = _class.constructorId( r'(Ljava/lang/String;Ljava/lang/String;)V', ); @@ -36871,17 +30624,62 @@ class SdkVersion extends jni$_.JObject { ) { final _$string = string.reference; final _$string1 = string1.reference; - return SdkVersion.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$string.pointer, _$string1.pointer) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer, _$string.pointer, + _$string1.pointer) + .object(); } - static final _id_getVersion = _class.instanceMethodId( + static final _id_updateSdkVersion = _class.staticMethodId( + r'updateSdkVersion', + r'(Lio/sentry/protocol/SdkVersion;Ljava/lang/String;Ljava/lang/String;)Lio/sentry/protocol/SdkVersion;', + ); + + static final _updateSdkVersion = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `static public io.sentry.protocol.SdkVersion updateSdkVersion(io.sentry.protocol.SdkVersion sdkVersion, java.lang.String string, java.lang.String string1)` + /// The returned object must be released after use, by calling the [release] method. + static SdkVersion updateSdkVersion( + SdkVersion? sdkVersion, + jni$_.JString string, + jni$_.JString string1, + ) { + final _$sdkVersion = sdkVersion?.reference ?? jni$_.jNullReference; + final _$string = string.reference; + final _$string1 = string1.reference; + return _updateSdkVersion( + _class.reference.pointer, + _id_updateSdkVersion.pointer, + _$sdkVersion.pointer, + _$string.pointer, + _$string1.pointer) + .object(); + } +} + +extension SdkVersion$$Methods on SdkVersion { + static final _id_get$version = SdkVersion._class.instanceMethodId( r'getVersion', r'()Ljava/lang/String;', ); - static final _getVersion = jni$_.ProtectedJniExtensions.lookup< + static final _get$version = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -36895,17 +30693,17 @@ class SdkVersion extends jni$_.JObject { /// from: `public java.lang.String getVersion()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString getVersion() { - return _getVersion(reference.pointer, _id_getVersion as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + jni$_.JString get version { + return _get$version(reference.pointer, _id_get$version.pointer) + .object(); } - static final _id_setVersion = _class.instanceMethodId( + static final _id_set$version = SdkVersion._class.instanceMethodId( r'setVersion', r'(Ljava/lang/String;)V', ); - static final _setVersion = jni$_.ProtectedJniExtensions.lookup< + static final _set$version = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -36917,21 +30715,18 @@ class SdkVersion extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setVersion(java.lang.String string)` - void setVersion( - jni$_.JString string, - ) { + set version(jni$_.JString string) { final _$string = string.reference; - _setVersion(reference.pointer, _id_setVersion as jni$_.JMethodIDPtr, - _$string.pointer) + _set$version(reference.pointer, _id_set$version.pointer, _$string.pointer) .check(); } - static final _id_getName = _class.instanceMethodId( + static final _id_get$name = SdkVersion._class.instanceMethodId( r'getName', r'()Ljava/lang/String;', ); - static final _getName = jni$_.ProtectedJniExtensions.lookup< + static final _get$name = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -36945,17 +30740,17 @@ class SdkVersion extends jni$_.JObject { /// from: `public java.lang.String getName()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString getName() { - return _getName(reference.pointer, _id_getName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + jni$_.JString get name { + return _get$name(reference.pointer, _id_get$name.pointer) + .object(); } - static final _id_setName = _class.instanceMethodId( + static final _id_set$name = SdkVersion._class.instanceMethodId( r'setName', r'(Ljava/lang/String;)V', ); - static final _setName = jni$_.ProtectedJniExtensions.lookup< + static final _set$name = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -36967,16 +30762,13 @@ class SdkVersion extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setName(java.lang.String string)` - void setName( - jni$_.JString string, - ) { + set name(jni$_.JString string) { final _$string = string.reference; - _setName(reference.pointer, _id_setName as jni$_.JMethodIDPtr, - _$string.pointer) + _set$name(reference.pointer, _id_set$name.pointer, _$string.pointer) .check(); } - static final _id_addPackage = _class.instanceMethodId( + static final _id_addPackage = SdkVersion._class.instanceMethodId( r'addPackage', r'(Ljava/lang/String;Ljava/lang/String;)V', ); @@ -37005,12 +30797,12 @@ class SdkVersion extends jni$_.JObject { ) { final _$string = string.reference; final _$string1 = string1.reference; - _addPackage(reference.pointer, _id_addPackage as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) + _addPackage(reference.pointer, _id_addPackage.pointer, _$string.pointer, + _$string1.pointer) .check(); } - static final _id_addIntegration = _class.instanceMethodId( + static final _id_addIntegration = SdkVersion._class.instanceMethodId( r'addIntegration', r'(Ljava/lang/String;)V', ); @@ -37031,17 +30823,17 @@ class SdkVersion extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - _addIntegration(reference.pointer, _id_addIntegration as jni$_.JMethodIDPtr, - _$string.pointer) + _addIntegration( + reference.pointer, _id_addIntegration.pointer, _$string.pointer) .check(); } - static final _id_getPackageSet = _class.instanceMethodId( + static final _id_get$packageSet = SdkVersion._class.instanceMethodId( r'getPackageSet', r'()Ljava/util/Set;', ); - static final _getPackageSet = jni$_.ProtectedJniExtensions.lookup< + static final _get$packageSet = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -37055,20 +30847,17 @@ class SdkVersion extends jni$_.JObject { /// from: `public java.util.Set getPackageSet()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JSet getPackageSet() { - return _getPackageSet( - reference.pointer, _id_getPackageSet as jni$_.JMethodIDPtr) - .object>( - const jni$_.JSetType( - $SentryPackage$NullableType())); + jni$_.JSet get packageSet { + return _get$packageSet(reference.pointer, _id_get$packageSet.pointer) + .object>(); } - static final _id_getIntegrationSet = _class.instanceMethodId( + static final _id_get$integrationSet = SdkVersion._class.instanceMethodId( r'getIntegrationSet', r'()Ljava/util/Set;', ); - static final _getIntegrationSet = jni$_.ProtectedJniExtensions.lookup< + static final _get$integrationSet = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -37082,57 +30871,13 @@ class SdkVersion extends jni$_.JObject { /// from: `public java.util.Set getIntegrationSet()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JSet getIntegrationSet() { - return _getIntegrationSet( - reference.pointer, _id_getIntegrationSet as jni$_.JMethodIDPtr) - .object>( - const jni$_.JSetType(jni$_.JStringNullableType())); + jni$_.JSet get integrationSet { + return _get$integrationSet( + reference.pointer, _id_get$integrationSet.pointer) + .object>(); } - static final _id_updateSdkVersion = _class.staticMethodId( - r'updateSdkVersion', - r'(Lio/sentry/protocol/SdkVersion;Ljava/lang/String;Ljava/lang/String;)Lio/sentry/protocol/SdkVersion;', - ); - - static final _updateSdkVersion = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer)>(); - - /// from: `static public io.sentry.protocol.SdkVersion updateSdkVersion(io.sentry.protocol.SdkVersion sdkVersion, java.lang.String string, java.lang.String string1)` - /// The returned object must be released after use, by calling the [release] method. - static SdkVersion updateSdkVersion( - SdkVersion? sdkVersion, - jni$_.JString string, - jni$_.JString string1, - ) { - final _$sdkVersion = sdkVersion?.reference ?? jni$_.jNullReference; - final _$string = string.reference; - final _$string1 = string1.reference; - return _updateSdkVersion( - _class.reference.pointer, - _id_updateSdkVersion as jni$_.JMethodIDPtr, - _$sdkVersion.pointer, - _$string.pointer, - _$string1.pointer) - .object(const $SdkVersion$Type()); - } - - static final _id_equals = _class.instanceMethodId( + static final _id_equals = SdkVersion._class.instanceMethodId( r'equals', r'(Ljava/lang/Object;)Z', ); @@ -37149,16 +30894,15 @@ class SdkVersion extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( + core$_.bool equals( jni$_.JObject? object, ) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) + return _equals(reference.pointer, _id_equals.pointer, _$object.pointer) .boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( + static final _id_hashCode$1 = SdkVersion._class.instanceMethodId( r'hashCode', r'()I', ); @@ -37176,17 +30920,16 @@ class SdkVersion extends jni$_.JObject { )>(); /// from: `public int hashCode()` - int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + core$_.int hashCode$1() { + return _hashCode$1(reference.pointer, _id_hashCode$1.pointer).integer; } - static final _id_getUnknown = _class.instanceMethodId( + static final _id_get$unknown = SdkVersion._class.instanceMethodId( r'getUnknown', r'()Ljava/util/Map;', ); - static final _getUnknown = jni$_.ProtectedJniExtensions.lookup< + static final _get$unknown = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -37200,19 +30943,17 @@ class SdkVersion extends jni$_.JObject { /// from: `public java.util.Map getUnknown()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JMap? getUnknown() { - return _getUnknown(reference.pointer, _id_getUnknown as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JMapNullableType( - jni$_.JStringNullableType(), jni$_.JObjectNullableType())); + jni$_.JMap? get unknown { + return _get$unknown(reference.pointer, _id_get$unknown.pointer) + .object?>(); } - static final _id_setUnknown = _class.instanceMethodId( + static final _id_set$unknown = SdkVersion._class.instanceMethodId( r'setUnknown', r'(Ljava/util/Map;)V', ); - static final _setUnknown = jni$_.ProtectedJniExtensions.lookup< + static final _set$unknown = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -37224,16 +30965,13 @@ class SdkVersion extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setUnknown(java.util.Map map)` - void setUnknown( - jni$_.JMap? map, - ) { + set unknown(jni$_.JMap? map) { final _$map = map?.reference ?? jni$_.jNullReference; - _setUnknown(reference.pointer, _id_setUnknown as jni$_.JMethodIDPtr, - _$map.pointer) + _set$unknown(reference.pointer, _id_set$unknown.pointer, _$map.pointer) .check(); } - static final _id_serialize = _class.instanceMethodId( + static final _id_serialize = SdkVersion._class.instanceMethodId( r'serialize', r'(Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V', ); @@ -37262,103 +31000,30 @@ class SdkVersion extends jni$_.JObject { ) { final _$objectWriter = objectWriter.reference; final _$iLogger = iLogger.reference; - _serialize(reference.pointer, _id_serialize as jni$_.JMethodIDPtr, - _$objectWriter.pointer, _$iLogger.pointer) + _serialize(reference.pointer, _id_serialize.pointer, _$objectWriter.pointer, + _$iLogger.pointer) .check(); } } -final class $SdkVersion$NullableType extends jni$_.JObjType { - @jni$_.internal - const $SdkVersion$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/protocol/SdkVersion;'; - - @jni$_.internal - @core$_.override - SdkVersion? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : SdkVersion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SdkVersion$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SdkVersion$NullableType) && - other is $SdkVersion$NullableType; - } -} - -final class $SdkVersion$Type extends jni$_.JObjType { +final class $SdkVersion$Type$ extends jni$_.JType { @jni$_.internal - const $SdkVersion$Type(); + const $SdkVersion$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/protocol/SdkVersion;'; - - @jni$_.internal - @core$_.override - SdkVersion fromReference(jni$_.JReference reference) => - SdkVersion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SdkVersion$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SdkVersion$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SdkVersion$Type) && other is $SdkVersion$Type; - } } /// from: `io.sentry.protocol.SentryPackage$Deserializer` -class SentryPackage$Deserializer extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryPackage$Deserializer.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryPackage$Deserializer._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/protocol/SentryPackage$Deserializer'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryPackage$Deserializer$NullableType(); - static const type = $SentryPackage$Deserializer$Type(); + static const jni$_.JType type = + $SentryPackage$Deserializer$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -37378,12 +31043,14 @@ class SentryPackage$Deserializer extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryPackage$Deserializer() { - return SentryPackage$Deserializer.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_deserialize = _class.instanceMethodId( +extension SentryPackage$Deserializer$$Methods on SentryPackage$Deserializer { + static final _id_deserialize = + SentryPackage$Deserializer._class.instanceMethodId( r'deserialize', r'(Lio/sentry/ObjectReader;Lio/sentry/ILogger;)Lio/sentry/protocol/SentryPackage;', ); @@ -37413,110 +31080,31 @@ class SentryPackage$Deserializer extends jni$_.JObject { ) { final _$objectReader = objectReader.reference; final _$iLogger = iLogger.reference; - return _deserialize( - reference.pointer, - _id_deserialize as jni$_.JMethodIDPtr, - _$objectReader.pointer, - _$iLogger.pointer) - .object(const $SentryPackage$Type()); + return _deserialize(reference.pointer, _id_deserialize.pointer, + _$objectReader.pointer, _$iLogger.pointer) + .object(); } } -final class $SentryPackage$Deserializer$NullableType - extends jni$_.JObjType { +final class $SentryPackage$Deserializer$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryPackage$Deserializer$NullableType(); + const $SentryPackage$Deserializer$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/protocol/SentryPackage$Deserializer;'; - - @jni$_.internal - @core$_.override - SentryPackage$Deserializer? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryPackage$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryPackage$Deserializer$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryPackage$Deserializer$NullableType) && - other is $SentryPackage$Deserializer$NullableType; - } -} - -final class $SentryPackage$Deserializer$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryPackage$Deserializer$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/protocol/SentryPackage$Deserializer;'; - - @jni$_.internal - @core$_.override - SentryPackage$Deserializer fromReference(jni$_.JReference reference) => - SentryPackage$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryPackage$Deserializer$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryPackage$Deserializer$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryPackage$Deserializer$Type) && - other is $SentryPackage$Deserializer$Type; - } } /// from: `io.sentry.protocol.SentryPackage$JsonKeys` -class SentryPackage$JsonKeys extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryPackage$JsonKeys.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryPackage$JsonKeys._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/protocol/SentryPackage$JsonKeys'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryPackage$JsonKeys$NullableType(); - static const type = $SentryPackage$JsonKeys$Type(); + static const jni$_.JType type = + $SentryPackage$JsonKeys$Type$(); static final _id_NAME = _class.staticFieldId( r'NAME', r'Ljava/lang/String;', @@ -37525,7 +31113,7 @@ class SentryPackage$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String NAME` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get NAME => - _id_NAME.get(_class, const jni$_.JStringNullableType()); + _id_NAME.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_VERSION = _class.staticFieldId( r'VERSION', @@ -37535,7 +31123,7 @@ class SentryPackage$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String VERSION` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get VERSION => - _id_VERSION.get(_class, const jni$_.JStringNullableType()); + _id_VERSION.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_new$ = _class.constructorId( r'()V', @@ -37556,107 +31144,28 @@ class SentryPackage$JsonKeys extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SentryPackage$JsonKeys() { - return SentryPackage$JsonKeys.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } } -final class $SentryPackage$JsonKeys$NullableType - extends jni$_.JObjType { +final class $SentryPackage$JsonKeys$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryPackage$JsonKeys$NullableType(); + const $SentryPackage$JsonKeys$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/protocol/SentryPackage$JsonKeys;'; - - @jni$_.internal - @core$_.override - SentryPackage$JsonKeys? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryPackage$JsonKeys.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryPackage$JsonKeys$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryPackage$JsonKeys$NullableType) && - other is $SentryPackage$JsonKeys$NullableType; - } -} - -final class $SentryPackage$JsonKeys$Type - extends jni$_.JObjType { - @jni$_.internal - const $SentryPackage$JsonKeys$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/protocol/SentryPackage$JsonKeys;'; - - @jni$_.internal - @core$_.override - SentryPackage$JsonKeys fromReference(jni$_.JReference reference) => - SentryPackage$JsonKeys.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryPackage$JsonKeys$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryPackage$JsonKeys$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryPackage$JsonKeys$Type) && - other is $SentryPackage$JsonKeys$Type; - } } /// from: `io.sentry.protocol.SentryPackage` -class SentryPackage extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryPackage.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryPackage._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/protocol/SentryPackage'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryPackage$NullableType(); - static const type = $SentryPackage$Type(); + static const jni$_.JType type = $SentryPackage$Type$(); static final _id_new$ = _class.constructorId( r'(Ljava/lang/String;Ljava/lang/String;)V', ); @@ -37686,17 +31195,19 @@ class SentryPackage extends jni$_.JObject { ) { final _$string = string.reference; final _$string1 = string1.reference; - return SentryPackage.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$string.pointer, _$string1.pointer) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer, _$string.pointer, + _$string1.pointer) + .object(); } +} - static final _id_getName = _class.instanceMethodId( +extension SentryPackage$$Methods on SentryPackage { + static final _id_get$name = SentryPackage._class.instanceMethodId( r'getName', r'()Ljava/lang/String;', ); - static final _getName = jni$_.ProtectedJniExtensions.lookup< + static final _get$name = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -37710,17 +31221,17 @@ class SentryPackage extends jni$_.JObject { /// from: `public java.lang.String getName()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString getName() { - return _getName(reference.pointer, _id_getName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + jni$_.JString get name { + return _get$name(reference.pointer, _id_get$name.pointer) + .object(); } - static final _id_setName = _class.instanceMethodId( + static final _id_set$name = SentryPackage._class.instanceMethodId( r'setName', r'(Ljava/lang/String;)V', ); - static final _setName = jni$_.ProtectedJniExtensions.lookup< + static final _set$name = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -37732,21 +31243,18 @@ class SentryPackage extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setName(java.lang.String string)` - void setName( - jni$_.JString string, - ) { + set name(jni$_.JString string) { final _$string = string.reference; - _setName(reference.pointer, _id_setName as jni$_.JMethodIDPtr, - _$string.pointer) + _set$name(reference.pointer, _id_set$name.pointer, _$string.pointer) .check(); } - static final _id_getVersion = _class.instanceMethodId( + static final _id_get$version = SentryPackage._class.instanceMethodId( r'getVersion', r'()Ljava/lang/String;', ); - static final _getVersion = jni$_.ProtectedJniExtensions.lookup< + static final _get$version = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -37760,17 +31268,17 @@ class SentryPackage extends jni$_.JObject { /// from: `public java.lang.String getVersion()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString getVersion() { - return _getVersion(reference.pointer, _id_getVersion as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + jni$_.JString get version { + return _get$version(reference.pointer, _id_get$version.pointer) + .object(); } - static final _id_setVersion = _class.instanceMethodId( + static final _id_set$version = SentryPackage._class.instanceMethodId( r'setVersion', r'(Ljava/lang/String;)V', ); - static final _setVersion = jni$_.ProtectedJniExtensions.lookup< + static final _set$version = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -37782,16 +31290,13 @@ class SentryPackage extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setVersion(java.lang.String string)` - void setVersion( - jni$_.JString string, - ) { + set version(jni$_.JString string) { final _$string = string.reference; - _setVersion(reference.pointer, _id_setVersion as jni$_.JMethodIDPtr, - _$string.pointer) + _set$version(reference.pointer, _id_set$version.pointer, _$string.pointer) .check(); } - static final _id_equals = _class.instanceMethodId( + static final _id_equals = SentryPackage._class.instanceMethodId( r'equals', r'(Ljava/lang/Object;)Z', ); @@ -37808,16 +31313,15 @@ class SentryPackage extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( + core$_.bool equals( jni$_.JObject? object, ) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) + return _equals(reference.pointer, _id_equals.pointer, _$object.pointer) .boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( + static final _id_hashCode$1 = SentryPackage._class.instanceMethodId( r'hashCode', r'()I', ); @@ -37835,17 +31339,16 @@ class SentryPackage extends jni$_.JObject { )>(); /// from: `public int hashCode()` - int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + core$_.int hashCode$1() { + return _hashCode$1(reference.pointer, _id_hashCode$1.pointer).integer; } - static final _id_getUnknown = _class.instanceMethodId( + static final _id_get$unknown = SentryPackage._class.instanceMethodId( r'getUnknown', r'()Ljava/util/Map;', ); - static final _getUnknown = jni$_.ProtectedJniExtensions.lookup< + static final _get$unknown = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -37859,19 +31362,17 @@ class SentryPackage extends jni$_.JObject { /// from: `public java.util.Map getUnknown()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JMap? getUnknown() { - return _getUnknown(reference.pointer, _id_getUnknown as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JMapNullableType( - jni$_.JStringNullableType(), jni$_.JObjectNullableType())); + jni$_.JMap? get unknown { + return _get$unknown(reference.pointer, _id_get$unknown.pointer) + .object?>(); } - static final _id_setUnknown = _class.instanceMethodId( + static final _id_set$unknown = SentryPackage._class.instanceMethodId( r'setUnknown', r'(Ljava/util/Map;)V', ); - static final _setUnknown = jni$_.ProtectedJniExtensions.lookup< + static final _set$unknown = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -37883,16 +31384,13 @@ class SentryPackage extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setUnknown(java.util.Map map)` - void setUnknown( - jni$_.JMap? map, - ) { + set unknown(jni$_.JMap? map) { final _$map = map?.reference ?? jni$_.jNullReference; - _setUnknown(reference.pointer, _id_setUnknown as jni$_.JMethodIDPtr, - _$map.pointer) + _set$unknown(reference.pointer, _id_set$unknown.pointer, _$map.pointer) .check(); } - static final _id_serialize = _class.instanceMethodId( + static final _id_serialize = SentryPackage._class.instanceMethodId( r'serialize', r'(Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V', ); @@ -37921,104 +31419,30 @@ class SentryPackage extends jni$_.JObject { ) { final _$objectWriter = objectWriter.reference; final _$iLogger = iLogger.reference; - _serialize(reference.pointer, _id_serialize as jni$_.JMethodIDPtr, - _$objectWriter.pointer, _$iLogger.pointer) + _serialize(reference.pointer, _id_serialize.pointer, _$objectWriter.pointer, + _$iLogger.pointer) .check(); } } -final class $SentryPackage$NullableType extends jni$_.JObjType { +final class $SentryPackage$Type$ extends jni$_.JType { @jni$_.internal - const $SentryPackage$NullableType(); + const $SentryPackage$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/protocol/SentryPackage;'; - - @jni$_.internal - @core$_.override - SentryPackage? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : SentryPackage.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryPackage$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryPackage$NullableType) && - other is $SentryPackage$NullableType; - } -} - -final class $SentryPackage$Type extends jni$_.JObjType { - @jni$_.internal - const $SentryPackage$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/protocol/SentryPackage;'; - - @jni$_.internal - @core$_.override - SentryPackage fromReference(jni$_.JReference reference) => - SentryPackage.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryPackage$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryPackage$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryPackage$Type) && - other is $SentryPackage$Type; - } } /// from: `io.sentry.rrweb.RRWebOptionsEvent$Deserializer` -class RRWebOptionsEvent$Deserializer extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - RRWebOptionsEvent$Deserializer.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type RRWebOptionsEvent$Deserializer._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/rrweb/RRWebOptionsEvent$Deserializer'); /// The type which includes information such as the signature of this class. - static const nullableType = $RRWebOptionsEvent$Deserializer$NullableType(); - static const type = $RRWebOptionsEvent$Deserializer$Type(); + static const jni$_.JType type = + $RRWebOptionsEvent$Deserializer$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -38038,12 +31462,15 @@ class RRWebOptionsEvent$Deserializer extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory RRWebOptionsEvent$Deserializer() { - return RRWebOptionsEvent$Deserializer.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_deserialize = _class.instanceMethodId( +extension RRWebOptionsEvent$Deserializer$$Methods + on RRWebOptionsEvent$Deserializer { + static final _id_deserialize = + RRWebOptionsEvent$Deserializer._class.instanceMethodId( r'deserialize', r'(Lio/sentry/ObjectReader;Lio/sentry/ILogger;)Lio/sentry/rrweb/RRWebOptionsEvent;', ); @@ -38073,111 +31500,31 @@ class RRWebOptionsEvent$Deserializer extends jni$_.JObject { ) { final _$objectReader = objectReader.reference; final _$iLogger = iLogger.reference; - return _deserialize( - reference.pointer, - _id_deserialize as jni$_.JMethodIDPtr, - _$objectReader.pointer, - _$iLogger.pointer) - .object(const $RRWebOptionsEvent$Type()); + return _deserialize(reference.pointer, _id_deserialize.pointer, + _$objectReader.pointer, _$iLogger.pointer) + .object(); } } -final class $RRWebOptionsEvent$Deserializer$NullableType - extends jni$_.JObjType { +final class $RRWebOptionsEvent$Deserializer$Type$ + extends jni$_.JType { @jni$_.internal - const $RRWebOptionsEvent$Deserializer$NullableType(); + const $RRWebOptionsEvent$Deserializer$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/rrweb/RRWebOptionsEvent$Deserializer;'; - - @jni$_.internal - @core$_.override - RRWebOptionsEvent$Deserializer? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : RRWebOptionsEvent$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($RRWebOptionsEvent$Deserializer$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($RRWebOptionsEvent$Deserializer$NullableType) && - other is $RRWebOptionsEvent$Deserializer$NullableType; - } -} - -final class $RRWebOptionsEvent$Deserializer$Type - extends jni$_.JObjType { - @jni$_.internal - const $RRWebOptionsEvent$Deserializer$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/rrweb/RRWebOptionsEvent$Deserializer;'; - - @jni$_.internal - @core$_.override - RRWebOptionsEvent$Deserializer fromReference(jni$_.JReference reference) => - RRWebOptionsEvent$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $RRWebOptionsEvent$Deserializer$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($RRWebOptionsEvent$Deserializer$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RRWebOptionsEvent$Deserializer$Type) && - other is $RRWebOptionsEvent$Deserializer$Type; - } } /// from: `io.sentry.rrweb.RRWebOptionsEvent$JsonKeys` -class RRWebOptionsEvent$JsonKeys extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - RRWebOptionsEvent$JsonKeys.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type RRWebOptionsEvent$JsonKeys._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/rrweb/RRWebOptionsEvent$JsonKeys'); /// The type which includes information such as the signature of this class. - static const nullableType = $RRWebOptionsEvent$JsonKeys$NullableType(); - static const type = $RRWebOptionsEvent$JsonKeys$Type(); + static const jni$_.JType type = + $RRWebOptionsEvent$JsonKeys$Type$(); static final _id_DATA = _class.staticFieldId( r'DATA', r'Ljava/lang/String;', @@ -38186,7 +31533,7 @@ class RRWebOptionsEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String DATA` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get DATA => - _id_DATA.get(_class, const jni$_.JStringNullableType()); + _id_DATA.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_PAYLOAD = _class.staticFieldId( r'PAYLOAD', @@ -38196,7 +31543,7 @@ class RRWebOptionsEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String PAYLOAD` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get PAYLOAD => - _id_PAYLOAD.get(_class, const jni$_.JStringNullableType()); + _id_PAYLOAD.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_new$ = _class.constructorId( r'()V', @@ -38217,107 +31564,29 @@ class RRWebOptionsEvent$JsonKeys extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory RRWebOptionsEvent$JsonKeys() { - return RRWebOptionsEvent$JsonKeys.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); - } -} - -final class $RRWebOptionsEvent$JsonKeys$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $RRWebOptionsEvent$JsonKeys$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/rrweb/RRWebOptionsEvent$JsonKeys;'; - - @jni$_.internal - @core$_.override - RRWebOptionsEvent$JsonKeys? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : RRWebOptionsEvent$JsonKeys.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($RRWebOptionsEvent$JsonKeys$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RRWebOptionsEvent$JsonKeys$NullableType) && - other is $RRWebOptionsEvent$JsonKeys$NullableType; + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } } -final class $RRWebOptionsEvent$JsonKeys$Type - extends jni$_.JObjType { +final class $RRWebOptionsEvent$JsonKeys$Type$ + extends jni$_.JType { @jni$_.internal - const $RRWebOptionsEvent$JsonKeys$Type(); + const $RRWebOptionsEvent$JsonKeys$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/rrweb/RRWebOptionsEvent$JsonKeys;'; - - @jni$_.internal - @core$_.override - RRWebOptionsEvent$JsonKeys fromReference(jni$_.JReference reference) => - RRWebOptionsEvent$JsonKeys.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $RRWebOptionsEvent$JsonKeys$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($RRWebOptionsEvent$JsonKeys$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RRWebOptionsEvent$JsonKeys$Type) && - other is $RRWebOptionsEvent$JsonKeys$Type; - } } /// from: `io.sentry.rrweb.RRWebOptionsEvent` -class RRWebOptionsEvent extends RRWebEvent { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - RRWebOptionsEvent.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type RRWebOptionsEvent._(jni$_.JObject _$this) + implements RRWebEvent, jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/rrweb/RRWebOptionsEvent'); /// The type which includes information such as the signature of this class. - static const nullableType = $RRWebOptionsEvent$NullableType(); - static const type = $RRWebOptionsEvent$Type(); + static const jni$_.JType type = $RRWebOptionsEvent$Type$(); static final _id_EVENT_TAG = _class.staticFieldId( r'EVENT_TAG', r'Ljava/lang/String;', @@ -38326,7 +31595,7 @@ class RRWebOptionsEvent extends RRWebEvent { /// from: `static public final java.lang.String EVENT_TAG` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get EVENT_TAG => - _id_EVENT_TAG.get(_class, const jni$_.JStringNullableType()); + _id_EVENT_TAG.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_new$ = _class.constructorId( r'()V', @@ -38347,9 +31616,8 @@ class RRWebOptionsEvent extends RRWebEvent { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory RRWebOptionsEvent() { - return RRWebOptionsEvent.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } static final _id_new$1 = _class.constructorId( @@ -38373,17 +31641,19 @@ class RRWebOptionsEvent extends RRWebEvent { SentryOptions sentryOptions, ) { final _$sentryOptions = sentryOptions.reference; - return RRWebOptionsEvent.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$sentryOptions.pointer) - .reference); + return _new$1(_class.reference.pointer, _id_new$1.pointer, + _$sentryOptions.pointer) + .object(); } +} - static final _id_getTag = _class.instanceMethodId( +extension RRWebOptionsEvent$$Methods on RRWebOptionsEvent { + static final _id_get$tag = RRWebOptionsEvent._class.instanceMethodId( r'getTag', r'()Ljava/lang/String;', ); - static final _getTag = jni$_.ProtectedJniExtensions.lookup< + static final _get$tag = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -38397,17 +31667,17 @@ class RRWebOptionsEvent extends RRWebEvent { /// from: `public java.lang.String getTag()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString getTag() { - return _getTag(reference.pointer, _id_getTag as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + jni$_.JString get tag { + return _get$tag(reference.pointer, _id_get$tag.pointer) + .object(); } - static final _id_setTag = _class.instanceMethodId( + static final _id_set$tag = RRWebOptionsEvent._class.instanceMethodId( r'setTag', r'(Ljava/lang/String;)V', ); - static final _setTag = jni$_.ProtectedJniExtensions.lookup< + static final _set$tag = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -38419,21 +31689,18 @@ class RRWebOptionsEvent extends RRWebEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setTag(java.lang.String string)` - void setTag( - jni$_.JString string, - ) { + set tag(jni$_.JString string) { final _$string = string.reference; - _setTag(reference.pointer, _id_setTag as jni$_.JMethodIDPtr, - _$string.pointer) - .check(); + _set$tag(reference.pointer, _id_set$tag.pointer, _$string.pointer).check(); } - static final _id_getOptionsPayload = _class.instanceMethodId( + static final _id_get$optionsPayload = + RRWebOptionsEvent._class.instanceMethodId( r'getOptionsPayload', r'()Ljava/util/Map;', ); - static final _getOptionsPayload = jni$_.ProtectedJniExtensions.lookup< + static final _get$optionsPayload = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -38447,20 +31714,19 @@ class RRWebOptionsEvent extends RRWebEvent { /// from: `public java.util.Map getOptionsPayload()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JMap getOptionsPayload() { - return _getOptionsPayload( - reference.pointer, _id_getOptionsPayload as jni$_.JMethodIDPtr) - .object>( - const jni$_.JMapType( - jni$_.JStringNullableType(), jni$_.JObjectNullableType())); + jni$_.JMap get optionsPayload { + return _get$optionsPayload( + reference.pointer, _id_get$optionsPayload.pointer) + .object>(); } - static final _id_setOptionsPayload = _class.instanceMethodId( + static final _id_set$optionsPayload = + RRWebOptionsEvent._class.instanceMethodId( r'setOptionsPayload', r'(Ljava/util/Map;)V', ); - static final _setOptionsPayload = jni$_.ProtectedJniExtensions.lookup< + static final _set$optionsPayload = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -38472,21 +31738,19 @@ class RRWebOptionsEvent extends RRWebEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setOptionsPayload(java.util.Map map)` - void setOptionsPayload( - jni$_.JMap map, - ) { + set optionsPayload(jni$_.JMap map) { final _$map = map.reference; - _setOptionsPayload(reference.pointer, - _id_setOptionsPayload as jni$_.JMethodIDPtr, _$map.pointer) + _set$optionsPayload( + reference.pointer, _id_set$optionsPayload.pointer, _$map.pointer) .check(); } - static final _id_getDataUnknown = _class.instanceMethodId( + static final _id_get$dataUnknown = RRWebOptionsEvent._class.instanceMethodId( r'getDataUnknown', r'()Ljava/util/Map;', ); - static final _getDataUnknown = jni$_.ProtectedJniExtensions.lookup< + static final _get$dataUnknown = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -38500,20 +31764,17 @@ class RRWebOptionsEvent extends RRWebEvent { /// from: `public java.util.Map getDataUnknown()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JMap? getDataUnknown() { - return _getDataUnknown( - reference.pointer, _id_getDataUnknown as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JMapNullableType( - jni$_.JStringNullableType(), jni$_.JObjectNullableType())); + jni$_.JMap? get dataUnknown { + return _get$dataUnknown(reference.pointer, _id_get$dataUnknown.pointer) + .object?>(); } - static final _id_setDataUnknown = _class.instanceMethodId( + static final _id_set$dataUnknown = RRWebOptionsEvent._class.instanceMethodId( r'setDataUnknown', r'(Ljava/util/Map;)V', ); - static final _setDataUnknown = jni$_.ProtectedJniExtensions.lookup< + static final _set$dataUnknown = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -38525,21 +31786,19 @@ class RRWebOptionsEvent extends RRWebEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setDataUnknown(java.util.Map map)` - void setDataUnknown( - jni$_.JMap? map, - ) { + set dataUnknown(jni$_.JMap? map) { final _$map = map?.reference ?? jni$_.jNullReference; - _setDataUnknown(reference.pointer, _id_setDataUnknown as jni$_.JMethodIDPtr, - _$map.pointer) + _set$dataUnknown( + reference.pointer, _id_set$dataUnknown.pointer, _$map.pointer) .check(); } - static final _id_getUnknown = _class.instanceMethodId( + static final _id_get$unknown = RRWebOptionsEvent._class.instanceMethodId( r'getUnknown', r'()Ljava/util/Map;', ); - static final _getUnknown = jni$_.ProtectedJniExtensions.lookup< + static final _get$unknown = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -38553,19 +31812,17 @@ class RRWebOptionsEvent extends RRWebEvent { /// from: `public java.util.Map getUnknown()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JMap? getUnknown() { - return _getUnknown(reference.pointer, _id_getUnknown as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JMapNullableType( - jni$_.JStringNullableType(), jni$_.JObjectNullableType())); + jni$_.JMap? get unknown { + return _get$unknown(reference.pointer, _id_get$unknown.pointer) + .object?>(); } - static final _id_setUnknown = _class.instanceMethodId( + static final _id_set$unknown = RRWebOptionsEvent._class.instanceMethodId( r'setUnknown', r'(Ljava/util/Map;)V', ); - static final _setUnknown = jni$_.ProtectedJniExtensions.lookup< + static final _set$unknown = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -38577,16 +31834,13 @@ class RRWebOptionsEvent extends RRWebEvent { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setUnknown(java.util.Map map)` - void setUnknown( - jni$_.JMap? map, - ) { + set unknown(jni$_.JMap? map) { final _$map = map?.reference ?? jni$_.jNullReference; - _setUnknown(reference.pointer, _id_setUnknown as jni$_.JMethodIDPtr, - _$map.pointer) + _set$unknown(reference.pointer, _id_set$unknown.pointer, _$map.pointer) .check(); } - static final _id_serialize = _class.instanceMethodId( + static final _id_serialize = RRWebOptionsEvent._class.instanceMethodId( r'serialize', r'(Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V', ); @@ -38615,106 +31869,30 @@ class RRWebOptionsEvent extends RRWebEvent { ) { final _$objectWriter = objectWriter.reference; final _$iLogger = iLogger.reference; - _serialize(reference.pointer, _id_serialize as jni$_.JMethodIDPtr, - _$objectWriter.pointer, _$iLogger.pointer) + _serialize(reference.pointer, _id_serialize.pointer, _$objectWriter.pointer, + _$iLogger.pointer) .check(); } } -final class $RRWebOptionsEvent$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $RRWebOptionsEvent$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/rrweb/RRWebOptionsEvent;'; - - @jni$_.internal - @core$_.override - RRWebOptionsEvent? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : RRWebOptionsEvent.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const $RRWebEvent$NullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 2; - - @core$_.override - int get hashCode => ($RRWebOptionsEvent$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RRWebOptionsEvent$NullableType) && - other is $RRWebOptionsEvent$NullableType; - } -} - -final class $RRWebOptionsEvent$Type extends jni$_.JObjType { +final class $RRWebOptionsEvent$Type$ extends jni$_.JType { @jni$_.internal - const $RRWebOptionsEvent$Type(); + const $RRWebOptionsEvent$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/rrweb/RRWebOptionsEvent;'; - - @jni$_.internal - @core$_.override - RRWebOptionsEvent fromReference(jni$_.JReference reference) => - RRWebOptionsEvent.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const $RRWebEvent$NullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $RRWebOptionsEvent$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 2; - - @core$_.override - int get hashCode => ($RRWebOptionsEvent$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RRWebOptionsEvent$Type) && - other is $RRWebOptionsEvent$Type; - } } /// from: `io.sentry.rrweb.RRWebEvent$Deserializer` -class RRWebEvent$Deserializer extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - RRWebEvent$Deserializer.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type RRWebEvent$Deserializer._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/rrweb/RRWebEvent$Deserializer'); /// The type which includes information such as the signature of this class. - static const nullableType = $RRWebEvent$Deserializer$NullableType(); - static const type = $RRWebEvent$Deserializer$Type(); + static const jni$_.JType type = + $RRWebEvent$Deserializer$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -38734,12 +31912,14 @@ class RRWebEvent$Deserializer extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory RRWebEvent$Deserializer() { - return RRWebEvent$Deserializer.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_deserializeValue = _class.instanceMethodId( +extension RRWebEvent$Deserializer$$Methods on RRWebEvent$Deserializer { + static final _id_deserializeValue = + RRWebEvent$Deserializer._class.instanceMethodId( r'deserializeValue', r'(Lio/sentry/rrweb/RRWebEvent;Ljava/lang/String;Lio/sentry/ObjectReader;Lio/sentry/ILogger;)Z', ); @@ -38766,7 +31946,7 @@ class RRWebEvent$Deserializer extends jni$_.JObject { jni$_.Pointer)>(); /// from: `public boolean deserializeValue(io.sentry.rrweb.RRWebEvent rRWebEvent, java.lang.String string, io.sentry.ObjectReader objectReader, io.sentry.ILogger iLogger)` - bool deserializeValue( + core$_.bool deserializeValue( RRWebEvent rRWebEvent, jni$_.JString string, jni$_.JObject objectReader, @@ -38778,7 +31958,7 @@ class RRWebEvent$Deserializer extends jni$_.JObject { final _$iLogger = iLogger.reference; return _deserializeValue( reference.pointer, - _id_deserializeValue as jni$_.JMethodIDPtr, + _id_deserializeValue.pointer, _$rRWebEvent.pointer, _$string.pointer, _$objectReader.pointer, @@ -38787,101 +31967,25 @@ class RRWebEvent$Deserializer extends jni$_.JObject { } } -final class $RRWebEvent$Deserializer$NullableType - extends jni$_.JObjType { +final class $RRWebEvent$Deserializer$Type$ + extends jni$_.JType { @jni$_.internal - const $RRWebEvent$Deserializer$NullableType(); + const $RRWebEvent$Deserializer$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/rrweb/RRWebEvent$Deserializer;'; - - @jni$_.internal - @core$_.override - RRWebEvent$Deserializer? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : RRWebEvent$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($RRWebEvent$Deserializer$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RRWebEvent$Deserializer$NullableType) && - other is $RRWebEvent$Deserializer$NullableType; - } -} - -final class $RRWebEvent$Deserializer$Type - extends jni$_.JObjType { - @jni$_.internal - const $RRWebEvent$Deserializer$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/rrweb/RRWebEvent$Deserializer;'; - - @jni$_.internal - @core$_.override - RRWebEvent$Deserializer fromReference(jni$_.JReference reference) => - RRWebEvent$Deserializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $RRWebEvent$Deserializer$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($RRWebEvent$Deserializer$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RRWebEvent$Deserializer$Type) && - other is $RRWebEvent$Deserializer$Type; - } } /// from: `io.sentry.rrweb.RRWebEvent$JsonKeys` -class RRWebEvent$JsonKeys extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - RRWebEvent$JsonKeys.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type RRWebEvent$JsonKeys._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/rrweb/RRWebEvent$JsonKeys'); /// The type which includes information such as the signature of this class. - static const nullableType = $RRWebEvent$JsonKeys$NullableType(); - static const type = $RRWebEvent$JsonKeys$Type(); + static const jni$_.JType type = + $RRWebEvent$JsonKeys$Type$(); static final _id_TYPE = _class.staticFieldId( r'TYPE', r'Ljava/lang/String;', @@ -38890,7 +31994,7 @@ class RRWebEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String TYPE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TYPE => - _id_TYPE.get(_class, const jni$_.JStringNullableType()); + _id_TYPE.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_TIMESTAMP = _class.staticFieldId( r'TIMESTAMP', @@ -38900,7 +32004,7 @@ class RRWebEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String TIMESTAMP` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TIMESTAMP => - _id_TIMESTAMP.get(_class, const jni$_.JStringNullableType()); + _id_TIMESTAMP.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_TAG = _class.staticFieldId( r'TAG', @@ -38910,7 +32014,7 @@ class RRWebEvent$JsonKeys extends jni$_.JObject { /// from: `static public final java.lang.String TAG` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TAG => - _id_TAG.get(_class, const jni$_.JStringNullableType()); + _id_TAG.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_new$ = _class.constructorId( r'()V', @@ -38931,107 +32035,30 @@ class RRWebEvent$JsonKeys extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory RRWebEvent$JsonKeys() { - return RRWebEvent$JsonKeys.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } } -final class $RRWebEvent$JsonKeys$NullableType - extends jni$_.JObjType { +final class $RRWebEvent$JsonKeys$Type$ + extends jni$_.JType { @jni$_.internal - const $RRWebEvent$JsonKeys$NullableType(); + const $RRWebEvent$JsonKeys$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/rrweb/RRWebEvent$JsonKeys;'; - - @jni$_.internal - @core$_.override - RRWebEvent$JsonKeys? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : RRWebEvent$JsonKeys.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($RRWebEvent$JsonKeys$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RRWebEvent$JsonKeys$NullableType) && - other is $RRWebEvent$JsonKeys$NullableType; - } -} - -final class $RRWebEvent$JsonKeys$Type - extends jni$_.JObjType { - @jni$_.internal - const $RRWebEvent$JsonKeys$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/rrweb/RRWebEvent$JsonKeys;'; - - @jni$_.internal - @core$_.override - RRWebEvent$JsonKeys fromReference(jni$_.JReference reference) => - RRWebEvent$JsonKeys.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $RRWebEvent$JsonKeys$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($RRWebEvent$JsonKeys$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RRWebEvent$JsonKeys$Type) && - other is $RRWebEvent$JsonKeys$Type; - } } /// from: `io.sentry.rrweb.RRWebEvent$Serializer` -class RRWebEvent$Serializer extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - RRWebEvent$Serializer.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type RRWebEvent$Serializer._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/rrweb/RRWebEvent$Serializer'); /// The type which includes information such as the signature of this class. - static const nullableType = $RRWebEvent$Serializer$NullableType(); - static const type = $RRWebEvent$Serializer$Type(); + static const jni$_.JType type = + $RRWebEvent$Serializer$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -39051,12 +32078,13 @@ class RRWebEvent$Serializer extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory RRWebEvent$Serializer() { - return RRWebEvent$Serializer.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer) + .object(); } +} - static final _id_serialize = _class.instanceMethodId( +extension RRWebEvent$Serializer$$Methods on RRWebEvent$Serializer { + static final _id_serialize = RRWebEvent$Serializer._class.instanceMethodId( r'serialize', r'(Lio/sentry/rrweb/RRWebEvent;Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V', ); @@ -39089,112 +32117,37 @@ class RRWebEvent$Serializer extends jni$_.JObject { final _$rRWebEvent = rRWebEvent.reference; final _$objectWriter = objectWriter.reference; final _$iLogger = iLogger.reference; - _serialize(reference.pointer, _id_serialize as jni$_.JMethodIDPtr, - _$rRWebEvent.pointer, _$objectWriter.pointer, _$iLogger.pointer) + _serialize(reference.pointer, _id_serialize.pointer, _$rRWebEvent.pointer, + _$objectWriter.pointer, _$iLogger.pointer) .check(); } } -final class $RRWebEvent$Serializer$NullableType - extends jni$_.JObjType { +final class $RRWebEvent$Serializer$Type$ + extends jni$_.JType { @jni$_.internal - const $RRWebEvent$Serializer$NullableType(); + const $RRWebEvent$Serializer$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/rrweb/RRWebEvent$Serializer;'; - - @jni$_.internal - @core$_.override - RRWebEvent$Serializer? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : RRWebEvent$Serializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($RRWebEvent$Serializer$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RRWebEvent$Serializer$NullableType) && - other is $RRWebEvent$Serializer$NullableType; - } -} - -final class $RRWebEvent$Serializer$Type - extends jni$_.JObjType { - @jni$_.internal - const $RRWebEvent$Serializer$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/rrweb/RRWebEvent$Serializer;'; - - @jni$_.internal - @core$_.override - RRWebEvent$Serializer fromReference(jni$_.JReference reference) => - RRWebEvent$Serializer.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $RRWebEvent$Serializer$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($RRWebEvent$Serializer$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RRWebEvent$Serializer$Type) && - other is $RRWebEvent$Serializer$Type; - } } /// from: `io.sentry.rrweb.RRWebEvent` -class RRWebEvent extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - RRWebEvent.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type RRWebEvent._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/rrweb/RRWebEvent'); /// The type which includes information such as the signature of this class. - static const nullableType = $RRWebEvent$NullableType(); - static const type = $RRWebEvent$Type(); - static final _id_getType = _class.instanceMethodId( + static const jni$_.JType type = $RRWebEvent$Type$(); +} + +extension RRWebEvent$$Methods on RRWebEvent { + static final _id_get$type$1 = RRWebEvent._class.instanceMethodId( r'getType', r'()Lio/sentry/rrweb/RRWebEventType;', ); - static final _getType = jni$_.ProtectedJniExtensions.lookup< + static final _get$type$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -39208,17 +32161,17 @@ class RRWebEvent extends jni$_.JObject { /// from: `public io.sentry.rrweb.RRWebEventType getType()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getType() { - return _getType(reference.pointer, _id_getType as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get type$1 { + return _get$type$1(reference.pointer, _id_get$type$1.pointer) + .object(); } - static final _id_setType = _class.instanceMethodId( + static final _id_set$type$1 = RRWebEvent._class.instanceMethodId( r'setType', r'(Lio/sentry/rrweb/RRWebEventType;)V', ); - static final _setType = jni$_.ProtectedJniExtensions.lookup< + static final _set$type$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -39230,21 +32183,19 @@ class RRWebEvent extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setType(io.sentry.rrweb.RRWebEventType rRWebEventType)` - void setType( - jni$_.JObject rRWebEventType, - ) { + set type$1(jni$_.JObject rRWebEventType) { final _$rRWebEventType = rRWebEventType.reference; - _setType(reference.pointer, _id_setType as jni$_.JMethodIDPtr, - _$rRWebEventType.pointer) + _set$type$1( + reference.pointer, _id_set$type$1.pointer, _$rRWebEventType.pointer) .check(); } - static final _id_getTimestamp = _class.instanceMethodId( + static final _id_get$timestamp = RRWebEvent._class.instanceMethodId( r'getTimestamp', r'()J', ); - static final _getTimestamp = jni$_.ProtectedJniExtensions.lookup< + static final _get$timestamp = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -39257,18 +32208,16 @@ class RRWebEvent extends jni$_.JObject { )>(); /// from: `public long getTimestamp()` - int getTimestamp() { - return _getTimestamp( - reference.pointer, _id_getTimestamp as jni$_.JMethodIDPtr) - .long; + core$_.int get timestamp { + return _get$timestamp(reference.pointer, _id_get$timestamp.pointer).long; } - static final _id_setTimestamp = _class.instanceMethodId( + static final _id_set$timestamp = RRWebEvent._class.instanceMethodId( r'setTimestamp', r'(J)V', ); - static final _setTimestamp = jni$_.ProtectedJniExtensions.lookup< + static final _set$timestamp = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -39276,17 +32225,14 @@ class RRWebEvent extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setTimestamp(long j)` - void setTimestamp( - int j, - ) { - _setTimestamp(reference.pointer, _id_setTimestamp as jni$_.JMethodIDPtr, j) - .check(); + set timestamp(core$_.int j) { + _set$timestamp(reference.pointer, _id_set$timestamp.pointer, j).check(); } - static final _id_equals = _class.instanceMethodId( + static final _id_equals = RRWebEvent._class.instanceMethodId( r'equals', r'(Ljava/lang/Object;)Z', ); @@ -39303,16 +32249,15 @@ class RRWebEvent extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( + core$_.bool equals( jni$_.JObject? object, ) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) + return _equals(reference.pointer, _id_equals.pointer, _$object.pointer) .boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( + static final _id_hashCode$1 = RRWebEvent._class.instanceMethodId( r'hashCode', r'()I', ); @@ -39330,102 +32275,27 @@ class RRWebEvent extends jni$_.JObject { )>(); /// from: `public int hashCode()` - int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + core$_.int hashCode$1() { + return _hashCode$1(reference.pointer, _id_hashCode$1.pointer).integer; } } -final class $RRWebEvent$NullableType extends jni$_.JObjType { +final class $RRWebEvent$Type$ extends jni$_.JType { @jni$_.internal - const $RRWebEvent$NullableType(); + const $RRWebEvent$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/rrweb/RRWebEvent;'; - - @jni$_.internal - @core$_.override - RRWebEvent? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : RRWebEvent.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($RRWebEvent$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RRWebEvent$NullableType) && - other is $RRWebEvent$NullableType; - } -} - -final class $RRWebEvent$Type extends jni$_.JObjType { - @jni$_.internal - const $RRWebEvent$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/rrweb/RRWebEvent;'; - - @jni$_.internal - @core$_.override - RRWebEvent fromReference(jni$_.JReference reference) => - RRWebEvent.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $RRWebEvent$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($RRWebEvent$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RRWebEvent$Type) && other is $RRWebEvent$Type; - } } /// from: `io.sentry.SentryTraceHeader` -class SentryTraceHeader extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SentryTraceHeader.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SentryTraceHeader._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'io/sentry/SentryTraceHeader'); /// The type which includes information such as the signature of this class. - static const nullableType = $SentryTraceHeader$NullableType(); - static const type = $SentryTraceHeader$Type(); + static const jni$_.JType type = $SentryTraceHeader$Type$(); static final _id_SENTRY_TRACE_HEADER = _class.staticFieldId( r'SENTRY_TRACE_HEADER', r'Ljava/lang/String;', @@ -39434,7 +32304,8 @@ class SentryTraceHeader extends jni$_.JObject { /// from: `static public final java.lang.String SENTRY_TRACE_HEADER` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get SENTRY_TRACE_HEADER => - _id_SENTRY_TRACE_HEADER.get(_class, const jni$_.JStringNullableType()); + _id_SENTRY_TRACE_HEADER.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_new$ = _class.constructorId( r'(Lio/sentry/protocol/SentryId;Lio/sentry/SpanId;Ljava/lang/Boolean;)V', @@ -39469,13 +32340,9 @@ class SentryTraceHeader extends jni$_.JObject { final _$sentryId = sentryId.reference; final _$spanId = spanId.reference; final _$boolean = boolean?.reference ?? jni$_.jNullReference; - return SentryTraceHeader.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$sentryId.pointer, - _$spanId.pointer, - _$boolean.pointer) - .reference); + return _new$(_class.reference.pointer, _id_new$.pointer, _$sentryId.pointer, + _$spanId.pointer, _$boolean.pointer) + .object(); } static final _id_new$1 = _class.constructorId( @@ -39499,17 +32366,18 @@ class SentryTraceHeader extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - return SentryTraceHeader.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$string.pointer) - .reference); + return _new$1(_class.reference.pointer, _id_new$1.pointer, _$string.pointer) + .object(); } +} - static final _id_getName = _class.instanceMethodId( +extension SentryTraceHeader$$Methods on SentryTraceHeader { + static final _id_get$name = SentryTraceHeader._class.instanceMethodId( r'getName', r'()Ljava/lang/String;', ); - static final _getName = jni$_.ProtectedJniExtensions.lookup< + static final _get$name = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -39523,17 +32391,17 @@ class SentryTraceHeader extends jni$_.JObject { /// from: `public java.lang.String getName()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString getName() { - return _getName(reference.pointer, _id_getName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + jni$_.JString get name { + return _get$name(reference.pointer, _id_get$name.pointer) + .object(); } - static final _id_getValue = _class.instanceMethodId( + static final _id_get$value = SentryTraceHeader._class.instanceMethodId( r'getValue', r'()Ljava/lang/String;', ); - static final _getValue = jni$_.ProtectedJniExtensions.lookup< + static final _get$value = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -39547,17 +32415,17 @@ class SentryTraceHeader extends jni$_.JObject { /// from: `public java.lang.String getValue()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString getValue() { - return _getValue(reference.pointer, _id_getValue as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + jni$_.JString get value { + return _get$value(reference.pointer, _id_get$value.pointer) + .object(); } - static final _id_getTraceId = _class.instanceMethodId( + static final _id_get$traceId = SentryTraceHeader._class.instanceMethodId( r'getTraceId', r'()Lio/sentry/protocol/SentryId;', ); - static final _getTraceId = jni$_.ProtectedJniExtensions.lookup< + static final _get$traceId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -39571,17 +32439,17 @@ class SentryTraceHeader extends jni$_.JObject { /// from: `public io.sentry.protocol.SentryId getTraceId()` /// The returned object must be released after use, by calling the [release] method. - SentryId getTraceId() { - return _getTraceId(reference.pointer, _id_getTraceId as jni$_.JMethodIDPtr) - .object(const $SentryId$Type()); + SentryId get traceId { + return _get$traceId(reference.pointer, _id_get$traceId.pointer) + .object(); } - static final _id_getSpanId = _class.instanceMethodId( + static final _id_get$spanId = SentryTraceHeader._class.instanceMethodId( r'getSpanId', r'()Lio/sentry/SpanId;', ); - static final _getSpanId = jni$_.ProtectedJniExtensions.lookup< + static final _get$spanId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -39595,12 +32463,12 @@ class SentryTraceHeader extends jni$_.JObject { /// from: `public io.sentry.SpanId getSpanId()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getSpanId() { - return _getSpanId(reference.pointer, _id_getSpanId as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + jni$_.JObject get spanId { + return _get$spanId(reference.pointer, _id_get$spanId.pointer) + .object(); } - static final _id_isSampled = _class.instanceMethodId( + static final _id_isSampled = SentryTraceHeader._class.instanceMethodId( r'isSampled', r'()Ljava/lang/Boolean;', ); @@ -39620,104 +32488,26 @@ class SentryTraceHeader extends jni$_.JObject { /// from: `public java.lang.Boolean isSampled()` /// The returned object must be released after use, by calling the [release] method. jni$_.JBoolean? isSampled() { - return _isSampled(reference.pointer, _id_isSampled as jni$_.JMethodIDPtr) - .object(const jni$_.JBooleanNullableType()); - } -} - -final class $SentryTraceHeader$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryTraceHeader$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lio/sentry/SentryTraceHeader;'; - - @jni$_.internal - @core$_.override - SentryTraceHeader? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SentryTraceHeader.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryTraceHeader$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryTraceHeader$NullableType) && - other is $SentryTraceHeader$NullableType; + return _isSampled(reference.pointer, _id_isSampled.pointer) + .object(); } } -final class $SentryTraceHeader$Type extends jni$_.JObjType { +final class $SentryTraceHeader$Type$ extends jni$_.JType { @jni$_.internal - const $SentryTraceHeader$Type(); + const $SentryTraceHeader$Type$(); @jni$_.internal @core$_.override String get signature => r'Lio/sentry/SentryTraceHeader;'; - - @jni$_.internal - @core$_.override - SentryTraceHeader fromReference(jni$_.JReference reference) => - SentryTraceHeader.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SentryTraceHeader$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SentryTraceHeader$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SentryTraceHeader$Type) && - other is $SentryTraceHeader$Type; - } } /// from: `java.net.Proxy$Type` -class Proxy$Type extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Proxy$Type.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Proxy$Type._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'java/net/Proxy$Type'); /// The type which includes information such as the signature of this class. - static const nullableType = $Proxy$Type$NullableType(); - static const type = $Proxy$Type$Type(); + static const jni$_.JType type = $Proxy$Type$Type$(); static final _id_DIRECT = _class.staticFieldId( r'DIRECT', r'Ljava/net/Proxy$Type;', @@ -39726,7 +32516,7 @@ class Proxy$Type extends jni$_.JObject { /// from: `static public final java.net.Proxy$Type DIRECT` /// The returned object must be released after use, by calling the [release] method. static Proxy$Type get DIRECT => - _id_DIRECT.get(_class, const $Proxy$Type$Type()); + _id_DIRECT.get(_class, Proxy$Type.type) as Proxy$Type; static final _id_HTTP = _class.staticFieldId( r'HTTP', @@ -39735,7 +32525,8 @@ class Proxy$Type extends jni$_.JObject { /// from: `static public final java.net.Proxy$Type HTTP` /// The returned object must be released after use, by calling the [release] method. - static Proxy$Type get HTTP => _id_HTTP.get(_class, const $Proxy$Type$Type()); + static Proxy$Type get HTTP => + _id_HTTP.get(_class, Proxy$Type.type) as Proxy$Type; static final _id_SOCKS = _class.staticFieldId( r'SOCKS', @@ -39745,7 +32536,7 @@ class Proxy$Type extends jni$_.JObject { /// from: `static public final java.net.Proxy$Type SOCKS` /// The returned object must be released after use, by calling the [release] method. static Proxy$Type get SOCKS => - _id_SOCKS.get(_class, const $Proxy$Type$Type()); + _id_SOCKS.get(_class, Proxy$Type.type) as Proxy$Type; static final _id_values = _class.staticMethodId( r'values', @@ -39767,10 +32558,8 @@ class Proxy$Type extends jni$_.JObject { /// from: `static public java.net.Proxy$Type[] values()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JArray? values() { - return _values(_class.reference.pointer, _id_values as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - $Proxy$Type$NullableType())); + return _values(_class.reference.pointer, _id_values.pointer) + .object?>(); } static final _id_valueOf = _class.staticMethodId( @@ -39795,102 +32584,27 @@ class Proxy$Type extends jni$_.JObject { jni$_.JString? synthetic, ) { final _$synthetic = synthetic?.reference ?? jni$_.jNullReference; - return _valueOf(_class.reference.pointer, _id_valueOf as jni$_.JMethodIDPtr, - _$synthetic.pointer) - .object(const $Proxy$Type$NullableType()); + return _valueOf( + _class.reference.pointer, _id_valueOf.pointer, _$synthetic.pointer) + .object(); } } -final class $Proxy$Type$NullableType extends jni$_.JObjType { +final class $Proxy$Type$Type$ extends jni$_.JType { @jni$_.internal - const $Proxy$Type$NullableType(); + const $Proxy$Type$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljava/net/Proxy$Type;'; - - @jni$_.internal - @core$_.override - Proxy$Type? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Proxy$Type.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Proxy$Type$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Proxy$Type$NullableType) && - other is $Proxy$Type$NullableType; - } -} - -final class $Proxy$Type$Type extends jni$_.JObjType { - @jni$_.internal - const $Proxy$Type$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/net/Proxy$Type;'; - - @jni$_.internal - @core$_.override - Proxy$Type fromReference(jni$_.JReference reference) => - Proxy$Type.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $Proxy$Type$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Proxy$Type$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Proxy$Type$Type) && other is $Proxy$Type$Type; - } } /// from: `java.net.Proxy` -class Proxy extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Proxy.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Proxy._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'java/net/Proxy'); /// The type which includes information such as the signature of this class. - static const nullableType = $Proxy$NullableType(); - static const type = $Proxy$Type(); + static const jni$_.JType type = $Proxy$Type$(); static final _id_NO_PROXY = _class.staticFieldId( r'NO_PROXY', r'Ljava/net/Proxy;', @@ -39899,7 +32613,7 @@ class Proxy extends jni$_.JObject { /// from: `static public final java.net.Proxy NO_PROXY` /// The returned object must be released after use, by calling the [release] method. static Proxy? get NO_PROXY => - _id_NO_PROXY.get(_class, const $Proxy$NullableType()); + _id_NO_PROXY.getNullable(_class, Proxy.type) as Proxy?; static final _id_new$ = _class.constructorId( r'(Ljava/net/Proxy$Type;Ljava/net/SocketAddress;)V', @@ -39930,15 +32644,14 @@ class Proxy extends jni$_.JObject { ) { final _$type = type?.reference ?? jni$_.jNullReference; final _$socketAddress = socketAddress?.reference ?? jni$_.jNullReference; - return Proxy.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$type.pointer, + return _new$(_class.reference.pointer, _id_new$.pointer, _$type.pointer, _$socketAddress.pointer) - .reference); + .object(); } +} - static final _id_address = _class.instanceMethodId( +extension Proxy$$Methods on Proxy { + static final _id_address = Proxy._class.instanceMethodId( r'address', r'()Ljava/net/SocketAddress;', ); @@ -39958,11 +32671,11 @@ class Proxy extends jni$_.JObject { /// from: `public java.net.SocketAddress address()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? address() { - return _address(reference.pointer, _id_address as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _address(reference.pointer, _id_address.pointer) + .object(); } - static final _id_equals = _class.instanceMethodId( + static final _id_equals = Proxy._class.instanceMethodId( r'equals', r'(Ljava/lang/Object;)Z', ); @@ -39979,16 +32692,15 @@ class Proxy extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public final boolean equals(java.lang.Object object)` - bool equals( + core$_.bool equals( jni$_.JObject? object, ) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) + return _equals(reference.pointer, _id_equals.pointer, _$object.pointer) .boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( + static final _id_hashCode$1 = Proxy._class.instanceMethodId( r'hashCode', r'()I', ); @@ -40006,12 +32718,11 @@ class Proxy extends jni$_.JObject { )>(); /// from: `public final int hashCode()` - int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + core$_.int hashCode$1() { + return _hashCode$1(reference.pointer, _id_hashCode$1.pointer).integer; } - static final _id_toString$1 = _class.instanceMethodId( + static final _id_toString$1 = Proxy._class.instanceMethodId( r'toString', r'()Ljava/lang/String;', ); @@ -40031,11 +32742,11 @@ class Proxy extends jni$_.JObject { /// from: `public java.lang.String toString()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? toString$1() { - return _toString$1(reference.pointer, _id_toString$1 as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _toString$1(reference.pointer, _id_toString$1.pointer) + .object(); } - static final _id_type$1 = _class.instanceMethodId( + static final _id_type$1 = Proxy._class.instanceMethodId( r'type', r'()Ljava/net/Proxy$Type;', ); @@ -40055,100 +32766,28 @@ class Proxy extends jni$_.JObject { /// from: `public java.net.Proxy$Type type()` /// The returned object must be released after use, by calling the [release] method. Proxy$Type? type$1() { - return _type$1(reference.pointer, _id_type$1 as jni$_.JMethodIDPtr) - .object(const $Proxy$Type$NullableType()); + return _type$1(reference.pointer, _id_type$1.pointer).object(); } } -final class $Proxy$NullableType extends jni$_.JObjType { +final class $Proxy$Type$ extends jni$_.JType { @jni$_.internal - const $Proxy$NullableType(); + const $Proxy$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljava/net/Proxy;'; - - @jni$_.internal - @core$_.override - Proxy? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Proxy.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Proxy$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Proxy$NullableType) && - other is $Proxy$NullableType; - } -} - -final class $Proxy$Type extends jni$_.JObjType { - @jni$_.internal - const $Proxy$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/net/Proxy;'; - - @jni$_.internal - @core$_.override - Proxy fromReference(jni$_.JReference reference) => Proxy.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => const $Proxy$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Proxy$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Proxy$Type) && other is $Proxy$Type; - } } /// from: `android.graphics.Bitmap$CompressFormat` -class Bitmap$CompressFormat extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Bitmap$CompressFormat.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Bitmap$CompressFormat._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'android/graphics/Bitmap$CompressFormat'); /// The type which includes information such as the signature of this class. - static const nullableType = $Bitmap$CompressFormat$NullableType(); - static const type = $Bitmap$CompressFormat$Type(); + static const jni$_.JType type = + $Bitmap$CompressFormat$Type$(); static final _id_JPEG = _class.staticFieldId( r'JPEG', r'Landroid/graphics/Bitmap$CompressFormat;', @@ -40157,7 +32796,7 @@ class Bitmap$CompressFormat extends jni$_.JObject { /// from: `static public final android.graphics.Bitmap$CompressFormat JPEG` /// The returned object must be released after use, by calling the [release] method. static Bitmap$CompressFormat get JPEG => - _id_JPEG.get(_class, const $Bitmap$CompressFormat$Type()); + _id_JPEG.get(_class, Bitmap$CompressFormat.type) as Bitmap$CompressFormat; static final _id_PNG = _class.staticFieldId( r'PNG', @@ -40167,7 +32806,7 @@ class Bitmap$CompressFormat extends jni$_.JObject { /// from: `static public final android.graphics.Bitmap$CompressFormat PNG` /// The returned object must be released after use, by calling the [release] method. static Bitmap$CompressFormat get PNG => - _id_PNG.get(_class, const $Bitmap$CompressFormat$Type()); + _id_PNG.get(_class, Bitmap$CompressFormat.type) as Bitmap$CompressFormat; static final _id_WEBP = _class.staticFieldId( r'WEBP', @@ -40177,7 +32816,7 @@ class Bitmap$CompressFormat extends jni$_.JObject { /// from: `static public final android.graphics.Bitmap$CompressFormat WEBP` /// The returned object must be released after use, by calling the [release] method. static Bitmap$CompressFormat get WEBP => - _id_WEBP.get(_class, const $Bitmap$CompressFormat$Type()); + _id_WEBP.get(_class, Bitmap$CompressFormat.type) as Bitmap$CompressFormat; static final _id_WEBP_LOSSLESS = _class.staticFieldId( r'WEBP_LOSSLESS', @@ -40187,7 +32826,8 @@ class Bitmap$CompressFormat extends jni$_.JObject { /// from: `static public final android.graphics.Bitmap$CompressFormat WEBP_LOSSLESS` /// The returned object must be released after use, by calling the [release] method. static Bitmap$CompressFormat get WEBP_LOSSLESS => - _id_WEBP_LOSSLESS.get(_class, const $Bitmap$CompressFormat$Type()); + _id_WEBP_LOSSLESS.get(_class, Bitmap$CompressFormat.type) + as Bitmap$CompressFormat; static final _id_WEBP_LOSSY = _class.staticFieldId( r'WEBP_LOSSY', @@ -40197,7 +32837,8 @@ class Bitmap$CompressFormat extends jni$_.JObject { /// from: `static public final android.graphics.Bitmap$CompressFormat WEBP_LOSSY` /// The returned object must be released after use, by calling the [release] method. static Bitmap$CompressFormat get WEBP_LOSSY => - _id_WEBP_LOSSY.get(_class, const $Bitmap$CompressFormat$Type()); + _id_WEBP_LOSSY.get(_class, Bitmap$CompressFormat.type) + as Bitmap$CompressFormat; static final _id_values = _class.staticMethodId( r'values', @@ -40219,10 +32860,8 @@ class Bitmap$CompressFormat extends jni$_.JObject { /// from: `static public android.graphics.Bitmap$CompressFormat[] values()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JArray? values() { - return _values(_class.reference.pointer, _id_values as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - $Bitmap$CompressFormat$NullableType())); + return _values(_class.reference.pointer, _id_values.pointer) + .object?>(); } static final _id_valueOf = _class.staticMethodId( @@ -40247,107 +32886,28 @@ class Bitmap$CompressFormat extends jni$_.JObject { jni$_.JString? synthetic, ) { final _$synthetic = synthetic?.reference ?? jni$_.jNullReference; - return _valueOf(_class.reference.pointer, _id_valueOf as jni$_.JMethodIDPtr, - _$synthetic.pointer) - .object( - const $Bitmap$CompressFormat$NullableType()); + return _valueOf( + _class.reference.pointer, _id_valueOf.pointer, _$synthetic.pointer) + .object(); } } -final class $Bitmap$CompressFormat$NullableType - extends jni$_.JObjType { +final class $Bitmap$CompressFormat$Type$ + extends jni$_.JType { @jni$_.internal - const $Bitmap$CompressFormat$NullableType(); + const $Bitmap$CompressFormat$Type$(); @jni$_.internal @core$_.override String get signature => r'Landroid/graphics/Bitmap$CompressFormat;'; - - @jni$_.internal - @core$_.override - Bitmap$CompressFormat? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : Bitmap$CompressFormat.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Bitmap$CompressFormat$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Bitmap$CompressFormat$NullableType) && - other is $Bitmap$CompressFormat$NullableType; - } -} - -final class $Bitmap$CompressFormat$Type - extends jni$_.JObjType { - @jni$_.internal - const $Bitmap$CompressFormat$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Landroid/graphics/Bitmap$CompressFormat;'; - - @jni$_.internal - @core$_.override - Bitmap$CompressFormat fromReference(jni$_.JReference reference) => - Bitmap$CompressFormat.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $Bitmap$CompressFormat$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Bitmap$CompressFormat$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Bitmap$CompressFormat$Type) && - other is $Bitmap$CompressFormat$Type; - } } /// from: `android.graphics.Bitmap$Config` -class Bitmap$Config extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Bitmap$Config.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Bitmap$Config._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'android/graphics/Bitmap$Config'); /// The type which includes information such as the signature of this class. - static const nullableType = $Bitmap$Config$NullableType(); - static const type = $Bitmap$Config$Type(); + static const jni$_.JType type = $Bitmap$Config$Type$(); static final _id_ALPHA_8 = _class.staticFieldId( r'ALPHA_8', r'Landroid/graphics/Bitmap$Config;', @@ -40356,7 +32916,7 @@ class Bitmap$Config extends jni$_.JObject { /// from: `static public final android.graphics.Bitmap$Config ALPHA_8` /// The returned object must be released after use, by calling the [release] method. static Bitmap$Config get ALPHA_8 => - _id_ALPHA_8.get(_class, const $Bitmap$Config$Type()); + _id_ALPHA_8.get(_class, Bitmap$Config.type) as Bitmap$Config; static final _id_ARGB_4444 = _class.staticFieldId( r'ARGB_4444', @@ -40366,7 +32926,7 @@ class Bitmap$Config extends jni$_.JObject { /// from: `static public final android.graphics.Bitmap$Config ARGB_4444` /// The returned object must be released after use, by calling the [release] method. static Bitmap$Config get ARGB_4444 => - _id_ARGB_4444.get(_class, const $Bitmap$Config$Type()); + _id_ARGB_4444.get(_class, Bitmap$Config.type) as Bitmap$Config; static final _id_ARGB_8888 = _class.staticFieldId( r'ARGB_8888', @@ -40376,7 +32936,7 @@ class Bitmap$Config extends jni$_.JObject { /// from: `static public final android.graphics.Bitmap$Config ARGB_8888` /// The returned object must be released after use, by calling the [release] method. static Bitmap$Config get ARGB_8888 => - _id_ARGB_8888.get(_class, const $Bitmap$Config$Type()); + _id_ARGB_8888.get(_class, Bitmap$Config.type) as Bitmap$Config; static final _id_HARDWARE = _class.staticFieldId( r'HARDWARE', @@ -40386,7 +32946,7 @@ class Bitmap$Config extends jni$_.JObject { /// from: `static public final android.graphics.Bitmap$Config HARDWARE` /// The returned object must be released after use, by calling the [release] method. static Bitmap$Config get HARDWARE => - _id_HARDWARE.get(_class, const $Bitmap$Config$Type()); + _id_HARDWARE.get(_class, Bitmap$Config.type) as Bitmap$Config; static final _id_RGBA_1010102 = _class.staticFieldId( r'RGBA_1010102', @@ -40396,7 +32956,7 @@ class Bitmap$Config extends jni$_.JObject { /// from: `static public final android.graphics.Bitmap$Config RGBA_1010102` /// The returned object must be released after use, by calling the [release] method. static Bitmap$Config get RGBA_1010102 => - _id_RGBA_1010102.get(_class, const $Bitmap$Config$Type()); + _id_RGBA_1010102.get(_class, Bitmap$Config.type) as Bitmap$Config; static final _id_RGBA_F16 = _class.staticFieldId( r'RGBA_F16', @@ -40406,7 +32966,7 @@ class Bitmap$Config extends jni$_.JObject { /// from: `static public final android.graphics.Bitmap$Config RGBA_F16` /// The returned object must be released after use, by calling the [release] method. static Bitmap$Config get RGBA_F16 => - _id_RGBA_F16.get(_class, const $Bitmap$Config$Type()); + _id_RGBA_F16.get(_class, Bitmap$Config.type) as Bitmap$Config; static final _id_RGB_565 = _class.staticFieldId( r'RGB_565', @@ -40416,7 +32976,7 @@ class Bitmap$Config extends jni$_.JObject { /// from: `static public final android.graphics.Bitmap$Config RGB_565` /// The returned object must be released after use, by calling the [release] method. static Bitmap$Config get RGB_565 => - _id_RGB_565.get(_class, const $Bitmap$Config$Type()); + _id_RGB_565.get(_class, Bitmap$Config.type) as Bitmap$Config; static final _id_values = _class.staticMethodId( r'values', @@ -40438,10 +32998,8 @@ class Bitmap$Config extends jni$_.JObject { /// from: `static public android.graphics.Bitmap$Config[] values()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JArray? values() { - return _values(_class.reference.pointer, _id_values as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - $Bitmap$Config$NullableType())); + return _values(_class.reference.pointer, _id_values.pointer) + .object?>(); } static final _id_valueOf = _class.staticMethodId( @@ -40466,103 +33024,27 @@ class Bitmap$Config extends jni$_.JObject { jni$_.JString? synthetic, ) { final _$synthetic = synthetic?.reference ?? jni$_.jNullReference; - return _valueOf(_class.reference.pointer, _id_valueOf as jni$_.JMethodIDPtr, - _$synthetic.pointer) - .object(const $Bitmap$Config$NullableType()); + return _valueOf( + _class.reference.pointer, _id_valueOf.pointer, _$synthetic.pointer) + .object(); } } -final class $Bitmap$Config$NullableType extends jni$_.JObjType { +final class $Bitmap$Config$Type$ extends jni$_.JType { @jni$_.internal - const $Bitmap$Config$NullableType(); + const $Bitmap$Config$Type$(); @jni$_.internal @core$_.override String get signature => r'Landroid/graphics/Bitmap$Config;'; - - @jni$_.internal - @core$_.override - Bitmap$Config? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Bitmap$Config.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Bitmap$Config$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Bitmap$Config$NullableType) && - other is $Bitmap$Config$NullableType; - } -} - -final class $Bitmap$Config$Type extends jni$_.JObjType { - @jni$_.internal - const $Bitmap$Config$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Landroid/graphics/Bitmap$Config;'; - - @jni$_.internal - @core$_.override - Bitmap$Config fromReference(jni$_.JReference reference) => - Bitmap$Config.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $Bitmap$Config$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Bitmap$Config$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Bitmap$Config$Type) && - other is $Bitmap$Config$Type; - } } /// from: `android.graphics.Bitmap` -class Bitmap extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Bitmap.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Bitmap._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'android/graphics/Bitmap'); /// The type which includes information such as the signature of this class. - static const nullableType = $Bitmap$NullableType(); - static const type = $Bitmap$Type(); + static const jni$_.JType type = $Bitmap$Type$(); static final _id_CREATOR = _class.staticFieldId( r'CREATOR', r'Landroid/os/Parcelable$Creator;', @@ -40571,152 +33053,10 @@ class Bitmap extends jni$_.JObject { /// from: `static public final android.os.Parcelable$Creator CREATOR` /// The returned object must be released after use, by calling the [release] method. static jni$_.JObject? get CREATOR => - _id_CREATOR.get(_class, const jni$_.JObjectNullableType()); + _id_CREATOR.getNullable(_class, jni$_.JObject.type) as jni$_.JObject?; /// from: `static public final int DENSITY_NONE` static const DENSITY_NONE = 0; - static final _id_asShared = _class.instanceMethodId( - r'asShared', - r'()Landroid/graphics/Bitmap;', - ); - - static final _asShared = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public android.graphics.Bitmap asShared()` - /// The returned object must be released after use, by calling the [release] method. - Bitmap? asShared() { - return _asShared(reference.pointer, _id_asShared as jni$_.JMethodIDPtr) - .object(const $Bitmap$NullableType()); - } - - static final _id_compress = _class.instanceMethodId( - r'compress', - r'(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z', - ); - - static final _compress = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - int, - jni$_.Pointer)>(); - - /// from: `public boolean compress(android.graphics.Bitmap$CompressFormat compressFormat, int i, java.io.OutputStream outputStream)` - bool compress( - Bitmap$CompressFormat? compressFormat, - int i, - jni$_.JObject? outputStream, - ) { - final _$compressFormat = compressFormat?.reference ?? jni$_.jNullReference; - final _$outputStream = outputStream?.reference ?? jni$_.jNullReference; - return _compress(reference.pointer, _id_compress as jni$_.JMethodIDPtr, - _$compressFormat.pointer, i, _$outputStream.pointer) - .boolean; - } - - static final _id_copy = _class.instanceMethodId( - r'copy', - r'(Landroid/graphics/Bitmap$Config;Z)Landroid/graphics/Bitmap;', - ); - - static final _copy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); - - /// from: `public android.graphics.Bitmap copy(android.graphics.Bitmap$Config config, boolean z)` - /// The returned object must be released after use, by calling the [release] method. - Bitmap? copy( - Bitmap$Config? config, - bool z, - ) { - final _$config = config?.reference ?? jni$_.jNullReference; - return _copy(reference.pointer, _id_copy as jni$_.JMethodIDPtr, - _$config.pointer, z ? 1 : 0) - .object(const $Bitmap$NullableType()); - } - - static final _id_copyPixelsFromBuffer = _class.instanceMethodId( - r'copyPixelsFromBuffer', - r'(Ljava/nio/Buffer;)V', - ); - - static final _copyPixelsFromBuffer = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public void copyPixelsFromBuffer(java.nio.Buffer buffer)` - void copyPixelsFromBuffer( - jni$_.JBuffer? buffer, - ) { - final _$buffer = buffer?.reference ?? jni$_.jNullReference; - _copyPixelsFromBuffer(reference.pointer, - _id_copyPixelsFromBuffer as jni$_.JMethodIDPtr, _$buffer.pointer) - .check(); - } - - static final _id_copyPixelsToBuffer = _class.instanceMethodId( - r'copyPixelsToBuffer', - r'(Ljava/nio/Buffer;)V', - ); - - static final _copyPixelsToBuffer = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public void copyPixelsToBuffer(java.nio.Buffer buffer)` - void copyPixelsToBuffer( - jni$_.JBuffer? buffer, - ) { - final _$buffer = buffer?.reference ?? jni$_.jNullReference; - _copyPixelsToBuffer(reference.pointer, - _id_copyPixelsToBuffer as jni$_.JMethodIDPtr, _$buffer.pointer) - .check(); - } - static final _id_createBitmap = _class.staticMethodId( r'createBitmap', r'(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;', @@ -40739,9 +33079,9 @@ class Bitmap extends jni$_.JObject { Bitmap? bitmap, ) { final _$bitmap = bitmap?.reference ?? jni$_.jNullReference; - return _createBitmap(_class.reference.pointer, - _id_createBitmap as jni$_.JMethodIDPtr, _$bitmap.pointer) - .object(const $Bitmap$NullableType()); + return _createBitmap(_class.reference.pointer, _id_createBitmap.pointer, + _$bitmap.pointer) + .object(); } static final _id_createBitmap$1 = _class.staticMethodId( @@ -40767,30 +33107,24 @@ class Bitmap extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - int, - int)>(); + core$_.int, + core$_.int, + core$_.int, + core$_.int)>(); /// from: `static public android.graphics.Bitmap createBitmap(android.graphics.Bitmap bitmap, int i, int i1, int i2, int i3)` /// The returned object must be released after use, by calling the [release] method. static Bitmap? createBitmap$1( Bitmap? bitmap, - int i, - int i1, - int i2, - int i3, + core$_.int i, + core$_.int i1, + core$_.int i2, + core$_.int i3, ) { final _$bitmap = bitmap?.reference ?? jni$_.jNullReference; - return _createBitmap$1( - _class.reference.pointer, - _id_createBitmap$1 as jni$_.JMethodIDPtr, - _$bitmap.pointer, - i, - i1, - i2, - i3) - .object(const $Bitmap$NullableType()); + return _createBitmap$1(_class.reference.pointer, _id_createBitmap$1.pointer, + _$bitmap.pointer, i, i1, i2, i3) + .object(); } static final _id_createBitmap$2 = _class.staticMethodId( @@ -40818,37 +33152,29 @@ class Bitmap extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - int, - int, + core$_.int, + core$_.int, + core$_.int, + core$_.int, jni$_.Pointer, - int)>(); + core$_.int)>(); /// from: `static public android.graphics.Bitmap createBitmap(android.graphics.Bitmap bitmap, int i, int i1, int i2, int i3, android.graphics.Matrix matrix, boolean z)` /// The returned object must be released after use, by calling the [release] method. static Bitmap? createBitmap$2( Bitmap? bitmap, - int i, - int i1, - int i2, - int i3, + core$_.int i, + core$_.int i1, + core$_.int i2, + core$_.int i3, jni$_.JObject? matrix, - bool z, + core$_.bool z, ) { final _$bitmap = bitmap?.reference ?? jni$_.jNullReference; final _$matrix = matrix?.reference ?? jni$_.jNullReference; - return _createBitmap$2( - _class.reference.pointer, - _id_createBitmap$2 as jni$_.JMethodIDPtr, - _$bitmap.pointer, - i, - i1, - i2, - i3, - _$matrix.pointer, - z ? 1 : 0) - .object(const $Bitmap$NullableType()); + return _createBitmap$2(_class.reference.pointer, _id_createBitmap$2.pointer, + _$bitmap.pointer, i, i1, i2, i3, _$matrix.pointer, z ? 1 : 0) + .object(); } static final _id_createBitmap$3 = _class.staticMethodId( @@ -40873,9 +33199,9 @@ class Bitmap extends jni$_.JObject { jni$_.JObject? picture, ) { final _$picture = picture?.reference ?? jni$_.jNullReference; - return _createBitmap$3(_class.reference.pointer, - _id_createBitmap$3 as jni$_.JMethodIDPtr, _$picture.pointer) - .object(const $Bitmap$NullableType()); + return _createBitmap$3(_class.reference.pointer, _id_createBitmap$3.pointer, + _$picture.pointer) + .object(); } static final _id_createBitmap$4 = _class.staticMethodId( @@ -40900,28 +33226,23 @@ class Bitmap extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, + core$_.int, + core$_.int, jni$_.Pointer)>(); /// from: `static public android.graphics.Bitmap createBitmap(android.graphics.Picture picture, int i, int i1, android.graphics.Bitmap$Config config)` /// The returned object must be released after use, by calling the [release] method. static Bitmap? createBitmap$4( jni$_.JObject? picture, - int i, - int i1, + core$_.int i, + core$_.int i1, Bitmap$Config? config, ) { final _$picture = picture?.reference ?? jni$_.jNullReference; final _$config = config?.reference ?? jni$_.jNullReference; - return _createBitmap$4( - _class.reference.pointer, - _id_createBitmap$4 as jni$_.JMethodIDPtr, - _$picture.pointer, - i, - i1, - _$config.pointer) - .object(const $Bitmap$NullableType()); + return _createBitmap$4(_class.reference.pointer, _id_createBitmap$4.pointer, + _$picture.pointer, i, i1, _$config.pointer) + .object(); } static final _id_createBitmap$5 = _class.staticMethodId( @@ -40946,28 +33267,23 @@ class Bitmap extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, + core$_.int, + core$_.int, jni$_.Pointer)>(); /// from: `static public android.graphics.Bitmap createBitmap(android.util.DisplayMetrics displayMetrics, int i, int i1, android.graphics.Bitmap$Config config)` /// The returned object must be released after use, by calling the [release] method. static Bitmap? createBitmap$5( jni$_.JObject? displayMetrics, - int i, - int i1, + core$_.int i, + core$_.int i1, Bitmap$Config? config, ) { final _$displayMetrics = displayMetrics?.reference ?? jni$_.jNullReference; final _$config = config?.reference ?? jni$_.jNullReference; - return _createBitmap$5( - _class.reference.pointer, - _id_createBitmap$5 as jni$_.JMethodIDPtr, - _$displayMetrics.pointer, - i, - i1, - _$config.pointer) - .object(const $Bitmap$NullableType()); + return _createBitmap$5(_class.reference.pointer, _id_createBitmap$5.pointer, + _$displayMetrics.pointer, i, i1, _$config.pointer) + .object(); } static final _id_createBitmap$6 = _class.staticMethodId( @@ -40993,31 +33309,25 @@ class Bitmap extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, + core$_.int, + core$_.int, jni$_.Pointer, - int)>(); + core$_.int)>(); /// from: `static public android.graphics.Bitmap createBitmap(android.util.DisplayMetrics displayMetrics, int i, int i1, android.graphics.Bitmap$Config config, boolean z)` /// The returned object must be released after use, by calling the [release] method. static Bitmap? createBitmap$6( jni$_.JObject? displayMetrics, - int i, - int i1, + core$_.int i, + core$_.int i1, Bitmap$Config? config, - bool z, + core$_.bool z, ) { final _$displayMetrics = displayMetrics?.reference ?? jni$_.jNullReference; final _$config = config?.reference ?? jni$_.jNullReference; - return _createBitmap$6( - _class.reference.pointer, - _id_createBitmap$6 as jni$_.JMethodIDPtr, - _$displayMetrics.pointer, - i, - i1, - _$config.pointer, - z ? 1 : 0) - .object(const $Bitmap$NullableType()); + return _createBitmap$6(_class.reference.pointer, _id_createBitmap$6.pointer, + _$displayMetrics.pointer, i, i1, _$config.pointer, z ? 1 : 0) + .object(); } static final _id_createBitmap$7 = _class.staticMethodId( @@ -41044,20 +33354,20 @@ class Bitmap extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, + core$_.int, + core$_.int, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer)>(); /// from: `static public android.graphics.Bitmap createBitmap(android.util.DisplayMetrics displayMetrics, int i, int i1, android.graphics.Bitmap$Config config, boolean z, android.graphics.ColorSpace colorSpace)` /// The returned object must be released after use, by calling the [release] method. static Bitmap? createBitmap$7( jni$_.JObject? displayMetrics, - int i, - int i1, + core$_.int i, + core$_.int i1, Bitmap$Config? config, - bool z, + core$_.bool z, jni$_.JObject? colorSpace, ) { final _$displayMetrics = displayMetrics?.reference ?? jni$_.jNullReference; @@ -41065,14 +33375,14 @@ class Bitmap extends jni$_.JObject { final _$colorSpace = colorSpace?.reference ?? jni$_.jNullReference; return _createBitmap$7( _class.reference.pointer, - _id_createBitmap$7 as jni$_.JMethodIDPtr, + _id_createBitmap$7.pointer, _$displayMetrics.pointer, i, i1, _$config.pointer, z ? 1 : 0, _$colorSpace.pointer) - .object(const $Bitmap$NullableType()); + .object(); } static final _id_createBitmap$8 = _class.staticMethodId( @@ -41099,8 +33409,8 @@ class Bitmap extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int, - int, + core$_.int, + core$_.int, jni$_.Pointer)>(); /// from: `static public android.graphics.Bitmap createBitmap(android.util.DisplayMetrics displayMetrics, int[] is, int i, int i1, android.graphics.Bitmap$Config config)` @@ -41108,22 +33418,16 @@ class Bitmap extends jni$_.JObject { static Bitmap? createBitmap$8( jni$_.JObject? displayMetrics, jni$_.JIntArray? is$, - int i, - int i1, + core$_.int i, + core$_.int i1, Bitmap$Config? config, ) { final _$displayMetrics = displayMetrics?.reference ?? jni$_.jNullReference; final _$is$ = is$?.reference ?? jni$_.jNullReference; final _$config = config?.reference ?? jni$_.jNullReference; - return _createBitmap$8( - _class.reference.pointer, - _id_createBitmap$8 as jni$_.JMethodIDPtr, - _$displayMetrics.pointer, - _$is$.pointer, - i, - i1, - _$config.pointer) - .object(const $Bitmap$NullableType()); + return _createBitmap$8(_class.reference.pointer, _id_createBitmap$8.pointer, + _$displayMetrics.pointer, _$is$.pointer, i, i1, _$config.pointer) + .object(); } static final _id_createBitmap$9 = _class.staticMethodId( @@ -41152,10 +33456,10 @@ class Bitmap extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int, - int, - int, - int, + core$_.int, + core$_.int, + core$_.int, + core$_.int, jni$_.Pointer)>(); /// from: `static public android.graphics.Bitmap createBitmap(android.util.DisplayMetrics displayMetrics, int[] is, int i, int i1, int i2, int i3, android.graphics.Bitmap$Config config)` @@ -41163,10 +33467,10 @@ class Bitmap extends jni$_.JObject { static Bitmap? createBitmap$9( jni$_.JObject? displayMetrics, jni$_.JIntArray? is$, - int i, - int i1, - int i2, - int i3, + core$_.int i, + core$_.int i1, + core$_.int i2, + core$_.int i3, Bitmap$Config? config, ) { final _$displayMetrics = displayMetrics?.reference ?? jni$_.jNullReference; @@ -41174,7 +33478,7 @@ class Bitmap extends jni$_.JObject { final _$config = config?.reference ?? jni$_.jNullReference; return _createBitmap$9( _class.reference.pointer, - _id_createBitmap$9 as jni$_.JMethodIDPtr, + _id_createBitmap$9.pointer, _$displayMetrics.pointer, _$is$.pointer, i, @@ -41182,7 +33486,7 @@ class Bitmap extends jni$_.JObject { i2, i3, _$config.pointer) - .object(const $Bitmap$NullableType()); + .object(); } static final _id_createBitmap$10 = _class.staticMethodId( @@ -41202,20 +33506,24 @@ class Bitmap extends jni$_.JObject { jni$_.Pointer )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, int, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + core$_.int, + core$_.int, + jni$_.Pointer)>(); /// from: `static public android.graphics.Bitmap createBitmap(int i, int i1, android.graphics.Bitmap$Config config)` /// The returned object must be released after use, by calling the [release] method. static Bitmap? createBitmap$10( - int i, - int i1, + core$_.int i, + core$_.int i1, Bitmap$Config? config, ) { final _$config = config?.reference ?? jni$_.jNullReference; return _createBitmap$10(_class.reference.pointer, - _id_createBitmap$10 as jni$_.JMethodIDPtr, i, i1, _$config.pointer) - .object(const $Bitmap$NullableType()); + _id_createBitmap$10.pointer, i, i1, _$config.pointer) + .object(); } static final _id_createBitmap$11 = _class.staticMethodId( @@ -41236,26 +33544,26 @@ class Bitmap extends jni$_.JObject { jni$_.Int32 )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, int, jni$_.Pointer, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int)>(); /// from: `static public android.graphics.Bitmap createBitmap(int i, int i1, android.graphics.Bitmap$Config config, boolean z)` /// The returned object must be released after use, by calling the [release] method. static Bitmap? createBitmap$11( - int i, - int i1, + core$_.int i, + core$_.int i1, Bitmap$Config? config, - bool z, + core$_.bool z, ) { final _$config = config?.reference ?? jni$_.jNullReference; - return _createBitmap$11( - _class.reference.pointer, - _id_createBitmap$11 as jni$_.JMethodIDPtr, - i, - i1, - _$config.pointer, - z ? 1 : 0) - .object(const $Bitmap$NullableType()); + return _createBitmap$11(_class.reference.pointer, + _id_createBitmap$11.pointer, i, i1, _$config.pointer, z ? 1 : 0) + .object(); } static final _id_createBitmap$12 = _class.staticMethodId( @@ -41280,32 +33588,32 @@ class Bitmap extends jni$_.JObject { jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - int, - int, + core$_.int, + core$_.int, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer)>(); /// from: `static public android.graphics.Bitmap createBitmap(int i, int i1, android.graphics.Bitmap$Config config, boolean z, android.graphics.ColorSpace colorSpace)` /// The returned object must be released after use, by calling the [release] method. static Bitmap? createBitmap$12( - int i, - int i1, + core$_.int i, + core$_.int i1, Bitmap$Config? config, - bool z, + core$_.bool z, jni$_.JObject? colorSpace, ) { final _$config = config?.reference ?? jni$_.jNullReference; final _$colorSpace = colorSpace?.reference ?? jni$_.jNullReference; return _createBitmap$12( _class.reference.pointer, - _id_createBitmap$12 as jni$_.JMethodIDPtr, + _id_createBitmap$12.pointer, i, i1, _$config.pointer, z ? 1 : 0, _$colorSpace.pointer) - .object(const $Bitmap$NullableType()); + .object(); } static final _id_createBitmap$13 = _class.staticMethodId( @@ -41330,28 +33638,23 @@ class Bitmap extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, + core$_.int, + core$_.int, jni$_.Pointer)>(); /// from: `static public android.graphics.Bitmap createBitmap(int[] is, int i, int i1, android.graphics.Bitmap$Config config)` /// The returned object must be released after use, by calling the [release] method. static Bitmap? createBitmap$13( jni$_.JIntArray? is$, - int i, - int i1, + core$_.int i, + core$_.int i1, Bitmap$Config? config, ) { final _$is$ = is$?.reference ?? jni$_.jNullReference; final _$config = config?.reference ?? jni$_.jNullReference; - return _createBitmap$13( - _class.reference.pointer, - _id_createBitmap$13 as jni$_.JMethodIDPtr, - _$is$.pointer, - i, - i1, - _$config.pointer) - .object(const $Bitmap$NullableType()); + return _createBitmap$13(_class.reference.pointer, + _id_createBitmap$13.pointer, _$is$.pointer, i, i1, _$config.pointer) + .object(); } static final _id_createBitmap$14 = _class.staticMethodId( @@ -41378,34 +33681,34 @@ class Bitmap extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - int, - int, + core$_.int, + core$_.int, + core$_.int, + core$_.int, jni$_.Pointer)>(); /// from: `static public android.graphics.Bitmap createBitmap(int[] is, int i, int i1, int i2, int i3, android.graphics.Bitmap$Config config)` /// The returned object must be released after use, by calling the [release] method. static Bitmap? createBitmap$14( jni$_.JIntArray? is$, - int i, - int i1, - int i2, - int i3, + core$_.int i, + core$_.int i1, + core$_.int i2, + core$_.int i3, Bitmap$Config? config, ) { final _$is$ = is$?.reference ?? jni$_.jNullReference; final _$config = config?.reference ?? jni$_.jNullReference; return _createBitmap$14( _class.reference.pointer, - _id_createBitmap$14 as jni$_.JMethodIDPtr, + _id_createBitmap$14.pointer, _$is$.pointer, i, i1, i2, i3, _$config.pointer) - .object(const $Bitmap$NullableType()); + .object(); } static final _id_createScaledBitmap = _class.staticMethodId( @@ -41426,29 +33729,210 @@ class Bitmap extends jni$_.JObject { jni$_.Int32 )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + core$_.int)>(); /// from: `static public android.graphics.Bitmap createScaledBitmap(android.graphics.Bitmap bitmap, int i, int i1, boolean z)` /// The returned object must be released after use, by calling the [release] method. static Bitmap? createScaledBitmap( Bitmap? bitmap, - int i, - int i1, - bool z, + core$_.int i, + core$_.int i1, + core$_.bool z, ) { final _$bitmap = bitmap?.reference ?? jni$_.jNullReference; - return _createScaledBitmap( + return _createScaledBitmap(_class.reference.pointer, + _id_createScaledBitmap.pointer, _$bitmap.pointer, i, i1, z ? 1 : 0) + .object(); + } + + static final _id_wrapHardwareBuffer = _class.staticMethodId( + r'wrapHardwareBuffer', + r'(Landroid/hardware/HardwareBuffer;Landroid/graphics/ColorSpace;)Landroid/graphics/Bitmap;', + ); + + static final _wrapHardwareBuffer = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `static public android.graphics.Bitmap wrapHardwareBuffer(android.hardware.HardwareBuffer hardwareBuffer, android.graphics.ColorSpace colorSpace)` + /// The returned object must be released after use, by calling the [release] method. + static Bitmap? wrapHardwareBuffer( + jni$_.JObject? hardwareBuffer, + jni$_.JObject? colorSpace, + ) { + final _$hardwareBuffer = hardwareBuffer?.reference ?? jni$_.jNullReference; + final _$colorSpace = colorSpace?.reference ?? jni$_.jNullReference; + return _wrapHardwareBuffer( _class.reference.pointer, - _id_createScaledBitmap as jni$_.JMethodIDPtr, - _$bitmap.pointer, - i, - i1, - z ? 1 : 0) - .object(const $Bitmap$NullableType()); + _id_wrapHardwareBuffer.pointer, + _$hardwareBuffer.pointer, + _$colorSpace.pointer) + .object(); + } +} + +extension Bitmap$$Methods on Bitmap { + static final _id_asShared = Bitmap._class.instanceMethodId( + r'asShared', + r'()Landroid/graphics/Bitmap;', + ); + + static final _asShared = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public android.graphics.Bitmap asShared()` + /// The returned object must be released after use, by calling the [release] method. + Bitmap? asShared() { + return _asShared(reference.pointer, _id_asShared.pointer).object(); + } + + static final _id_compress = Bitmap._class.instanceMethodId( + r'compress', + r'(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z', + ); + + static final _compress = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer + )>)>>('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + jni$_.Pointer)>(); + + /// from: `public boolean compress(android.graphics.Bitmap$CompressFormat compressFormat, int i, java.io.OutputStream outputStream)` + core$_.bool compress( + Bitmap$CompressFormat? compressFormat, + core$_.int i, + jni$_.JObject? outputStream, + ) { + final _$compressFormat = compressFormat?.reference ?? jni$_.jNullReference; + final _$outputStream = outputStream?.reference ?? jni$_.jNullReference; + return _compress(reference.pointer, _id_compress.pointer, + _$compressFormat.pointer, i, _$outputStream.pointer) + .boolean; } - static final _id_describeContents = _class.instanceMethodId( + static final _id_copy = Bitmap._class.instanceMethodId( + r'copy', + r'(Landroid/graphics/Bitmap$Config;Z)Landroid/graphics/Bitmap;', + ); + + static final _copy = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); + + /// from: `public android.graphics.Bitmap copy(android.graphics.Bitmap$Config config, boolean z)` + /// The returned object must be released after use, by calling the [release] method. + Bitmap? copy( + Bitmap$Config? config, + core$_.bool z, + ) { + final _$config = config?.reference ?? jni$_.jNullReference; + return _copy( + reference.pointer, _id_copy.pointer, _$config.pointer, z ? 1 : 0) + .object(); + } + + static final _id_copyPixelsFromBuffer = Bitmap._class.instanceMethodId( + r'copyPixelsFromBuffer', + r'(Ljava/nio/Buffer;)V', + ); + + static final _copyPixelsFromBuffer = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public void copyPixelsFromBuffer(java.nio.Buffer buffer)` + void copyPixelsFromBuffer( + jni$_.JBuffer? buffer, + ) { + final _$buffer = buffer?.reference ?? jni$_.jNullReference; + _copyPixelsFromBuffer(reference.pointer, _id_copyPixelsFromBuffer.pointer, + _$buffer.pointer) + .check(); + } + + static final _id_copyPixelsToBuffer = Bitmap._class.instanceMethodId( + r'copyPixelsToBuffer', + r'(Ljava/nio/Buffer;)V', + ); + + static final _copyPixelsToBuffer = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public void copyPixelsToBuffer(java.nio.Buffer buffer)` + void copyPixelsToBuffer( + jni$_.JBuffer? buffer, + ) { + final _$buffer = buffer?.reference ?? jni$_.jNullReference; + _copyPixelsToBuffer( + reference.pointer, _id_copyPixelsToBuffer.pointer, _$buffer.pointer) + .check(); + } + + static final _id_describeContents = Bitmap._class.instanceMethodId( r'describeContents', r'()I', ); @@ -41466,13 +33950,12 @@ class Bitmap extends jni$_.JObject { )>(); /// from: `public int describeContents()` - int describeContents() { - return _describeContents( - reference.pointer, _id_describeContents as jni$_.JMethodIDPtr) + core$_.int describeContents() { + return _describeContents(reference.pointer, _id_describeContents.pointer) .integer; } - static final _id_eraseColor = _class.instanceMethodId( + static final _id_eraseColor = Bitmap._class.instanceMethodId( r'eraseColor', r'(I)V', ); @@ -41485,17 +33968,16 @@ class Bitmap extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void eraseColor(int i)` void eraseColor( - int i, + core$_.int i, ) { - _eraseColor(reference.pointer, _id_eraseColor as jni$_.JMethodIDPtr, i) - .check(); + _eraseColor(reference.pointer, _id_eraseColor.pointer, i).check(); } - static final _id_eraseColor$1 = _class.instanceMethodId( + static final _id_eraseColor$1 = Bitmap._class.instanceMethodId( r'eraseColor', r'(J)V', ); @@ -41508,17 +33990,16 @@ class Bitmap extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void eraseColor(long j)` void eraseColor$1( - int j, + core$_.int j, ) { - _eraseColor$1(reference.pointer, _id_eraseColor$1 as jni$_.JMethodIDPtr, j) - .check(); + _eraseColor$1(reference.pointer, _id_eraseColor$1.pointer, j).check(); } - static final _id_extractAlpha = _class.instanceMethodId( + static final _id_extractAlpha = Bitmap._class.instanceMethodId( r'extractAlpha', r'()Landroid/graphics/Bitmap;', ); @@ -41538,12 +34019,11 @@ class Bitmap extends jni$_.JObject { /// from: `public android.graphics.Bitmap extractAlpha()` /// The returned object must be released after use, by calling the [release] method. Bitmap? extractAlpha() { - return _extractAlpha( - reference.pointer, _id_extractAlpha as jni$_.JMethodIDPtr) - .object(const $Bitmap$NullableType()); + return _extractAlpha(reference.pointer, _id_extractAlpha.pointer) + .object(); } - static final _id_extractAlpha$1 = _class.instanceMethodId( + static final _id_extractAlpha$1 = Bitmap._class.instanceMethodId( r'extractAlpha', r'(Landroid/graphics/Paint;[I)Landroid/graphics/Bitmap;', ); @@ -41573,20 +34053,17 @@ class Bitmap extends jni$_.JObject { ) { final _$paint = paint?.reference ?? jni$_.jNullReference; final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _extractAlpha$1( - reference.pointer, - _id_extractAlpha$1 as jni$_.JMethodIDPtr, - _$paint.pointer, - _$is$.pointer) - .object(const $Bitmap$NullableType()); + return _extractAlpha$1(reference.pointer, _id_extractAlpha$1.pointer, + _$paint.pointer, _$is$.pointer) + .object(); } - static final _id_getAllocationByteCount = _class.instanceMethodId( + static final _id_get$allocationByteCount = Bitmap._class.instanceMethodId( r'getAllocationByteCount', r'()I', ); - static final _getAllocationByteCount = jni$_.ProtectedJniExtensions.lookup< + static final _get$allocationByteCount = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -41599,18 +34076,18 @@ class Bitmap extends jni$_.JObject { )>(); /// from: `public int getAllocationByteCount()` - int getAllocationByteCount() { - return _getAllocationByteCount( - reference.pointer, _id_getAllocationByteCount as jni$_.JMethodIDPtr) + core$_.int get allocationByteCount { + return _get$allocationByteCount( + reference.pointer, _id_get$allocationByteCount.pointer) .integer; } - static final _id_getByteCount = _class.instanceMethodId( + static final _id_get$byteCount = Bitmap._class.instanceMethodId( r'getByteCount', r'()I', ); - static final _getByteCount = jni$_.ProtectedJniExtensions.lookup< + static final _get$byteCount = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -41623,13 +34100,11 @@ class Bitmap extends jni$_.JObject { )>(); /// from: `public int getByteCount()` - int getByteCount() { - return _getByteCount( - reference.pointer, _id_getByteCount as jni$_.JMethodIDPtr) - .integer; + core$_.int get byteCount { + return _get$byteCount(reference.pointer, _id_get$byteCount.pointer).integer; } - static final _id_getColor = _class.instanceMethodId( + static final _id_getColor = Bitmap._class.instanceMethodId( r'getColor', r'(II)Landroid/graphics/Color;', ); @@ -41642,26 +34117,25 @@ class Bitmap extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32, jni$_.Int32)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int, int)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, core$_.int, core$_.int)>(); /// from: `public android.graphics.Color getColor(int i, int i1)` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getColor( - int i, - int i1, + core$_.int i, + core$_.int i1, ) { - return _getColor( - reference.pointer, _id_getColor as jni$_.JMethodIDPtr, i, i1) - .object(const jni$_.JObjectNullableType()); + return _getColor(reference.pointer, _id_getColor.pointer, i, i1) + .object(); } - static final _id_getColorSpace = _class.instanceMethodId( + static final _id_get$colorSpace = Bitmap._class.instanceMethodId( r'getColorSpace', r'()Landroid/graphics/ColorSpace;', ); - static final _getColorSpace = jni$_.ProtectedJniExtensions.lookup< + static final _get$colorSpace = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -41675,18 +34149,17 @@ class Bitmap extends jni$_.JObject { /// from: `public android.graphics.ColorSpace getColorSpace()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getColorSpace() { - return _getColorSpace( - reference.pointer, _id_getColorSpace as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get colorSpace { + return _get$colorSpace(reference.pointer, _id_get$colorSpace.pointer) + .object(); } - static final _id_getConfig = _class.instanceMethodId( + static final _id_get$config = Bitmap._class.instanceMethodId( r'getConfig', r'()Landroid/graphics/Bitmap$Config;', ); - static final _getConfig = jni$_.ProtectedJniExtensions.lookup< + static final _get$config = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -41700,17 +34173,17 @@ class Bitmap extends jni$_.JObject { /// from: `public android.graphics.Bitmap$Config getConfig()` /// The returned object must be released after use, by calling the [release] method. - Bitmap$Config? getConfig() { - return _getConfig(reference.pointer, _id_getConfig as jni$_.JMethodIDPtr) - .object(const $Bitmap$Config$NullableType()); + Bitmap$Config? get config { + return _get$config(reference.pointer, _id_get$config.pointer) + .object(); } - static final _id_getDensity = _class.instanceMethodId( + static final _id_get$density = Bitmap._class.instanceMethodId( r'getDensity', r'()I', ); - static final _getDensity = jni$_.ProtectedJniExtensions.lookup< + static final _get$density = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -41723,17 +34196,16 @@ class Bitmap extends jni$_.JObject { )>(); /// from: `public int getDensity()` - int getDensity() { - return _getDensity(reference.pointer, _id_getDensity as jni$_.JMethodIDPtr) - .integer; + core$_.int get density { + return _get$density(reference.pointer, _id_get$density.pointer).integer; } - static final _id_getGainmap = _class.instanceMethodId( + static final _id_get$gainmap = Bitmap._class.instanceMethodId( r'getGainmap', r'()Landroid/graphics/Gainmap;', ); - static final _getGainmap = jni$_.ProtectedJniExtensions.lookup< + static final _get$gainmap = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -41747,17 +34219,17 @@ class Bitmap extends jni$_.JObject { /// from: `public android.graphics.Gainmap getGainmap()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getGainmap() { - return _getGainmap(reference.pointer, _id_getGainmap as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get gainmap { + return _get$gainmap(reference.pointer, _id_get$gainmap.pointer) + .object(); } - static final _id_getGenerationId = _class.instanceMethodId( + static final _id_get$generationId = Bitmap._class.instanceMethodId( r'getGenerationId', r'()I', ); - static final _getGenerationId = jni$_.ProtectedJniExtensions.lookup< + static final _get$generationId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -41770,18 +34242,17 @@ class Bitmap extends jni$_.JObject { )>(); /// from: `public int getGenerationId()` - int getGenerationId() { - return _getGenerationId( - reference.pointer, _id_getGenerationId as jni$_.JMethodIDPtr) + core$_.int get generationId { + return _get$generationId(reference.pointer, _id_get$generationId.pointer) .integer; } - static final _id_getHardwareBuffer = _class.instanceMethodId( + static final _id_get$hardwareBuffer = Bitmap._class.instanceMethodId( r'getHardwareBuffer', r'()Landroid/hardware/HardwareBuffer;', ); - static final _getHardwareBuffer = jni$_.ProtectedJniExtensions.lookup< + static final _get$hardwareBuffer = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -41795,18 +34266,18 @@ class Bitmap extends jni$_.JObject { /// from: `public android.hardware.HardwareBuffer getHardwareBuffer()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getHardwareBuffer() { - return _getHardwareBuffer( - reference.pointer, _id_getHardwareBuffer as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get hardwareBuffer { + return _get$hardwareBuffer( + reference.pointer, _id_get$hardwareBuffer.pointer) + .object(); } - static final _id_getHeight = _class.instanceMethodId( + static final _id_get$height = Bitmap._class.instanceMethodId( r'getHeight', r'()I', ); - static final _getHeight = jni$_.ProtectedJniExtensions.lookup< + static final _get$height = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -41819,17 +34290,16 @@ class Bitmap extends jni$_.JObject { )>(); /// from: `public int getHeight()` - int getHeight() { - return _getHeight(reference.pointer, _id_getHeight as jni$_.JMethodIDPtr) - .integer; + core$_.int get height { + return _get$height(reference.pointer, _id_get$height.pointer).integer; } - static final _id_getNinePatchChunk = _class.instanceMethodId( + static final _id_get$ninePatchChunk = Bitmap._class.instanceMethodId( r'getNinePatchChunk', r'()[B', ); - static final _getNinePatchChunk = jni$_.ProtectedJniExtensions.lookup< + static final _get$ninePatchChunk = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -41843,13 +34313,13 @@ class Bitmap extends jni$_.JObject { /// from: `public byte[] getNinePatchChunk()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JByteArray? getNinePatchChunk() { - return _getNinePatchChunk( - reference.pointer, _id_getNinePatchChunk as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayNullableType()); + jni$_.JByteArray? get ninePatchChunk { + return _get$ninePatchChunk( + reference.pointer, _id_get$ninePatchChunk.pointer) + .object(); } - static final _id_getPixel = _class.instanceMethodId( + static final _id_getPixel = Bitmap._class.instanceMethodId( r'getPixel', r'(II)I', ); @@ -41862,20 +34332,18 @@ class Bitmap extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32, jni$_.Int32)>)>>( 'globalEnv_CallIntMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int, int)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, core$_.int, core$_.int)>(); /// from: `public int getPixel(int i, int i1)` - int getPixel( - int i, - int i1, + core$_.int getPixel( + core$_.int i, + core$_.int i1, ) { - return _getPixel( - reference.pointer, _id_getPixel as jni$_.JMethodIDPtr, i, i1) - .integer; + return _getPixel(reference.pointer, _id_getPixel.pointer, i, i1).integer; } - static final _id_getPixels = _class.instanceMethodId( + static final _id_getPixels = Bitmap._class.instanceMethodId( r'getPixels', r'([IIIIIII)V', ); @@ -41900,35 +34368,35 @@ class Bitmap extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - int, - int, - int, - int)>(); + core$_.int, + core$_.int, + core$_.int, + core$_.int, + core$_.int, + core$_.int)>(); /// from: `public void getPixels(int[] is, int i, int i1, int i2, int i3, int i4, int i5)` void getPixels( jni$_.JIntArray? is$, - int i, - int i1, - int i2, - int i3, - int i4, - int i5, + core$_.int i, + core$_.int i1, + core$_.int i2, + core$_.int i3, + core$_.int i4, + core$_.int i5, ) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - _getPixels(reference.pointer, _id_getPixels as jni$_.JMethodIDPtr, - _$is$.pointer, i, i1, i2, i3, i4, i5) + _getPixels(reference.pointer, _id_getPixels.pointer, _$is$.pointer, i, i1, + i2, i3, i4, i5) .check(); } - static final _id_getRowBytes = _class.instanceMethodId( + static final _id_get$rowBytes = Bitmap._class.instanceMethodId( r'getRowBytes', r'()I', ); - static final _getRowBytes = jni$_.ProtectedJniExtensions.lookup< + static final _get$rowBytes = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -41941,13 +34409,11 @@ class Bitmap extends jni$_.JObject { )>(); /// from: `public int getRowBytes()` - int getRowBytes() { - return _getRowBytes( - reference.pointer, _id_getRowBytes as jni$_.JMethodIDPtr) - .integer; + core$_.int get rowBytes { + return _get$rowBytes(reference.pointer, _id_get$rowBytes.pointer).integer; } - static final _id_getScaledHeight = _class.instanceMethodId( + static final _id_getScaledHeight = Bitmap._class.instanceMethodId( r'getScaledHeight', r'(Landroid/graphics/Canvas;)I', ); @@ -41964,16 +34430,16 @@ class Bitmap extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public int getScaledHeight(android.graphics.Canvas canvas)` - int getScaledHeight( + core$_.int getScaledHeight( jni$_.JObject? canvas, ) { final _$canvas = canvas?.reference ?? jni$_.jNullReference; - return _getScaledHeight(reference.pointer, - _id_getScaledHeight as jni$_.JMethodIDPtr, _$canvas.pointer) + return _getScaledHeight( + reference.pointer, _id_getScaledHeight.pointer, _$canvas.pointer) .integer; } - static final _id_getScaledHeight$1 = _class.instanceMethodId( + static final _id_getScaledHeight$1 = Bitmap._class.instanceMethodId( r'getScaledHeight', r'(Landroid/util/DisplayMetrics;)I', ); @@ -41990,18 +34456,16 @@ class Bitmap extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public int getScaledHeight(android.util.DisplayMetrics displayMetrics)` - int getScaledHeight$1( + core$_.int getScaledHeight$1( jni$_.JObject? displayMetrics, ) { final _$displayMetrics = displayMetrics?.reference ?? jni$_.jNullReference; - return _getScaledHeight$1( - reference.pointer, - _id_getScaledHeight$1 as jni$_.JMethodIDPtr, + return _getScaledHeight$1(reference.pointer, _id_getScaledHeight$1.pointer, _$displayMetrics.pointer) .integer; } - static final _id_getScaledHeight$2 = _class.instanceMethodId( + static final _id_getScaledHeight$2 = Bitmap._class.instanceMethodId( r'getScaledHeight', r'(I)I', ); @@ -42014,18 +34478,18 @@ class Bitmap extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallIntMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public int getScaledHeight(int i)` - int getScaledHeight$2( - int i, + core$_.int getScaledHeight$2( + core$_.int i, ) { return _getScaledHeight$2( - reference.pointer, _id_getScaledHeight$2 as jni$_.JMethodIDPtr, i) + reference.pointer, _id_getScaledHeight$2.pointer, i) .integer; } - static final _id_getScaledWidth = _class.instanceMethodId( + static final _id_getScaledWidth = Bitmap._class.instanceMethodId( r'getScaledWidth', r'(Landroid/graphics/Canvas;)I', ); @@ -42042,16 +34506,16 @@ class Bitmap extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public int getScaledWidth(android.graphics.Canvas canvas)` - int getScaledWidth( + core$_.int getScaledWidth( jni$_.JObject? canvas, ) { final _$canvas = canvas?.reference ?? jni$_.jNullReference; - return _getScaledWidth(reference.pointer, - _id_getScaledWidth as jni$_.JMethodIDPtr, _$canvas.pointer) + return _getScaledWidth( + reference.pointer, _id_getScaledWidth.pointer, _$canvas.pointer) .integer; } - static final _id_getScaledWidth$1 = _class.instanceMethodId( + static final _id_getScaledWidth$1 = Bitmap._class.instanceMethodId( r'getScaledWidth', r'(Landroid/util/DisplayMetrics;)I', ); @@ -42068,18 +34532,16 @@ class Bitmap extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public int getScaledWidth(android.util.DisplayMetrics displayMetrics)` - int getScaledWidth$1( + core$_.int getScaledWidth$1( jni$_.JObject? displayMetrics, ) { final _$displayMetrics = displayMetrics?.reference ?? jni$_.jNullReference; - return _getScaledWidth$1( - reference.pointer, - _id_getScaledWidth$1 as jni$_.JMethodIDPtr, + return _getScaledWidth$1(reference.pointer, _id_getScaledWidth$1.pointer, _$displayMetrics.pointer) .integer; } - static final _id_getScaledWidth$2 = _class.instanceMethodId( + static final _id_getScaledWidth$2 = Bitmap._class.instanceMethodId( r'getScaledWidth', r'(I)I', ); @@ -42092,23 +34554,22 @@ class Bitmap extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallIntMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public int getScaledWidth(int i)` - int getScaledWidth$2( - int i, + core$_.int getScaledWidth$2( + core$_.int i, ) { - return _getScaledWidth$2( - reference.pointer, _id_getScaledWidth$2 as jni$_.JMethodIDPtr, i) + return _getScaledWidth$2(reference.pointer, _id_getScaledWidth$2.pointer, i) .integer; } - static final _id_getWidth = _class.instanceMethodId( + static final _id_get$width = Bitmap._class.instanceMethodId( r'getWidth', r'()I', ); - static final _getWidth = jni$_.ProtectedJniExtensions.lookup< + static final _get$width = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -42121,12 +34582,11 @@ class Bitmap extends jni$_.JObject { )>(); /// from: `public int getWidth()` - int getWidth() { - return _getWidth(reference.pointer, _id_getWidth as jni$_.JMethodIDPtr) - .integer; + core$_.int get width { + return _get$width(reference.pointer, _id_get$width.pointer).integer; } - static final _id_hasAlpha = _class.instanceMethodId( + static final _id_hasAlpha = Bitmap._class.instanceMethodId( r'hasAlpha', r'()Z', ); @@ -42144,12 +34604,11 @@ class Bitmap extends jni$_.JObject { )>(); /// from: `public boolean hasAlpha()` - bool hasAlpha() { - return _hasAlpha(reference.pointer, _id_hasAlpha as jni$_.JMethodIDPtr) - .boolean; + core$_.bool hasAlpha() { + return _hasAlpha(reference.pointer, _id_hasAlpha.pointer).boolean; } - static final _id_hasGainmap = _class.instanceMethodId( + static final _id_hasGainmap = Bitmap._class.instanceMethodId( r'hasGainmap', r'()Z', ); @@ -42167,12 +34626,11 @@ class Bitmap extends jni$_.JObject { )>(); /// from: `public boolean hasGainmap()` - bool hasGainmap() { - return _hasGainmap(reference.pointer, _id_hasGainmap as jni$_.JMethodIDPtr) - .boolean; + core$_.bool hasGainmap() { + return _hasGainmap(reference.pointer, _id_hasGainmap.pointer).boolean; } - static final _id_hasMipMap = _class.instanceMethodId( + static final _id_hasMipMap = Bitmap._class.instanceMethodId( r'hasMipMap', r'()Z', ); @@ -42190,17 +34648,16 @@ class Bitmap extends jni$_.JObject { )>(); /// from: `public boolean hasMipMap()` - bool hasMipMap() { - return _hasMipMap(reference.pointer, _id_hasMipMap as jni$_.JMethodIDPtr) - .boolean; + core$_.bool hasMipMap() { + return _hasMipMap(reference.pointer, _id_hasMipMap.pointer).boolean; } - static final _id_isMutable = _class.instanceMethodId( + static final _id_get$isMutable = Bitmap._class.instanceMethodId( r'isMutable', r'()Z', ); - static final _isMutable = jni$_.ProtectedJniExtensions.lookup< + static final _get$isMutable = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -42213,17 +34670,16 @@ class Bitmap extends jni$_.JObject { )>(); /// from: `public boolean isMutable()` - bool isMutable() { - return _isMutable(reference.pointer, _id_isMutable as jni$_.JMethodIDPtr) - .boolean; + core$_.bool get isMutable { + return _get$isMutable(reference.pointer, _id_get$isMutable.pointer).boolean; } - static final _id_isPremultiplied = _class.instanceMethodId( + static final _id_get$isPremultiplied = Bitmap._class.instanceMethodId( r'isPremultiplied', r'()Z', ); - static final _isPremultiplied = jni$_.ProtectedJniExtensions.lookup< + static final _get$isPremultiplied = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -42236,18 +34692,18 @@ class Bitmap extends jni$_.JObject { )>(); /// from: `public boolean isPremultiplied()` - bool isPremultiplied() { - return _isPremultiplied( - reference.pointer, _id_isPremultiplied as jni$_.JMethodIDPtr) + core$_.bool get isPremultiplied { + return _get$isPremultiplied( + reference.pointer, _id_get$isPremultiplied.pointer) .boolean; } - static final _id_isRecycled = _class.instanceMethodId( + static final _id_get$isRecycled = Bitmap._class.instanceMethodId( r'isRecycled', r'()Z', ); - static final _isRecycled = jni$_.ProtectedJniExtensions.lookup< + static final _get$isRecycled = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -42260,12 +34716,12 @@ class Bitmap extends jni$_.JObject { )>(); /// from: `public boolean isRecycled()` - bool isRecycled() { - return _isRecycled(reference.pointer, _id_isRecycled as jni$_.JMethodIDPtr) + core$_.bool get isRecycled { + return _get$isRecycled(reference.pointer, _id_get$isRecycled.pointer) .boolean; } - static final _id_prepareToDraw = _class.instanceMethodId( + static final _id_prepareToDraw = Bitmap._class.instanceMethodId( r'prepareToDraw', r'()V', ); @@ -42284,11 +34740,10 @@ class Bitmap extends jni$_.JObject { /// from: `public void prepareToDraw()` void prepareToDraw() { - _prepareToDraw(reference.pointer, _id_prepareToDraw as jni$_.JMethodIDPtr) - .check(); + _prepareToDraw(reference.pointer, _id_prepareToDraw.pointer).check(); } - static final _id_reconfigure = _class.instanceMethodId( + static final _id_reconfigure = Bitmap._class.instanceMethodId( r'reconfigure', r'(IILandroid/graphics/Bitmap$Config;)V', ); @@ -42305,22 +34760,26 @@ class Bitmap extends jni$_.JObject { jni$_.Pointer )>)>>('globalEnv_CallVoidMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, int, jni$_.Pointer)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + core$_.int, + core$_.int, + jni$_.Pointer)>(); /// from: `public void reconfigure(int i, int i1, android.graphics.Bitmap$Config config)` void reconfigure( - int i, - int i1, + core$_.int i, + core$_.int i1, Bitmap$Config? config, ) { final _$config = config?.reference ?? jni$_.jNullReference; - _reconfigure(reference.pointer, _id_reconfigure as jni$_.JMethodIDPtr, i, - i1, _$config.pointer) + _reconfigure( + reference.pointer, _id_reconfigure.pointer, i, i1, _$config.pointer) .check(); } - static final _id_recycle = _class.instanceMethodId( + static final _id_recycle = Bitmap._class.instanceMethodId( r'recycle', r'()V', ); @@ -42339,10 +34798,10 @@ class Bitmap extends jni$_.JObject { /// from: `public void recycle()` void recycle() { - _recycle(reference.pointer, _id_recycle as jni$_.JMethodIDPtr).check(); + _recycle(reference.pointer, _id_recycle.pointer).check(); } - static final _id_sameAs = _class.instanceMethodId( + static final _id_sameAs = Bitmap._class.instanceMethodId( r'sameAs', r'(Landroid/graphics/Bitmap;)Z', ); @@ -42359,21 +34818,20 @@ class Bitmap extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public boolean sameAs(android.graphics.Bitmap bitmap)` - bool sameAs( + core$_.bool sameAs( Bitmap? bitmap, ) { final _$bitmap = bitmap?.reference ?? jni$_.jNullReference; - return _sameAs(reference.pointer, _id_sameAs as jni$_.JMethodIDPtr, - _$bitmap.pointer) + return _sameAs(reference.pointer, _id_sameAs.pointer, _$bitmap.pointer) .boolean; } - static final _id_setColorSpace = _class.instanceMethodId( + static final _id_set$colorSpace = Bitmap._class.instanceMethodId( r'setColorSpace', r'(Landroid/graphics/ColorSpace;)V', ); - static final _setColorSpace = jni$_.ProtectedJniExtensions.lookup< + static final _set$colorSpace = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -42385,21 +34843,19 @@ class Bitmap extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setColorSpace(android.graphics.ColorSpace colorSpace)` - void setColorSpace( - jni$_.JObject? colorSpace, - ) { + set colorSpace(jni$_.JObject? colorSpace) { final _$colorSpace = colorSpace?.reference ?? jni$_.jNullReference; - _setColorSpace(reference.pointer, _id_setColorSpace as jni$_.JMethodIDPtr, - _$colorSpace.pointer) + _set$colorSpace( + reference.pointer, _id_set$colorSpace.pointer, _$colorSpace.pointer) .check(); } - static final _id_setConfig = _class.instanceMethodId( + static final _id_set$config = Bitmap._class.instanceMethodId( r'setConfig', r'(Landroid/graphics/Bitmap$Config;)V', ); - static final _setConfig = jni$_.ProtectedJniExtensions.lookup< + static final _set$config = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -42411,21 +34867,18 @@ class Bitmap extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setConfig(android.graphics.Bitmap$Config config)` - void setConfig( - Bitmap$Config? config, - ) { + set config(Bitmap$Config? config) { final _$config = config?.reference ?? jni$_.jNullReference; - _setConfig(reference.pointer, _id_setConfig as jni$_.JMethodIDPtr, - _$config.pointer) + _set$config(reference.pointer, _id_set$config.pointer, _$config.pointer) .check(); } - static final _id_setDensity = _class.instanceMethodId( + static final _id_set$density = Bitmap._class.instanceMethodId( r'setDensity', r'(I)V', ); - static final _setDensity = jni$_.ProtectedJniExtensions.lookup< + static final _set$density = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -42433,22 +34886,19 @@ class Bitmap extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setDensity(int i)` - void setDensity( - int i, - ) { - _setDensity(reference.pointer, _id_setDensity as jni$_.JMethodIDPtr, i) - .check(); + set density(core$_.int i) { + _set$density(reference.pointer, _id_set$density.pointer, i).check(); } - static final _id_setGainmap = _class.instanceMethodId( + static final _id_set$gainmap = Bitmap._class.instanceMethodId( r'setGainmap', r'(Landroid/graphics/Gainmap;)V', ); - static final _setGainmap = jni$_.ProtectedJniExtensions.lookup< + static final _set$gainmap = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -42460,21 +34910,18 @@ class Bitmap extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setGainmap(android.graphics.Gainmap gainmap)` - void setGainmap( - jni$_.JObject? gainmap, - ) { + set gainmap(jni$_.JObject? gainmap) { final _$gainmap = gainmap?.reference ?? jni$_.jNullReference; - _setGainmap(reference.pointer, _id_setGainmap as jni$_.JMethodIDPtr, - _$gainmap.pointer) + _set$gainmap(reference.pointer, _id_set$gainmap.pointer, _$gainmap.pointer) .check(); } - static final _id_setHasAlpha = _class.instanceMethodId( + static final _id_set$hasAlpha$1 = Bitmap._class.instanceMethodId( r'setHasAlpha', r'(Z)V', ); - static final _setHasAlpha = jni$_.ProtectedJniExtensions.lookup< + static final _set$hasAlpha$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -42482,23 +34929,20 @@ class Bitmap extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setHasAlpha(boolean z)` - void setHasAlpha( - bool z, - ) { - _setHasAlpha( - reference.pointer, _id_setHasAlpha as jni$_.JMethodIDPtr, z ? 1 : 0) + set hasAlpha$1(core$_.bool z) { + _set$hasAlpha$1(reference.pointer, _id_set$hasAlpha$1.pointer, z ? 1 : 0) .check(); } - static final _id_setHasMipMap = _class.instanceMethodId( + static final _id_set$hasMipMap$1 = Bitmap._class.instanceMethodId( r'setHasMipMap', r'(Z)V', ); - static final _setHasMipMap = jni$_.ProtectedJniExtensions.lookup< + static final _set$hasMipMap$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -42506,23 +34950,20 @@ class Bitmap extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setHasMipMap(boolean z)` - void setHasMipMap( - bool z, - ) { - _setHasMipMap(reference.pointer, _id_setHasMipMap as jni$_.JMethodIDPtr, - z ? 1 : 0) + set hasMipMap$1(core$_.bool z) { + _set$hasMipMap$1(reference.pointer, _id_set$hasMipMap$1.pointer, z ? 1 : 0) .check(); } - static final _id_setHeight = _class.instanceMethodId( + static final _id_set$height = Bitmap._class.instanceMethodId( r'setHeight', r'(I)V', ); - static final _setHeight = jni$_.ProtectedJniExtensions.lookup< + static final _set$height = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -42530,17 +34971,14 @@ class Bitmap extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setHeight(int i)` - void setHeight( - int i, - ) { - _setHeight(reference.pointer, _id_setHeight as jni$_.JMethodIDPtr, i) - .check(); + set height(core$_.int i) { + _set$height(reference.pointer, _id_set$height.pointer, i).check(); } - static final _id_setPixel = _class.instanceMethodId( + static final _id_setPixel = Bitmap._class.instanceMethodId( r'setPixel', r'(III)V', ); @@ -42553,20 +34991,19 @@ class Bitmap extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32, jni$_.Int32, jni$_.Int32)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int, int, int)>(); + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, core$_.int, core$_.int, core$_.int)>(); /// from: `public void setPixel(int i, int i1, int i2)` void setPixel( - int i, - int i1, - int i2, + core$_.int i, + core$_.int i1, + core$_.int i2, ) { - _setPixel(reference.pointer, _id_setPixel as jni$_.JMethodIDPtr, i, i1, i2) - .check(); + _setPixel(reference.pointer, _id_setPixel.pointer, i, i1, i2).check(); } - static final _id_setPixels = _class.instanceMethodId( + static final _id_setPixels = Bitmap._class.instanceMethodId( r'setPixels', r'([IIIIIII)V', ); @@ -42591,35 +35028,35 @@ class Bitmap extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - int, - int, - int, - int)>(); + core$_.int, + core$_.int, + core$_.int, + core$_.int, + core$_.int, + core$_.int)>(); /// from: `public void setPixels(int[] is, int i, int i1, int i2, int i3, int i4, int i5)` void setPixels( jni$_.JIntArray? is$, - int i, - int i1, - int i2, - int i3, - int i4, - int i5, + core$_.int i, + core$_.int i1, + core$_.int i2, + core$_.int i3, + core$_.int i4, + core$_.int i5, ) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - _setPixels(reference.pointer, _id_setPixels as jni$_.JMethodIDPtr, - _$is$.pointer, i, i1, i2, i3, i4, i5) + _setPixels(reference.pointer, _id_setPixels.pointer, _$is$.pointer, i, i1, + i2, i3, i4, i5) .check(); } - static final _id_setPremultiplied = _class.instanceMethodId( + static final _id_set$premultiplied = Bitmap._class.instanceMethodId( r'setPremultiplied', r'(Z)V', ); - static final _setPremultiplied = jni$_.ProtectedJniExtensions.lookup< + static final _set$premultiplied = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -42627,23 +35064,21 @@ class Bitmap extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setPremultiplied(boolean z)` - void setPremultiplied( - bool z, - ) { - _setPremultiplied(reference.pointer, - _id_setPremultiplied as jni$_.JMethodIDPtr, z ? 1 : 0) + set premultiplied(core$_.bool z) { + _set$premultiplied( + reference.pointer, _id_set$premultiplied.pointer, z ? 1 : 0) .check(); } - static final _id_setWidth = _class.instanceMethodId( + static final _id_set$width = Bitmap._class.instanceMethodId( r'setWidth', r'(I)V', ); - static final _setWidth = jni$_.ProtectedJniExtensions.lookup< + static final _set$width = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -42651,54 +35086,14 @@ class Bitmap extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void setWidth(int i)` - void setWidth( - int i, - ) { - _setWidth(reference.pointer, _id_setWidth as jni$_.JMethodIDPtr, i).check(); - } - - static final _id_wrapHardwareBuffer = _class.staticMethodId( - r'wrapHardwareBuffer', - r'(Landroid/hardware/HardwareBuffer;Landroid/graphics/ColorSpace;)Landroid/graphics/Bitmap;', - ); - - static final _wrapHardwareBuffer = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); - - /// from: `static public android.graphics.Bitmap wrapHardwareBuffer(android.hardware.HardwareBuffer hardwareBuffer, android.graphics.ColorSpace colorSpace)` - /// The returned object must be released after use, by calling the [release] method. - static Bitmap? wrapHardwareBuffer( - jni$_.JObject? hardwareBuffer, - jni$_.JObject? colorSpace, - ) { - final _$hardwareBuffer = hardwareBuffer?.reference ?? jni$_.jNullReference; - final _$colorSpace = colorSpace?.reference ?? jni$_.jNullReference; - return _wrapHardwareBuffer( - _class.reference.pointer, - _id_wrapHardwareBuffer as jni$_.JMethodIDPtr, - _$hardwareBuffer.pointer, - _$colorSpace.pointer) - .object(const $Bitmap$NullableType()); + set width(core$_.int i) { + _set$width(reference.pointer, _id_set$width.pointer, i).check(); } - static final _id_writeToParcel = _class.instanceMethodId( + static final _id_writeToParcel = Bitmap._class.instanceMethodId( r'writeToParcel', r'(Landroid/os/Parcel;I)V', ); @@ -42713,109 +35108,38 @@ class Bitmap extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); /// from: `public void writeToParcel(android.os.Parcel parcel, int i)` void writeToParcel( jni$_.JObject? parcel, - int i, + core$_.int i, ) { final _$parcel = parcel?.reference ?? jni$_.jNullReference; - _writeToParcel(reference.pointer, _id_writeToParcel as jni$_.JMethodIDPtr, - _$parcel.pointer, i) + _writeToParcel( + reference.pointer, _id_writeToParcel.pointer, _$parcel.pointer, i) .check(); } } -final class $Bitmap$NullableType extends jni$_.JObjType { +final class $Bitmap$Type$ extends jni$_.JType { @jni$_.internal - const $Bitmap$NullableType(); + const $Bitmap$Type$(); @jni$_.internal @core$_.override String get signature => r'Landroid/graphics/Bitmap;'; - - @jni$_.internal - @core$_.override - Bitmap? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Bitmap.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Bitmap$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Bitmap$NullableType) && - other is $Bitmap$NullableType; - } -} - -final class $Bitmap$Type extends jni$_.JObjType { - @jni$_.internal - const $Bitmap$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Landroid/graphics/Bitmap;'; - - @jni$_.internal - @core$_.override - Bitmap fromReference(jni$_.JReference reference) => Bitmap.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => const $Bitmap$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Bitmap$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Bitmap$Type) && other is $Bitmap$Type; - } } /// from: `android.content.Context$BindServiceFlags` -class Context$BindServiceFlags extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Context$BindServiceFlags.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Context$BindServiceFlags._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'android/content/Context$BindServiceFlags'); /// The type which includes information such as the signature of this class. - static const nullableType = $Context$BindServiceFlags$NullableType(); - static const type = $Context$BindServiceFlags$Type(); + static const jni$_.JType type = + $Context$BindServiceFlags$Type$(); static final _id_of = _class.staticMethodId( r'of', r'(J)Landroid/content/Context$BindServiceFlags;', @@ -42828,113 +35152,34 @@ class Context$BindServiceFlags extends jni$_.JObject { 'globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `static public android.content.Context$BindServiceFlags of(long j)` /// The returned object must be released after use, by calling the [release] method. static Context$BindServiceFlags? of( - int j, + core$_.int j, ) { - return _of(_class.reference.pointer, _id_of as jni$_.JMethodIDPtr, j) - .object( - const $Context$BindServiceFlags$NullableType()); + return _of(_class.reference.pointer, _id_of.pointer, j) + .object(); } } -final class $Context$BindServiceFlags$NullableType - extends jni$_.JObjType { +final class $Context$BindServiceFlags$Type$ + extends jni$_.JType { @jni$_.internal - const $Context$BindServiceFlags$NullableType(); + const $Context$BindServiceFlags$Type$(); @jni$_.internal @core$_.override String get signature => r'Landroid/content/Context$BindServiceFlags;'; - - @jni$_.internal - @core$_.override - Context$BindServiceFlags? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : Context$BindServiceFlags.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Context$BindServiceFlags$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Context$BindServiceFlags$NullableType) && - other is $Context$BindServiceFlags$NullableType; - } -} - -final class $Context$BindServiceFlags$Type - extends jni$_.JObjType { - @jni$_.internal - const $Context$BindServiceFlags$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Landroid/content/Context$BindServiceFlags;'; - - @jni$_.internal - @core$_.override - Context$BindServiceFlags fromReference(jni$_.JReference reference) => - Context$BindServiceFlags.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $Context$BindServiceFlags$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Context$BindServiceFlags$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Context$BindServiceFlags$Type) && - other is $Context$BindServiceFlags$Type; - } } /// from: `android.content.Context` -class Context extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Context.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Context._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'android/content/Context'); /// The type which includes information such as the signature of this class. - static const nullableType = $Context$NullableType(); - static const type = $Context$Type(); + static const jni$_.JType type = $Context$Type$(); static final _id_ACCESSIBILITY_SERVICE = _class.staticFieldId( r'ACCESSIBILITY_SERVICE', r'Ljava/lang/String;', @@ -42943,7 +35188,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String ACCESSIBILITY_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get ACCESSIBILITY_SERVICE => - _id_ACCESSIBILITY_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_ACCESSIBILITY_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_ACCOUNT_SERVICE = _class.staticFieldId( r'ACCOUNT_SERVICE', @@ -42953,7 +35199,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String ACCOUNT_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get ACCOUNT_SERVICE => - _id_ACCOUNT_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_ACCOUNT_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_ACTIVITY_SERVICE = _class.staticFieldId( r'ACTIVITY_SERVICE', @@ -42963,7 +35210,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String ACTIVITY_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get ACTIVITY_SERVICE => - _id_ACTIVITY_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_ACTIVITY_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_ADVANCED_PROTECTION_SERVICE = _class.staticFieldId( r'ADVANCED_PROTECTION_SERVICE', @@ -42973,8 +35221,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String ADVANCED_PROTECTION_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get ADVANCED_PROTECTION_SERVICE => - _id_ADVANCED_PROTECTION_SERVICE.get( - _class, const jni$_.JStringNullableType()); + _id_ADVANCED_PROTECTION_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_ALARM_SERVICE = _class.staticFieldId( r'ALARM_SERVICE', @@ -42984,7 +35232,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String ALARM_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get ALARM_SERVICE => - _id_ALARM_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_ALARM_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_APPWIDGET_SERVICE = _class.staticFieldId( r'APPWIDGET_SERVICE', @@ -42994,7 +35243,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String APPWIDGET_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get APPWIDGET_SERVICE => - _id_APPWIDGET_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_APPWIDGET_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_APP_FUNCTION_SERVICE = _class.staticFieldId( r'APP_FUNCTION_SERVICE', @@ -43004,7 +35254,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String APP_FUNCTION_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get APP_FUNCTION_SERVICE => - _id_APP_FUNCTION_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_APP_FUNCTION_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_APP_OPS_SERVICE = _class.staticFieldId( r'APP_OPS_SERVICE', @@ -43014,7 +35265,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String APP_OPS_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get APP_OPS_SERVICE => - _id_APP_OPS_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_APP_OPS_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_APP_SEARCH_SERVICE = _class.staticFieldId( r'APP_SEARCH_SERVICE', @@ -43024,7 +35276,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String APP_SEARCH_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get APP_SEARCH_SERVICE => - _id_APP_SEARCH_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_APP_SEARCH_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_AUDIO_SERVICE = _class.staticFieldId( r'AUDIO_SERVICE', @@ -43034,7 +35287,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String AUDIO_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get AUDIO_SERVICE => - _id_AUDIO_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_AUDIO_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_BATTERY_SERVICE = _class.staticFieldId( r'BATTERY_SERVICE', @@ -43044,7 +35298,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String BATTERY_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get BATTERY_SERVICE => - _id_BATTERY_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_BATTERY_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; /// from: `static public final int BIND_ABOVE_CLIENT` static const BIND_ABOVE_CLIENT = 8; @@ -43098,7 +35353,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String BIOMETRIC_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get BIOMETRIC_SERVICE => - _id_BIOMETRIC_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_BIOMETRIC_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_BLOB_STORE_SERVICE = _class.staticFieldId( r'BLOB_STORE_SERVICE', @@ -43108,7 +35364,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String BLOB_STORE_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get BLOB_STORE_SERVICE => - _id_BLOB_STORE_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_BLOB_STORE_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_BLUETOOTH_SERVICE = _class.staticFieldId( r'BLUETOOTH_SERVICE', @@ -43118,7 +35375,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String BLUETOOTH_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get BLUETOOTH_SERVICE => - _id_BLUETOOTH_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_BLUETOOTH_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_BUGREPORT_SERVICE = _class.staticFieldId( r'BUGREPORT_SERVICE', @@ -43128,7 +35386,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String BUGREPORT_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get BUGREPORT_SERVICE => - _id_BUGREPORT_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_BUGREPORT_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_CAMERA_SERVICE = _class.staticFieldId( r'CAMERA_SERVICE', @@ -43138,7 +35397,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String CAMERA_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get CAMERA_SERVICE => - _id_CAMERA_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_CAMERA_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_CAPTIONING_SERVICE = _class.staticFieldId( r'CAPTIONING_SERVICE', @@ -43148,7 +35408,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String CAPTIONING_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get CAPTIONING_SERVICE => - _id_CAPTIONING_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_CAPTIONING_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_CARRIER_CONFIG_SERVICE = _class.staticFieldId( r'CARRIER_CONFIG_SERVICE', @@ -43158,7 +35419,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String CARRIER_CONFIG_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get CARRIER_CONFIG_SERVICE => - _id_CARRIER_CONFIG_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_CARRIER_CONFIG_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_CLIPBOARD_SERVICE = _class.staticFieldId( r'CLIPBOARD_SERVICE', @@ -43168,7 +35430,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String CLIPBOARD_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get CLIPBOARD_SERVICE => - _id_CLIPBOARD_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_CLIPBOARD_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_COMPANION_DEVICE_SERVICE = _class.staticFieldId( r'COMPANION_DEVICE_SERVICE', @@ -43178,8 +35441,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String COMPANION_DEVICE_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get COMPANION_DEVICE_SERVICE => - _id_COMPANION_DEVICE_SERVICE.get( - _class, const jni$_.JStringNullableType()); + _id_COMPANION_DEVICE_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_CONNECTIVITY_DIAGNOSTICS_SERVICE = _class.staticFieldId( r'CONNECTIVITY_DIAGNOSTICS_SERVICE', @@ -43189,8 +35452,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String CONNECTIVITY_DIAGNOSTICS_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get CONNECTIVITY_DIAGNOSTICS_SERVICE => - _id_CONNECTIVITY_DIAGNOSTICS_SERVICE.get( - _class, const jni$_.JStringNullableType()); + _id_CONNECTIVITY_DIAGNOSTICS_SERVICE.getNullable( + _class, jni$_.JString.type) as jni$_.JString?; static final _id_CONNECTIVITY_SERVICE = _class.staticFieldId( r'CONNECTIVITY_SERVICE', @@ -43200,7 +35463,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String CONNECTIVITY_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get CONNECTIVITY_SERVICE => - _id_CONNECTIVITY_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_CONNECTIVITY_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_CONSUMER_IR_SERVICE = _class.staticFieldId( r'CONSUMER_IR_SERVICE', @@ -43210,7 +35474,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String CONSUMER_IR_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get CONSUMER_IR_SERVICE => - _id_CONSUMER_IR_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_CONSUMER_IR_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_CONTACT_KEYS_SERVICE = _class.staticFieldId( r'CONTACT_KEYS_SERVICE', @@ -43220,7 +35485,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String CONTACT_KEYS_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get CONTACT_KEYS_SERVICE => - _id_CONTACT_KEYS_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_CONTACT_KEYS_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; /// from: `static public final int CONTEXT_IGNORE_SECURITY` static const CONTEXT_IGNORE_SECURITY = 2; @@ -43238,7 +35504,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String CREDENTIAL_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get CREDENTIAL_SERVICE => - _id_CREDENTIAL_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_CREDENTIAL_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_CROSS_PROFILE_APPS_SERVICE = _class.staticFieldId( r'CROSS_PROFILE_APPS_SERVICE', @@ -43248,8 +35515,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String CROSS_PROFILE_APPS_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get CROSS_PROFILE_APPS_SERVICE => - _id_CROSS_PROFILE_APPS_SERVICE.get( - _class, const jni$_.JStringNullableType()); + _id_CROSS_PROFILE_APPS_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; /// from: `static public final int DEVICE_ID_DEFAULT` static const DEVICE_ID_DEFAULT = 0; @@ -43264,7 +35531,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String DEVICE_LOCK_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get DEVICE_LOCK_SERVICE => - _id_DEVICE_LOCK_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_DEVICE_LOCK_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_DEVICE_POLICY_SERVICE = _class.staticFieldId( r'DEVICE_POLICY_SERVICE', @@ -43274,7 +35542,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String DEVICE_POLICY_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get DEVICE_POLICY_SERVICE => - _id_DEVICE_POLICY_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_DEVICE_POLICY_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_DISPLAY_HASH_SERVICE = _class.staticFieldId( r'DISPLAY_HASH_SERVICE', @@ -43284,7 +35553,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String DISPLAY_HASH_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get DISPLAY_HASH_SERVICE => - _id_DISPLAY_HASH_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_DISPLAY_HASH_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_DISPLAY_SERVICE = _class.staticFieldId( r'DISPLAY_SERVICE', @@ -43294,7 +35564,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String DISPLAY_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get DISPLAY_SERVICE => - _id_DISPLAY_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_DISPLAY_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_DOMAIN_VERIFICATION_SERVICE = _class.staticFieldId( r'DOMAIN_VERIFICATION_SERVICE', @@ -43304,8 +35575,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String DOMAIN_VERIFICATION_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get DOMAIN_VERIFICATION_SERVICE => - _id_DOMAIN_VERIFICATION_SERVICE.get( - _class, const jni$_.JStringNullableType()); + _id_DOMAIN_VERIFICATION_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_DOWNLOAD_SERVICE = _class.staticFieldId( r'DOWNLOAD_SERVICE', @@ -43315,7 +35586,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String DOWNLOAD_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get DOWNLOAD_SERVICE => - _id_DOWNLOAD_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_DOWNLOAD_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_DROPBOX_SERVICE = _class.staticFieldId( r'DROPBOX_SERVICE', @@ -43325,7 +35597,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String DROPBOX_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get DROPBOX_SERVICE => - _id_DROPBOX_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_DROPBOX_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_EUICC_SERVICE = _class.staticFieldId( r'EUICC_SERVICE', @@ -43335,7 +35608,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String EUICC_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get EUICC_SERVICE => - _id_EUICC_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_EUICC_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_FILE_INTEGRITY_SERVICE = _class.staticFieldId( r'FILE_INTEGRITY_SERVICE', @@ -43345,7 +35619,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String FILE_INTEGRITY_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get FILE_INTEGRITY_SERVICE => - _id_FILE_INTEGRITY_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_FILE_INTEGRITY_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_FINGERPRINT_SERVICE = _class.staticFieldId( r'FINGERPRINT_SERVICE', @@ -43355,7 +35630,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String FINGERPRINT_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get FINGERPRINT_SERVICE => - _id_FINGERPRINT_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_FINGERPRINT_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_GAME_SERVICE = _class.staticFieldId( r'GAME_SERVICE', @@ -43365,7 +35641,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String GAME_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get GAME_SERVICE => - _id_GAME_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_GAME_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_GRAMMATICAL_INFLECTION_SERVICE = _class.staticFieldId( r'GRAMMATICAL_INFLECTION_SERVICE', @@ -43375,8 +35652,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String GRAMMATICAL_INFLECTION_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get GRAMMATICAL_INFLECTION_SERVICE => - _id_GRAMMATICAL_INFLECTION_SERVICE.get( - _class, const jni$_.JStringNullableType()); + _id_GRAMMATICAL_INFLECTION_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_HARDWARE_PROPERTIES_SERVICE = _class.staticFieldId( r'HARDWARE_PROPERTIES_SERVICE', @@ -43386,8 +35663,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String HARDWARE_PROPERTIES_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get HARDWARE_PROPERTIES_SERVICE => - _id_HARDWARE_PROPERTIES_SERVICE.get( - _class, const jni$_.JStringNullableType()); + _id_HARDWARE_PROPERTIES_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_HEALTHCONNECT_SERVICE = _class.staticFieldId( r'HEALTHCONNECT_SERVICE', @@ -43397,7 +35674,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String HEALTHCONNECT_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get HEALTHCONNECT_SERVICE => - _id_HEALTHCONNECT_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_HEALTHCONNECT_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_INPUT_METHOD_SERVICE = _class.staticFieldId( r'INPUT_METHOD_SERVICE', @@ -43407,7 +35685,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String INPUT_METHOD_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get INPUT_METHOD_SERVICE => - _id_INPUT_METHOD_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_INPUT_METHOD_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_INPUT_SERVICE = _class.staticFieldId( r'INPUT_SERVICE', @@ -43417,7 +35696,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String INPUT_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get INPUT_SERVICE => - _id_INPUT_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_INPUT_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_IPSEC_SERVICE = _class.staticFieldId( r'IPSEC_SERVICE', @@ -43427,7 +35707,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String IPSEC_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get IPSEC_SERVICE => - _id_IPSEC_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_IPSEC_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_JOB_SCHEDULER_SERVICE = _class.staticFieldId( r'JOB_SCHEDULER_SERVICE', @@ -43437,7 +35718,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String JOB_SCHEDULER_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get JOB_SCHEDULER_SERVICE => - _id_JOB_SCHEDULER_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_JOB_SCHEDULER_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_KEYGUARD_SERVICE = _class.staticFieldId( r'KEYGUARD_SERVICE', @@ -43447,7 +35729,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String KEYGUARD_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get KEYGUARD_SERVICE => - _id_KEYGUARD_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_KEYGUARD_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_KEYSTORE_SERVICE = _class.staticFieldId( r'KEYSTORE_SERVICE', @@ -43457,7 +35740,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String KEYSTORE_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get KEYSTORE_SERVICE => - _id_KEYSTORE_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_KEYSTORE_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_LAUNCHER_APPS_SERVICE = _class.staticFieldId( r'LAUNCHER_APPS_SERVICE', @@ -43467,7 +35751,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String LAUNCHER_APPS_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get LAUNCHER_APPS_SERVICE => - _id_LAUNCHER_APPS_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_LAUNCHER_APPS_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_LAYOUT_INFLATER_SERVICE = _class.staticFieldId( r'LAYOUT_INFLATER_SERVICE', @@ -43477,8 +35762,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String LAYOUT_INFLATER_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get LAYOUT_INFLATER_SERVICE => - _id_LAYOUT_INFLATER_SERVICE.get( - _class, const jni$_.JStringNullableType()); + _id_LAYOUT_INFLATER_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_LOCALE_SERVICE = _class.staticFieldId( r'LOCALE_SERVICE', @@ -43488,7 +35773,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String LOCALE_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get LOCALE_SERVICE => - _id_LOCALE_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_LOCALE_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_LOCATION_SERVICE = _class.staticFieldId( r'LOCATION_SERVICE', @@ -43498,7 +35784,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String LOCATION_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get LOCATION_SERVICE => - _id_LOCATION_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_LOCATION_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_MEDIA_COMMUNICATION_SERVICE = _class.staticFieldId( r'MEDIA_COMMUNICATION_SERVICE', @@ -43508,8 +35795,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String MEDIA_COMMUNICATION_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get MEDIA_COMMUNICATION_SERVICE => - _id_MEDIA_COMMUNICATION_SERVICE.get( - _class, const jni$_.JStringNullableType()); + _id_MEDIA_COMMUNICATION_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_MEDIA_METRICS_SERVICE = _class.staticFieldId( r'MEDIA_METRICS_SERVICE', @@ -43519,7 +35806,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String MEDIA_METRICS_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get MEDIA_METRICS_SERVICE => - _id_MEDIA_METRICS_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_MEDIA_METRICS_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_MEDIA_PROJECTION_SERVICE = _class.staticFieldId( r'MEDIA_PROJECTION_SERVICE', @@ -43529,8 +35817,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String MEDIA_PROJECTION_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get MEDIA_PROJECTION_SERVICE => - _id_MEDIA_PROJECTION_SERVICE.get( - _class, const jni$_.JStringNullableType()); + _id_MEDIA_PROJECTION_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_MEDIA_QUALITY_SERVICE = _class.staticFieldId( r'MEDIA_QUALITY_SERVICE', @@ -43540,7 +35828,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String MEDIA_QUALITY_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get MEDIA_QUALITY_SERVICE => - _id_MEDIA_QUALITY_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_MEDIA_QUALITY_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_MEDIA_ROUTER_SERVICE = _class.staticFieldId( r'MEDIA_ROUTER_SERVICE', @@ -43550,7 +35839,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String MEDIA_ROUTER_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get MEDIA_ROUTER_SERVICE => - _id_MEDIA_ROUTER_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_MEDIA_ROUTER_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_MEDIA_SESSION_SERVICE = _class.staticFieldId( r'MEDIA_SESSION_SERVICE', @@ -43560,7 +35850,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String MEDIA_SESSION_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get MEDIA_SESSION_SERVICE => - _id_MEDIA_SESSION_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_MEDIA_SESSION_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_MIDI_SERVICE = _class.staticFieldId( r'MIDI_SERVICE', @@ -43570,7 +35861,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String MIDI_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get MIDI_SERVICE => - _id_MIDI_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_MIDI_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; /// from: `static public final int MODE_APPEND` static const MODE_APPEND = 32768; @@ -43600,7 +35892,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String NETWORK_STATS_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get NETWORK_STATS_SERVICE => - _id_NETWORK_STATS_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_NETWORK_STATS_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_NFC_SERVICE = _class.staticFieldId( r'NFC_SERVICE', @@ -43610,7 +35903,7 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String NFC_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get NFC_SERVICE => - _id_NFC_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_NFC_SERVICE.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_NOTIFICATION_SERVICE = _class.staticFieldId( r'NOTIFICATION_SERVICE', @@ -43620,7 +35913,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String NOTIFICATION_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get NOTIFICATION_SERVICE => - _id_NOTIFICATION_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_NOTIFICATION_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_NSD_SERVICE = _class.staticFieldId( r'NSD_SERVICE', @@ -43630,7 +35924,7 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String NSD_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get NSD_SERVICE => - _id_NSD_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_NSD_SERVICE.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_OVERLAY_SERVICE = _class.staticFieldId( r'OVERLAY_SERVICE', @@ -43640,7 +35934,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String OVERLAY_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get OVERLAY_SERVICE => - _id_OVERLAY_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_OVERLAY_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_PEOPLE_SERVICE = _class.staticFieldId( r'PEOPLE_SERVICE', @@ -43650,7 +35945,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String PEOPLE_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get PEOPLE_SERVICE => - _id_PEOPLE_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_PEOPLE_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_PERFORMANCE_HINT_SERVICE = _class.staticFieldId( r'PERFORMANCE_HINT_SERVICE', @@ -43660,8 +35956,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String PERFORMANCE_HINT_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get PERFORMANCE_HINT_SERVICE => - _id_PERFORMANCE_HINT_SERVICE.get( - _class, const jni$_.JStringNullableType()); + _id_PERFORMANCE_HINT_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_PERSISTENT_DATA_BLOCK_SERVICE = _class.staticFieldId( r'PERSISTENT_DATA_BLOCK_SERVICE', @@ -43671,8 +35967,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String PERSISTENT_DATA_BLOCK_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get PERSISTENT_DATA_BLOCK_SERVICE => - _id_PERSISTENT_DATA_BLOCK_SERVICE.get( - _class, const jni$_.JStringNullableType()); + _id_PERSISTENT_DATA_BLOCK_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_POWER_SERVICE = _class.staticFieldId( r'POWER_SERVICE', @@ -43682,7 +35978,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String POWER_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get POWER_SERVICE => - _id_POWER_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_POWER_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_PRINT_SERVICE = _class.staticFieldId( r'PRINT_SERVICE', @@ -43692,7 +35989,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String PRINT_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get PRINT_SERVICE => - _id_PRINT_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_PRINT_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_PROFILING_SERVICE = _class.staticFieldId( r'PROFILING_SERVICE', @@ -43702,7 +36000,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String PROFILING_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get PROFILING_SERVICE => - _id_PROFILING_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_PROFILING_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; /// from: `static public final int RECEIVER_EXPORTED` static const RECEIVER_EXPORTED = 2; @@ -43720,7 +36019,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String RESTRICTIONS_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get RESTRICTIONS_SERVICE => - _id_RESTRICTIONS_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_RESTRICTIONS_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_ROLE_SERVICE = _class.staticFieldId( r'ROLE_SERVICE', @@ -43730,7 +36030,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String ROLE_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get ROLE_SERVICE => - _id_ROLE_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_ROLE_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_SATELLITE_SERVICE = _class.staticFieldId( r'SATELLITE_SERVICE', @@ -43740,7 +36041,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String SATELLITE_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get SATELLITE_SERVICE => - _id_SATELLITE_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_SATELLITE_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_SEARCH_SERVICE = _class.staticFieldId( r'SEARCH_SERVICE', @@ -43750,7 +36052,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String SEARCH_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get SEARCH_SERVICE => - _id_SEARCH_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_SEARCH_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_SECURITY_STATE_SERVICE = _class.staticFieldId( r'SECURITY_STATE_SERVICE', @@ -43760,7 +36063,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String SECURITY_STATE_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get SECURITY_STATE_SERVICE => - _id_SECURITY_STATE_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_SECURITY_STATE_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_SENSOR_SERVICE = _class.staticFieldId( r'SENSOR_SERVICE', @@ -43770,7 +36074,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String SENSOR_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get SENSOR_SERVICE => - _id_SENSOR_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_SENSOR_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_SHORTCUT_SERVICE = _class.staticFieldId( r'SHORTCUT_SERVICE', @@ -43780,7 +36085,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String SHORTCUT_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get SHORTCUT_SERVICE => - _id_SHORTCUT_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_SHORTCUT_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_STATUS_BAR_SERVICE = _class.staticFieldId( r'STATUS_BAR_SERVICE', @@ -43790,7 +36096,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String STATUS_BAR_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATUS_BAR_SERVICE => - _id_STATUS_BAR_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_STATUS_BAR_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_STORAGE_SERVICE = _class.staticFieldId( r'STORAGE_SERVICE', @@ -43800,7 +36107,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String STORAGE_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STORAGE_SERVICE => - _id_STORAGE_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_STORAGE_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_STORAGE_STATS_SERVICE = _class.staticFieldId( r'STORAGE_STATS_SERVICE', @@ -43810,7 +36118,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String STORAGE_STATS_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STORAGE_STATS_SERVICE => - _id_STORAGE_STATS_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_STORAGE_STATS_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_SYSTEM_HEALTH_SERVICE = _class.staticFieldId( r'SYSTEM_HEALTH_SERVICE', @@ -43820,7 +36129,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String SYSTEM_HEALTH_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get SYSTEM_HEALTH_SERVICE => - _id_SYSTEM_HEALTH_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_SYSTEM_HEALTH_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_TELECOM_SERVICE = _class.staticFieldId( r'TELECOM_SERVICE', @@ -43830,7 +36140,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String TELECOM_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TELECOM_SERVICE => - _id_TELECOM_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_TELECOM_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_TELEPHONY_IMS_SERVICE = _class.staticFieldId( r'TELEPHONY_IMS_SERVICE', @@ -43840,7 +36151,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String TELEPHONY_IMS_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TELEPHONY_IMS_SERVICE => - _id_TELEPHONY_IMS_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_TELEPHONY_IMS_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_TELEPHONY_SERVICE = _class.staticFieldId( r'TELEPHONY_SERVICE', @@ -43850,7 +36162,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String TELEPHONY_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TELEPHONY_SERVICE => - _id_TELEPHONY_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_TELEPHONY_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_TELEPHONY_SUBSCRIPTION_SERVICE = _class.staticFieldId( r'TELEPHONY_SUBSCRIPTION_SERVICE', @@ -43860,8 +36173,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String TELEPHONY_SUBSCRIPTION_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TELEPHONY_SUBSCRIPTION_SERVICE => - _id_TELEPHONY_SUBSCRIPTION_SERVICE.get( - _class, const jni$_.JStringNullableType()); + _id_TELEPHONY_SUBSCRIPTION_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_TETHERING_SERVICE = _class.staticFieldId( r'TETHERING_SERVICE', @@ -43871,7 +36184,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String TETHERING_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TETHERING_SERVICE => - _id_TETHERING_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_TETHERING_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_TEXT_CLASSIFICATION_SERVICE = _class.staticFieldId( r'TEXT_CLASSIFICATION_SERVICE', @@ -43881,8 +36195,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String TEXT_CLASSIFICATION_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TEXT_CLASSIFICATION_SERVICE => - _id_TEXT_CLASSIFICATION_SERVICE.get( - _class, const jni$_.JStringNullableType()); + _id_TEXT_CLASSIFICATION_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_TEXT_SERVICES_MANAGER_SERVICE = _class.staticFieldId( r'TEXT_SERVICES_MANAGER_SERVICE', @@ -43892,8 +36206,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String TEXT_SERVICES_MANAGER_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TEXT_SERVICES_MANAGER_SERVICE => - _id_TEXT_SERVICES_MANAGER_SERVICE.get( - _class, const jni$_.JStringNullableType()); + _id_TEXT_SERVICES_MANAGER_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_TV_AD_SERVICE = _class.staticFieldId( r'TV_AD_SERVICE', @@ -43903,7 +36217,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String TV_AD_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TV_AD_SERVICE => - _id_TV_AD_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_TV_AD_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_TV_INPUT_SERVICE = _class.staticFieldId( r'TV_INPUT_SERVICE', @@ -43913,7 +36228,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String TV_INPUT_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TV_INPUT_SERVICE => - _id_TV_INPUT_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_TV_INPUT_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_TV_INTERACTIVE_APP_SERVICE = _class.staticFieldId( r'TV_INTERACTIVE_APP_SERVICE', @@ -43923,8 +36239,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String TV_INTERACTIVE_APP_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get TV_INTERACTIVE_APP_SERVICE => - _id_TV_INTERACTIVE_APP_SERVICE.get( - _class, const jni$_.JStringNullableType()); + _id_TV_INTERACTIVE_APP_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_UI_MODE_SERVICE = _class.staticFieldId( r'UI_MODE_SERVICE', @@ -43934,7 +36250,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String UI_MODE_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get UI_MODE_SERVICE => - _id_UI_MODE_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_UI_MODE_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_USAGE_STATS_SERVICE = _class.staticFieldId( r'USAGE_STATS_SERVICE', @@ -43944,7 +36261,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String USAGE_STATS_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get USAGE_STATS_SERVICE => - _id_USAGE_STATS_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_USAGE_STATS_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_USB_SERVICE = _class.staticFieldId( r'USB_SERVICE', @@ -43954,7 +36272,7 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String USB_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get USB_SERVICE => - _id_USB_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_USB_SERVICE.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_USER_SERVICE = _class.staticFieldId( r'USER_SERVICE', @@ -43964,7 +36282,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String USER_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get USER_SERVICE => - _id_USER_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_USER_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_VIBRATOR_MANAGER_SERVICE = _class.staticFieldId( r'VIBRATOR_MANAGER_SERVICE', @@ -43974,8 +36293,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String VIBRATOR_MANAGER_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get VIBRATOR_MANAGER_SERVICE => - _id_VIBRATOR_MANAGER_SERVICE.get( - _class, const jni$_.JStringNullableType()); + _id_VIBRATOR_MANAGER_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_VIBRATOR_SERVICE = _class.staticFieldId( r'VIBRATOR_SERVICE', @@ -43985,7 +36304,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String VIBRATOR_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get VIBRATOR_SERVICE => - _id_VIBRATOR_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_VIBRATOR_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_VIRTUAL_DEVICE_SERVICE = _class.staticFieldId( r'VIRTUAL_DEVICE_SERVICE', @@ -43995,7 +36315,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String VIRTUAL_DEVICE_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get VIRTUAL_DEVICE_SERVICE => - _id_VIRTUAL_DEVICE_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_VIRTUAL_DEVICE_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_VPN_MANAGEMENT_SERVICE = _class.staticFieldId( r'VPN_MANAGEMENT_SERVICE', @@ -44005,7 +36326,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String VPN_MANAGEMENT_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get VPN_MANAGEMENT_SERVICE => - _id_VPN_MANAGEMENT_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_VPN_MANAGEMENT_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_WALLPAPER_SERVICE = _class.staticFieldId( r'WALLPAPER_SERVICE', @@ -44015,7 +36337,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String WALLPAPER_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get WALLPAPER_SERVICE => - _id_WALLPAPER_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_WALLPAPER_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_WIFI_AWARE_SERVICE = _class.staticFieldId( r'WIFI_AWARE_SERVICE', @@ -44025,7 +36348,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String WIFI_AWARE_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get WIFI_AWARE_SERVICE => - _id_WIFI_AWARE_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_WIFI_AWARE_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_WIFI_P2P_SERVICE = _class.staticFieldId( r'WIFI_P2P_SERVICE', @@ -44035,7 +36359,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String WIFI_P2P_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get WIFI_P2P_SERVICE => - _id_WIFI_P2P_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_WIFI_P2P_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_WIFI_RTT_RANGING_SERVICE = _class.staticFieldId( r'WIFI_RTT_RANGING_SERVICE', @@ -44045,8 +36370,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String WIFI_RTT_RANGING_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get WIFI_RTT_RANGING_SERVICE => - _id_WIFI_RTT_RANGING_SERVICE.get( - _class, const jni$_.JStringNullableType()); + _id_WIFI_RTT_RANGING_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_WIFI_SERVICE = _class.staticFieldId( r'WIFI_SERVICE', @@ -44056,7 +36381,8 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String WIFI_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get WIFI_SERVICE => - _id_WIFI_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_WIFI_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_WINDOW_SERVICE = _class.staticFieldId( r'WINDOW_SERVICE', @@ -44066,9 +36392,12 @@ class Context extends jni$_.JObject { /// from: `static public final java.lang.String WINDOW_SERVICE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get WINDOW_SERVICE => - _id_WINDOW_SERVICE.get(_class, const jni$_.JStringNullableType()); + _id_WINDOW_SERVICE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; +} - static final _id_bindIsolatedService = _class.instanceMethodId( +extension Context$$Methods on Context { + static final _id_bindIsolatedService = Context._class.instanceMethodId( r'bindIsolatedService', r'(Landroid/content/Intent;Landroid/content/Context$BindServiceFlags;Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/content/ServiceConnection;)Z', ); @@ -44097,7 +36426,7 @@ class Context extends jni$_.JObject { jni$_.Pointer)>(); /// from: `public boolean bindIsolatedService(android.content.Intent intent, android.content.Context$BindServiceFlags bindServiceFlags, java.lang.String string, java.util.concurrent.Executor executor, android.content.ServiceConnection serviceConnection)` - bool bindIsolatedService( + core$_.bool bindIsolatedService( jni$_.JObject? intent, Context$BindServiceFlags? bindServiceFlags, jni$_.JString? string, @@ -44113,7 +36442,7 @@ class Context extends jni$_.JObject { serviceConnection?.reference ?? jni$_.jNullReference; return _bindIsolatedService( reference.pointer, - _id_bindIsolatedService as jni$_.JMethodIDPtr, + _id_bindIsolatedService.pointer, _$intent.pointer, _$bindServiceFlags.pointer, _$string.pointer, @@ -44122,7 +36451,7 @@ class Context extends jni$_.JObject { .boolean; } - static final _id_bindIsolatedService$1 = _class.instanceMethodId( + static final _id_bindIsolatedService$1 = Context._class.instanceMethodId( r'bindIsolatedService', r'(Landroid/content/Intent;ILjava/lang/String;Ljava/util/concurrent/Executor;Landroid/content/ServiceConnection;)Z', ); @@ -44145,15 +36474,15 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer, jni$_.Pointer, jni$_.Pointer)>(); /// from: `public boolean bindIsolatedService(android.content.Intent intent, int i, java.lang.String string, java.util.concurrent.Executor executor, android.content.ServiceConnection serviceConnection)` - bool bindIsolatedService$1( + core$_.bool bindIsolatedService$1( jni$_.JObject? intent, - int i, + core$_.int i, jni$_.JString? string, jni$_.JObject? executor, jni$_.JObject? serviceConnection, @@ -44165,7 +36494,7 @@ class Context extends jni$_.JObject { serviceConnection?.reference ?? jni$_.jNullReference; return _bindIsolatedService$1( reference.pointer, - _id_bindIsolatedService$1 as jni$_.JMethodIDPtr, + _id_bindIsolatedService$1.pointer, _$intent.pointer, i, _$string.pointer, @@ -44174,7 +36503,7 @@ class Context extends jni$_.JObject { .boolean; } - static final _id_bindService = _class.instanceMethodId( + static final _id_bindService = Context._class.instanceMethodId( r'bindService', r'(Landroid/content/Intent;Landroid/content/Context$BindServiceFlags;Ljava/util/concurrent/Executor;Landroid/content/ServiceConnection;)Z', ); @@ -44201,7 +36530,7 @@ class Context extends jni$_.JObject { jni$_.Pointer)>(); /// from: `public boolean bindService(android.content.Intent intent, android.content.Context$BindServiceFlags bindServiceFlags, java.util.concurrent.Executor executor, android.content.ServiceConnection serviceConnection)` - bool bindService( + core$_.bool bindService( jni$_.JObject? intent, Context$BindServiceFlags? bindServiceFlags, jni$_.JObject? executor, @@ -44215,7 +36544,7 @@ class Context extends jni$_.JObject { serviceConnection?.reference ?? jni$_.jNullReference; return _bindService( reference.pointer, - _id_bindService as jni$_.JMethodIDPtr, + _id_bindService.pointer, _$intent.pointer, _$bindServiceFlags.pointer, _$executor.pointer, @@ -44223,7 +36552,7 @@ class Context extends jni$_.JObject { .boolean; } - static final _id_bindService$1 = _class.instanceMethodId( + static final _id_bindService$1 = Context._class.instanceMethodId( r'bindService', r'(Landroid/content/Intent;Landroid/content/ServiceConnection;Landroid/content/Context$BindServiceFlags;)Z', ); @@ -44248,7 +36577,7 @@ class Context extends jni$_.JObject { jni$_.Pointer)>(); /// from: `public boolean bindService(android.content.Intent intent, android.content.ServiceConnection serviceConnection, android.content.Context$BindServiceFlags bindServiceFlags)` - bool bindService$1( + core$_.bool bindService$1( jni$_.JObject? intent, jni$_.JObject? serviceConnection, Context$BindServiceFlags? bindServiceFlags, @@ -44260,14 +36589,14 @@ class Context extends jni$_.JObject { bindServiceFlags?.reference ?? jni$_.jNullReference; return _bindService$1( reference.pointer, - _id_bindService$1 as jni$_.JMethodIDPtr, + _id_bindService$1.pointer, _$intent.pointer, _$serviceConnection.pointer, _$bindServiceFlags.pointer) .boolean; } - static final _id_bindService$2 = _class.instanceMethodId( + static final _id_bindService$2 = Context._class.instanceMethodId( r'bindService', r'(Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z', ); @@ -44289,27 +36618,23 @@ class Context extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + core$_.int)>(); /// from: `public abstract boolean bindService(android.content.Intent intent, android.content.ServiceConnection serviceConnection, int i)` - bool bindService$2( + core$_.bool bindService$2( jni$_.JObject? intent, jni$_.JObject? serviceConnection, - int i, + core$_.int i, ) { final _$intent = intent?.reference ?? jni$_.jNullReference; final _$serviceConnection = serviceConnection?.reference ?? jni$_.jNullReference; - return _bindService$2( - reference.pointer, - _id_bindService$2 as jni$_.JMethodIDPtr, - _$intent.pointer, - _$serviceConnection.pointer, - i) + return _bindService$2(reference.pointer, _id_bindService$2.pointer, + _$intent.pointer, _$serviceConnection.pointer, i) .boolean; } - static final _id_bindService$3 = _class.instanceMethodId( + static final _id_bindService$3 = Context._class.instanceMethodId( r'bindService', r'(Landroid/content/Intent;ILjava/util/concurrent/Executor;Landroid/content/ServiceConnection;)Z', ); @@ -44331,14 +36656,14 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer, jni$_.Pointer)>(); /// from: `public boolean bindService(android.content.Intent intent, int i, java.util.concurrent.Executor executor, android.content.ServiceConnection serviceConnection)` - bool bindService$3( + core$_.bool bindService$3( jni$_.JObject? intent, - int i, + core$_.int i, jni$_.JObject? executor, jni$_.JObject? serviceConnection, ) { @@ -44348,7 +36673,7 @@ class Context extends jni$_.JObject { serviceConnection?.reference ?? jni$_.jNullReference; return _bindService$3( reference.pointer, - _id_bindService$3 as jni$_.JMethodIDPtr, + _id_bindService$3.pointer, _$intent.pointer, i, _$executor.pointer, @@ -44356,7 +36681,7 @@ class Context extends jni$_.JObject { .boolean; } - static final _id_bindServiceAsUser = _class.instanceMethodId( + static final _id_bindServiceAsUser = Context._class.instanceMethodId( r'bindServiceAsUser', r'(Landroid/content/Intent;Landroid/content/ServiceConnection;Landroid/content/Context$BindServiceFlags;Landroid/os/UserHandle;)Z', ); @@ -44383,7 +36708,7 @@ class Context extends jni$_.JObject { jni$_.Pointer)>(); /// from: `public boolean bindServiceAsUser(android.content.Intent intent, android.content.ServiceConnection serviceConnection, android.content.Context$BindServiceFlags bindServiceFlags, android.os.UserHandle userHandle)` - bool bindServiceAsUser( + core$_.bool bindServiceAsUser( jni$_.JObject? intent, jni$_.JObject? serviceConnection, Context$BindServiceFlags? bindServiceFlags, @@ -44397,7 +36722,7 @@ class Context extends jni$_.JObject { final _$userHandle = userHandle?.reference ?? jni$_.jNullReference; return _bindServiceAsUser( reference.pointer, - _id_bindServiceAsUser as jni$_.JMethodIDPtr, + _id_bindServiceAsUser.pointer, _$intent.pointer, _$serviceConnection.pointer, _$bindServiceFlags.pointer, @@ -44405,7 +36730,7 @@ class Context extends jni$_.JObject { .boolean; } - static final _id_bindServiceAsUser$1 = _class.instanceMethodId( + static final _id_bindServiceAsUser$1 = Context._class.instanceMethodId( r'bindServiceAsUser', r'(Landroid/content/Intent;Landroid/content/ServiceConnection;ILandroid/os/UserHandle;)Z', ); @@ -44428,14 +36753,14 @@ class Context extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer)>(); /// from: `public boolean bindServiceAsUser(android.content.Intent intent, android.content.ServiceConnection serviceConnection, int i, android.os.UserHandle userHandle)` - bool bindServiceAsUser$1( + core$_.bool bindServiceAsUser$1( jni$_.JObject? intent, jni$_.JObject? serviceConnection, - int i, + core$_.int i, jni$_.JObject? userHandle, ) { final _$intent = intent?.reference ?? jni$_.jNullReference; @@ -44444,7 +36769,7 @@ class Context extends jni$_.JObject { final _$userHandle = userHandle?.reference ?? jni$_.jNullReference; return _bindServiceAsUser$1( reference.pointer, - _id_bindServiceAsUser$1 as jni$_.JMethodIDPtr, + _id_bindServiceAsUser$1.pointer, _$intent.pointer, _$serviceConnection.pointer, i, @@ -44452,7 +36777,8 @@ class Context extends jni$_.JObject { .boolean; } - static final _id_checkCallingOrSelfPermission = _class.instanceMethodId( + static final _id_checkCallingOrSelfPermission = + Context._class.instanceMethodId( r'checkCallingOrSelfPermission', r'(Ljava/lang/String;)I', ); @@ -44470,18 +36796,17 @@ class Context extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public abstract int checkCallingOrSelfPermission(java.lang.String string)` - int checkCallingOrSelfPermission( + core$_.int checkCallingOrSelfPermission( jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - return _checkCallingOrSelfPermission( - reference.pointer, - _id_checkCallingOrSelfPermission as jni$_.JMethodIDPtr, - _$string.pointer) + return _checkCallingOrSelfPermission(reference.pointer, + _id_checkCallingOrSelfPermission.pointer, _$string.pointer) .integer; } - static final _id_checkCallingOrSelfUriPermission = _class.instanceMethodId( + static final _id_checkCallingOrSelfUriPermission = + Context._class.instanceMethodId( r'checkCallingOrSelfUriPermission', r'(Landroid/net/Uri;I)I', ); @@ -44499,23 +36824,21 @@ class Context extends jni$_.JObject { )>)>>('globalEnv_CallIntMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); /// from: `public abstract int checkCallingOrSelfUriPermission(android.net.Uri uri, int i)` - int checkCallingOrSelfUriPermission( + core$_.int checkCallingOrSelfUriPermission( jni$_.JObject? uri, - int i, + core$_.int i, ) { final _$uri = uri?.reference ?? jni$_.jNullReference; - return _checkCallingOrSelfUriPermission( - reference.pointer, - _id_checkCallingOrSelfUriPermission as jni$_.JMethodIDPtr, - _$uri.pointer, - i) + return _checkCallingOrSelfUriPermission(reference.pointer, + _id_checkCallingOrSelfUriPermission.pointer, _$uri.pointer, i) .integer; } - static final _id_checkCallingOrSelfUriPermissions = _class.instanceMethodId( + static final _id_checkCallingOrSelfUriPermissions = + Context._class.instanceMethodId( r'checkCallingOrSelfUriPermissions', r'(Ljava/util/List;I)[I', ); @@ -44533,24 +36856,21 @@ class Context extends jni$_.JObject { )>)>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); /// from: `public int[] checkCallingOrSelfUriPermissions(java.util.List list, int i)` /// The returned object must be released after use, by calling the [release] method. jni$_.JIntArray? checkCallingOrSelfUriPermissions( jni$_.JList? list, - int i, + core$_.int i, ) { final _$list = list?.reference ?? jni$_.jNullReference; - return _checkCallingOrSelfUriPermissions( - reference.pointer, - _id_checkCallingOrSelfUriPermissions as jni$_.JMethodIDPtr, - _$list.pointer, - i) - .object(const jni$_.JIntArrayNullableType()); + return _checkCallingOrSelfUriPermissions(reference.pointer, + _id_checkCallingOrSelfUriPermissions.pointer, _$list.pointer, i) + .object(); } - static final _id_checkCallingPermission = _class.instanceMethodId( + static final _id_checkCallingPermission = Context._class.instanceMethodId( r'checkCallingPermission', r'(Ljava/lang/String;)I', ); @@ -44567,16 +36887,16 @@ class Context extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public abstract int checkCallingPermission(java.lang.String string)` - int checkCallingPermission( + core$_.int checkCallingPermission( jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; return _checkCallingPermission(reference.pointer, - _id_checkCallingPermission as jni$_.JMethodIDPtr, _$string.pointer) + _id_checkCallingPermission.pointer, _$string.pointer) .integer; } - static final _id_checkCallingUriPermission = _class.instanceMethodId( + static final _id_checkCallingUriPermission = Context._class.instanceMethodId( r'checkCallingUriPermission', r'(Landroid/net/Uri;I)I', ); @@ -44591,23 +36911,20 @@ class Context extends jni$_.JObject { 'globalEnv_CallIntMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); /// from: `public abstract int checkCallingUriPermission(android.net.Uri uri, int i)` - int checkCallingUriPermission( + core$_.int checkCallingUriPermission( jni$_.JObject? uri, - int i, + core$_.int i, ) { final _$uri = uri?.reference ?? jni$_.jNullReference; - return _checkCallingUriPermission( - reference.pointer, - _id_checkCallingUriPermission as jni$_.JMethodIDPtr, - _$uri.pointer, - i) + return _checkCallingUriPermission(reference.pointer, + _id_checkCallingUriPermission.pointer, _$uri.pointer, i) .integer; } - static final _id_checkCallingUriPermissions = _class.instanceMethodId( + static final _id_checkCallingUriPermissions = Context._class.instanceMethodId( r'checkCallingUriPermissions', r'(Ljava/util/List;I)[I', ); @@ -44625,24 +36942,22 @@ class Context extends jni$_.JObject { )>)>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); /// from: `public int[] checkCallingUriPermissions(java.util.List list, int i)` /// The returned object must be released after use, by calling the [release] method. jni$_.JIntArray? checkCallingUriPermissions( jni$_.JList? list, - int i, + core$_.int i, ) { final _$list = list?.reference ?? jni$_.jNullReference; - return _checkCallingUriPermissions( - reference.pointer, - _id_checkCallingUriPermissions as jni$_.JMethodIDPtr, - _$list.pointer, - i) - .object(const jni$_.JIntArrayNullableType()); + return _checkCallingUriPermissions(reference.pointer, + _id_checkCallingUriPermissions.pointer, _$list.pointer, i) + .object(); } - static final _id_checkContentUriPermissionFull = _class.instanceMethodId( + static final _id_checkContentUriPermissionFull = + Context._class.instanceMethodId( r'checkContentUriPermissionFull', r'(Landroid/net/Uri;III)I', ); @@ -44665,29 +36980,24 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - int)>(); + core$_.int, + core$_.int, + core$_.int)>(); /// from: `public int checkContentUriPermissionFull(android.net.Uri uri, int i, int i1, int i2)` - int checkContentUriPermissionFull( + core$_.int checkContentUriPermissionFull( jni$_.JObject? uri, - int i, - int i1, - int i2, + core$_.int i, + core$_.int i1, + core$_.int i2, ) { final _$uri = uri?.reference ?? jni$_.jNullReference; - return _checkContentUriPermissionFull( - reference.pointer, - _id_checkContentUriPermissionFull as jni$_.JMethodIDPtr, - _$uri.pointer, - i, - i1, - i2) + return _checkContentUriPermissionFull(reference.pointer, + _id_checkContentUriPermissionFull.pointer, _$uri.pointer, i, i1, i2) .integer; } - static final _id_checkPermission = _class.instanceMethodId( + static final _id_checkPermission = Context._class.instanceMethodId( r'checkPermission', r'(Ljava/lang/String;II)I', ); @@ -44704,22 +37014,26 @@ class Context extends jni$_.JObject { jni$_.Int32 )>)>>('globalEnv_CallIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int)>(); /// from: `public abstract int checkPermission(java.lang.String string, int i, int i1)` - int checkPermission( + core$_.int checkPermission( jni$_.JString? string, - int i, - int i1, + core$_.int i, + core$_.int i1, ) { final _$string = string?.reference ?? jni$_.jNullReference; - return _checkPermission(reference.pointer, - _id_checkPermission as jni$_.JMethodIDPtr, _$string.pointer, i, i1) + return _checkPermission(reference.pointer, _id_checkPermission.pointer, + _$string.pointer, i, i1) .integer; } - static final _id_checkSelfPermission = _class.instanceMethodId( + static final _id_checkSelfPermission = Context._class.instanceMethodId( r'checkSelfPermission', r'(Ljava/lang/String;)I', ); @@ -44736,16 +37050,16 @@ class Context extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public abstract int checkSelfPermission(java.lang.String string)` - int checkSelfPermission( + core$_.int checkSelfPermission( jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; return _checkSelfPermission(reference.pointer, - _id_checkSelfPermission as jni$_.JMethodIDPtr, _$string.pointer) + _id_checkSelfPermission.pointer, _$string.pointer) .integer; } - static final _id_checkUriPermission = _class.instanceMethodId( + static final _id_checkUriPermission = Context._class.instanceMethodId( r'checkUriPermission', r'(Landroid/net/Uri;III)I', ); @@ -44763,28 +37077,28 @@ class Context extends jni$_.JObject { jni$_.Int32 )>)>>('globalEnv_CallIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + core$_.int)>(); /// from: `public abstract int checkUriPermission(android.net.Uri uri, int i, int i1, int i2)` - int checkUriPermission( + core$_.int checkUriPermission( jni$_.JObject? uri, - int i, - int i1, - int i2, + core$_.int i, + core$_.int i1, + core$_.int i2, ) { final _$uri = uri?.reference ?? jni$_.jNullReference; - return _checkUriPermission( - reference.pointer, - _id_checkUriPermission as jni$_.JMethodIDPtr, - _$uri.pointer, - i, - i1, - i2) + return _checkUriPermission(reference.pointer, + _id_checkUriPermission.pointer, _$uri.pointer, i, i1, i2) .integer; } - static final _id_checkUriPermission$1 = _class.instanceMethodId( + static final _id_checkUriPermission$1 = Context._class.instanceMethodId( r'checkUriPermission', r'(Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;III)I', ); @@ -44810,25 +37124,25 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int, - int, - int)>(); + core$_.int, + core$_.int, + core$_.int)>(); /// from: `public abstract int checkUriPermission(android.net.Uri uri, java.lang.String string, java.lang.String string1, int i, int i1, int i2)` - int checkUriPermission$1( + core$_.int checkUriPermission$1( jni$_.JObject? uri, jni$_.JString? string, jni$_.JString? string1, - int i, - int i1, - int i2, + core$_.int i, + core$_.int i1, + core$_.int i2, ) { final _$uri = uri?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; return _checkUriPermission$1( reference.pointer, - _id_checkUriPermission$1 as jni$_.JMethodIDPtr, + _id_checkUriPermission$1.pointer, _$uri.pointer, _$string.pointer, _$string1.pointer, @@ -44838,7 +37152,7 @@ class Context extends jni$_.JObject { .integer; } - static final _id_checkUriPermissions = _class.instanceMethodId( + static final _id_checkUriPermissions = Context._class.instanceMethodId( r'checkUriPermissions', r'(Ljava/util/List;III)[I', ); @@ -44856,29 +37170,29 @@ class Context extends jni$_.JObject { jni$_.Int32 )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + core$_.int)>(); /// from: `public int[] checkUriPermissions(java.util.List list, int i, int i1, int i2)` /// The returned object must be released after use, by calling the [release] method. jni$_.JIntArray? checkUriPermissions( jni$_.JList? list, - int i, - int i1, - int i2, + core$_.int i, + core$_.int i1, + core$_.int i2, ) { final _$list = list?.reference ?? jni$_.jNullReference; - return _checkUriPermissions( - reference.pointer, - _id_checkUriPermissions as jni$_.JMethodIDPtr, - _$list.pointer, - i, - i1, - i2) - .object(const jni$_.JIntArrayNullableType()); + return _checkUriPermissions(reference.pointer, + _id_checkUriPermissions.pointer, _$list.pointer, i, i1, i2) + .object(); } - static final _id_clearWallpaper = _class.instanceMethodId( + static final _id_clearWallpaper = Context._class.instanceMethodId( r'clearWallpaper', r'()V', ); @@ -44897,11 +37211,10 @@ class Context extends jni$_.JObject { /// from: `public abstract void clearWallpaper()` void clearWallpaper() { - _clearWallpaper(reference.pointer, _id_clearWallpaper as jni$_.JMethodIDPtr) - .check(); + _clearWallpaper(reference.pointer, _id_clearWallpaper.pointer).check(); } - static final _id_createAttributionContext = _class.instanceMethodId( + static final _id_createAttributionContext = Context._class.instanceMethodId( r'createAttributionContext', r'(Ljava/lang/String;)Landroid/content/Context;', ); @@ -44923,14 +37236,12 @@ class Context extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - return _createAttributionContext( - reference.pointer, - _id_createAttributionContext as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $Context$NullableType()); + return _createAttributionContext(reference.pointer, + _id_createAttributionContext.pointer, _$string.pointer) + .object(); } - static final _id_createConfigurationContext = _class.instanceMethodId( + static final _id_createConfigurationContext = Context._class.instanceMethodId( r'createConfigurationContext', r'(Landroid/content/res/Configuration;)Landroid/content/Context;', ); @@ -44953,14 +37264,12 @@ class Context extends jni$_.JObject { jni$_.JObject? configuration, ) { final _$configuration = configuration?.reference ?? jni$_.jNullReference; - return _createConfigurationContext( - reference.pointer, - _id_createConfigurationContext as jni$_.JMethodIDPtr, - _$configuration.pointer) - .object(const $Context$NullableType()); + return _createConfigurationContext(reference.pointer, + _id_createConfigurationContext.pointer, _$configuration.pointer) + .object(); } - static final _id_createContext = _class.instanceMethodId( + static final _id_createContext = Context._class.instanceMethodId( r'createContext', r'(Landroid/content/ContextParams;)Landroid/content/Context;', ); @@ -44982,12 +37291,12 @@ class Context extends jni$_.JObject { jni$_.JObject? contextParams, ) { final _$contextParams = contextParams?.reference ?? jni$_.jNullReference; - return _createContext(reference.pointer, - _id_createContext as jni$_.JMethodIDPtr, _$contextParams.pointer) - .object(const $Context$NullableType()); + return _createContext(reference.pointer, _id_createContext.pointer, + _$contextParams.pointer) + .object(); } - static final _id_createContextForSplit = _class.instanceMethodId( + static final _id_createContextForSplit = Context._class.instanceMethodId( r'createContextForSplit', r'(Ljava/lang/String;)Landroid/content/Context;', ); @@ -45010,11 +37319,11 @@ class Context extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; return _createContextForSplit(reference.pointer, - _id_createContextForSplit as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $Context$NullableType()); + _id_createContextForSplit.pointer, _$string.pointer) + .object(); } - static final _id_createDeviceContext = _class.instanceMethodId( + static final _id_createDeviceContext = Context._class.instanceMethodId( r'createDeviceContext', r'(I)Landroid/content/Context;', ); @@ -45027,20 +37336,20 @@ class Context extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public android.content.Context createDeviceContext(int i)` /// The returned object must be released after use, by calling the [release] method. Context? createDeviceContext( - int i, + core$_.int i, ) { return _createDeviceContext( - reference.pointer, _id_createDeviceContext as jni$_.JMethodIDPtr, i) - .object(const $Context$NullableType()); + reference.pointer, _id_createDeviceContext.pointer, i) + .object(); } static final _id_createDeviceProtectedStorageContext = - _class.instanceMethodId( + Context._class.instanceMethodId( r'createDeviceProtectedStorageContext', r'()Landroid/content/Context;', ); @@ -45061,12 +37370,12 @@ class Context extends jni$_.JObject { /// from: `public abstract android.content.Context createDeviceProtectedStorageContext()` /// The returned object must be released after use, by calling the [release] method. Context? createDeviceProtectedStorageContext() { - return _createDeviceProtectedStorageContext(reference.pointer, - _id_createDeviceProtectedStorageContext as jni$_.JMethodIDPtr) - .object(const $Context$NullableType()); + return _createDeviceProtectedStorageContext( + reference.pointer, _id_createDeviceProtectedStorageContext.pointer) + .object(); } - static final _id_createDisplayContext = _class.instanceMethodId( + static final _id_createDisplayContext = Context._class.instanceMethodId( r'createDisplayContext', r'(Landroid/view/Display;)Landroid/content/Context;', ); @@ -45089,11 +37398,11 @@ class Context extends jni$_.JObject { ) { final _$display = display?.reference ?? jni$_.jNullReference; return _createDisplayContext(reference.pointer, - _id_createDisplayContext as jni$_.JMethodIDPtr, _$display.pointer) - .object(const $Context$NullableType()); + _id_createDisplayContext.pointer, _$display.pointer) + .object(); } - static final _id_createPackageContext = _class.instanceMethodId( + static final _id_createPackageContext = Context._class.instanceMethodId( r'createPackageContext', r'(Ljava/lang/String;I)Landroid/content/Context;', ); @@ -45108,21 +37417,21 @@ class Context extends jni$_.JObject { 'globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); /// from: `public abstract android.content.Context createPackageContext(java.lang.String string, int i)` /// The returned object must be released after use, by calling the [release] method. Context? createPackageContext( jni$_.JString? string, - int i, + core$_.int i, ) { final _$string = string?.reference ?? jni$_.jNullReference; return _createPackageContext(reference.pointer, - _id_createPackageContext as jni$_.JMethodIDPtr, _$string.pointer, i) - .object(const $Context$NullableType()); + _id_createPackageContext.pointer, _$string.pointer, i) + .object(); } - static final _id_createWindowContext = _class.instanceMethodId( + static final _id_createWindowContext = Context._class.instanceMethodId( r'createWindowContext', r'(Landroid/view/Display;ILandroid/os/Bundle;)Landroid/content/Context;', ); @@ -45143,28 +37452,28 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer)>(); /// from: `public android.content.Context createWindowContext(android.view.Display display, int i, android.os.Bundle bundle)` /// The returned object must be released after use, by calling the [release] method. Context? createWindowContext( jni$_.JObject? display, - int i, + core$_.int i, jni$_.JObject? bundle, ) { final _$display = display?.reference ?? jni$_.jNullReference; final _$bundle = bundle?.reference ?? jni$_.jNullReference; return _createWindowContext( reference.pointer, - _id_createWindowContext as jni$_.JMethodIDPtr, + _id_createWindowContext.pointer, _$display.pointer, i, _$bundle.pointer) - .object(const $Context$NullableType()); + .object(); } - static final _id_createWindowContext$1 = _class.instanceMethodId( + static final _id_createWindowContext$1 = Context._class.instanceMethodId( r'createWindowContext', r'(ILandroid/os/Bundle;)Landroid/content/Context;', ); @@ -45179,24 +37488,21 @@ class Context extends jni$_.JObject { 'globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + jni$_.JMethodIDPtr, core$_.int, jni$_.Pointer)>(); /// from: `public android.content.Context createWindowContext(int i, android.os.Bundle bundle)` /// The returned object must be released after use, by calling the [release] method. Context? createWindowContext$1( - int i, + core$_.int i, jni$_.JObject? bundle, ) { final _$bundle = bundle?.reference ?? jni$_.jNullReference; - return _createWindowContext$1( - reference.pointer, - _id_createWindowContext$1 as jni$_.JMethodIDPtr, - i, - _$bundle.pointer) - .object(const $Context$NullableType()); + return _createWindowContext$1(reference.pointer, + _id_createWindowContext$1.pointer, i, _$bundle.pointer) + .object(); } - static final _id_databaseList = _class.instanceMethodId( + static final _id_databaseList = Context._class.instanceMethodId( r'databaseList', r'()[Ljava/lang/String;', ); @@ -45216,14 +37522,11 @@ class Context extends jni$_.JObject { /// from: `public abstract java.lang.String[] databaseList()` /// The returned object must be released after use, by calling the [release] method. jni$_.JArray? databaseList() { - return _databaseList( - reference.pointer, _id_databaseList as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - jni$_.JStringNullableType())); + return _databaseList(reference.pointer, _id_databaseList.pointer) + .object?>(); } - static final _id_deleteDatabase = _class.instanceMethodId( + static final _id_deleteDatabase = Context._class.instanceMethodId( r'deleteDatabase', r'(Ljava/lang/String;)Z', ); @@ -45240,16 +37543,16 @@ class Context extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public abstract boolean deleteDatabase(java.lang.String string)` - bool deleteDatabase( + core$_.bool deleteDatabase( jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - return _deleteDatabase(reference.pointer, - _id_deleteDatabase as jni$_.JMethodIDPtr, _$string.pointer) + return _deleteDatabase( + reference.pointer, _id_deleteDatabase.pointer, _$string.pointer) .boolean; } - static final _id_deleteFile = _class.instanceMethodId( + static final _id_deleteFile = Context._class.instanceMethodId( r'deleteFile', r'(Ljava/lang/String;)Z', ); @@ -45266,16 +37569,16 @@ class Context extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public abstract boolean deleteFile(java.lang.String string)` - bool deleteFile( + core$_.bool deleteFile( jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - return _deleteFile(reference.pointer, _id_deleteFile as jni$_.JMethodIDPtr, - _$string.pointer) + return _deleteFile( + reference.pointer, _id_deleteFile.pointer, _$string.pointer) .boolean; } - static final _id_deleteSharedPreferences = _class.instanceMethodId( + static final _id_deleteSharedPreferences = Context._class.instanceMethodId( r'deleteSharedPreferences', r'(Ljava/lang/String;)Z', ); @@ -45292,16 +37595,17 @@ class Context extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public abstract boolean deleteSharedPreferences(java.lang.String string)` - bool deleteSharedPreferences( + core$_.bool deleteSharedPreferences( jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; return _deleteSharedPreferences(reference.pointer, - _id_deleteSharedPreferences as jni$_.JMethodIDPtr, _$string.pointer) + _id_deleteSharedPreferences.pointer, _$string.pointer) .boolean; } - static final _id_enforceCallingOrSelfPermission = _class.instanceMethodId( + static final _id_enforceCallingOrSelfPermission = + Context._class.instanceMethodId( r'enforceCallingOrSelfPermission', r'(Ljava/lang/String;Ljava/lang/String;)V', ); @@ -45333,13 +37637,14 @@ class Context extends jni$_.JObject { final _$string1 = string1?.reference ?? jni$_.jNullReference; _enforceCallingOrSelfPermission( reference.pointer, - _id_enforceCallingOrSelfPermission as jni$_.JMethodIDPtr, + _id_enforceCallingOrSelfPermission.pointer, _$string.pointer, _$string1.pointer) .check(); } - static final _id_enforceCallingOrSelfUriPermission = _class.instanceMethodId( + static final _id_enforceCallingOrSelfUriPermission = + Context._class.instanceMethodId( r'enforceCallingOrSelfUriPermission', r'(Landroid/net/Uri;ILjava/lang/String;)V', ); @@ -45361,27 +37666,27 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer)>(); /// from: `public abstract void enforceCallingOrSelfUriPermission(android.net.Uri uri, int i, java.lang.String string)` void enforceCallingOrSelfUriPermission( jni$_.JObject? uri, - int i, + core$_.int i, jni$_.JString? string, ) { final _$uri = uri?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; _enforceCallingOrSelfUriPermission( reference.pointer, - _id_enforceCallingOrSelfUriPermission as jni$_.JMethodIDPtr, + _id_enforceCallingOrSelfUriPermission.pointer, _$uri.pointer, i, _$string.pointer) .check(); } - static final _id_enforceCallingPermission = _class.instanceMethodId( + static final _id_enforceCallingPermission = Context._class.instanceMethodId( r'enforceCallingPermission', r'(Ljava/lang/String;Ljava/lang/String;)V', ); @@ -45412,13 +37717,14 @@ class Context extends jni$_.JObject { final _$string1 = string1?.reference ?? jni$_.jNullReference; _enforceCallingPermission( reference.pointer, - _id_enforceCallingPermission as jni$_.JMethodIDPtr, + _id_enforceCallingPermission.pointer, _$string.pointer, _$string1.pointer) .check(); } - static final _id_enforceCallingUriPermission = _class.instanceMethodId( + static final _id_enforceCallingUriPermission = + Context._class.instanceMethodId( r'enforceCallingUriPermission', r'(Landroid/net/Uri;ILjava/lang/String;)V', ); @@ -45440,27 +37746,27 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer)>(); /// from: `public abstract void enforceCallingUriPermission(android.net.Uri uri, int i, java.lang.String string)` void enforceCallingUriPermission( jni$_.JObject? uri, - int i, + core$_.int i, jni$_.JString? string, ) { final _$uri = uri?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; _enforceCallingUriPermission( reference.pointer, - _id_enforceCallingUriPermission as jni$_.JMethodIDPtr, + _id_enforceCallingUriPermission.pointer, _$uri.pointer, i, _$string.pointer) .check(); } - static final _id_enforcePermission = _class.instanceMethodId( + static final _id_enforcePermission = Context._class.instanceMethodId( r'enforcePermission', r'(Ljava/lang/String;IILjava/lang/String;)V', ); @@ -45482,30 +37788,25 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, + core$_.int, + core$_.int, jni$_.Pointer)>(); /// from: `public abstract void enforcePermission(java.lang.String string, int i, int i1, java.lang.String string1)` void enforcePermission( jni$_.JString? string, - int i, - int i1, + core$_.int i, + core$_.int i1, jni$_.JString? string1, ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _enforcePermission( - reference.pointer, - _id_enforcePermission as jni$_.JMethodIDPtr, - _$string.pointer, - i, - i1, - _$string1.pointer) + _enforcePermission(reference.pointer, _id_enforcePermission.pointer, + _$string.pointer, i, i1, _$string1.pointer) .check(); } - static final _id_enforceUriPermission = _class.instanceMethodId( + static final _id_enforceUriPermission = Context._class.instanceMethodId( r'enforceUriPermission', r'(Landroid/net/Uri;IIILjava/lang/String;)V', ); @@ -45528,33 +37829,27 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - int, + core$_.int, + core$_.int, + core$_.int, jni$_.Pointer)>(); /// from: `public abstract void enforceUriPermission(android.net.Uri uri, int i, int i1, int i2, java.lang.String string)` void enforceUriPermission( jni$_.JObject? uri, - int i, - int i1, - int i2, + core$_.int i, + core$_.int i1, + core$_.int i2, jni$_.JString? string, ) { final _$uri = uri?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; - _enforceUriPermission( - reference.pointer, - _id_enforceUriPermission as jni$_.JMethodIDPtr, - _$uri.pointer, - i, - i1, - i2, - _$string.pointer) + _enforceUriPermission(reference.pointer, _id_enforceUriPermission.pointer, + _$uri.pointer, i, i1, i2, _$string.pointer) .check(); } - static final _id_enforceUriPermission$1 = _class.instanceMethodId( + static final _id_enforceUriPermission$1 = Context._class.instanceMethodId( r'enforceUriPermission', r'(Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;IIILjava/lang/String;)V', ); @@ -45581,9 +37876,9 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int, - int, - int, + core$_.int, + core$_.int, + core$_.int, jni$_.Pointer)>(); /// from: `public abstract void enforceUriPermission(android.net.Uri uri, java.lang.String string, java.lang.String string1, int i, int i1, int i2, java.lang.String string2)` @@ -45591,9 +37886,9 @@ class Context extends jni$_.JObject { jni$_.JObject? uri, jni$_.JString? string, jni$_.JString? string1, - int i, - int i1, - int i2, + core$_.int i, + core$_.int i1, + core$_.int i2, jni$_.JString? string2, ) { final _$uri = uri?.reference ?? jni$_.jNullReference; @@ -45602,7 +37897,7 @@ class Context extends jni$_.JObject { final _$string2 = string2?.reference ?? jni$_.jNullReference; _enforceUriPermission$1( reference.pointer, - _id_enforceUriPermission$1 as jni$_.JMethodIDPtr, + _id_enforceUriPermission$1.pointer, _$uri.pointer, _$string.pointer, _$string1.pointer, @@ -45613,7 +37908,7 @@ class Context extends jni$_.JObject { .check(); } - static final _id_fileList = _class.instanceMethodId( + static final _id_fileList = Context._class.instanceMethodId( r'fileList', r'()[Ljava/lang/String;', ); @@ -45633,18 +37928,16 @@ class Context extends jni$_.JObject { /// from: `public abstract java.lang.String[] fileList()` /// The returned object must be released after use, by calling the [release] method. jni$_.JArray? fileList() { - return _fileList(reference.pointer, _id_fileList as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - jni$_.JStringNullableType())); + return _fileList(reference.pointer, _id_fileList.pointer) + .object?>(); } - static final _id_getApplicationContext = _class.instanceMethodId( + static final _id_get$applicationContext = Context._class.instanceMethodId( r'getApplicationContext', r'()Landroid/content/Context;', ); - static final _getApplicationContext = jni$_.ProtectedJniExtensions.lookup< + static final _get$applicationContext = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -45658,18 +37951,18 @@ class Context extends jni$_.JObject { /// from: `public abstract android.content.Context getApplicationContext()` /// The returned object must be released after use, by calling the [release] method. - Context? getApplicationContext() { - return _getApplicationContext( - reference.pointer, _id_getApplicationContext as jni$_.JMethodIDPtr) - .object(const $Context$NullableType()); + Context? get applicationContext { + return _get$applicationContext( + reference.pointer, _id_get$applicationContext.pointer) + .object(); } - static final _id_getApplicationInfo = _class.instanceMethodId( + static final _id_get$applicationInfo = Context._class.instanceMethodId( r'getApplicationInfo', r'()Landroid/content/pm/ApplicationInfo;', ); - static final _getApplicationInfo = jni$_.ProtectedJniExtensions.lookup< + static final _get$applicationInfo = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -45683,18 +37976,18 @@ class Context extends jni$_.JObject { /// from: `public abstract android.content.pm.ApplicationInfo getApplicationInfo()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getApplicationInfo() { - return _getApplicationInfo( - reference.pointer, _id_getApplicationInfo as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get applicationInfo { + return _get$applicationInfo( + reference.pointer, _id_get$applicationInfo.pointer) + .object(); } - static final _id_getAssets = _class.instanceMethodId( + static final _id_get$assets = Context._class.instanceMethodId( r'getAssets', r'()Landroid/content/res/AssetManager;', ); - static final _getAssets = jni$_.ProtectedJniExtensions.lookup< + static final _get$assets = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -45708,17 +38001,17 @@ class Context extends jni$_.JObject { /// from: `public abstract android.content.res.AssetManager getAssets()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getAssets() { - return _getAssets(reference.pointer, _id_getAssets as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get assets { + return _get$assets(reference.pointer, _id_get$assets.pointer) + .object(); } - static final _id_getAttributionSource = _class.instanceMethodId( + static final _id_get$attributionSource = Context._class.instanceMethodId( r'getAttributionSource', r'()Landroid/content/AttributionSource;', ); - static final _getAttributionSource = jni$_.ProtectedJniExtensions.lookup< + static final _get$attributionSource = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -45732,18 +38025,18 @@ class Context extends jni$_.JObject { /// from: `public android.content.AttributionSource getAttributionSource()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getAttributionSource() { - return _getAttributionSource( - reference.pointer, _id_getAttributionSource as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get attributionSource { + return _get$attributionSource( + reference.pointer, _id_get$attributionSource.pointer) + .object(); } - static final _id_getAttributionTag = _class.instanceMethodId( + static final _id_get$attributionTag = Context._class.instanceMethodId( r'getAttributionTag', r'()Ljava/lang/String;', ); - static final _getAttributionTag = jni$_.ProtectedJniExtensions.lookup< + static final _get$attributionTag = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -45757,18 +38050,18 @@ class Context extends jni$_.JObject { /// from: `public java.lang.String getAttributionTag()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getAttributionTag() { - return _getAttributionTag( - reference.pointer, _id_getAttributionTag as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get attributionTag { + return _get$attributionTag( + reference.pointer, _id_get$attributionTag.pointer) + .object(); } - static final _id_getCacheDir = _class.instanceMethodId( + static final _id_get$cacheDir = Context._class.instanceMethodId( r'getCacheDir', r'()Ljava/io/File;', ); - static final _getCacheDir = jni$_.ProtectedJniExtensions.lookup< + static final _get$cacheDir = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -45782,18 +38075,17 @@ class Context extends jni$_.JObject { /// from: `public abstract java.io.File getCacheDir()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getCacheDir() { - return _getCacheDir( - reference.pointer, _id_getCacheDir as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get cacheDir { + return _get$cacheDir(reference.pointer, _id_get$cacheDir.pointer) + .object(); } - static final _id_getClassLoader = _class.instanceMethodId( + static final _id_get$classLoader = Context._class.instanceMethodId( r'getClassLoader', r'()Ljava/lang/ClassLoader;', ); - static final _getClassLoader = jni$_.ProtectedJniExtensions.lookup< + static final _get$classLoader = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -45807,18 +38099,17 @@ class Context extends jni$_.JObject { /// from: `public abstract java.lang.ClassLoader getClassLoader()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getClassLoader() { - return _getClassLoader( - reference.pointer, _id_getClassLoader as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get classLoader { + return _get$classLoader(reference.pointer, _id_get$classLoader.pointer) + .object(); } - static final _id_getCodeCacheDir = _class.instanceMethodId( + static final _id_get$codeCacheDir = Context._class.instanceMethodId( r'getCodeCacheDir', r'()Ljava/io/File;', ); - static final _getCodeCacheDir = jni$_.ProtectedJniExtensions.lookup< + static final _get$codeCacheDir = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -45832,13 +38123,12 @@ class Context extends jni$_.JObject { /// from: `public abstract java.io.File getCodeCacheDir()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getCodeCacheDir() { - return _getCodeCacheDir( - reference.pointer, _id_getCodeCacheDir as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get codeCacheDir { + return _get$codeCacheDir(reference.pointer, _id_get$codeCacheDir.pointer) + .object(); } - static final _id_getColor = _class.instanceMethodId( + static final _id_getColor = Context._class.instanceMethodId( r'getColor', r'(I)I', ); @@ -45851,17 +38141,16 @@ class Context extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallIntMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public final int getColor(int i)` - int getColor( - int i, + core$_.int getColor( + core$_.int i, ) { - return _getColor(reference.pointer, _id_getColor as jni$_.JMethodIDPtr, i) - .integer; + return _getColor(reference.pointer, _id_getColor.pointer, i).integer; } - static final _id_getColorStateList = _class.instanceMethodId( + static final _id_getColorStateList = Context._class.instanceMethodId( r'getColorStateList', r'(I)Landroid/content/res/ColorStateList;', ); @@ -45874,24 +38163,24 @@ class Context extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public final android.content.res.ColorStateList getColorStateList(int i)` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getColorStateList( - int i, + core$_.int i, ) { return _getColorStateList( - reference.pointer, _id_getColorStateList as jni$_.JMethodIDPtr, i) - .object(const jni$_.JObjectNullableType()); + reference.pointer, _id_getColorStateList.pointer, i) + .object(); } - static final _id_getContentResolver = _class.instanceMethodId( + static final _id_get$contentResolver = Context._class.instanceMethodId( r'getContentResolver', r'()Landroid/content/ContentResolver;', ); - static final _getContentResolver = jni$_.ProtectedJniExtensions.lookup< + static final _get$contentResolver = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -45905,18 +38194,18 @@ class Context extends jni$_.JObject { /// from: `public abstract android.content.ContentResolver getContentResolver()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getContentResolver() { - return _getContentResolver( - reference.pointer, _id_getContentResolver as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get contentResolver { + return _get$contentResolver( + reference.pointer, _id_get$contentResolver.pointer) + .object(); } - static final _id_getDataDir = _class.instanceMethodId( + static final _id_get$dataDir = Context._class.instanceMethodId( r'getDataDir', r'()Ljava/io/File;', ); - static final _getDataDir = jni$_.ProtectedJniExtensions.lookup< + static final _get$dataDir = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -45930,12 +38219,12 @@ class Context extends jni$_.JObject { /// from: `public abstract java.io.File getDataDir()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getDataDir() { - return _getDataDir(reference.pointer, _id_getDataDir as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get dataDir { + return _get$dataDir(reference.pointer, _id_get$dataDir.pointer) + .object(); } - static final _id_getDatabasePath = _class.instanceMethodId( + static final _id_getDatabasePath = Context._class.instanceMethodId( r'getDatabasePath', r'(Ljava/lang/String;)Ljava/io/File;', ); @@ -45957,17 +38246,17 @@ class Context extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - return _getDatabasePath(reference.pointer, - _id_getDatabasePath as jni$_.JMethodIDPtr, _$string.pointer) - .object(const jni$_.JObjectNullableType()); + return _getDatabasePath( + reference.pointer, _id_getDatabasePath.pointer, _$string.pointer) + .object(); } - static final _id_getDeviceId = _class.instanceMethodId( + static final _id_get$deviceId = Context._class.instanceMethodId( r'getDeviceId', r'()I', ); - static final _getDeviceId = jni$_.ProtectedJniExtensions.lookup< + static final _get$deviceId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -45980,13 +38269,11 @@ class Context extends jni$_.JObject { )>(); /// from: `public int getDeviceId()` - int getDeviceId() { - return _getDeviceId( - reference.pointer, _id_getDeviceId as jni$_.JMethodIDPtr) - .integer; + core$_.int get deviceId { + return _get$deviceId(reference.pointer, _id_get$deviceId.pointer).integer; } - static final _id_getDir = _class.instanceMethodId( + static final _id_getDir = Context._class.instanceMethodId( r'getDir', r'(Ljava/lang/String;I)Ljava/io/File;', ); @@ -46001,26 +38288,25 @@ class Context extends jni$_.JObject { 'globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); /// from: `public abstract java.io.File getDir(java.lang.String string, int i)` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getDir( jni$_.JString? string, - int i, + core$_.int i, ) { final _$string = string?.reference ?? jni$_.jNullReference; - return _getDir(reference.pointer, _id_getDir as jni$_.JMethodIDPtr, - _$string.pointer, i) - .object(const jni$_.JObjectNullableType()); + return _getDir(reference.pointer, _id_getDir.pointer, _$string.pointer, i) + .object(); } - static final _id_getDisplay = _class.instanceMethodId( + static final _id_get$display = Context._class.instanceMethodId( r'getDisplay', r'()Landroid/view/Display;', ); - static final _getDisplay = jni$_.ProtectedJniExtensions.lookup< + static final _get$display = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46034,12 +38320,12 @@ class Context extends jni$_.JObject { /// from: `public android.view.Display getDisplay()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getDisplay() { - return _getDisplay(reference.pointer, _id_getDisplay as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get display { + return _get$display(reference.pointer, _id_get$display.pointer) + .object(); } - static final _id_getDrawable = _class.instanceMethodId( + static final _id_getDrawable = Context._class.instanceMethodId( r'getDrawable', r'(I)Landroid/graphics/drawable/Drawable;', ); @@ -46052,24 +38338,23 @@ class Context extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public final android.graphics.drawable.Drawable getDrawable(int i)` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getDrawable( - int i, + core$_.int i, ) { - return _getDrawable( - reference.pointer, _id_getDrawable as jni$_.JMethodIDPtr, i) - .object(const jni$_.JObjectNullableType()); + return _getDrawable(reference.pointer, _id_getDrawable.pointer, i) + .object(); } - static final _id_getExternalCacheDir = _class.instanceMethodId( + static final _id_get$externalCacheDir = Context._class.instanceMethodId( r'getExternalCacheDir', r'()Ljava/io/File;', ); - static final _getExternalCacheDir = jni$_.ProtectedJniExtensions.lookup< + static final _get$externalCacheDir = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46083,18 +38368,18 @@ class Context extends jni$_.JObject { /// from: `public abstract java.io.File getExternalCacheDir()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getExternalCacheDir() { - return _getExternalCacheDir( - reference.pointer, _id_getExternalCacheDir as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get externalCacheDir { + return _get$externalCacheDir( + reference.pointer, _id_get$externalCacheDir.pointer) + .object(); } - static final _id_getExternalCacheDirs = _class.instanceMethodId( + static final _id_get$externalCacheDirs = Context._class.instanceMethodId( r'getExternalCacheDirs', r'()[Ljava/io/File;', ); - static final _getExternalCacheDirs = jni$_.ProtectedJniExtensions.lookup< + static final _get$externalCacheDirs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46108,15 +38393,13 @@ class Context extends jni$_.JObject { /// from: `public abstract java.io.File[] getExternalCacheDirs()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JArray? getExternalCacheDirs() { - return _getExternalCacheDirs( - reference.pointer, _id_getExternalCacheDirs as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - jni$_.JObjectNullableType())); + jni$_.JArray? get externalCacheDirs { + return _get$externalCacheDirs( + reference.pointer, _id_get$externalCacheDirs.pointer) + .object?>(); } - static final _id_getExternalFilesDir = _class.instanceMethodId( + static final _id_getExternalFilesDir = Context._class.instanceMethodId( r'getExternalFilesDir', r'(Ljava/lang/String;)Ljava/io/File;', ); @@ -46139,11 +38422,11 @@ class Context extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; return _getExternalFilesDir(reference.pointer, - _id_getExternalFilesDir as jni$_.JMethodIDPtr, _$string.pointer) - .object(const jni$_.JObjectNullableType()); + _id_getExternalFilesDir.pointer, _$string.pointer) + .object(); } - static final _id_getExternalFilesDirs = _class.instanceMethodId( + static final _id_getExternalFilesDirs = Context._class.instanceMethodId( r'getExternalFilesDirs', r'(Ljava/lang/String;)[Ljava/io/File;', ); @@ -46166,18 +38449,16 @@ class Context extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; return _getExternalFilesDirs(reference.pointer, - _id_getExternalFilesDirs as jni$_.JMethodIDPtr, _$string.pointer) - .object?>( - const jni$_.JArrayNullableType( - jni$_.JObjectNullableType())); + _id_getExternalFilesDirs.pointer, _$string.pointer) + .object?>(); } - static final _id_getExternalMediaDirs = _class.instanceMethodId( + static final _id_get$externalMediaDirs = Context._class.instanceMethodId( r'getExternalMediaDirs', r'()[Ljava/io/File;', ); - static final _getExternalMediaDirs = jni$_.ProtectedJniExtensions.lookup< + static final _get$externalMediaDirs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46191,15 +38472,13 @@ class Context extends jni$_.JObject { /// from: `public abstract java.io.File[] getExternalMediaDirs()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JArray? getExternalMediaDirs() { - return _getExternalMediaDirs( - reference.pointer, _id_getExternalMediaDirs as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - jni$_.JObjectNullableType())); + jni$_.JArray? get externalMediaDirs { + return _get$externalMediaDirs( + reference.pointer, _id_get$externalMediaDirs.pointer) + .object?>(); } - static final _id_getFileStreamPath = _class.instanceMethodId( + static final _id_getFileStreamPath = Context._class.instanceMethodId( r'getFileStreamPath', r'(Ljava/lang/String;)Ljava/io/File;', ); @@ -46221,17 +38500,17 @@ class Context extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - return _getFileStreamPath(reference.pointer, - _id_getFileStreamPath as jni$_.JMethodIDPtr, _$string.pointer) - .object(const jni$_.JObjectNullableType()); + return _getFileStreamPath( + reference.pointer, _id_getFileStreamPath.pointer, _$string.pointer) + .object(); } - static final _id_getFilesDir = _class.instanceMethodId( + static final _id_get$filesDir = Context._class.instanceMethodId( r'getFilesDir', r'()Ljava/io/File;', ); - static final _getFilesDir = jni$_.ProtectedJniExtensions.lookup< + static final _get$filesDir = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46245,18 +38524,17 @@ class Context extends jni$_.JObject { /// from: `public abstract java.io.File getFilesDir()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getFilesDir() { - return _getFilesDir( - reference.pointer, _id_getFilesDir as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get filesDir { + return _get$filesDir(reference.pointer, _id_get$filesDir.pointer) + .object(); } - static final _id_getMainExecutor = _class.instanceMethodId( + static final _id_get$mainExecutor = Context._class.instanceMethodId( r'getMainExecutor', r'()Ljava/util/concurrent/Executor;', ); - static final _getMainExecutor = jni$_.ProtectedJniExtensions.lookup< + static final _get$mainExecutor = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46270,18 +38548,17 @@ class Context extends jni$_.JObject { /// from: `public java.util.concurrent.Executor getMainExecutor()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getMainExecutor() { - return _getMainExecutor( - reference.pointer, _id_getMainExecutor as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get mainExecutor { + return _get$mainExecutor(reference.pointer, _id_get$mainExecutor.pointer) + .object(); } - static final _id_getMainLooper = _class.instanceMethodId( + static final _id_get$mainLooper = Context._class.instanceMethodId( r'getMainLooper', r'()Landroid/os/Looper;', ); - static final _getMainLooper = jni$_.ProtectedJniExtensions.lookup< + static final _get$mainLooper = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46295,18 +38572,17 @@ class Context extends jni$_.JObject { /// from: `public abstract android.os.Looper getMainLooper()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getMainLooper() { - return _getMainLooper( - reference.pointer, _id_getMainLooper as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get mainLooper { + return _get$mainLooper(reference.pointer, _id_get$mainLooper.pointer) + .object(); } - static final _id_getNoBackupFilesDir = _class.instanceMethodId( + static final _id_get$noBackupFilesDir = Context._class.instanceMethodId( r'getNoBackupFilesDir', r'()Ljava/io/File;', ); - static final _getNoBackupFilesDir = jni$_.ProtectedJniExtensions.lookup< + static final _get$noBackupFilesDir = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46320,18 +38596,18 @@ class Context extends jni$_.JObject { /// from: `public abstract java.io.File getNoBackupFilesDir()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getNoBackupFilesDir() { - return _getNoBackupFilesDir( - reference.pointer, _id_getNoBackupFilesDir as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get noBackupFilesDir { + return _get$noBackupFilesDir( + reference.pointer, _id_get$noBackupFilesDir.pointer) + .object(); } - static final _id_getObbDir = _class.instanceMethodId( + static final _id_get$obbDir = Context._class.instanceMethodId( r'getObbDir', r'()Ljava/io/File;', ); - static final _getObbDir = jni$_.ProtectedJniExtensions.lookup< + static final _get$obbDir = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46345,17 +38621,17 @@ class Context extends jni$_.JObject { /// from: `public abstract java.io.File getObbDir()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getObbDir() { - return _getObbDir(reference.pointer, _id_getObbDir as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get obbDir { + return _get$obbDir(reference.pointer, _id_get$obbDir.pointer) + .object(); } - static final _id_getObbDirs = _class.instanceMethodId( + static final _id_get$obbDirs = Context._class.instanceMethodId( r'getObbDirs', r'()[Ljava/io/File;', ); - static final _getObbDirs = jni$_.ProtectedJniExtensions.lookup< + static final _get$obbDirs = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46369,19 +38645,17 @@ class Context extends jni$_.JObject { /// from: `public abstract java.io.File[] getObbDirs()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JArray? getObbDirs() { - return _getObbDirs(reference.pointer, _id_getObbDirs as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - jni$_.JObjectNullableType())); + jni$_.JArray? get obbDirs { + return _get$obbDirs(reference.pointer, _id_get$obbDirs.pointer) + .object?>(); } - static final _id_getOpPackageName = _class.instanceMethodId( + static final _id_get$opPackageName = Context._class.instanceMethodId( r'getOpPackageName', r'()Ljava/lang/String;', ); - static final _getOpPackageName = jni$_.ProtectedJniExtensions.lookup< + static final _get$opPackageName = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46395,18 +38669,17 @@ class Context extends jni$_.JObject { /// from: `public java.lang.String getOpPackageName()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getOpPackageName() { - return _getOpPackageName( - reference.pointer, _id_getOpPackageName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get opPackageName { + return _get$opPackageName(reference.pointer, _id_get$opPackageName.pointer) + .object(); } - static final _id_getPackageCodePath = _class.instanceMethodId( + static final _id_get$packageCodePath = Context._class.instanceMethodId( r'getPackageCodePath', r'()Ljava/lang/String;', ); - static final _getPackageCodePath = jni$_.ProtectedJniExtensions.lookup< + static final _get$packageCodePath = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46420,18 +38693,18 @@ class Context extends jni$_.JObject { /// from: `public abstract java.lang.String getPackageCodePath()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getPackageCodePath() { - return _getPackageCodePath( - reference.pointer, _id_getPackageCodePath as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get packageCodePath { + return _get$packageCodePath( + reference.pointer, _id_get$packageCodePath.pointer) + .object(); } - static final _id_getPackageManager = _class.instanceMethodId( + static final _id_get$packageManager = Context._class.instanceMethodId( r'getPackageManager', r'()Landroid/content/pm/PackageManager;', ); - static final _getPackageManager = jni$_.ProtectedJniExtensions.lookup< + static final _get$packageManager = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46445,18 +38718,18 @@ class Context extends jni$_.JObject { /// from: `public abstract android.content.pm.PackageManager getPackageManager()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getPackageManager() { - return _getPackageManager( - reference.pointer, _id_getPackageManager as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get packageManager { + return _get$packageManager( + reference.pointer, _id_get$packageManager.pointer) + .object(); } - static final _id_getPackageName = _class.instanceMethodId( + static final _id_get$packageName = Context._class.instanceMethodId( r'getPackageName', r'()Ljava/lang/String;', ); - static final _getPackageName = jni$_.ProtectedJniExtensions.lookup< + static final _get$packageName = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46470,18 +38743,17 @@ class Context extends jni$_.JObject { /// from: `public abstract java.lang.String getPackageName()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getPackageName() { - return _getPackageName( - reference.pointer, _id_getPackageName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get packageName { + return _get$packageName(reference.pointer, _id_get$packageName.pointer) + .object(); } - static final _id_getPackageResourcePath = _class.instanceMethodId( + static final _id_get$packageResourcePath = Context._class.instanceMethodId( r'getPackageResourcePath', r'()Ljava/lang/String;', ); - static final _getPackageResourcePath = jni$_.ProtectedJniExtensions.lookup< + static final _get$packageResourcePath = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46495,18 +38767,18 @@ class Context extends jni$_.JObject { /// from: `public abstract java.lang.String getPackageResourcePath()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getPackageResourcePath() { - return _getPackageResourcePath( - reference.pointer, _id_getPackageResourcePath as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get packageResourcePath { + return _get$packageResourcePath( + reference.pointer, _id_get$packageResourcePath.pointer) + .object(); } - static final _id_getParams = _class.instanceMethodId( + static final _id_get$params = Context._class.instanceMethodId( r'getParams', r'()Landroid/content/ContextParams;', ); - static final _getParams = jni$_.ProtectedJniExtensions.lookup< + static final _get$params = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46520,17 +38792,17 @@ class Context extends jni$_.JObject { /// from: `public android.content.ContextParams getParams()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getParams() { - return _getParams(reference.pointer, _id_getParams as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get params { + return _get$params(reference.pointer, _id_get$params.pointer) + .object(); } - static final _id_getResources = _class.instanceMethodId( + static final _id_get$resources = Context._class.instanceMethodId( r'getResources', r'()Landroid/content/res/Resources;', ); - static final _getResources = jni$_.ProtectedJniExtensions.lookup< + static final _get$resources = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46544,13 +38816,12 @@ class Context extends jni$_.JObject { /// from: `public abstract android.content.res.Resources getResources()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getResources() { - return _getResources( - reference.pointer, _id_getResources as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get resources { + return _get$resources(reference.pointer, _id_get$resources.pointer) + .object(); } - static final _id_getSharedPreferences = _class.instanceMethodId( + static final _id_getSharedPreferences = Context._class.instanceMethodId( r'getSharedPreferences', r'(Ljava/lang/String;I)Landroid/content/SharedPreferences;', ); @@ -46565,21 +38836,21 @@ class Context extends jni$_.JObject { 'globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); /// from: `public abstract android.content.SharedPreferences getSharedPreferences(java.lang.String string, int i)` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getSharedPreferences( jni$_.JString? string, - int i, + core$_.int i, ) { final _$string = string?.reference ?? jni$_.jNullReference; return _getSharedPreferences(reference.pointer, - _id_getSharedPreferences as jni$_.JMethodIDPtr, _$string.pointer, i) - .object(const jni$_.JObjectNullableType()); + _id_getSharedPreferences.pointer, _$string.pointer, i) + .object(); } - static final _id_getString = _class.instanceMethodId( + static final _id_getString = Context._class.instanceMethodId( r'getString', r'(I)Ljava/lang/String;', ); @@ -46592,18 +38863,18 @@ class Context extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public final java.lang.String getString(int i)` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getString( - int i, + core$_.int i, ) { - return _getString(reference.pointer, _id_getString as jni$_.JMethodIDPtr, i) - .object(const jni$_.JStringNullableType()); + return _getString(reference.pointer, _id_getString.pointer, i) + .object(); } - static final _id_getString$1 = _class.instanceMethodId( + static final _id_getString$1 = Context._class.instanceMethodId( r'getString', r'(I[Ljava/lang/Object;)Ljava/lang/String;', ); @@ -46618,21 +38889,21 @@ class Context extends jni$_.JObject { 'globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + jni$_.JMethodIDPtr, core$_.int, jni$_.Pointer)>(); /// from: `public final java.lang.String getString(int i, java.lang.Object[] objects)` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getString$1( - int i, + core$_.int i, jni$_.JArray? objects, ) { final _$objects = objects?.reference ?? jni$_.jNullReference; - return _getString$1(reference.pointer, - _id_getString$1 as jni$_.JMethodIDPtr, i, _$objects.pointer) - .object(const jni$_.JStringNullableType()); + return _getString$1( + reference.pointer, _id_getString$1.pointer, i, _$objects.pointer) + .object(); } - static final _id_getSystemService = _class.instanceMethodId( + static final _id_getSystemService = Context._class.instanceMethodId( r'getSystemService', r'(Ljava/lang/Class;)Ljava/lang/Object;', ); @@ -46651,16 +38922,15 @@ class Context extends jni$_.JObject { /// from: `public final T getSystemService(java.lang.Class class)` /// The returned object must be released after use, by calling the [release] method. $T? getSystemService<$T extends jni$_.JObject?>( - jni$_.JObject? class$, { - required jni$_.JObjType<$T> T, - }) { + jni$_.JObject? class$, + ) { final _$class$ = class$?.reference ?? jni$_.jNullReference; - return _getSystemService(reference.pointer, - _id_getSystemService as jni$_.JMethodIDPtr, _$class$.pointer) - .object<$T?>(T.nullableType); + return _getSystemService( + reference.pointer, _id_getSystemService.pointer, _$class$.pointer) + .object<$T?>(); } - static final _id_getSystemService$1 = _class.instanceMethodId( + static final _id_getSystemService$1 = Context._class.instanceMethodId( r'getSystemService', r'(Ljava/lang/String;)Ljava/lang/Object;', ); @@ -46682,12 +38952,12 @@ class Context extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - return _getSystemService$1(reference.pointer, - _id_getSystemService$1 as jni$_.JMethodIDPtr, _$string.pointer) - .object(const jni$_.JObjectNullableType()); + return _getSystemService$1( + reference.pointer, _id_getSystemService$1.pointer, _$string.pointer) + .object(); } - static final _id_getSystemServiceName = _class.instanceMethodId( + static final _id_getSystemServiceName = Context._class.instanceMethodId( r'getSystemServiceName', r'(Ljava/lang/Class;)Ljava/lang/String;', ); @@ -46710,11 +38980,11 @@ class Context extends jni$_.JObject { ) { final _$class$ = class$?.reference ?? jni$_.jNullReference; return _getSystemServiceName(reference.pointer, - _id_getSystemServiceName as jni$_.JMethodIDPtr, _$class$.pointer) - .object(const jni$_.JStringNullableType()); + _id_getSystemServiceName.pointer, _$class$.pointer) + .object(); } - static final _id_getText = _class.instanceMethodId( + static final _id_getText = Context._class.instanceMethodId( r'getText', r'(I)Ljava/lang/CharSequence;', ); @@ -46727,23 +38997,23 @@ class Context extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public final java.lang.CharSequence getText(int i)` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getText( - int i, + core$_.int i, ) { - return _getText(reference.pointer, _id_getText as jni$_.JMethodIDPtr, i) - .object(const jni$_.JObjectNullableType()); + return _getText(reference.pointer, _id_getText.pointer, i) + .object(); } - static final _id_getTheme = _class.instanceMethodId( + static final _id_get$theme = Context._class.instanceMethodId( r'getTheme', r'()Landroid/content/res/Resources$Theme;', ); - static final _getTheme = jni$_.ProtectedJniExtensions.lookup< + static final _get$theme = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46757,17 +39027,17 @@ class Context extends jni$_.JObject { /// from: `public abstract android.content.res.Resources$Theme getTheme()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getTheme() { - return _getTheme(reference.pointer, _id_getTheme as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get theme { + return _get$theme(reference.pointer, _id_get$theme.pointer) + .object(); } - static final _id_getWallpaper = _class.instanceMethodId( + static final _id_get$wallpaper = Context._class.instanceMethodId( r'getWallpaper', r'()Landroid/graphics/drawable/Drawable;', ); - static final _getWallpaper = jni$_.ProtectedJniExtensions.lookup< + static final _get$wallpaper = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46781,18 +39051,18 @@ class Context extends jni$_.JObject { /// from: `public abstract android.graphics.drawable.Drawable getWallpaper()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getWallpaper() { - return _getWallpaper( - reference.pointer, _id_getWallpaper as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? get wallpaper { + return _get$wallpaper(reference.pointer, _id_get$wallpaper.pointer) + .object(); } - static final _id_getWallpaperDesiredMinimumHeight = _class.instanceMethodId( + static final _id_get$wallpaperDesiredMinimumHeight = + Context._class.instanceMethodId( r'getWallpaperDesiredMinimumHeight', r'()I', ); - static final _getWallpaperDesiredMinimumHeight = + static final _get$wallpaperDesiredMinimumHeight = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -46806,18 +39076,19 @@ class Context extends jni$_.JObject { )>(); /// from: `public abstract int getWallpaperDesiredMinimumHeight()` - int getWallpaperDesiredMinimumHeight() { - return _getWallpaperDesiredMinimumHeight(reference.pointer, - _id_getWallpaperDesiredMinimumHeight as jni$_.JMethodIDPtr) + core$_.int get wallpaperDesiredMinimumHeight { + return _get$wallpaperDesiredMinimumHeight( + reference.pointer, _id_get$wallpaperDesiredMinimumHeight.pointer) .integer; } - static final _id_getWallpaperDesiredMinimumWidth = _class.instanceMethodId( + static final _id_get$wallpaperDesiredMinimumWidth = + Context._class.instanceMethodId( r'getWallpaperDesiredMinimumWidth', r'()I', ); - static final _getWallpaperDesiredMinimumWidth = + static final _get$wallpaperDesiredMinimumWidth = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -46831,13 +39102,13 @@ class Context extends jni$_.JObject { )>(); /// from: `public abstract int getWallpaperDesiredMinimumWidth()` - int getWallpaperDesiredMinimumWidth() { - return _getWallpaperDesiredMinimumWidth(reference.pointer, - _id_getWallpaperDesiredMinimumWidth as jni$_.JMethodIDPtr) + core$_.int get wallpaperDesiredMinimumWidth { + return _get$wallpaperDesiredMinimumWidth( + reference.pointer, _id_get$wallpaperDesiredMinimumWidth.pointer) .integer; } - static final _id_grantUriPermission = _class.instanceMethodId( + static final _id_grantUriPermission = Context._class.instanceMethodId( r'grantUriPermission', r'(Ljava/lang/String;Landroid/net/Uri;I)V', ); @@ -46859,55 +39130,53 @@ class Context extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + core$_.int)>(); /// from: `public abstract void grantUriPermission(java.lang.String string, android.net.Uri uri, int i)` void grantUriPermission( jni$_.JString? string, jni$_.JObject? uri, - int i, + core$_.int i, ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$uri = uri?.reference ?? jni$_.jNullReference; - _grantUriPermission( - reference.pointer, - _id_grantUriPermission as jni$_.JMethodIDPtr, - _$string.pointer, - _$uri.pointer, - i) + _grantUriPermission(reference.pointer, _id_grantUriPermission.pointer, + _$string.pointer, _$uri.pointer, i) .check(); } - static final _id_isDeviceProtectedStorage = _class.instanceMethodId( + static final _id_get$isDeviceProtectedStorage = + Context._class.instanceMethodId( r'isDeviceProtectedStorage', r'()Z', ); - static final _isDeviceProtectedStorage = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$isDeviceProtectedStorage = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public abstract boolean isDeviceProtectedStorage()` - bool isDeviceProtectedStorage() { - return _isDeviceProtectedStorage(reference.pointer, - _id_isDeviceProtectedStorage as jni$_.JMethodIDPtr) + core$_.bool get isDeviceProtectedStorage { + return _get$isDeviceProtectedStorage( + reference.pointer, _id_get$isDeviceProtectedStorage.pointer) .boolean; } - static final _id_isRestricted = _class.instanceMethodId( + static final _id_get$isRestricted = Context._class.instanceMethodId( r'isRestricted', r'()Z', ); - static final _isRestricted = jni$_.ProtectedJniExtensions.lookup< + static final _get$isRestricted = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46920,18 +39189,17 @@ class Context extends jni$_.JObject { )>(); /// from: `public boolean isRestricted()` - bool isRestricted() { - return _isRestricted( - reference.pointer, _id_isRestricted as jni$_.JMethodIDPtr) + core$_.bool get isRestricted { + return _get$isRestricted(reference.pointer, _id_get$isRestricted.pointer) .boolean; } - static final _id_isUiContext = _class.instanceMethodId( + static final _id_get$isUiContext = Context._class.instanceMethodId( r'isUiContext', r'()Z', ); - static final _isUiContext = jni$_.ProtectedJniExtensions.lookup< + static final _get$isUiContext = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -46944,13 +39212,12 @@ class Context extends jni$_.JObject { )>(); /// from: `public boolean isUiContext()` - bool isUiContext() { - return _isUiContext( - reference.pointer, _id_isUiContext as jni$_.JMethodIDPtr) + core$_.bool get isUiContext { + return _get$isUiContext(reference.pointer, _id_get$isUiContext.pointer) .boolean; } - static final _id_moveDatabaseFrom = _class.instanceMethodId( + static final _id_moveDatabaseFrom = Context._class.instanceMethodId( r'moveDatabaseFrom', r'(Landroid/content/Context;Ljava/lang/String;)Z', ); @@ -46973,21 +39240,18 @@ class Context extends jni$_.JObject { jni$_.Pointer)>(); /// from: `public abstract boolean moveDatabaseFrom(android.content.Context context, java.lang.String string)` - bool moveDatabaseFrom( + core$_.bool moveDatabaseFrom( Context? context, jni$_.JString? string, ) { final _$context = context?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; - return _moveDatabaseFrom( - reference.pointer, - _id_moveDatabaseFrom as jni$_.JMethodIDPtr, - _$context.pointer, - _$string.pointer) + return _moveDatabaseFrom(reference.pointer, _id_moveDatabaseFrom.pointer, + _$context.pointer, _$string.pointer) .boolean; } - static final _id_moveSharedPreferencesFrom = _class.instanceMethodId( + static final _id_moveSharedPreferencesFrom = Context._class.instanceMethodId( r'moveSharedPreferencesFrom', r'(Landroid/content/Context;Ljava/lang/String;)Z', ); @@ -47010,7 +39274,7 @@ class Context extends jni$_.JObject { jni$_.Pointer)>(); /// from: `public abstract boolean moveSharedPreferencesFrom(android.content.Context context, java.lang.String string)` - bool moveSharedPreferencesFrom( + core$_.bool moveSharedPreferencesFrom( Context? context, jni$_.JString? string, ) { @@ -47018,13 +39282,13 @@ class Context extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; return _moveSharedPreferencesFrom( reference.pointer, - _id_moveSharedPreferencesFrom as jni$_.JMethodIDPtr, + _id_moveSharedPreferencesFrom.pointer, _$context.pointer, _$string.pointer) .boolean; } - static final _id_obtainStyledAttributes = _class.instanceMethodId( + static final _id_obtainStyledAttributes = Context._class.instanceMethodId( r'obtainStyledAttributes', r'(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;', ); @@ -47056,13 +39320,13 @@ class Context extends jni$_.JObject { final _$is$ = is$?.reference ?? jni$_.jNullReference; return _obtainStyledAttributes( reference.pointer, - _id_obtainStyledAttributes as jni$_.JMethodIDPtr, + _id_obtainStyledAttributes.pointer, _$attributeSet.pointer, _$is$.pointer) - .object(const jni$_.JObjectNullableType()); + .object(); } - static final _id_obtainStyledAttributes$1 = _class.instanceMethodId( + static final _id_obtainStyledAttributes$1 = Context._class.instanceMethodId( r'obtainStyledAttributes', r'(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;', ); @@ -47085,30 +39349,30 @@ class Context extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); /// from: `public final android.content.res.TypedArray obtainStyledAttributes(android.util.AttributeSet attributeSet, int[] is, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? obtainStyledAttributes$1( jni$_.JObject? attributeSet, jni$_.JIntArray? is$, - int i, - int i1, + core$_.int i, + core$_.int i1, ) { final _$attributeSet = attributeSet?.reference ?? jni$_.jNullReference; final _$is$ = is$?.reference ?? jni$_.jNullReference; return _obtainStyledAttributes$1( reference.pointer, - _id_obtainStyledAttributes$1 as jni$_.JMethodIDPtr, + _id_obtainStyledAttributes$1.pointer, _$attributeSet.pointer, _$is$.pointer, i, i1) - .object(const jni$_.JObjectNullableType()); + .object(); } - static final _id_obtainStyledAttributes$2 = _class.instanceMethodId( + static final _id_obtainStyledAttributes$2 = Context._class.instanceMethodId( r'obtainStyledAttributes', r'(I[I)Landroid/content/res/TypedArray;', ); @@ -47123,24 +39387,21 @@ class Context extends jni$_.JObject { 'globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + jni$_.JMethodIDPtr, core$_.int, jni$_.Pointer)>(); /// from: `public final android.content.res.TypedArray obtainStyledAttributes(int i, int[] is)` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? obtainStyledAttributes$2( - int i, + core$_.int i, jni$_.JIntArray? is$, ) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _obtainStyledAttributes$2( - reference.pointer, - _id_obtainStyledAttributes$2 as jni$_.JMethodIDPtr, - i, - _$is$.pointer) - .object(const jni$_.JObjectNullableType()); + return _obtainStyledAttributes$2(reference.pointer, + _id_obtainStyledAttributes$2.pointer, i, _$is$.pointer) + .object(); } - static final _id_obtainStyledAttributes$3 = _class.instanceMethodId( + static final _id_obtainStyledAttributes$3 = Context._class.instanceMethodId( r'obtainStyledAttributes', r'([I)Landroid/content/res/TypedArray;', ); @@ -47163,11 +39424,11 @@ class Context extends jni$_.JObject { ) { final _$is$ = is$?.reference ?? jni$_.jNullReference; return _obtainStyledAttributes$3(reference.pointer, - _id_obtainStyledAttributes$3 as jni$_.JMethodIDPtr, _$is$.pointer) - .object(const jni$_.JObjectNullableType()); + _id_obtainStyledAttributes$3.pointer, _$is$.pointer) + .object(); } - static final _id_openFileInput = _class.instanceMethodId( + static final _id_openFileInput = Context._class.instanceMethodId( r'openFileInput', r'(Ljava/lang/String;)Ljava/io/FileInputStream;', ); @@ -47189,12 +39450,12 @@ class Context extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - return _openFileInput(reference.pointer, - _id_openFileInput as jni$_.JMethodIDPtr, _$string.pointer) - .object(const jni$_.JObjectNullableType()); + return _openFileInput( + reference.pointer, _id_openFileInput.pointer, _$string.pointer) + .object(); } - static final _id_openFileOutput = _class.instanceMethodId( + static final _id_openFileOutput = Context._class.instanceMethodId( r'openFileOutput', r'(Ljava/lang/String;I)Ljava/io/FileOutputStream;', ); @@ -47209,21 +39470,21 @@ class Context extends jni$_.JObject { 'globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); /// from: `public abstract java.io.FileOutputStream openFileOutput(java.lang.String string, int i)` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? openFileOutput( jni$_.JString? string, - int i, + core$_.int i, ) { final _$string = string?.reference ?? jni$_.jNullReference; - return _openFileOutput(reference.pointer, - _id_openFileOutput as jni$_.JMethodIDPtr, _$string.pointer, i) - .object(const jni$_.JObjectNullableType()); + return _openFileOutput( + reference.pointer, _id_openFileOutput.pointer, _$string.pointer, i) + .object(); } - static final _id_openOrCreateDatabase = _class.instanceMethodId( + static final _id_openOrCreateDatabase = Context._class.instanceMethodId( r'openOrCreateDatabase', r'(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;', ); @@ -47244,28 +39505,28 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer)>(); /// from: `public abstract android.database.sqlite.SQLiteDatabase openOrCreateDatabase(java.lang.String string, int i, android.database.sqlite.SQLiteDatabase$CursorFactory cursorFactory)` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? openOrCreateDatabase( jni$_.JString? string, - int i, + core$_.int i, jni$_.JObject? cursorFactory, ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$cursorFactory = cursorFactory?.reference ?? jni$_.jNullReference; return _openOrCreateDatabase( reference.pointer, - _id_openOrCreateDatabase as jni$_.JMethodIDPtr, + _id_openOrCreateDatabase.pointer, _$string.pointer, i, _$cursorFactory.pointer) - .object(const jni$_.JObjectNullableType()); + .object(); } - static final _id_openOrCreateDatabase$1 = _class.instanceMethodId( + static final _id_openOrCreateDatabase$1 = Context._class.instanceMethodId( r'openOrCreateDatabase', r'(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;Landroid/database/DatabaseErrorHandler;)Landroid/database/sqlite/SQLiteDatabase;', ); @@ -47287,7 +39548,7 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer, jni$_.Pointer)>(); @@ -47295,7 +39556,7 @@ class Context extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? openOrCreateDatabase$1( jni$_.JString? string, - int i, + core$_.int i, jni$_.JObject? cursorFactory, jni$_.JObject? databaseErrorHandler, ) { @@ -47305,15 +39566,15 @@ class Context extends jni$_.JObject { databaseErrorHandler?.reference ?? jni$_.jNullReference; return _openOrCreateDatabase$1( reference.pointer, - _id_openOrCreateDatabase$1 as jni$_.JMethodIDPtr, + _id_openOrCreateDatabase$1.pointer, _$string.pointer, i, _$cursorFactory.pointer, _$databaseErrorHandler.pointer) - .object(const jni$_.JObjectNullableType()); + .object(); } - static final _id_peekWallpaper = _class.instanceMethodId( + static final _id_peekWallpaper = Context._class.instanceMethodId( r'peekWallpaper', r'()Landroid/graphics/drawable/Drawable;', ); @@ -47333,12 +39594,11 @@ class Context extends jni$_.JObject { /// from: `public abstract android.graphics.drawable.Drawable peekWallpaper()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? peekWallpaper() { - return _peekWallpaper( - reference.pointer, _id_peekWallpaper as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _peekWallpaper(reference.pointer, _id_peekWallpaper.pointer) + .object(); } - static final _id_registerComponentCallbacks = _class.instanceMethodId( + static final _id_registerComponentCallbacks = Context._class.instanceMethodId( r'registerComponentCallbacks', r'(Landroid/content/ComponentCallbacks;)V', ); @@ -47363,12 +39623,13 @@ class Context extends jni$_.JObject { componentCallbacks?.reference ?? jni$_.jNullReference; _registerComponentCallbacks( reference.pointer, - _id_registerComponentCallbacks as jni$_.JMethodIDPtr, + _id_registerComponentCallbacks.pointer, _$componentCallbacks.pointer) .check(); } - static final _id_registerDeviceIdChangeListener = _class.instanceMethodId( + static final _id_registerDeviceIdChangeListener = + Context._class.instanceMethodId( r'registerDeviceIdChangeListener', r'(Ljava/util/concurrent/Executor;Ljava/util/function/IntConsumer;)V', ); @@ -47400,13 +39661,13 @@ class Context extends jni$_.JObject { final _$intConsumer = intConsumer?.reference ?? jni$_.jNullReference; _registerDeviceIdChangeListener( reference.pointer, - _id_registerDeviceIdChangeListener as jni$_.JMethodIDPtr, + _id_registerDeviceIdChangeListener.pointer, _$executor.pointer, _$intConsumer.pointer) .check(); } - static final _id_registerReceiver = _class.instanceMethodId( + static final _id_registerReceiver = Context._class.instanceMethodId( r'registerReceiver', r'(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;', ); @@ -47437,15 +39698,12 @@ class Context extends jni$_.JObject { final _$broadcastReceiver = broadcastReceiver?.reference ?? jni$_.jNullReference; final _$intentFilter = intentFilter?.reference ?? jni$_.jNullReference; - return _registerReceiver( - reference.pointer, - _id_registerReceiver as jni$_.JMethodIDPtr, - _$broadcastReceiver.pointer, - _$intentFilter.pointer) - .object(const jni$_.JObjectNullableType()); + return _registerReceiver(reference.pointer, _id_registerReceiver.pointer, + _$broadcastReceiver.pointer, _$intentFilter.pointer) + .object(); } - static final _id_registerReceiver$1 = _class.instanceMethodId( + static final _id_registerReceiver$1 = Context._class.instanceMethodId( r'registerReceiver', r'(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;I)Landroid/content/Intent;', ); @@ -47467,28 +39725,28 @@ class Context extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + core$_.int)>(); /// from: `public abstract android.content.Intent registerReceiver(android.content.BroadcastReceiver broadcastReceiver, android.content.IntentFilter intentFilter, int i)` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? registerReceiver$1( jni$_.JObject? broadcastReceiver, jni$_.JObject? intentFilter, - int i, + core$_.int i, ) { final _$broadcastReceiver = broadcastReceiver?.reference ?? jni$_.jNullReference; final _$intentFilter = intentFilter?.reference ?? jni$_.jNullReference; return _registerReceiver$1( reference.pointer, - _id_registerReceiver$1 as jni$_.JMethodIDPtr, + _id_registerReceiver$1.pointer, _$broadcastReceiver.pointer, _$intentFilter.pointer, i) - .object(const jni$_.JObjectNullableType()); + .object(); } - static final _id_registerReceiver$2 = _class.instanceMethodId( + static final _id_registerReceiver$2 = Context._class.instanceMethodId( r'registerReceiver', r'(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;Ljava/lang/String;Landroid/os/Handler;)Landroid/content/Intent;', ); @@ -47529,15 +39787,15 @@ class Context extends jni$_.JObject { final _$handler = handler?.reference ?? jni$_.jNullReference; return _registerReceiver$2( reference.pointer, - _id_registerReceiver$2 as jni$_.JMethodIDPtr, + _id_registerReceiver$2.pointer, _$broadcastReceiver.pointer, _$intentFilter.pointer, _$string.pointer, _$handler.pointer) - .object(const jni$_.JObjectNullableType()); + .object(); } - static final _id_registerReceiver$3 = _class.instanceMethodId( + static final _id_registerReceiver$3 = Context._class.instanceMethodId( r'registerReceiver', r'(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;Ljava/lang/String;Landroid/os/Handler;I)Landroid/content/Intent;', ); @@ -47563,7 +39821,7 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int)>(); + core$_.int)>(); /// from: `public abstract android.content.Intent registerReceiver(android.content.BroadcastReceiver broadcastReceiver, android.content.IntentFilter intentFilter, java.lang.String string, android.os.Handler handler, int i)` /// The returned object must be released after use, by calling the [release] method. @@ -47572,7 +39830,7 @@ class Context extends jni$_.JObject { jni$_.JObject? intentFilter, jni$_.JString? string, jni$_.JObject? handler, - int i, + core$_.int i, ) { final _$broadcastReceiver = broadcastReceiver?.reference ?? jni$_.jNullReference; @@ -47581,16 +39839,16 @@ class Context extends jni$_.JObject { final _$handler = handler?.reference ?? jni$_.jNullReference; return _registerReceiver$3( reference.pointer, - _id_registerReceiver$3 as jni$_.JMethodIDPtr, + _id_registerReceiver$3.pointer, _$broadcastReceiver.pointer, _$intentFilter.pointer, _$string.pointer, _$handler.pointer, i) - .object(const jni$_.JObjectNullableType()); + .object(); } - static final _id_removeStickyBroadcast = _class.instanceMethodId( + static final _id_removeStickyBroadcast = Context._class.instanceMethodId( r'removeStickyBroadcast', r'(Landroid/content/Intent;)V', ); @@ -47611,12 +39869,13 @@ class Context extends jni$_.JObject { jni$_.JObject? intent, ) { final _$intent = intent?.reference ?? jni$_.jNullReference; - _removeStickyBroadcast(reference.pointer, - _id_removeStickyBroadcast as jni$_.JMethodIDPtr, _$intent.pointer) + _removeStickyBroadcast(reference.pointer, _id_removeStickyBroadcast.pointer, + _$intent.pointer) .check(); } - static final _id_removeStickyBroadcastAsUser = _class.instanceMethodId( + static final _id_removeStickyBroadcastAsUser = + Context._class.instanceMethodId( r'removeStickyBroadcastAsUser', r'(Landroid/content/Intent;Landroid/os/UserHandle;)V', ); @@ -47648,13 +39907,13 @@ class Context extends jni$_.JObject { final _$userHandle = userHandle?.reference ?? jni$_.jNullReference; _removeStickyBroadcastAsUser( reference.pointer, - _id_removeStickyBroadcastAsUser as jni$_.JMethodIDPtr, + _id_removeStickyBroadcastAsUser.pointer, _$intent.pointer, _$userHandle.pointer) .check(); } - static final _id_revokeSelfPermissionOnKill = _class.instanceMethodId( + static final _id_revokeSelfPermissionOnKill = Context._class.instanceMethodId( r'revokeSelfPermissionOnKill', r'(Ljava/lang/String;)V', ); @@ -47676,14 +39935,13 @@ class Context extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - _revokeSelfPermissionOnKill( - reference.pointer, - _id_revokeSelfPermissionOnKill as jni$_.JMethodIDPtr, - _$string.pointer) + _revokeSelfPermissionOnKill(reference.pointer, + _id_revokeSelfPermissionOnKill.pointer, _$string.pointer) .check(); } - static final _id_revokeSelfPermissionsOnKill = _class.instanceMethodId( + static final _id_revokeSelfPermissionsOnKill = + Context._class.instanceMethodId( r'revokeSelfPermissionsOnKill', r'(Ljava/util/Collection;)V', ); @@ -47705,14 +39963,12 @@ class Context extends jni$_.JObject { jni$_.JObject? collection, ) { final _$collection = collection?.reference ?? jni$_.jNullReference; - _revokeSelfPermissionsOnKill( - reference.pointer, - _id_revokeSelfPermissionsOnKill as jni$_.JMethodIDPtr, - _$collection.pointer) + _revokeSelfPermissionsOnKill(reference.pointer, + _id_revokeSelfPermissionsOnKill.pointer, _$collection.pointer) .check(); } - static final _id_revokeUriPermission = _class.instanceMethodId( + static final _id_revokeUriPermission = Context._class.instanceMethodId( r'revokeUriPermission', r'(Landroid/net/Uri;I)V', ); @@ -47727,20 +39983,20 @@ class Context extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); /// from: `public abstract void revokeUriPermission(android.net.Uri uri, int i)` void revokeUriPermission( jni$_.JObject? uri, - int i, + core$_.int i, ) { final _$uri = uri?.reference ?? jni$_.jNullReference; - _revokeUriPermission(reference.pointer, - _id_revokeUriPermission as jni$_.JMethodIDPtr, _$uri.pointer, i) + _revokeUriPermission(reference.pointer, _id_revokeUriPermission.pointer, + _$uri.pointer, i) .check(); } - static final _id_revokeUriPermission$1 = _class.instanceMethodId( + static final _id_revokeUriPermission$1 = Context._class.instanceMethodId( r'revokeUriPermission', r'(Ljava/lang/String;Landroid/net/Uri;I)V', ); @@ -47762,26 +40018,22 @@ class Context extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + core$_.int)>(); /// from: `public abstract void revokeUriPermission(java.lang.String string, android.net.Uri uri, int i)` void revokeUriPermission$1( jni$_.JString? string, jni$_.JObject? uri, - int i, + core$_.int i, ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$uri = uri?.reference ?? jni$_.jNullReference; - _revokeUriPermission$1( - reference.pointer, - _id_revokeUriPermission$1 as jni$_.JMethodIDPtr, - _$string.pointer, - _$uri.pointer, - i) + _revokeUriPermission$1(reference.pointer, _id_revokeUriPermission$1.pointer, + _$string.pointer, _$uri.pointer, i) .check(); } - static final _id_sendBroadcast = _class.instanceMethodId( + static final _id_sendBroadcast = Context._class.instanceMethodId( r'sendBroadcast', r'(Landroid/content/Intent;)V', ); @@ -47802,12 +40054,12 @@ class Context extends jni$_.JObject { jni$_.JObject? intent, ) { final _$intent = intent?.reference ?? jni$_.jNullReference; - _sendBroadcast(reference.pointer, _id_sendBroadcast as jni$_.JMethodIDPtr, - _$intent.pointer) + _sendBroadcast( + reference.pointer, _id_sendBroadcast.pointer, _$intent.pointer) .check(); } - static final _id_sendBroadcast$1 = _class.instanceMethodId( + static final _id_sendBroadcast$1 = Context._class.instanceMethodId( r'sendBroadcast', r'(Landroid/content/Intent;Ljava/lang/String;)V', ); @@ -47836,15 +40088,12 @@ class Context extends jni$_.JObject { ) { final _$intent = intent?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; - _sendBroadcast$1( - reference.pointer, - _id_sendBroadcast$1 as jni$_.JMethodIDPtr, - _$intent.pointer, - _$string.pointer) + _sendBroadcast$1(reference.pointer, _id_sendBroadcast$1.pointer, + _$intent.pointer, _$string.pointer) .check(); } - static final _id_sendBroadcast$2 = _class.instanceMethodId( + static final _id_sendBroadcast$2 = Context._class.instanceMethodId( r'sendBroadcast', r'(Landroid/content/Intent;Ljava/lang/String;Landroid/os/Bundle;)V', ); @@ -47877,16 +40126,12 @@ class Context extends jni$_.JObject { final _$intent = intent?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; final _$bundle = bundle?.reference ?? jni$_.jNullReference; - _sendBroadcast$2( - reference.pointer, - _id_sendBroadcast$2 as jni$_.JMethodIDPtr, - _$intent.pointer, - _$string.pointer, - _$bundle.pointer) + _sendBroadcast$2(reference.pointer, _id_sendBroadcast$2.pointer, + _$intent.pointer, _$string.pointer, _$bundle.pointer) .check(); } - static final _id_sendBroadcastAsUser = _class.instanceMethodId( + static final _id_sendBroadcastAsUser = Context._class.instanceMethodId( r'sendBroadcastAsUser', r'(Landroid/content/Intent;Landroid/os/UserHandle;)V', ); @@ -47915,15 +40160,12 @@ class Context extends jni$_.JObject { ) { final _$intent = intent?.reference ?? jni$_.jNullReference; final _$userHandle = userHandle?.reference ?? jni$_.jNullReference; - _sendBroadcastAsUser( - reference.pointer, - _id_sendBroadcastAsUser as jni$_.JMethodIDPtr, - _$intent.pointer, - _$userHandle.pointer) + _sendBroadcastAsUser(reference.pointer, _id_sendBroadcastAsUser.pointer, + _$intent.pointer, _$userHandle.pointer) .check(); } - static final _id_sendBroadcastAsUser$1 = _class.instanceMethodId( + static final _id_sendBroadcastAsUser$1 = Context._class.instanceMethodId( r'sendBroadcastAsUser', r'(Landroid/content/Intent;Landroid/os/UserHandle;Ljava/lang/String;)V', ); @@ -47956,17 +40198,13 @@ class Context extends jni$_.JObject { final _$intent = intent?.reference ?? jni$_.jNullReference; final _$userHandle = userHandle?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; - _sendBroadcastAsUser$1( - reference.pointer, - _id_sendBroadcastAsUser$1 as jni$_.JMethodIDPtr, - _$intent.pointer, - _$userHandle.pointer, - _$string.pointer) + _sendBroadcastAsUser$1(reference.pointer, _id_sendBroadcastAsUser$1.pointer, + _$intent.pointer, _$userHandle.pointer, _$string.pointer) .check(); } static final _id_sendBroadcastWithMultiplePermissions = - _class.instanceMethodId( + Context._class.instanceMethodId( r'sendBroadcastWithMultiplePermissions', r'(Landroid/content/Intent;[Ljava/lang/String;)V', ); @@ -47998,13 +40236,13 @@ class Context extends jni$_.JObject { final _$strings = strings?.reference ?? jni$_.jNullReference; _sendBroadcastWithMultiplePermissions( reference.pointer, - _id_sendBroadcastWithMultiplePermissions as jni$_.JMethodIDPtr, + _id_sendBroadcastWithMultiplePermissions.pointer, _$intent.pointer, _$strings.pointer) .check(); } - static final _id_sendOrderedBroadcast = _class.instanceMethodId( + static final _id_sendOrderedBroadcast = Context._class.instanceMethodId( r'sendOrderedBroadcast', r'(Landroid/content/Intent;Ljava/lang/String;)V', ); @@ -48033,15 +40271,12 @@ class Context extends jni$_.JObject { ) { final _$intent = intent?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; - _sendOrderedBroadcast( - reference.pointer, - _id_sendOrderedBroadcast as jni$_.JMethodIDPtr, - _$intent.pointer, - _$string.pointer) + _sendOrderedBroadcast(reference.pointer, _id_sendOrderedBroadcast.pointer, + _$intent.pointer, _$string.pointer) .check(); } - static final _id_sendOrderedBroadcast$1 = _class.instanceMethodId( + static final _id_sendOrderedBroadcast$1 = Context._class.instanceMethodId( r'sendOrderedBroadcast', r'(Landroid/content/Intent;Ljava/lang/String;Landroid/content/BroadcastReceiver;Landroid/os/Handler;ILjava/lang/String;Landroid/os/Bundle;)V', ); @@ -48069,7 +40304,7 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer, jni$_.Pointer)>(); @@ -48079,7 +40314,7 @@ class Context extends jni$_.JObject { jni$_.JString? string, jni$_.JObject? broadcastReceiver, jni$_.JObject? handler, - int i, + core$_.int i, jni$_.JString? string1, jni$_.JObject? bundle, ) { @@ -48092,7 +40327,7 @@ class Context extends jni$_.JObject { final _$bundle = bundle?.reference ?? jni$_.jNullReference; _sendOrderedBroadcast$1( reference.pointer, - _id_sendOrderedBroadcast$1 as jni$_.JMethodIDPtr, + _id_sendOrderedBroadcast$1.pointer, _$intent.pointer, _$string.pointer, _$broadcastReceiver.pointer, @@ -48103,7 +40338,7 @@ class Context extends jni$_.JObject { .check(); } - static final _id_sendOrderedBroadcast$2 = _class.instanceMethodId( + static final _id_sendOrderedBroadcast$2 = Context._class.instanceMethodId( r'sendOrderedBroadcast', r'(Landroid/content/Intent;Ljava/lang/String;Landroid/os/Bundle;)V', ); @@ -48138,14 +40373,14 @@ class Context extends jni$_.JObject { final _$bundle = bundle?.reference ?? jni$_.jNullReference; _sendOrderedBroadcast$2( reference.pointer, - _id_sendOrderedBroadcast$2 as jni$_.JMethodIDPtr, + _id_sendOrderedBroadcast$2.pointer, _$intent.pointer, _$string.pointer, _$bundle.pointer) .check(); } - static final _id_sendOrderedBroadcast$3 = _class.instanceMethodId( + static final _id_sendOrderedBroadcast$3 = Context._class.instanceMethodId( r'sendOrderedBroadcast', r'(Landroid/content/Intent;Ljava/lang/String;Landroid/os/Bundle;Landroid/content/BroadcastReceiver;Landroid/os/Handler;ILjava/lang/String;Landroid/os/Bundle;)V', ); @@ -48175,7 +40410,7 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer, jni$_.Pointer)>(); @@ -48186,7 +40421,7 @@ class Context extends jni$_.JObject { jni$_.JObject? bundle, jni$_.JObject? broadcastReceiver, jni$_.JObject? handler, - int i, + core$_.int i, jni$_.JString? string1, jni$_.JObject? bundle1, ) { @@ -48200,7 +40435,7 @@ class Context extends jni$_.JObject { final _$bundle1 = bundle1?.reference ?? jni$_.jNullReference; _sendOrderedBroadcast$3( reference.pointer, - _id_sendOrderedBroadcast$3 as jni$_.JMethodIDPtr, + _id_sendOrderedBroadcast$3.pointer, _$intent.pointer, _$string.pointer, _$bundle.pointer, @@ -48212,7 +40447,7 @@ class Context extends jni$_.JObject { .check(); } - static final _id_sendOrderedBroadcast$4 = _class.instanceMethodId( + static final _id_sendOrderedBroadcast$4 = Context._class.instanceMethodId( r'sendOrderedBroadcast', r'(Landroid/content/Intent;Ljava/lang/String;Ljava/lang/String;Landroid/content/BroadcastReceiver;Landroid/os/Handler;ILjava/lang/String;Landroid/os/Bundle;)V', ); @@ -48242,7 +40477,7 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer, jni$_.Pointer)>(); @@ -48253,7 +40488,7 @@ class Context extends jni$_.JObject { jni$_.JString? string1, jni$_.JObject? broadcastReceiver, jni$_.JObject? handler, - int i, + core$_.int i, jni$_.JString? string2, jni$_.JObject? bundle, ) { @@ -48267,7 +40502,7 @@ class Context extends jni$_.JObject { final _$bundle = bundle?.reference ?? jni$_.jNullReference; _sendOrderedBroadcast$4( reference.pointer, - _id_sendOrderedBroadcast$4 as jni$_.JMethodIDPtr, + _id_sendOrderedBroadcast$4.pointer, _$intent.pointer, _$string.pointer, _$string1.pointer, @@ -48279,7 +40514,7 @@ class Context extends jni$_.JObject { .check(); } - static final _id_sendOrderedBroadcastAsUser = _class.instanceMethodId( + static final _id_sendOrderedBroadcastAsUser = Context._class.instanceMethodId( r'sendOrderedBroadcastAsUser', r'(Landroid/content/Intent;Landroid/os/UserHandle;Ljava/lang/String;Landroid/content/BroadcastReceiver;Landroid/os/Handler;ILjava/lang/String;Landroid/os/Bundle;)V', ); @@ -48310,7 +40545,7 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer, jni$_.Pointer)>(); @@ -48321,7 +40556,7 @@ class Context extends jni$_.JObject { jni$_.JString? string, jni$_.JObject? broadcastReceiver, jni$_.JObject? handler, - int i, + core$_.int i, jni$_.JString? string1, jni$_.JObject? bundle, ) { @@ -48335,7 +40570,7 @@ class Context extends jni$_.JObject { final _$bundle = bundle?.reference ?? jni$_.jNullReference; _sendOrderedBroadcastAsUser( reference.pointer, - _id_sendOrderedBroadcastAsUser as jni$_.JMethodIDPtr, + _id_sendOrderedBroadcastAsUser.pointer, _$intent.pointer, _$userHandle.pointer, _$string.pointer, @@ -48347,7 +40582,7 @@ class Context extends jni$_.JObject { .check(); } - static final _id_sendStickyBroadcast = _class.instanceMethodId( + static final _id_sendStickyBroadcast = Context._class.instanceMethodId( r'sendStickyBroadcast', r'(Landroid/content/Intent;)V', ); @@ -48368,12 +40603,12 @@ class Context extends jni$_.JObject { jni$_.JObject? intent, ) { final _$intent = intent?.reference ?? jni$_.jNullReference; - _sendStickyBroadcast(reference.pointer, - _id_sendStickyBroadcast as jni$_.JMethodIDPtr, _$intent.pointer) + _sendStickyBroadcast(reference.pointer, _id_sendStickyBroadcast.pointer, + _$intent.pointer) .check(); } - static final _id_sendStickyBroadcast$1 = _class.instanceMethodId( + static final _id_sendStickyBroadcast$1 = Context._class.instanceMethodId( r'sendStickyBroadcast', r'(Landroid/content/Intent;Landroid/os/Bundle;)V', ); @@ -48402,15 +40637,12 @@ class Context extends jni$_.JObject { ) { final _$intent = intent?.reference ?? jni$_.jNullReference; final _$bundle = bundle?.reference ?? jni$_.jNullReference; - _sendStickyBroadcast$1( - reference.pointer, - _id_sendStickyBroadcast$1 as jni$_.JMethodIDPtr, - _$intent.pointer, - _$bundle.pointer) + _sendStickyBroadcast$1(reference.pointer, _id_sendStickyBroadcast$1.pointer, + _$intent.pointer, _$bundle.pointer) .check(); } - static final _id_sendStickyBroadcastAsUser = _class.instanceMethodId( + static final _id_sendStickyBroadcastAsUser = Context._class.instanceMethodId( r'sendStickyBroadcastAsUser', r'(Landroid/content/Intent;Landroid/os/UserHandle;)V', ); @@ -48441,13 +40673,13 @@ class Context extends jni$_.JObject { final _$userHandle = userHandle?.reference ?? jni$_.jNullReference; _sendStickyBroadcastAsUser( reference.pointer, - _id_sendStickyBroadcastAsUser as jni$_.JMethodIDPtr, + _id_sendStickyBroadcastAsUser.pointer, _$intent.pointer, _$userHandle.pointer) .check(); } - static final _id_sendStickyOrderedBroadcast = _class.instanceMethodId( + static final _id_sendStickyOrderedBroadcast = Context._class.instanceMethodId( r'sendStickyOrderedBroadcast', r'(Landroid/content/Intent;Landroid/content/BroadcastReceiver;Landroid/os/Handler;ILjava/lang/String;Landroid/os/Bundle;)V', ); @@ -48474,7 +40706,7 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer, jni$_.Pointer)>(); @@ -48483,7 +40715,7 @@ class Context extends jni$_.JObject { jni$_.JObject? intent, jni$_.JObject? broadcastReceiver, jni$_.JObject? handler, - int i, + core$_.int i, jni$_.JString? string, jni$_.JObject? bundle, ) { @@ -48495,7 +40727,7 @@ class Context extends jni$_.JObject { final _$bundle = bundle?.reference ?? jni$_.jNullReference; _sendStickyOrderedBroadcast( reference.pointer, - _id_sendStickyOrderedBroadcast as jni$_.JMethodIDPtr, + _id_sendStickyOrderedBroadcast.pointer, _$intent.pointer, _$broadcastReceiver.pointer, _$handler.pointer, @@ -48505,7 +40737,8 @@ class Context extends jni$_.JObject { .check(); } - static final _id_sendStickyOrderedBroadcastAsUser = _class.instanceMethodId( + static final _id_sendStickyOrderedBroadcastAsUser = + Context._class.instanceMethodId( r'sendStickyOrderedBroadcastAsUser', r'(Landroid/content/Intent;Landroid/os/UserHandle;Landroid/content/BroadcastReceiver;Landroid/os/Handler;ILjava/lang/String;Landroid/os/Bundle;)V', ); @@ -48534,7 +40767,7 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer, jni$_.Pointer)>(); @@ -48544,7 +40777,7 @@ class Context extends jni$_.JObject { jni$_.JObject? userHandle, jni$_.JObject? broadcastReceiver, jni$_.JObject? handler, - int i, + core$_.int i, jni$_.JString? string, jni$_.JObject? bundle, ) { @@ -48557,7 +40790,7 @@ class Context extends jni$_.JObject { final _$bundle = bundle?.reference ?? jni$_.jNullReference; _sendStickyOrderedBroadcastAsUser( reference.pointer, - _id_sendStickyOrderedBroadcastAsUser as jni$_.JMethodIDPtr, + _id_sendStickyOrderedBroadcastAsUser.pointer, _$intent.pointer, _$userHandle.pointer, _$broadcastReceiver.pointer, @@ -48568,12 +40801,12 @@ class Context extends jni$_.JObject { .check(); } - static final _id_setTheme = _class.instanceMethodId( + static final _id_set$theme$1 = Context._class.instanceMethodId( r'setTheme', r'(I)V', ); - static final _setTheme = jni$_.ProtectedJniExtensions.lookup< + static final _set$theme$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -48581,21 +40814,19 @@ class Context extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public abstract void setTheme(int i)` - void setTheme( - int i, - ) { - _setTheme(reference.pointer, _id_setTheme as jni$_.JMethodIDPtr, i).check(); + set theme$1(core$_.int i) { + _set$theme$1(reference.pointer, _id_set$theme$1.pointer, i).check(); } - static final _id_setWallpaper = _class.instanceMethodId( + static final _id_set$wallpaper$1 = Context._class.instanceMethodId( r'setWallpaper', r'(Landroid/graphics/Bitmap;)V', ); - static final _setWallpaper = jni$_.ProtectedJniExtensions.lookup< + static final _set$wallpaper$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -48607,21 +40838,19 @@ class Context extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public abstract void setWallpaper(android.graphics.Bitmap bitmap)` - void setWallpaper( - Bitmap? bitmap, - ) { + set wallpaper$1(Bitmap? bitmap) { final _$bitmap = bitmap?.reference ?? jni$_.jNullReference; - _setWallpaper(reference.pointer, _id_setWallpaper as jni$_.JMethodIDPtr, - _$bitmap.pointer) + _set$wallpaper$1( + reference.pointer, _id_set$wallpaper$1.pointer, _$bitmap.pointer) .check(); } - static final _id_setWallpaper$1 = _class.instanceMethodId( + static final _id_set$wallpaper$2 = Context._class.instanceMethodId( r'setWallpaper', r'(Ljava/io/InputStream;)V', ); - static final _setWallpaper$1 = jni$_.ProtectedJniExtensions.lookup< + static final _set$wallpaper$2 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -48633,16 +40862,14 @@ class Context extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public abstract void setWallpaper(java.io.InputStream inputStream)` - void setWallpaper$1( - jni$_.JObject? inputStream, - ) { + set wallpaper$2(jni$_.JObject? inputStream) { final _$inputStream = inputStream?.reference ?? jni$_.jNullReference; - _setWallpaper$1(reference.pointer, _id_setWallpaper$1 as jni$_.JMethodIDPtr, + _set$wallpaper$2(reference.pointer, _id_set$wallpaper$2.pointer, _$inputStream.pointer) .check(); } - static final _id_startActivities = _class.instanceMethodId( + static final _id_startActivities = Context._class.instanceMethodId( r'startActivities', r'([Landroid/content/Intent;)V', ); @@ -48663,12 +40890,12 @@ class Context extends jni$_.JObject { jni$_.JArray? intents, ) { final _$intents = intents?.reference ?? jni$_.jNullReference; - _startActivities(reference.pointer, - _id_startActivities as jni$_.JMethodIDPtr, _$intents.pointer) + _startActivities( + reference.pointer, _id_startActivities.pointer, _$intents.pointer) .check(); } - static final _id_startActivities$1 = _class.instanceMethodId( + static final _id_startActivities$1 = Context._class.instanceMethodId( r'startActivities', r'([Landroid/content/Intent;Landroid/os/Bundle;)V', ); @@ -48697,15 +40924,12 @@ class Context extends jni$_.JObject { ) { final _$intents = intents?.reference ?? jni$_.jNullReference; final _$bundle = bundle?.reference ?? jni$_.jNullReference; - _startActivities$1( - reference.pointer, - _id_startActivities$1 as jni$_.JMethodIDPtr, - _$intents.pointer, - _$bundle.pointer) + _startActivities$1(reference.pointer, _id_startActivities$1.pointer, + _$intents.pointer, _$bundle.pointer) .check(); } - static final _id_startActivity = _class.instanceMethodId( + static final _id_startActivity = Context._class.instanceMethodId( r'startActivity', r'(Landroid/content/Intent;)V', ); @@ -48726,12 +40950,12 @@ class Context extends jni$_.JObject { jni$_.JObject? intent, ) { final _$intent = intent?.reference ?? jni$_.jNullReference; - _startActivity(reference.pointer, _id_startActivity as jni$_.JMethodIDPtr, - _$intent.pointer) + _startActivity( + reference.pointer, _id_startActivity.pointer, _$intent.pointer) .check(); } - static final _id_startActivity$1 = _class.instanceMethodId( + static final _id_startActivity$1 = Context._class.instanceMethodId( r'startActivity', r'(Landroid/content/Intent;Landroid/os/Bundle;)V', ); @@ -48760,15 +40984,12 @@ class Context extends jni$_.JObject { ) { final _$intent = intent?.reference ?? jni$_.jNullReference; final _$bundle = bundle?.reference ?? jni$_.jNullReference; - _startActivity$1( - reference.pointer, - _id_startActivity$1 as jni$_.JMethodIDPtr, - _$intent.pointer, - _$bundle.pointer) + _startActivity$1(reference.pointer, _id_startActivity$1.pointer, + _$intent.pointer, _$bundle.pointer) .check(); } - static final _id_startForegroundService = _class.instanceMethodId( + static final _id_startForegroundService = Context._class.instanceMethodId( r'startForegroundService', r'(Landroid/content/Intent;)Landroid/content/ComponentName;', ); @@ -48791,11 +41012,11 @@ class Context extends jni$_.JObject { ) { final _$intent = intent?.reference ?? jni$_.jNullReference; return _startForegroundService(reference.pointer, - _id_startForegroundService as jni$_.JMethodIDPtr, _$intent.pointer) - .object(const jni$_.JObjectNullableType()); + _id_startForegroundService.pointer, _$intent.pointer) + .object(); } - static final _id_startInstrumentation = _class.instanceMethodId( + static final _id_startInstrumentation = Context._class.instanceMethodId( r'startInstrumentation', r'(Landroid/content/ComponentName;Ljava/lang/String;Landroid/os/Bundle;)Z', ); @@ -48820,7 +41041,7 @@ class Context extends jni$_.JObject { jni$_.Pointer)>(); /// from: `public abstract boolean startInstrumentation(android.content.ComponentName componentName, java.lang.String string, android.os.Bundle bundle)` - bool startInstrumentation( + core$_.bool startInstrumentation( jni$_.JObject? componentName, jni$_.JString? string, jni$_.JObject? bundle, @@ -48830,14 +41051,14 @@ class Context extends jni$_.JObject { final _$bundle = bundle?.reference ?? jni$_.jNullReference; return _startInstrumentation( reference.pointer, - _id_startInstrumentation as jni$_.JMethodIDPtr, + _id_startInstrumentation.pointer, _$componentName.pointer, _$string.pointer, _$bundle.pointer) .boolean; } - static final _id_startIntentSender = _class.instanceMethodId( + static final _id_startIntentSender = Context._class.instanceMethodId( r'startIntentSender', r'(Landroid/content/IntentSender;Landroid/content/Intent;III)V', ); @@ -48861,32 +41082,26 @@ class Context extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int, - int, - int)>(); + core$_.int, + core$_.int, + core$_.int)>(); /// from: `public abstract void startIntentSender(android.content.IntentSender intentSender, android.content.Intent intent, int i, int i1, int i2)` void startIntentSender( jni$_.JObject? intentSender, jni$_.JObject? intent, - int i, - int i1, - int i2, + core$_.int i, + core$_.int i1, + core$_.int i2, ) { final _$intentSender = intentSender?.reference ?? jni$_.jNullReference; final _$intent = intent?.reference ?? jni$_.jNullReference; - _startIntentSender( - reference.pointer, - _id_startIntentSender as jni$_.JMethodIDPtr, - _$intentSender.pointer, - _$intent.pointer, - i, - i1, - i2) + _startIntentSender(reference.pointer, _id_startIntentSender.pointer, + _$intentSender.pointer, _$intent.pointer, i, i1, i2) .check(); } - static final _id_startIntentSender$1 = _class.instanceMethodId( + static final _id_startIntentSender$1 = Context._class.instanceMethodId( r'startIntentSender', r'(Landroid/content/IntentSender;Landroid/content/Intent;IIILandroid/os/Bundle;)V', ); @@ -48911,18 +41126,18 @@ class Context extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int, - int, - int, + core$_.int, + core$_.int, + core$_.int, jni$_.Pointer)>(); /// from: `public abstract void startIntentSender(android.content.IntentSender intentSender, android.content.Intent intent, int i, int i1, int i2, android.os.Bundle bundle)` void startIntentSender$1( jni$_.JObject? intentSender, jni$_.JObject? intent, - int i, - int i1, - int i2, + core$_.int i, + core$_.int i1, + core$_.int i2, jni$_.JObject? bundle, ) { final _$intentSender = intentSender?.reference ?? jni$_.jNullReference; @@ -48930,7 +41145,7 @@ class Context extends jni$_.JObject { final _$bundle = bundle?.reference ?? jni$_.jNullReference; _startIntentSender$1( reference.pointer, - _id_startIntentSender$1 as jni$_.JMethodIDPtr, + _id_startIntentSender$1.pointer, _$intentSender.pointer, _$intent.pointer, i, @@ -48940,7 +41155,7 @@ class Context extends jni$_.JObject { .check(); } - static final _id_startService = _class.instanceMethodId( + static final _id_startService = Context._class.instanceMethodId( r'startService', r'(Landroid/content/Intent;)Landroid/content/ComponentName;', ); @@ -48962,12 +41177,12 @@ class Context extends jni$_.JObject { jni$_.JObject? intent, ) { final _$intent = intent?.reference ?? jni$_.jNullReference; - return _startService(reference.pointer, - _id_startService as jni$_.JMethodIDPtr, _$intent.pointer) - .object(const jni$_.JObjectNullableType()); + return _startService( + reference.pointer, _id_startService.pointer, _$intent.pointer) + .object(); } - static final _id_stopService = _class.instanceMethodId( + static final _id_stopService = Context._class.instanceMethodId( r'stopService', r'(Landroid/content/Intent;)Z', ); @@ -48984,16 +41199,16 @@ class Context extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public abstract boolean stopService(android.content.Intent intent)` - bool stopService( + core$_.bool stopService( jni$_.JObject? intent, ) { final _$intent = intent?.reference ?? jni$_.jNullReference; - return _stopService(reference.pointer, - _id_stopService as jni$_.JMethodIDPtr, _$intent.pointer) + return _stopService( + reference.pointer, _id_stopService.pointer, _$intent.pointer) .boolean; } - static final _id_unbindService = _class.instanceMethodId( + static final _id_unbindService = Context._class.instanceMethodId( r'unbindService', r'(Landroid/content/ServiceConnection;)V', ); @@ -49015,12 +41230,13 @@ class Context extends jni$_.JObject { ) { final _$serviceConnection = serviceConnection?.reference ?? jni$_.jNullReference; - _unbindService(reference.pointer, _id_unbindService as jni$_.JMethodIDPtr, + _unbindService(reference.pointer, _id_unbindService.pointer, _$serviceConnection.pointer) .check(); } - static final _id_unregisterComponentCallbacks = _class.instanceMethodId( + static final _id_unregisterComponentCallbacks = + Context._class.instanceMethodId( r'unregisterComponentCallbacks', r'(Landroid/content/ComponentCallbacks;)V', ); @@ -49045,12 +41261,13 @@ class Context extends jni$_.JObject { componentCallbacks?.reference ?? jni$_.jNullReference; _unregisterComponentCallbacks( reference.pointer, - _id_unregisterComponentCallbacks as jni$_.JMethodIDPtr, + _id_unregisterComponentCallbacks.pointer, _$componentCallbacks.pointer) .check(); } - static final _id_unregisterDeviceIdChangeListener = _class.instanceMethodId( + static final _id_unregisterDeviceIdChangeListener = + Context._class.instanceMethodId( r'unregisterDeviceIdChangeListener', r'(Ljava/util/function/IntConsumer;)V', ); @@ -49072,14 +41289,12 @@ class Context extends jni$_.JObject { jni$_.JObject? intConsumer, ) { final _$intConsumer = intConsumer?.reference ?? jni$_.jNullReference; - _unregisterDeviceIdChangeListener( - reference.pointer, - _id_unregisterDeviceIdChangeListener as jni$_.JMethodIDPtr, - _$intConsumer.pointer) + _unregisterDeviceIdChangeListener(reference.pointer, + _id_unregisterDeviceIdChangeListener.pointer, _$intConsumer.pointer) .check(); } - static final _id_unregisterReceiver = _class.instanceMethodId( + static final _id_unregisterReceiver = Context._class.instanceMethodId( r'unregisterReceiver', r'(Landroid/content/BroadcastReceiver;)V', ); @@ -49101,14 +41316,12 @@ class Context extends jni$_.JObject { ) { final _$broadcastReceiver = broadcastReceiver?.reference ?? jni$_.jNullReference; - _unregisterReceiver( - reference.pointer, - _id_unregisterReceiver as jni$_.JMethodIDPtr, + _unregisterReceiver(reference.pointer, _id_unregisterReceiver.pointer, _$broadcastReceiver.pointer) .check(); } - static final _id_updateServiceGroup = _class.instanceMethodId( + static final _id_updateServiceGroup = Context._class.instanceMethodId( r'updateServiceGroup', r'(Landroid/content/ServiceConnection;II)V', ); @@ -49125,94 +41338,32 @@ class Context extends jni$_.JObject { jni$_.Int32 )>)>>('globalEnv_CallVoidMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int)>(); /// from: `public void updateServiceGroup(android.content.ServiceConnection serviceConnection, int i, int i1)` void updateServiceGroup( jni$_.JObject? serviceConnection, - int i, - int i1, + core$_.int i, + core$_.int i1, ) { final _$serviceConnection = serviceConnection?.reference ?? jni$_.jNullReference; - _updateServiceGroup( - reference.pointer, - _id_updateServiceGroup as jni$_.JMethodIDPtr, - _$serviceConnection.pointer, - i, - i1) + _updateServiceGroup(reference.pointer, _id_updateServiceGroup.pointer, + _$serviceConnection.pointer, i, i1) .check(); } } -final class $Context$NullableType extends jni$_.JObjType { +final class $Context$Type$ extends jni$_.JType { @jni$_.internal - const $Context$NullableType(); + const $Context$Type$(); @jni$_.internal @core$_.override String get signature => r'Landroid/content/Context;'; - - @jni$_.internal - @core$_.override - Context? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Context.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Context$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Context$NullableType) && - other is $Context$NullableType; - } -} - -final class $Context$Type extends jni$_.JObjType { - @jni$_.internal - const $Context$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Landroid/content/Context;'; - - @jni$_.internal - @core$_.override - Context fromReference(jni$_.JReference reference) => Context.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => const $Context$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Context$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Context$Type) && other is $Context$Type; - } } diff --git a/packages/flutter/lib/src/native/java/sentry_native_java.dart b/packages/flutter/lib/src/native/java/sentry_native_java.dart index a57ea31a47..dee4c812ed 100644 --- a/packages/flutter/lib/src/native/java/sentry_native_java.dart +++ b/packages/flutter/lib/src/native/java/sentry_native_java.dart @@ -64,9 +64,8 @@ class SentryNativeJava extends SentryNativeChannel { .map((s) => s.toJString()) .toSet(); - instructionAddressSet = instructionAddressJStrings.nonNulls - .cast() - .toJSet(JString.type); + instructionAddressSet = + instructionAddressJStrings.nonNulls.cast().toJSet(); // Use a single JNI call to get images as UTF-8 encoded JSON instead of // making multiple JNI calls to convert each object individually. This approach @@ -137,8 +136,8 @@ class SentryNativeJava extends SentryNativeChannel { @override int? displayRefreshRate() => tryCatchSync('displayRefreshRate', () { - return native.SentryFlutterPlugin.getDisplayRefreshRate() - ?.intValue(releaseOriginal: true); + return native.SentryFlutterPlugin.displayRefreshRate + ?.toDartInt(releaseOriginal: true); }); @override @@ -191,10 +190,10 @@ class SentryNativeJava extends SentryNativeChannel { void addBreadcrumb(Breadcrumb breadcrumb) => tryCatchSync('addBreadcrumb', () { using((arena) { - final scopesAdapter = native.ScopesAdapter.getInstance() + final scopesAdapter = native.ScopesAdapter.instance ?..releasedBy(arena); if (scopesAdapter == null) return; - final nativeOptions = scopesAdapter.getOptions()..releasedBy(arena); + final nativeOptions = scopesAdapter.options..releasedBy(arena); final jMap = dartToJMap(breadcrumb.toJson()); final nativeBreadcrumb = @@ -216,12 +215,12 @@ class SentryNativeJava extends SentryNativeChannel { void setUser(SentryUser? user) => tryCatchSync('setUser', () { using((arena) { if (user == null) { - native.Sentry.setUser(null); + native.Sentry.user = null; } else { - final scopesAdapter = native.ScopesAdapter.getInstance() + final scopesAdapter = native.ScopesAdapter.instance ?..releasedBy(arena); if (scopesAdapter == null) return; - final nativeOptions = scopesAdapter.getOptions()..releasedBy(arena); + final nativeOptions = scopesAdapter.options..releasedBy(arena); final jMap = dartToJMap(user.toJson()); final nativeUser = native.User.fromMap(jMap, nativeOptions) @@ -230,7 +229,7 @@ class SentryNativeJava extends SentryNativeChannel { jMap.release(); if (nativeUser == null) return; - native.Sentry.setUser(nativeUser); + native.Sentry.user = nativeUser; } }); }); @@ -245,8 +244,7 @@ class SentryNativeJava extends SentryNativeChannel { final jKey = key.toJString()..releasedBy(arena); final jVal = dartToJObject(value)..releasedBy(arena); - final scope = iScope.as(const native.$Scope$Type()) - ..releasedBy(arena); + final scope = iScope.as(native.Scope.type)..releasedBy(arena); scope.setContexts(jKey, jVal); }); }, @@ -261,8 +259,7 @@ class SentryNativeJava extends SentryNativeChannel { native.ScopeCallback.implement(native.$ScopeCallback(run: (iScope) { using((arena) { final jKey = key.toJString()..releasedBy(arena); - final scope = iScope.as(const native.$Scope$Type()) - ..releasedBy(arena); + final scope = iScope.as(native.Scope.type)..releasedBy(arena); scope.removeContexts(jKey); }); }))); @@ -313,7 +310,7 @@ class SentryNativeJava extends SentryNativeChannel { // The passed parameter is `isTerminating` _nativeReplay?.captureReplay(false.toJBoolean()..releasedBy(arena)); - final nativeReplayId = _nativeReplay?.getReplayId(); + final nativeReplayId = _nativeReplay?.replayId; nativeReplayId?.releasedBy(arena); JString? jString; @@ -423,7 +420,7 @@ JObject dartToJObject(Object? value) => switch (value) { @visibleForTesting JList dartToJList(List values) { - final jList = JList.array(JObject.type); + final jList = (JArrayList() as JObject) as JList; for (final v in values.nonNulls) { final j = dartToJObject(v); jList.add(j); @@ -434,11 +431,11 @@ JList dartToJList(List values) { @visibleForTesting JMap dartToJMap(Map json) { - final jMap = JMap.hash(JString.type, JObject.type); + final jMap = (JHashMap() as JObject) as JMap; for (final entry in json.entries.where((e) => e.value != null)) { final jk = entry.key.toJString(); final jv = dartToJObject(entry.value); - jMap[jk] = jv; + jMap.put(jk, jv); jk.release(); jv.release(); } diff --git a/packages/flutter/lib/src/native/java/sentry_native_java_init.dart b/packages/flutter/lib/src/native/java/sentry_native_java_init.dart index bb709dccf9..2961cf32a1 100644 --- a/packages/flutter/lib/src/native/java/sentry_native_java_init.dart +++ b/packages/flutter/lib/src/native/java/sentry_native_java_init.dart @@ -24,7 +24,7 @@ void initSentryAndroid({ final beforeSendEventCallback = createBeforeSendCallback(); using((arena) { - final context = native.SentryFlutterPlugin.getApplicationContext() + final context = native.SentryFlutterPlugin.applicationContext ?..releasedBy(arena); if (context == null) { options.log(SentryLevel.error, @@ -33,8 +33,7 @@ void initSentryAndroid({ } final optionsConfiguration = native.Sentry$OptionsConfiguration.implement( - native.$Sentry$OptionsConfiguration( - T: native.SentryAndroidOptions.nullableType, + native.$Sentry$OptionsConfiguration( configure: (native.SentryAndroidOptions? androidOptions) { if (androidOptions == null) return; @@ -65,7 +64,7 @@ native.SentryOptions$BeforeSendCallback createBeforeSendCallback() { native.$SentryOptions$BeforeSendCallback( execute: (sentryEvent, hint) { using((arena) { - final sdk = sentryEvent.getSdk()?..releasedBy(arena); + final sdk = sentryEvent.sdk?..releasedBy(arena); if (sdk == null) return; final originKey = 'event.origin'.toJString()..releasedBy(arena); @@ -79,7 +78,7 @@ native.SentryOptions$BeforeSendCallback createBeforeSendCallback() { sentryEvent.setTag(environmentKey, envVal); } - switch (sdk.getName().toDartString(releaseOriginal: true)) { + switch (sdk.name.toDartString(releaseOriginal: true)) { case _flutterSdkName: setTagPair('flutter', 'dart'); break; @@ -107,26 +106,35 @@ native.SentryOptions$BeforeSendReplayCallback createBeforeSendReplayCallback( native.$SentryOptions$BeforeSendReplayCallback( execute: (sentryReplayEvent, hint) { using((arena) { - final data = hint - .getReplayRecording() - ?.getPayload() - ?.use((l) => l.firstOrNull) + final data = hint.replayRecording?.payload + ?.use((l) => l.isEmpty() ? null : l.get(0)) ?..releasedBy(arena); - if (data is native.$RRWebOptionsEvent$Type) { + if (data != null && data.isA(native.RRWebOptionsEvent.type)) { final payload = data - ?.as(native.RRWebOptionsEvent.type) - .getOptionsPayload() - ?..releasedBy(arena); - payload?.removeWhere((key, value) { - final shouldRemove = - key?.toDartString(releaseOriginal: true).contains('mask') ?? - false; - value?.release(); // release the materialized value handle - return shouldRemove; - }); + .as(native.RRWebOptionsEvent.type) + .optionsPayload + ..releasedBy(arena); + final keysToRemove = []; + final keys = payload.keySet()?..releasedBy(arena); + if (keys != null) { + final iterator = keys.iterator()!..releasedBy(arena); + while (iterator.hasNext()) { + final key = iterator.next(); + if (key != null) { + final keyStr = key.toDartString(releaseOriginal: true); + if (keyStr.contains('mask')) { + keysToRemove.add(keyStr.toJString()); + } + } + } + } + for (final key in keysToRemove) { + payload.remove(key)?.release(); + key.release(); + } final jMap = dartToJMap(options.privacy.toJson()); - payload?.addAll(jMap); + payload.putAll(jMap); jMap.release(); } }); @@ -202,81 +210,80 @@ void configureAndroidOptions({ required native.SentryOptions$BeforeSendReplayCallback beforeSendReplay, }) { using((arena) { - androidOptions.setDsn(options.dsn?.toJString()?..releasedBy(arena)); - androidOptions.setDebug(options.debug); - androidOptions - .setEnvironment(options.environment?.toJString()?..releasedBy(arena)); - androidOptions.setRelease(options.release?.toJString()?..releasedBy(arena)); - androidOptions.setDist(options.dist?.toJString()?..releasedBy(arena)); - androidOptions - .setEnableAutoSessionTracking(options.enableAutoSessionTracking); - androidOptions.setSessionTrackingIntervalMillis( - options.autoSessionTrackingInterval.inMilliseconds); - androidOptions - .setAnrTimeoutIntervalMillis(options.anrTimeoutInterval.inMilliseconds); - androidOptions.setAnrEnabled(options.anrEnabled); - androidOptions.setTombstoneEnabled(options.enableTombstone); - androidOptions.setAttachThreads(options.attachThreads); - androidOptions.setAttachStacktrace(options.attachStacktrace); + androidOptions.dsn = options.dsn?.toJString()?..releasedBy(arena); + androidOptions.debug = options.debug; + androidOptions.environment = options.environment?.toJString() + ?..releasedBy(arena); + androidOptions.release$1 = options.release?.toJString()?..releasedBy(arena); + androidOptions.dist = options.dist?.toJString()?..releasedBy(arena); + androidOptions.enableAutoSessionTracking = + options.enableAutoSessionTracking; + androidOptions.sessionTrackingIntervalMillis = + options.autoSessionTrackingInterval.inMilliseconds; + androidOptions.anrTimeoutIntervalMillis = + options.anrTimeoutInterval.inMilliseconds; + androidOptions.anrEnabled = options.anrEnabled; + androidOptions.tombstoneEnabled = options.enableTombstone; + androidOptions.attachThreads = options.attachThreads; + androidOptions.attachStacktrace = options.attachStacktrace; final enableNativeBreadcrumbs = options.enableAutoNativeBreadcrumbs; - androidOptions - .setEnableActivityLifecycleBreadcrumbs(enableNativeBreadcrumbs); - androidOptions.setEnableAppLifecycleBreadcrumbs(enableNativeBreadcrumbs); - androidOptions.setEnableSystemEventBreadcrumbs(enableNativeBreadcrumbs); - androidOptions.setEnableAppComponentBreadcrumbs(enableNativeBreadcrumbs); - androidOptions.setEnableUserInteractionBreadcrumbs(enableNativeBreadcrumbs); + androidOptions.enableActivityLifecycleBreadcrumbs = enableNativeBreadcrumbs; + androidOptions.enableAppLifecycleBreadcrumbs = enableNativeBreadcrumbs; + androidOptions.enableSystemEventBreadcrumbs = enableNativeBreadcrumbs; + androidOptions.enableAppComponentBreadcrumbs = enableNativeBreadcrumbs; + androidOptions.enableUserInteractionBreadcrumbs = enableNativeBreadcrumbs; - androidOptions.setMaxBreadcrumbs(options.maxBreadcrumbs); - androidOptions.setMaxCacheItems(options.maxCacheItems); + androidOptions.maxBreadcrumbs = options.maxBreadcrumbs; + androidOptions.maxCacheItems = options.maxCacheItems; if (options.debug) { final levelName = options.diagnosticLevel.name.toUpperCase().toJString() ..releasedBy(arena); final androidLevel = native.SentryLevel.valueOf(levelName) ?..releasedBy(arena); if (androidLevel != null) { - androidOptions.setDiagnosticLevel(androidLevel); + androidOptions.diagnosticLevel = androidLevel; } } - androidOptions.setSendDefaultPii(options.sendDefaultPii); - androidOptions.setEnableScopeSync(options.enableNdkScopeSync); + androidOptions.sendDefaultPii = options.sendDefaultPii; + androidOptions.enableScopeSync = options.enableNdkScopeSync; // When trace sync is enabled, Dart is the source of truth for propagation // context and pushes it to native via setTrace. Disable native auto // generation so it doesn't overwrite the Dart-provided trace ID. if (options.enableNativeTraceSync) { - androidOptions.setEnableAutoTraceIdGeneration(false); + androidOptions.enableAutoTraceIdGeneration = false; } - androidOptions - .setProguardUuid(options.proguardUuid?.toJString()?..releasedBy(arena)); - androidOptions.setEnableSpotlight(options.spotlight.enabled); - androidOptions.setSpotlightConnectionUrl( - options.spotlight.url?.toJString()?..releasedBy(arena)); + androidOptions.proguardUuid = options.proguardUuid?.toJString() + ?..releasedBy(arena); + androidOptions.enableSpotlight = options.spotlight.enabled; + androidOptions.spotlightConnectionUrl = options.spotlight.url?.toJString() + ?..releasedBy(arena); if (!options.enableNativeCrashHandling) { - androidOptions.setEnableUncaughtExceptionHandler(false); - androidOptions.setAnrEnabled(false); + androidOptions.enableUncaughtExceptionHandler = false; + androidOptions.anrEnabled = false; } - androidOptions.setSendClientReports(options.sendClientReports); - androidOptions.setMaxAttachmentSize(options.maxAttachmentSize); - androidOptions - .setConnectionTimeoutMillis(options.connectionTimeout.inMilliseconds); - androidOptions.setReadTimeoutMillis(options.readTimeout.inMilliseconds); + androidOptions.sendClientReports = options.sendClientReports; + androidOptions.maxAttachmentSize = options.maxAttachmentSize; + androidOptions.connectionTimeoutMillis = + options.connectionTimeout.inMilliseconds; + androidOptions.readTimeoutMillis = options.readTimeout.inMilliseconds; final sentryProxy = native.SentryOptions$Proxy()..releasedBy(arena); - sentryProxy.setHost(options.proxy?.host?.toJString()?..releasedBy(arena)); - sentryProxy.setPort( - options.proxy?.port?.toString().toJString()?..releasedBy(arena)); - sentryProxy.setUser(options.proxy?.user?.toJString()?..releasedBy(arena)); - sentryProxy.setPass(options.proxy?.pass?.toJString()?..releasedBy(arena)); + sentryProxy.host = options.proxy?.host?.toJString()?..releasedBy(arena); + sentryProxy.port = options.proxy?.port?.toString().toJString() + ?..releasedBy(arena); + sentryProxy.user = options.proxy?.user?.toJString()?..releasedBy(arena); + sentryProxy.pass = options.proxy?.pass?.toJString()?..releasedBy(arena); final type = options.proxy?.type.name.toUpperCase().toJString() ?..releasedBy(arena); if (type != null) { - sentryProxy.setType(native.Proxy$Type.valueOf(type)?..releasedBy(arena)); + sentryProxy.type$1 = native.Proxy$Type.valueOf(type)?..releasedBy(arena); } - androidOptions.setProxy(sentryProxy); + androidOptions.proxy = sentryProxy; - native.SdkVersion? sdkVersion = androidOptions.getSdkVersion() + native.SdkVersion? sdkVersion = androidOptions.sdkVersion ?..releasedBy(arena); if (sdkVersion == null) { sdkVersion = native.SdkVersion( @@ -284,13 +291,12 @@ void configureAndroidOptions({ native.BuildConfig.VERSION_NAME!..releasedBy(arena), )..releasedBy(arena); } else { - sdkVersion.setName(androidSdkName.toJString()..releasedBy(arena)); + sdkVersion.name = androidSdkName.toJString()..releasedBy(arena); } - androidOptions.setSentryClientName( + androidOptions.sentryClientName = '$androidSdkName/${native.BuildConfig.VERSION_NAME}'.toJString() - ..releasedBy(arena)); - androidOptions - .setNativeSdkName(nativeSdkName.toJString()..releasedBy(arena)); + ..releasedBy(arena); + androidOptions.nativeSdkName = nativeSdkName.toJString()..releasedBy(arena); for (final integration in options.sdk.integrations) { sdkVersion.addIntegration(integration.toJString()..releasedBy(arena)); } @@ -302,35 +308,35 @@ void configureAndroidOptions({ } beforeSend.use((cb) { - androidOptions.setBeforeSend(cb); + androidOptions.beforeSend = cb; }); - final sessionReplay = androidOptions.getSessionReplay()..releasedBy(arena); + final sessionReplay = androidOptions.sessionReplay..releasedBy(arena); switch (options.replay.quality) { case SentryReplayQuality.low: - sessionReplay.setQuality( - native.SentryReplayOptions$SentryReplayQuality.LOW - ..releasedBy(arena)); + sessionReplay.quality = native + .SentryReplayOptions$SentryReplayQuality.LOW + ..releasedBy(arena); break; case SentryReplayQuality.high: - sessionReplay.setQuality( - native.SentryReplayOptions$SentryReplayQuality.HIGH - ..releasedBy(arena)); + sessionReplay.quality = native + .SentryReplayOptions$SentryReplayQuality.HIGH + ..releasedBy(arena); break; default: - sessionReplay.setQuality( - native.SentryReplayOptions$SentryReplayQuality.MEDIUM - ..releasedBy(arena)); + sessionReplay.quality = native + .SentryReplayOptions$SentryReplayQuality.MEDIUM + ..releasedBy(arena); } - sessionReplay.setSessionSampleRate( - options.replay.sessionSampleRate?.toJDouble()?..releasedBy(arena)); - sessionReplay.setOnErrorSampleRate( - options.replay.onErrorSampleRate?.toJDouble()?..releasedBy(arena)); + sessionReplay.sessionSampleRate = + options.replay.sessionSampleRate?.toJDouble()?..releasedBy(arena); + sessionReplay.onErrorSampleRate = + options.replay.onErrorSampleRate?.toJDouble()?..releasedBy(arena); - sessionReplay.setTrackConfiguration(false); + sessionReplay.trackConfiguration = false; beforeSendReplay.use((cb) { - androidOptions.setBeforeSendReplay(cb); + androidOptions.beforeSendReplay = cb; }); - sessionReplay.setSdkVersion(sdkVersion); + sessionReplay.sdkVersion = sdkVersion; }); } diff --git a/packages/flutter/pubspec.yaml b/packages/flutter/pubspec.yaml index 835cec3131..fc68a06797 100644 --- a/packages/flutter/pubspec.yaml +++ b/packages/flutter/pubspec.yaml @@ -29,7 +29,7 @@ dependencies: ffi: ^2.0.0 collection: ^1.16.0 web: ^1.1.0 - jni: 0.14.2 + jni: 1.0.0 dev_dependencies: build_runner: ^2.4.2 @@ -46,7 +46,7 @@ dev_dependencies: git: url: https://github.com/getsentry/ffigen ref: 6aa2c2642f507eab3df83373189170797a9fa5e7 - jnigen: 0.14.2 + jnigen: 0.16.0 platform: any flutter: diff --git a/packages/flutter/tool/generate_jni.dart b/packages/flutter/tool/generate_jni.dart new file mode 100644 index 0000000000..27b294def0 --- /dev/null +++ b/packages/flutter/tool/generate_jni.dart @@ -0,0 +1,61 @@ +// Generates JNI bindings using jnigen with a custom visitor that excludes +// methods causing getter/setter nullability mismatches (jnigen 0.16.0 bug). +// +// Usage: dart run tool/generate_jni.dart --config ffi-jni.yaml +import 'package:jnigen/jnigen.dart'; +import 'package:jnigen/src/elements/j_elements.dart' as j; +import 'package:jnigen/src/logging/logging.dart'; + +/// Excludes specific Java getter methods whose generated Dart getter returns +/// a nullable type while the corresponding setter accepts non-nullable. +/// This mismatch is a compile error in Dart. +class _NullabilityFixVisitor extends j.Visitor { + // Java getter method names to exclude, keyed by class binary name. + static const _excludes = { + 'io.sentry.android.core.SentryAndroidOptions': { + 'getBeforeScreenshotCaptureCallback', + 'setBeforeScreenshotCaptureCallback', + 'getBeforeViewHierarchyCaptureCallback', + 'setBeforeViewHierarchyCaptureCallback', + }, + 'io.sentry.SentryOptions': { + 'getGestureTargetLocators', + 'setGestureTargetLocators', + }, + 'io.sentry.SentryEvent': { + 'getTimestamp', + 'setTimestamp', + }, + }; + + String? _currentClass; + + @override + void visitClass(j.ClassDecl c) { + _currentClass = c.binaryName; + } + + @override + void visitMethod(j.Method method) { + final classExcludes = _excludes[_currentClass]; + if (classExcludes != null && classExcludes.contains(method.originalName)) { + method.isExcluded = true; + } + } +} + +void main(List args) async { + enableLoggingToFile(); + Config config; + try { + config = Config.parseArgs(args); + } on ConfigException catch (e) { + log.fatal(e); + } on FormatException catch (e) { + log.fatal(e); + } + + config.visitors = [_NullabilityFixVisitor()]; + + await generateJniBindings(config); +} From 6dd2af483891018866131b997ffaf725a5926632 Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Sat, 11 Apr 2026 16:49:52 +0200 Subject: [PATCH 2/6] fix(flutter): Avoid JNI key round-trip in replay mask filter Keep the original JString key reference for removal instead of converting to Dart string and back. Release non-matching keys immediately to avoid accumulating JNI references. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../lib/src/native/java/sentry_native_java_init.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/flutter/lib/src/native/java/sentry_native_java_init.dart b/packages/flutter/lib/src/native/java/sentry_native_java_init.dart index 2961cf32a1..71b77c280a 100644 --- a/packages/flutter/lib/src/native/java/sentry_native_java_init.dart +++ b/packages/flutter/lib/src/native/java/sentry_native_java_init.dart @@ -120,11 +120,11 @@ native.SentryOptions$BeforeSendReplayCallback createBeforeSendReplayCallback( final iterator = keys.iterator()!..releasedBy(arena); while (iterator.hasNext()) { final key = iterator.next(); - if (key != null) { - final keyStr = key.toDartString(releaseOriginal: true); - if (keyStr.contains('mask')) { - keysToRemove.add(keyStr.toJString()); - } + if (key == null) continue; + if (key.toDartString().contains('mask')) { + keysToRemove.add(key); + } else { + key.release(); } } } From cf52ddfc466c4286f927be9d7370200d9408512f Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Thu, 16 Apr 2026 12:55:29 +0200 Subject: [PATCH 3/6] build(flutter): Regenerate JNI bindings after merge Regenerate binding.dart to incorporate new methods from the updated Android SDK on main (isStrictTraceContinuation, orgId, projectId). Co-Authored-By: Claude Opus 4.6 (1M context) --- .../flutter/lib/src/native/java/binding.dart | 121 ++++++++++++++++++ 1 file changed, 121 insertions(+) diff --git a/packages/flutter/lib/src/native/java/binding.dart b/packages/flutter/lib/src/native/java/binding.dart index 7d957c65e7..f8988bcad2 100644 --- a/packages/flutter/lib/src/native/java/binding.dart +++ b/packages/flutter/lib/src/native/java/binding.dart @@ -14803,6 +14803,127 @@ extension SentryOptions$$Methods on SentryOptions { .check(); } + static final _id_get$isStrictTraceContinuation = + SentryOptions._class.instanceMethodId( + r'isStrictTraceContinuation', + r'()Z', + ); + + static final _get$isStrictTraceContinuation = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public boolean isStrictTraceContinuation()` + core$_.bool get isStrictTraceContinuation { + return _get$isStrictTraceContinuation( + reference.pointer, _id_get$isStrictTraceContinuation.pointer) + .boolean; + } + + static final _id_set$strictTraceContinuation = + SentryOptions._class.instanceMethodId( + r'setStrictTraceContinuation', + r'(Z)V', + ); + + static final _set$strictTraceContinuation = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); + + /// from: `public void setStrictTraceContinuation(boolean z)` + set strictTraceContinuation(core$_.bool z) { + _set$strictTraceContinuation(reference.pointer, + _id_set$strictTraceContinuation.pointer, z ? 1 : 0) + .check(); + } + + static final _id_get$orgId = SentryOptions._class.instanceMethodId( + r'getOrgId', + r'()Ljava/lang/String;', + ); + + static final _get$orgId = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public java.lang.String getOrgId()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JString? get orgId { + return _get$orgId(reference.pointer, _id_get$orgId.pointer) + .object(); + } + + static final _id_set$orgId = SentryOptions._class.instanceMethodId( + r'setOrgId', + r'(Ljava/lang/String;)V', + ); + + static final _set$orgId = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public void setOrgId(java.lang.String string)` + set orgId(jni$_.JString? string) { + final _$string = string?.reference ?? jni$_.jNullReference; + _set$orgId(reference.pointer, _id_set$orgId.pointer, _$string.pointer) + .check(); + } + + static final _id_get$effectiveOrgId = SentryOptions._class.instanceMethodId( + r'getEffectiveOrgId', + r'()Ljava/lang/String;', + ); + + static final _get$effectiveOrgId = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public java.lang.String getEffectiveOrgId()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JString? get effectiveOrgId { + return _get$effectiveOrgId( + reference.pointer, _id_get$effectiveOrgId.pointer) + .object(); + } + static final _id_get$proguardUuid = SentryOptions._class.instanceMethodId( r'getProguardUuid', r'()Ljava/lang/String;', From b5aea68c3043676bb09e10fe3b408d76669d433f Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Thu, 16 Apr 2026 12:58:36 +0200 Subject: [PATCH 4/6] build(flutter): Use generate_jni.dart in binding script Use the custom generate_jni.dart tool instead of running jnigen directly. The tool applies a visitor that excludes methods with getter/setter nullability mismatches (jnigen 0.16.0 bug). Co-Authored-By: Claude Opus 4.6 (1M context) --- packages/flutter/scripts/generate-jni-bindings.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/flutter/scripts/generate-jni-bindings.sh b/packages/flutter/scripts/generate-jni-bindings.sh index 925c296370..c5e69893df 100755 --- a/packages/flutter/scripts/generate-jni-bindings.sh +++ b/packages/flutter/scripts/generate-jni-bindings.sh @@ -14,14 +14,10 @@ fi # Move to the Flutter package root (…/flutter). cd "$(dirname "$0")/../" -binding_path="lib/src/native/java/binding.dart" - cd example flutter build apk cd - -# Regenerate the bindings. -dart run jnigen --config ffi-jni.yaml - -# Format the generated code so that it passes CI linters. -dart format "$binding_path" +# Regenerate the bindings (uses custom visitor to exclude methods with +# getter/setter nullability mismatches). +dart run tool/generate_jni.dart --config ffi-jni.yaml From c8cc5654d07ce3c86b1a7e5557d425860cf70d33 Mon Sep 17 00:00:00 2001 From: buenaflor <23364143+buenaflor@users.noreply.github.com> Date: Wed, 22 Apr 2026 14:11:49 +0000 Subject: [PATCH 5/6] release: 9.19.0 --- CHANGELOG.md | 30 ++++++++++++++++++++ docs/sdk-versions.md | 1 + packages/dart/lib/src/version.dart | 2 +- packages/dart/pubspec.yaml | 2 +- packages/dio/lib/src/version.dart | 2 +- packages/dio/pubspec.yaml | 4 +-- packages/drift/lib/src/version.dart | 2 +- packages/drift/pubspec.yaml | 4 +-- packages/file/lib/src/version.dart | 2 +- packages/file/pubspec.yaml | 4 +-- packages/firebase_remote_config/pubspec.yaml | 4 +-- packages/flutter/example/pubspec.yaml | 2 +- packages/flutter/lib/src/version.dart | 2 +- packages/flutter/pubspec.yaml | 4 +-- packages/hive/lib/src/version.dart | 2 +- packages/hive/pubspec.yaml | 4 +-- packages/isar/lib/src/version.dart | 2 +- packages/isar/pubspec.yaml | 4 +-- packages/link/pubspec.yaml | 4 +-- packages/logging/lib/src/version.dart | 2 +- packages/logging/pubspec.yaml | 4 +-- packages/sqflite/lib/src/version.dart | 2 +- packages/sqflite/pubspec.yaml | 4 +-- packages/supabase/pubspec.yaml | 4 +-- 24 files changed, 64 insertions(+), 33 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b87a4a61d..ea378ac7f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,35 @@ # Changelog +## 9.19.0 + +### Features + +- Span-first trace lifecycle (experimental) by @buenaflor in [#3659](https://github.com/getsentry/sentry-dart/pull/3659) + +### Fixes + +- (feedback) Show success message after feedback submission by @denrase in [#3609](https://github.com/getsentry/sentry-dart/pull/3609) + +### Enhancements + +- (navigator-observer) Make new trace id on navigation opt-in instead of opt-out by @buenaflor in [#3657](https://github.com/getsentry/sentry-dart/pull/3657) + +### Dependencies + +- chore(deps): update Android SDK to v8.39.1 by @github-actions in [#3646](https://github.com/getsentry/sentry-dart/pull/3646) + +### Internal Changes + +#### Deps + +- Bump actions/create-github-app-token from 3.0.0 to 3.1.1 by @dependabot in [#3652](https://github.com/getsentry/sentry-dart/pull/3652) +- Bump getsentry/craft/.github/workflows/changelog-preview.yml from 2.25.2 to 2.25.4 by @dependabot in [#3655](https://github.com/getsentry/sentry-dart/pull/3655) +- Bump actions/cache from 5.0.4 to 5.0.5 by @dependabot in [#3656](https://github.com/getsentry/sentry-dart/pull/3656) + +#### Other + +- Integrate Warden for AI-powered PR code review by @buenaflor in [#3651](https://github.com/getsentry/sentry-dart/pull/3651) + ## 9.18.0 ### Dependencies diff --git a/docs/sdk-versions.md b/docs/sdk-versions.md index b2bd579f8e..5b43242257 100644 --- a/docs/sdk-versions.md +++ b/docs/sdk-versions.md @@ -6,6 +6,7 @@ This document shows which version of the various Sentry SDKs are used in which S | Sentry Flutter SDK | Sentry Android SDK | Sentry Cocoa SDK | Sentry JavaScript SDK | Sentry Native SDK | | ------------------ | ------------------ | ---------------- | --------------------- | ----------------- | +| 9.19.0 | 8.39.1 | 8.58.1 | 10.38.0 | 0.13.7 | | 9.18.0 | 8.38.0 | 8.58.1 | 10.38.0 | 0.13.7 | | 9.17.0 | 8.38.0 | 8.58.1 | 10.38.0 | 0.13.6 | | 9.16.1 | 8.37.1 | 8.58.0 | 10.38.0 | 0.13.3 | diff --git a/packages/dart/lib/src/version.dart b/packages/dart/lib/src/version.dart index 2d489f2d6f..f8ef7f1e52 100644 --- a/packages/dart/lib/src/version.dart +++ b/packages/dart/lib/src/version.dart @@ -9,7 +9,7 @@ library; /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '9.18.0'; +const String sdkVersion = '9.19.0'; String sdkName(bool isWeb) => isWeb ? _browserSdkName : _ioSdkName; diff --git a/packages/dart/pubspec.yaml b/packages/dart/pubspec.yaml index e17c9f2332..0864f19f03 100644 --- a/packages/dart/pubspec.yaml +++ b/packages/dart/pubspec.yaml @@ -1,5 +1,5 @@ name: sentry -version: 9.18.0 +version: 9.19.0 description: > A crash reporting library for Dart that sends crash reports to Sentry.io. This library supports Dart VM and Web. For Flutter consider sentry_flutter instead. diff --git a/packages/dio/lib/src/version.dart b/packages/dio/lib/src/version.dart index ba046edcad..7b0662fd7f 100644 --- a/packages/dio/lib/src/version.dart +++ b/packages/dio/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '9.18.0'; +const String sdkVersion = '9.19.0'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_dio'; diff --git a/packages/dio/pubspec.yaml b/packages/dio/pubspec.yaml index f86e82559d..450600efea 100644 --- a/packages/dio/pubspec.yaml +++ b/packages/dio/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_dio description: An integration which adds support for performance tracing for the Dio package. -version: 9.18.0 +version: 9.19.0 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -19,7 +19,7 @@ platforms: dependencies: dio: ^5.2.0 - sentry: 9.18.0 + sentry: 9.19.0 dev_dependencies: _sentry_testing: diff --git a/packages/drift/lib/src/version.dart b/packages/drift/lib/src/version.dart index ca3cbc8173..379c26045c 100644 --- a/packages/drift/lib/src/version.dart +++ b/packages/drift/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '9.18.0'; +const String sdkVersion = '9.19.0'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_drift'; diff --git a/packages/drift/pubspec.yaml b/packages/drift/pubspec.yaml index a651ab3af4..84bd64e52f 100644 --- a/packages/drift/pubspec.yaml +++ b/packages/drift/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_drift description: An integration which adds support for performance tracing for the drift package. -version: 9.18.0 +version: 9.19.0 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -17,7 +17,7 @@ platforms: web: dependencies: - sentry: 9.18.0 + sentry: 9.19.0 meta: ^1.3.0 drift: ^2.24.0 diff --git a/packages/file/lib/src/version.dart b/packages/file/lib/src/version.dart index 20944a1505..5778fb97d5 100644 --- a/packages/file/lib/src/version.dart +++ b/packages/file/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '9.18.0'; +const String sdkVersion = '9.19.0'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_file'; diff --git a/packages/file/pubspec.yaml b/packages/file/pubspec.yaml index ec462b9099..6f04828d37 100644 --- a/packages/file/pubspec.yaml +++ b/packages/file/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_file description: An integration which adds support for performance tracing for dart.io.File. -version: 9.18.0 +version: 9.19.0 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -17,7 +17,7 @@ platforms: windows: dependencies: - sentry: 9.18.0 + sentry: 9.19.0 meta: ^1.3.0 dev_dependencies: diff --git a/packages/firebase_remote_config/pubspec.yaml b/packages/firebase_remote_config/pubspec.yaml index 18e1808a49..c14145425c 100644 --- a/packages/firebase_remote_config/pubspec.yaml +++ b/packages/firebase_remote_config/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_firebase_remote_config description: "Sentry integration to use feature flags from Firebase Remote Config." -version: 9.18.0 +version: 9.19.0 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -21,7 +21,7 @@ dependencies: flutter: sdk: flutter firebase_remote_config: '>=5.4.3 <7.0.0' - sentry: 9.18.0 + sentry: 9.19.0 dev_dependencies: flutter_test: diff --git a/packages/flutter/example/pubspec.yaml b/packages/flutter/example/pubspec.yaml index 241790fb73..a135825ae7 100644 --- a/packages/flutter/example/pubspec.yaml +++ b/packages/flutter/example/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_flutter_example description: Demonstrates how to use the sentry_flutter plugin. -version: 9.18.0 +version: 9.19.0 publish_to: 'none' # Remove this line if you wish to publish to pub.dev diff --git a/packages/flutter/lib/src/version.dart b/packages/flutter/lib/src/version.dart index 1f324881d7..6f97638607 100644 --- a/packages/flutter/lib/src/version.dart +++ b/packages/flutter/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '9.18.0'; +const String sdkVersion = '9.19.0'; /// The default SDK name reported to Sentry.io in the submitted events. const String sdkName = 'sentry.dart.flutter'; diff --git a/packages/flutter/pubspec.yaml b/packages/flutter/pubspec.yaml index a4126ad9ea..de13192bd1 100644 --- a/packages/flutter/pubspec.yaml +++ b/packages/flutter/pubspec.yaml @@ -1,5 +1,5 @@ name: sentry_flutter -version: 9.18.0 +version: 9.19.0 description: Sentry SDK for Flutter. This package aims to support different Flutter targets by relying on the many platforms supported by Sentry with native SDKs. homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart @@ -23,7 +23,7 @@ dependencies: sdk: flutter flutter_web_plugins: sdk: flutter - sentry: 9.18.0 + sentry: 9.19.0 package_info_plus: '>=1.0.0' meta: ^1.3.0 ffi: ^2.0.0 diff --git a/packages/hive/lib/src/version.dart b/packages/hive/lib/src/version.dart index 4345605a94..ecf42f0c3f 100644 --- a/packages/hive/lib/src/version.dart +++ b/packages/hive/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '9.18.0'; +const String sdkVersion = '9.19.0'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_hive'; diff --git a/packages/hive/pubspec.yaml b/packages/hive/pubspec.yaml index 03763f4148..82e8d32aa1 100644 --- a/packages/hive/pubspec.yaml +++ b/packages/hive/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_hive description: An integration which adds support for performance tracing for the hive package. -version: 9.18.0 +version: 9.19.0 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -17,7 +17,7 @@ platforms: web: dependencies: - sentry: 9.18.0 + sentry: 9.19.0 hive: ^2.2.3 meta: ^1.3.0 diff --git a/packages/isar/lib/src/version.dart b/packages/isar/lib/src/version.dart index 751607cb18..47bc61989d 100644 --- a/packages/isar/lib/src/version.dart +++ b/packages/isar/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '9.18.0'; +const String sdkVersion = '9.19.0'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_isar'; diff --git a/packages/isar/pubspec.yaml b/packages/isar/pubspec.yaml index b266add22c..64d04230d8 100644 --- a/packages/isar/pubspec.yaml +++ b/packages/isar/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_isar description: An integration which adds support for performance tracing for the isar package. -version: 9.18.0 +version: 9.19.0 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -20,7 +20,7 @@ platforms: dependencies: isar: ^3.1.0 isar_flutter_libs: ^3.1.0 # contains Isar Core - sentry: 9.18.0 + sentry: 9.19.0 meta: ^1.3.0 path: ^1.8.3 diff --git a/packages/link/pubspec.yaml b/packages/link/pubspec.yaml index 8a29348a61..b4168797a3 100644 --- a/packages/link/pubspec.yaml +++ b/packages/link/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_link description: Automatic capture of exceptions and GraphQL errors for the gql eco-system, like graphql and ferry -version: 9.18.0 +version: 9.19.0 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -13,7 +13,7 @@ dependencies: gql_exec: ">=0.4.4 <2.0.0" gql_link: ">=0.5.0 <2.0.0" gql: ">=0.14.0 <2.0.0" - sentry: 9.18.0 + sentry: 9.19.0 dev_dependencies: _sentry_testing: diff --git a/packages/logging/lib/src/version.dart b/packages/logging/lib/src/version.dart index 8f24c1b84d..11453c2c89 100644 --- a/packages/logging/lib/src/version.dart +++ b/packages/logging/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '9.18.0'; +const String sdkVersion = '9.19.0'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_logging'; diff --git a/packages/logging/pubspec.yaml b/packages/logging/pubspec.yaml index 8a64551be9..662ea4b8f2 100644 --- a/packages/logging/pubspec.yaml +++ b/packages/logging/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_logging description: An integration which adds support for recording log from the logging package. -version: 9.18.0 +version: 9.19.0 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -19,7 +19,7 @@ platforms: dependencies: logging: ^1.0.0 - sentry: 9.18.0 + sentry: 9.19.0 meta: ^1.3.0 dev_dependencies: diff --git a/packages/sqflite/lib/src/version.dart b/packages/sqflite/lib/src/version.dart index 306efa9183..e0a3962ff0 100644 --- a/packages/sqflite/lib/src/version.dart +++ b/packages/sqflite/lib/src/version.dart @@ -1,5 +1,5 @@ /// The SDK version reported to Sentry.io in the submitted events. -const String sdkVersion = '9.18.0'; +const String sdkVersion = '9.19.0'; /// The package name reported to Sentry.io in the submitted events. const String packageName = 'pub:sentry_sqflite'; diff --git a/packages/sqflite/pubspec.yaml b/packages/sqflite/pubspec.yaml index 0f11d93990..21436b9feb 100644 --- a/packages/sqflite/pubspec.yaml +++ b/packages/sqflite/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_sqflite description: An integration which adds support for performance tracing for the sqflite package. -version: 9.18.0 +version: 9.19.0 homepage: https://docs.sentry.io/platforms/flutter/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -15,7 +15,7 @@ platforms: macos: dependencies: - sentry: 9.18.0 + sentry: 9.19.0 sqflite: ^2.2.8 sqflite_common: ^2.0.0 meta: ^1.3.0 diff --git a/packages/supabase/pubspec.yaml b/packages/supabase/pubspec.yaml index d7d7078b46..743c71333b 100644 --- a/packages/supabase/pubspec.yaml +++ b/packages/supabase/pubspec.yaml @@ -1,6 +1,6 @@ name: sentry_supabase description: "Sentry integration for Supabase. Adds performance tracing, breadcrumbs, and error capturing for Supabase database operations in Dart apps." -version: 9.18.0 +version: 9.19.0 homepage: https://docs.sentry.io/platforms/dart/ repository: https://github.com/getsentry/sentry-dart issue_tracker: https://github.com/getsentry/sentry-dart/issues @@ -11,7 +11,7 @@ environment: dependencies: http: ^1.3.0 meta: ^1.3.0 - sentry: 9.18.0 + sentry: 9.19.0 dev_dependencies: _sentry_testing: From de0ff33482a903b6ffc209d097063b3991ff1de9 Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Wed, 22 Apr 2026 17:59:32 +0200 Subject: [PATCH 6/6] docs(changelog): Expand 9.19.0 entries with usage examples (#3662) Flesh out the span-first trace lifecycle and navigator-observer changelog entries with sub-bullets describing the behavior and dart snippets showing how to opt in / restore the old default. Matches the style used in the 9.0.0 and 9.14.0 release notes. Made-with: Cursor Co-authored-by: Cursor Agent --- CHANGELOG.md | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea378ac7f6..42682f4b00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,36 @@ ### Features - Span-first trace lifecycle (experimental) by @buenaflor in [#3659](https://github.com/getsentry/sentry-dart/pull/3659) + - Streams spans to Sentry as each one finishes instead of buffering them into a transaction envelope at the root. + - Opt in via `options.traceLifecycle`. The classic transaction-based `SentryTraceLifecycle.static` remains the default. + - In stream mode, create spans with the new `Sentry.startSpan` / `Sentry.startSpanSync` APIs — the transaction APIs (`Sentry.startTransaction`, `ISentrySpan.startChild`) do nothing in this mode. + - Auto-instrumentations (frames, app start, TTID/TTFD, navigation, user interaction, HTTP, databases, GraphQL link) automatically switch to the streaming API when enabled. + +```dart +// Opt in during SDK init. +await SentryFlutter.init((options) { + options.dsn = 'https://example@sentry.io/add-your-dsn-here'; + options.tracesSampleRate = 1.0; + options.traceLifecycle = SentryTraceLifecycle.stream; +}); + +// Async work — the span ends and is sent when the future completes. +final order = await Sentry.startSpan('checkout', (span) async { + span.setAttribute('cart.item_count', SentryAttribute.int(cart.items.length)); + + // Automatically parents to 'checkout' via zones. + final payment = await Sentry.startSpan('process-payment', (span) { + return paymentService.charge(cart.total); + }); + + return orderService.create(cart, payment: payment); +}); + +// Sync variant. +final total = Sentry.startSpanSync('calculate-total', (span) { + return cart.items.fold(0, (sum, item) => sum + item.price); +}); +``` ### Fixes @@ -12,7 +42,15 @@ ### Enhancements -- (navigator-observer) Make new trace id on navigation opt-in instead of opt-out by @buenaflor in [#3657](https://github.com/getsentry/sentry-dart/pull/3657) +- (navigator-observer) `enableNewTraceOnNavigation` is now opt-in by @buenaflor in [#3657](https://github.com/getsentry/sentry-dart/pull/3657) + - `SentryNavigatorObserver` no longer generates a fresh trace id on every push/pop/replace by default. One trace per session (the previous opt-in behavior) is now the default and preserves trace continuity across navigations. + - If you relied on the old behavior, opt back in explicitly: + +```dart +SentryNavigatorObserver( + enableNewTraceOnNavigation: true, +); +``` ### Dependencies