diff --git a/CHANGELOG.md b/CHANGELOG.md index 42682f4b00..101a88f449 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,37 @@ # Changelog +## 9.20.0 + +### Features + +- (span-first) Add transaction and app start type span attributes by @buenaflor in [#3678](https://github.com/getsentry/sentry-dart/pull/3678) +- Prevent cross-organization trace continuation by @antonis in [#3567](https://github.com/getsentry/sentry-dart/pull/3567) + - By default, the SDK now extracts the organization ID from the DSN (e.g. `o123.ingest.sentry.io`) and compares it with the `sentry-org_id` value in incoming baggage headers. When the two differ, the SDK starts a fresh trace instead of continuing the foreign one. This guards against accidentally linking traces across organizations. + - New option `strictTraceContinuation` (default `false`): when enabled, both the SDK's org ID **and** the incoming baggage org ID must be present and match for a trace to be continued. Traces with a missing org ID on either side are rejected. + - New option `orgId`: allows explicitly setting the organization ID for self-hosted and Relay setups where it cannot be extracted from the DSN. + - Options are also applied to the native Android SDK. On iOS, only the Dart layer enforces strict trace continuation. + +### Fixes + +#### Flutter + +- Avoid JNI callbacks for Android scope sync by @denrase in [#3676](https://github.com/getsentry/sentry-dart/pull/3676) +- Send frame delay in seconds by @buenaflor in [#3677](https://github.com/getsentry/sentry-dart/pull/3677) + +### Dependencies + +#### Deps + +- chore(deps): update Android SDK to v8.41.0 by @github-actions in [#3687](https://github.com/getsentry/sentry-dart/pull/3687) +- chore(deps): update Cocoa SDK to v8.58.2 by @github-actions in [#3664](https://github.com/getsentry/sentry-dart/pull/3664) +- chore(deps): update Native SDK to v0.13.8 by @github-actions in [#3667](https://github.com/getsentry/sentry-dart/pull/3667) + +### Internal Changes + +- Remove collection runtime dependency by @buenaflor in [#3680](https://github.com/getsentry/sentry-dart/pull/3680) +- Notify linked issues on release by @buenaflor in [#3685](https://github.com/getsentry/sentry-dart/pull/3685) +- Enforce conventional commit format for PR titles by @buenaflor in [#3666](https://github.com/getsentry/sentry-dart/pull/3666) + ## 9.19.0 ### Features diff --git a/docs/sdk-versions.md b/docs/sdk-versions.md index 5b43242257..ca89a0e9a1 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.20.0 | 8.41.0 | 8.58.2 | 10.38.0 | 0.13.8 | | 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 | diff --git a/packages/dart/lib/src/version.dart b/packages/dart/lib/src/version.dart index f8ef7f1e52..96fa932ecc 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.19.0'; +const String sdkVersion = '9.20.0'; String sdkName(bool isWeb) => isWeb ? _browserSdkName : _ioSdkName; diff --git a/packages/dart/pubspec.yaml b/packages/dart/pubspec.yaml index 48dd3f9bca..b02c1f6f61 100644 --- a/packages/dart/pubspec.yaml +++ b/packages/dart/pubspec.yaml @@ -1,5 +1,5 @@ name: sentry -version: 9.19.0 +version: 9.20.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 7b0662fd7f..ebb91622be 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.19.0'; +const String sdkVersion = '9.20.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 450600efea..b45c303b45 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.19.0 +version: 9.20.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.19.0 + sentry: 9.20.0 dev_dependencies: _sentry_testing: diff --git a/packages/drift/lib/src/version.dart b/packages/drift/lib/src/version.dart index 379c26045c..a869f66db9 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.19.0'; +const String sdkVersion = '9.20.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 84bd64e52f..51b1e8c4c5 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.19.0 +version: 9.20.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.19.0 + sentry: 9.20.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 5778fb97d5..c4094efd87 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.19.0'; +const String sdkVersion = '9.20.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 6f04828d37..e3334a9388 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.19.0 +version: 9.20.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.19.0 + sentry: 9.20.0 meta: ^1.3.0 dev_dependencies: diff --git a/packages/firebase_remote_config/pubspec.yaml b/packages/firebase_remote_config/pubspec.yaml index c14145425c..bff2d992df 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.19.0 +version: 9.20.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.19.0 + sentry: 9.20.0 dev_dependencies: flutter_test: 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/example/pubspec.yaml b/packages/flutter/example/pubspec.yaml index a135825ae7..9b9847d92a 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.19.0 +version: 9.20.0 publish_to: 'none' # Remove this line if you wish to publish to pub.dev 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 295842db8f..51570d9800 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); + return _fromSize(reference.pointer, _id_fromSize.pointer, _$context.pointer, + _$sentryReplayOptions.pointer, i, i1) + .object(); } } -final class $ScreenshotRecorderConfig$Companion$NullableType - extends jni$_.JObjType { +final class $ScreenshotRecorderConfig$Companion$Type$ + extends jni$_.JType { @jni$_.internal - const $ScreenshotRecorderConfig$Companion$NullableType(); + 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) => - 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; - } -} - -final class $ScreenshotRecorderConfig$Companion$Type - extends jni$_.JObjType { - @jni$_.internal - 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; - } - - 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); + core$_.int get bitRate { + return _get$bitRate(reference.pointer, _id_get$bitRate.pointer).integer; } - 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_setupBeforeSend = _class.instanceMethodId( + static final _id_setupBeforeSend = + SentryFlutterPlugin$Companion._class.instanceMethodId( r'setupBeforeSend', r'(Lio/sentry/android/core/SentryAndroidOptions;)V', ); @@ -4615,19 +3868,18 @@ class SentryFlutterPlugin$Companion extends jni$_.JObject { jni$_.JThrowablePtr Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final void setupBeforeSend(io.sentry.android.core.SentryAndroidOptions sentryAndroidOptions)` + /// from: `public fun setupBeforeSend(options: io.sentry.android.core.SentryAndroidOptions): kotlin.Unit` void setupBeforeSend( SentryAndroidOptions sentryAndroidOptions, ) { final _$sentryAndroidOptions = sentryAndroidOptions.reference; - _setupBeforeSend( - reference.pointer, - _id_setupBeforeSend as jni$_.JMethodIDPtr, + _setupBeforeSend(reference.pointer, _id_setupBeforeSend.pointer, _$sentryAndroidOptions.pointer) .check(); } - static final _id_setContext = _class.instanceMethodId( + static final _id_setContext = + SentryFlutterPlugin$Companion._class.instanceMethodId( r'setContext', r'(Ljava/lang/String;Ljava/lang/Object;)V', ); @@ -4649,19 +3901,20 @@ class SentryFlutterPlugin$Companion extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final void setContext(java.lang.String string, java.lang.Object object)` + /// from: `public fun setContext(key: kotlin.String, value: kotlin.Any?): kotlin.Unit` void setContext( jni$_.JString string, jni$_.JObject? object, ) { final _$string = string.reference; final _$object = object?.reference ?? jni$_.jNullReference; - _setContext(reference.pointer, _id_setContext as jni$_.JMethodIDPtr, - _$string.pointer, _$object.pointer) + _setContext(reference.pointer, _id_setContext.pointer, _$string.pointer, + _$object.pointer) .check(); } - static final _id_removeContext = _class.instanceMethodId( + static final _id_removeContext = + SentryFlutterPlugin$Companion._class.instanceMethodId( r'removeContext', r'(Ljava/lang/String;)V', ); @@ -4677,17 +3930,18 @@ class SentryFlutterPlugin$Companion extends jni$_.JObject { jni$_.JThrowablePtr Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final void removeContext(java.lang.String string)` + /// from: `public fun removeContext(key: kotlin.String): kotlin.Unit` void removeContext( jni$_.JString string, ) { final _$string = string.reference; - _removeContext(reference.pointer, _id_removeContext as jni$_.JMethodIDPtr, - _$string.pointer) + _removeContext( + reference.pointer, _id_removeContext.pointer, _$string.pointer) .check(); } - 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', ); @@ -4709,7 +3963,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, @@ -4717,12 +3971,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', ); @@ -4739,17 +3994,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, @@ -4761,15 +4017,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', ); @@ -4787,20 +4044,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, @@ -4812,15 +4070,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', ); @@ -4837,15 +4096,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', ); @@ -4861,142 +4121,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); - } -} - -final class $SentryFlutterPlugin$Companion$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SentryFlutterPlugin$Companion$NullableType(); - - @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; + _id_loadDebugImagesAsBytes.pointer, _$set.pointer) + .object(); } } -final class $SentryFlutterPlugin$Companion$Type - extends jni$_.JObjType { +final class $SentryFlutterPlugin$Companion$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryFlutterPlugin$Companion$Type(); + 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;', @@ -5005,7 +4160,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', @@ -5026,207 +4182,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( @@ -5251,8 +4208,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_setupBeforeSend = _class.staticMethodId( @@ -5276,9 +4233,7 @@ class SentryFlutterPlugin extends jni$_.JObject { SentryAndroidOptions sentryAndroidOptions, ) { final _$sentryAndroidOptions = sentryAndroidOptions.reference; - _setupBeforeSend( - _class.reference.pointer, - _id_setupBeforeSend as jni$_.JMethodIDPtr, + _setupBeforeSend(_class.reference.pointer, _id_setupBeforeSend.pointer, _$sentryAndroidOptions.pointer) .check(); } @@ -5312,7 +4267,7 @@ class SentryFlutterPlugin extends jni$_.JObject { ) { final _$string = string.reference; final _$object = object?.reference ?? jni$_.jNullReference; - _setContext(_class.reference.pointer, _id_setContext as jni$_.JMethodIDPtr, + _setContext(_class.reference.pointer, _id_setContext.pointer, _$string.pointer, _$object.pointer) .check(); } @@ -5338,8 +4293,8 @@ class SentryFlutterPlugin extends jni$_.JObject { jni$_.JString string, ) { final _$string = string.reference; - _removeContext(_class.reference.pointer, - _id_removeContext as jni$_.JMethodIDPtr, _$string.pointer) + _removeContext(_class.reference.pointer, _id_removeContext.pointer, + _$string.pointer) .check(); } @@ -5373,11 +4328,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(); } @@ -5400,15 +4352,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, @@ -5422,10 +4374,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( @@ -5449,17 +4401,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, @@ -5473,10 +4425,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( @@ -5499,9 +4451,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( @@ -5527,107 +4479,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', ); @@ -5642,20 +4827,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', ); @@ -5672,13 +4858,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', ); @@ -5695,13 +4881,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', ); @@ -5718,13 +4904,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', ); @@ -5741,13 +4927,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', ); @@ -5760,171 +4946,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, @@ -5934,7 +5004,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, @@ -5943,20 +5014,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); } @@ -5976,156 +5048,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, ) { @@ -6146,7 +5098,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 { @@ -6154,7 +5106,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; } @@ -6196,155 +5148,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;', @@ -6353,15 +5232,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, @@ -6375,18 +5254,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, @@ -6400,34 +5278,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( @@ -6453,8 +5331,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( @@ -6479,9 +5357,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( @@ -6507,8 +5385,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( @@ -6533,9 +5411,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( @@ -6561,16 +5439,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, @@ -6584,18 +5462,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, @@ -6608,9 +5486,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; } @@ -6633,7 +5510,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( @@ -6657,8 +5534,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(); } @@ -6687,17 +5563,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(); } @@ -6724,25 +5594,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) @@ -6770,7 +5634,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(); } @@ -6790,15 +5654,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(); } @@ -6824,7 +5688,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(); } @@ -6848,7 +5712,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( @@ -6873,9 +5737,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( @@ -6908,12 +5772,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( @@ -6946,12 +5807,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( @@ -6988,13 +5846,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( @@ -7019,9 +5873,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( @@ -7056,10 +5910,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( @@ -7094,10 +5948,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( @@ -7136,11 +5990,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( @@ -7166,8 +6020,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( @@ -7200,12 +6054,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( @@ -7244,11 +6095,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( @@ -7274,8 +6125,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( @@ -7310,10 +6161,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( @@ -7346,12 +6197,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( @@ -7390,11 +6238,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( @@ -7418,10 +6266,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(); } @@ -7454,11 +6300,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(); } @@ -7483,8 +6326,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(); } @@ -7509,8 +6352,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(); } @@ -7543,20 +6386,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, @@ -7568,21 +6408,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, @@ -7594,21 +6432,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, @@ -7620,21 +6456,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, @@ -7646,12 +6479,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(); } @@ -7674,8 +6505,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(); } @@ -7708,8 +6538,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(); } @@ -7734,8 +6564,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(); } @@ -7768,8 +6598,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(); } @@ -7794,17 +6624,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, @@ -7818,10 +6648,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( @@ -7844,9 +6674,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( @@ -7869,9 +6698,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( @@ -7893,8 +6722,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( @@ -7918,7 +6746,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(); } @@ -7944,10 +6772,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(); } @@ -7972,8 +6798,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(); } @@ -8006,11 +6832,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(); } @@ -8035,17 +6858,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, @@ -8058,9 +6881,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; } @@ -8076,14 +6898,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( @@ -8105,9 +6926,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( @@ -8129,8 +6948,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( @@ -8163,12 +6981,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( @@ -8207,11 +7022,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( @@ -8254,12 +7069,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( @@ -8284,11 +7099,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( @@ -8323,10 +7136,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( @@ -8348,9 +7161,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( @@ -8372,17 +7183,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, @@ -8396,9 +7205,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( @@ -8421,9 +7230,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( @@ -8445,8 +7254,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(); } @@ -8480,20 +7289,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, @@ -8507,18 +7313,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, @@ -8532,10 +7338,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( @@ -8560,9 +7365,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( @@ -8585,8 +7390,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( @@ -8609,8 +7414,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( @@ -8633,9 +7438,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( @@ -8658,8 +7462,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_feedback = _class.staticMethodId( @@ -8682,9 +7486,8 @@ class Sentry extends jni$_.JObject { /// from: `static public io.sentry.IFeedbackApi feedback()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JObject feedback() { - return _feedback( - _class.reference.pointer, _id_feedback as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _feedback(_class.reference.pointer, _id_feedback.pointer) + .object(); } static final _id_showUserFeedbackDialog = _class.staticMethodId( @@ -8706,8 +7509,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(); } @@ -8733,10 +7536,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(); } @@ -8772,7 +7573,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(); @@ -8807,20 +7608,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, @@ -8832,22 +7630,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, @@ -8859,13 +7655,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(); } @@ -8890,8 +7684,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(); } @@ -8924,145 +7718,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, ) { @@ -9083,7 +7768,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 { @@ -9092,11 +7777,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; @@ -9137,9 +7822,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(); } } @@ -9164,147 +7886,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, ) { @@ -9325,7 +7931,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 { @@ -9333,8 +7939,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; } @@ -9377,20 +7983,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 @@ -9401,152 +8043,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, ) { @@ -9567,7 +8095,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 { @@ -9576,11 +8104,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; @@ -9619,11 +8147,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(); } } @@ -9648,143 +8213,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, ) { @@ -9805,7 +8258,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 { @@ -9814,11 +8267,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; @@ -9859,9 +8312,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(); } } @@ -9891,148 +8381,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, ) { @@ -10053,7 +8427,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 { @@ -10062,11 +8436,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; @@ -10107,9 +8481,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(); } } @@ -10137,110 +8548,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', ); @@ -10260,17 +8586,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, @@ -10284,18 +8612,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, @@ -10307,21 +8636,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, @@ -10335,18 +8663,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, @@ -10358,21 +8687,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, @@ -10386,18 +8714,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, @@ -10409,21 +8738,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( @@ -10438,18 +8766,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( @@ -10462,23 +8791,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( @@ -10493,18 +8819,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( @@ -10517,114 +8844,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;', ); @@ -10632,14 +8905,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;', ); @@ -10647,14 +8921,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;', ); @@ -10662,14 +8937,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;', ); @@ -10677,14 +8953,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;', ); @@ -10692,14 +8969,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;', ); @@ -10707,176 +8986,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, ) { @@ -10897,7 +9040,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 { @@ -10906,10 +9049,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; @@ -10950,9 +9093,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(); } } @@ -10972,113 +9144,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', ); @@ -11098,17 +9187,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, @@ -11121,17 +9211,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, @@ -11139,23 +9228,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, @@ -11169,19 +9254,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, @@ -11193,22 +9276,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( @@ -11223,18 +9306,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( @@ -11247,155 +9331,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, ) { @@ -11416,7 +9387,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 { @@ -11425,11 +9396,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; @@ -11470,9 +9441,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(); } } @@ -11502,111 +9510,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', ); @@ -11626,17 +9549,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, @@ -11649,17 +9574,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, @@ -11667,23 +9591,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, @@ -11697,19 +9618,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, @@ -11721,22 +9641,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( @@ -11751,18 +9672,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( @@ -11775,156 +9697,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, ) { @@ -11945,7 +9754,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 { @@ -11954,9 +9763,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; } @@ -11999,9 +9808,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(); } } @@ -12010,12 +9859,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 @@ -12029,7 +9878,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) { @@ -12037,143 +9886,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, ) { @@ -12194,7 +9931,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 { @@ -12203,11 +9940,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; @@ -12248,9 +9985,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(); } } @@ -12275,109 +10049,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;', ); @@ -12399,91 +10175,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(); } } @@ -12508,105 +10202,24 @@ final class _$SentryOptions$ProfilesSamplerCallback } } -final class $SentryOptions$ProfilesSamplerCallback$NullableType - extends jni$_.JObjType { +final class $SentryOptions$ProfilesSamplerCallback$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryOptions$ProfilesSamplerCallback$NullableType(); + 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) => - 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 { - @jni$_.internal - 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', ); @@ -12626,9 +10239,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( @@ -12660,12 +10272,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( @@ -12701,13 +10310,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( @@ -12747,14 +10352,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( @@ -12798,23 +10398,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, @@ -12828,17 +10430,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, @@ -12850,21 +10452,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, @@ -12878,17 +10477,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, @@ -12900,21 +10499,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, @@ -12928,17 +10524,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, @@ -12950,21 +10546,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, @@ -12978,17 +10571,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, @@ -13000,21 +10593,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, @@ -13028,17 +10618,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, @@ -13050,111 +10640,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 { +final class $SentryOptions$Proxy$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryOptions$Proxy$NullableType(); + 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) => - 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 { - @jni$_.internal - 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;', @@ -13163,7 +10674,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', @@ -13173,7 +10685,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', @@ -13183,7 +10696,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', @@ -13193,7 +10707,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', @@ -13215,10 +10730,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( @@ -13243,141 +10756,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()); + return _valueOf( + _class.reference.pointer, _id_valueOf.pointer, _$string.pointer) + .object(); } } -final class $SentryOptions$RequestSize$NullableType - extends jni$_.JObjType { +final class $SentryOptions$RequestSize$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryOptions$RequestSize$NullableType(); + 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) => - 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; - } -} - -final class $SentryOptions$RequestSize$Type - extends jni$_.JObjType { - @jni$_.internal - 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, ) { @@ -13398,7 +10807,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 { @@ -13406,10 +10815,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; @@ -13450,9 +10859,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(); } } @@ -13477,104 +10915,22 @@ final class _$SentryOptions$TracesSamplerCallback } } -final class $SentryOptions$TracesSamplerCallback$NullableType - extends jni$_.JObjType { +final class $SentryOptions$TracesSamplerCallback$Type$ + extends jni$_.JType { @jni$_.internal - const $SentryOptions$TracesSamplerCallback$NullableType(); + 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) => - 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 { - @jni$_.internal - 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;', @@ -13583,16 +10939,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, @@ -13606,18 +11013,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, @@ -13629,18 +11037,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', ); @@ -13659,10 +11063,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', ); @@ -13683,19 +11087,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, @@ -13709,14 +11111,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', ); @@ -13737,17 +11138,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, @@ -13761,19 +11162,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, @@ -13787,17 +11186,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, @@ -13809,21 +11208,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, @@ -13836,17 +11231,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, @@ -13854,22 +11248,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, @@ -13883,17 +11274,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, @@ -13905,21 +11296,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, @@ -13933,18 +11321,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, @@ -13956,21 +11343,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, @@ -13984,18 +11369,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, @@ -14007,21 +11392,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, @@ -14035,18 +11418,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, @@ -14058,21 +11440,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, @@ -14085,18 +11465,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, @@ -14104,22 +11482,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, @@ -14133,18 +11508,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, @@ -14156,24 +11531,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, @@ -14186,18 +11558,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, @@ -14205,23 +11578,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, @@ -14235,18 +11606,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, @@ -14258,21 +11629,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, @@ -14286,19 +11655,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, @@ -14310,22 +11677,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, @@ -14339,19 +11705,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, @@ -14363,24 +11729,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, @@ -14394,19 +11761,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, @@ -14418,24 +11785,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, @@ -14449,19 +11812,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, @@ -14473,24 +11835,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, @@ -14504,19 +11863,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, @@ -14528,24 +11886,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, @@ -14559,19 +11914,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, @@ -14583,22 +11936,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, @@ -14612,18 +11963,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, @@ -14637,18 +11987,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, @@ -14660,21 +12009,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, @@ -14687,18 +12034,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, @@ -14706,23 +12053,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, @@ -14735,18 +12079,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, @@ -14754,23 +12098,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, @@ -14784,17 +12125,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, @@ -14806,21 +12147,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, @@ -14834,18 +12173,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, @@ -14857,21 +12195,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, @@ -14885,18 +12221,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, @@ -14908,21 +12243,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, @@ -14936,18 +12268,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, @@ -14959,21 +12290,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, @@ -14987,18 +12316,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, @@ -15010,21 +12339,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, @@ -15038,19 +12365,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, @@ -15062,24 +12387,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, @@ -15093,18 +12416,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, @@ -15118,14 +12441,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', ); @@ -15146,17 +12467,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, @@ -15170,14 +12491,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', ); @@ -15198,17 +12517,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, @@ -15222,18 +12541,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, @@ -15245,24 +12564,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, @@ -15276,17 +12591,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, @@ -15298,21 +12613,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, @@ -15326,18 +12638,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, @@ -15349,23 +12660,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, @@ -15378,18 +12686,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, @@ -15397,23 +12705,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, @@ -15426,18 +12732,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, @@ -15445,23 +12751,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( @@ -15475,18 +12780,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, @@ -15494,23 +12800,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, @@ -15524,18 +12828,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, @@ -15547,21 +12850,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, @@ -15574,18 +12876,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, @@ -15593,23 +12895,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( @@ -15623,18 +12924,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, @@ -15642,23 +12944,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, @@ -15672,18 +12972,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, @@ -15695,21 +12994,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, @@ -15722,18 +13020,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, @@ -15741,23 +13040,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( @@ -15771,18 +13069,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, @@ -15790,49 +13089,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, @@ -15840,23 +13138,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, @@ -15870,18 +13166,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, @@ -15893,23 +13189,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( @@ -15923,18 +13216,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, @@ -15942,23 +13236,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, @@ -15971,18 +13264,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, @@ -15990,23 +13284,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, @@ -16020,18 +13313,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, @@ -16043,23 +13337,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, @@ -16072,18 +13362,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, @@ -16091,23 +13380,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, @@ -16121,18 +13407,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, @@ -16146,18 +13431,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, @@ -16169,24 +13454,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, @@ -16198,21 +13479,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, @@ -16225,18 +13504,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, @@ -16244,18 +13523,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', ); @@ -16276,19 +13553,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, @@ -16302,14 +13577,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;', ); @@ -16330,12 +13605,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', ); @@ -16356,19 +13631,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, @@ -16382,19 +13655,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( @@ -16408,18 +13681,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, @@ -16427,23 +13701,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, @@ -16457,14 +13729,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', ); @@ -16493,17 +13763,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, @@ -16516,18 +13787,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, @@ -16535,23 +13807,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, @@ -16564,18 +13835,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, @@ -16583,47 +13855,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, @@ -16631,23 +13904,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, @@ -16661,19 +13932,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, @@ -16685,24 +13955,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, @@ -16715,18 +13982,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( @@ -16741,14 +14009,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', ); @@ -16770,19 +14038,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, @@ -16796,20 +14062,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, @@ -16821,16 +14084,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', ); @@ -16851,17 +14112,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, @@ -16874,18 +14135,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, @@ -16893,22 +14152,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, @@ -16921,18 +14178,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, @@ -16940,23 +14198,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, @@ -16969,18 +14225,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, @@ -16988,23 +14243,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, @@ -17018,19 +14271,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, @@ -17042,23 +14295,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, @@ -17071,18 +14320,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, @@ -17090,23 +14339,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, @@ -17119,18 +14366,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, @@ -17138,23 +14385,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, @@ -17168,18 +14414,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, @@ -17191,24 +14438,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, @@ -17222,18 +14466,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, @@ -17245,24 +14490,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, @@ -17275,18 +14517,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( @@ -17300,18 +14543,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, @@ -17325,19 +14568,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, @@ -17349,24 +14591,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, @@ -17380,18 +14620,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, @@ -17403,21 +14644,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( @@ -17432,18 +14672,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( @@ -17456,23 +14697,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, @@ -17486,18 +14723,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, @@ -17509,47 +14746,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, @@ -17557,23 +14793,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, @@ -17586,18 +14820,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, @@ -17605,76 +14839,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( @@ -17689,19 +14921,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( @@ -17714,47 +14946,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, @@ -17762,47 +14993,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 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_isStrictTraceContinuation = _class.instanceMethodId( + static final _id_get$isStrictTraceContinuation = + SentryOptions._class.instanceMethodId( r'isStrictTraceContinuation', r'()Z', ); - static final _isStrictTraceContinuation = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public boolean isStrictTraceContinuation()` - bool isStrictTraceContinuation() { - return _isStrictTraceContinuation(reference.pointer, - _id_isStrictTraceContinuation as jni$_.JMethodIDPtr) + core$_.bool get isStrictTraceContinuation { + return _get$isStrictTraceContinuation( + reference.pointer, _id_get$isStrictTraceContinuation.pointer) .boolean; } - static final _id_setStrictTraceContinuation = _class.instanceMethodId( + static final _id_set$strictTraceContinuation = + SentryOptions._class.instanceMethodId( r'setStrictTraceContinuation', r'(Z)V', ); - static final _setStrictTraceContinuation = + static final _set$strictTraceContinuation = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, @@ -17810,23 +15042,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 setStrictTraceContinuation(boolean z)` - void setStrictTraceContinuation( - bool z, - ) { - _setStrictTraceContinuation(reference.pointer, - _id_setStrictTraceContinuation as jni$_.JMethodIDPtr, z ? 1 : 0) + set strictTraceContinuation(core$_.bool z) { + _set$strictTraceContinuation(reference.pointer, + _id_set$strictTraceContinuation.pointer, z ? 1 : 0) .check(); } - static final _id_getOrgId = _class.instanceMethodId( + static final _id_get$orgId = SentryOptions._class.instanceMethodId( r'getOrgId', r'()Ljava/lang/String;', ); - static final _getOrgId = jni$_.ProtectedJniExtensions.lookup< + static final _get$orgId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -17840,17 +15070,17 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.lang.String getOrgId()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getOrgId() { - return _getOrgId(reference.pointer, _id_getOrgId as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get orgId { + return _get$orgId(reference.pointer, _id_get$orgId.pointer) + .object(); } - static final _id_setOrgId = _class.instanceMethodId( + static final _id_set$orgId = SentryOptions._class.instanceMethodId( r'setOrgId', r'(Ljava/lang/String;)V', ); - static final _setOrgId = jni$_.ProtectedJniExtensions.lookup< + static final _set$orgId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -17862,21 +15092,18 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setOrgId(java.lang.String string)` - void setOrgId( - jni$_.JString? string, - ) { + set orgId(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setOrgId(reference.pointer, _id_setOrgId as jni$_.JMethodIDPtr, - _$string.pointer) + _set$orgId(reference.pointer, _id_set$orgId.pointer, _$string.pointer) .check(); } - static final _id_getEffectiveOrgId = _class.instanceMethodId( + static final _id_get$effectiveOrgId = SentryOptions._class.instanceMethodId( r'getEffectiveOrgId', r'()Ljava/lang/String;', ); - static final _getEffectiveOrgId = jni$_.ProtectedJniExtensions.lookup< + static final _get$effectiveOrgId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -17890,18 +15117,18 @@ class SentryOptions extends jni$_.JObject { /// from: `public java.lang.String getEffectiveOrgId()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getEffectiveOrgId() { - return _getEffectiveOrgId( - reference.pointer, _id_getEffectiveOrgId as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get effectiveOrgId { + return _get$effectiveOrgId( + reference.pointer, _id_get$effectiveOrgId.pointer) + .object(); } - 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, @@ -17915,18 +15142,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, @@ -17938,16 +15164,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', ); @@ -17968,17 +15192,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, @@ -17992,19 +15215,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, @@ -18018,14 +15239,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', ); @@ -18046,17 +15265,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, @@ -18070,18 +15289,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, @@ -18093,21 +15311,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, @@ -18120,18 +15337,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, @@ -18139,23 +15357,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( @@ -18169,18 +15386,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, @@ -18188,25 +15406,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( @@ -18220,19 +15435,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, @@ -18240,25 +15455,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, @@ -18270,21 +15481,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, @@ -18298,18 +15507,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, @@ -18323,18 +15532,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, @@ -18348,18 +15557,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, @@ -18371,23 +15579,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, @@ -18401,18 +15605,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, @@ -18424,129 +15628,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, @@ -18560,18 +15708,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, @@ -18583,23 +15730,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( @@ -18614,18 +15758,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( @@ -18638,24 +15783,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( @@ -18669,18 +15814,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, @@ -18688,102 +15834,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, @@ -18791,23 +15938,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( @@ -18821,19 +15967,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, @@ -18841,25 +15987,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, @@ -18872,18 +16015,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, @@ -18891,23 +16035,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 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_isEnableQueueTracing = _class.instanceMethodId( + static final _id_get$isEnableQueueTracing = + SentryOptions._class.instanceMethodId( r'isEnableQueueTracing', r'()Z', ); - static final _isEnableQueueTracing = jni$_.ProtectedJniExtensions.lookup< + static final _get$isEnableQueueTracing = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18920,18 +16063,19 @@ class SentryOptions extends jni$_.JObject { )>(); /// from: `public boolean isEnableQueueTracing()` - bool isEnableQueueTracing() { - return _isEnableQueueTracing( - reference.pointer, _id_isEnableQueueTracing as jni$_.JMethodIDPtr) + core$_.bool get isEnableQueueTracing { + return _get$isEnableQueueTracing( + reference.pointer, _id_get$isEnableQueueTracing.pointer) .boolean; } - static final _id_setEnableQueueTracing = _class.instanceMethodId( + static final _id_set$enableQueueTracing = + SentryOptions._class.instanceMethodId( r'setEnableQueueTracing', r'(Z)V', ); - static final _setEnableQueueTracing = jni$_.ProtectedJniExtensions.lookup< + static final _set$enableQueueTracing = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -18939,23 +16083,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 setEnableQueueTracing(boolean z)` - void setEnableQueueTracing( - bool z, - ) { - _setEnableQueueTracing(reference.pointer, - _id_setEnableQueueTracing as jni$_.JMethodIDPtr, z ? 1 : 0) + set enableQueueTracing(core$_.bool z) { + _set$enableQueueTracing( + reference.pointer, _id_set$enableQueueTracing.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, @@ -18968,17 +16110,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, @@ -18986,23 +16127,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( @@ -19016,18 +16154,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, @@ -19040,18 +16178,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, @@ -19059,49 +16197,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, @@ -19109,23 +16246,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, @@ -19133,23 +16268,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, @@ -19163,15 +16296,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', ); @@ -19192,17 +16323,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, @@ -19214,21 +16346,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, @@ -19242,15 +16372,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', ); @@ -19271,17 +16399,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, @@ -19293,21 +16422,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, @@ -19321,15 +16449,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', ); @@ -19350,17 +16477,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, @@ -19372,21 +16500,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, @@ -19400,18 +16526,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, @@ -19423,18 +16548,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', ); @@ -19457,17 +16579,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, @@ -19481,19 +16604,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( @@ -19508,18 +16631,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( @@ -19532,23 +16656,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, @@ -19562,18 +16685,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, @@ -19585,23 +16709,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, @@ -19609,23 +16730,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, @@ -19639,18 +16758,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, @@ -19662,23 +16781,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, @@ -19691,18 +16807,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, @@ -19710,23 +16827,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( @@ -19740,18 +16856,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( @@ -19765,18 +16882,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, @@ -19784,131 +16902,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, @@ -19921,18 +17040,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, @@ -19940,71 +17059,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, @@ -20018,17 +17136,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, @@ -20040,21 +17158,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, @@ -20068,18 +17182,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, @@ -20093,18 +17206,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, @@ -20116,102 +17229,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, @@ -20219,23 +17331,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, @@ -20247,21 +17357,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, @@ -20275,18 +17383,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, @@ -20298,21 +17406,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, @@ -20326,18 +17432,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, @@ -20345,23 +17450,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, @@ -20374,18 +17476,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, @@ -20397,16 +17498,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;', ); @@ -20426,17 +17525,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, @@ -20448,23 +17547,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, @@ -20478,18 +17574,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, @@ -20503,18 +17599,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, @@ -20526,23 +17621,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, @@ -20556,18 +17647,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, @@ -20579,23 +17670,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, @@ -20603,23 +17691,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( @@ -20633,18 +17720,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, @@ -20658,18 +17745,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, @@ -20681,64 +17767,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', ); @@ -20759,17 +17795,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, @@ -20783,18 +17818,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, @@ -20806,21 +17840,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, @@ -20834,18 +17867,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, @@ -20857,24 +17891,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, @@ -20888,17 +17920,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, @@ -20910,21 +17942,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, @@ -20938,17 +17966,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, @@ -20960,21 +17988,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, @@ -20988,19 +18013,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, @@ -21012,150 +18035,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, ) { @@ -21176,7 +18088,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 { @@ -21184,10 +18096,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); @@ -21225,139 +18137,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;', @@ -21365,8 +18227,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', @@ -21375,8 +18238,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', @@ -21385,33 +18249,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', @@ -21433,11 +18273,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( @@ -21462,13 +18299,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;', ); @@ -21488,123 +18358,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( @@ -21619,11 +18405,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( @@ -21640,18 +18425,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( @@ -21687,21 +18472,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, @@ -21715,42 +18499,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, @@ -21762,21 +18549,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, @@ -21790,18 +18576,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( @@ -21815,18 +18602,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, @@ -21838,21 +18626,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, @@ -21860,23 +18647,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, @@ -21884,18 +18669,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', ); @@ -21916,12 +18700,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', ); @@ -21942,17 +18727,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, @@ -21966,18 +18751,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, @@ -21989,21 +18773,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, @@ -22016,18 +18798,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, @@ -22040,42 +18821,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, @@ -22088,13 +18872,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', ); @@ -22113,17 +18898,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, @@ -22136,18 +18921,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, @@ -22155,23 +18941,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, @@ -22185,18 +18969,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, @@ -22208,21 +18991,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, @@ -22235,17 +19016,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, @@ -22253,22 +19033,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, @@ -22282,18 +19060,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, @@ -22305,23 +19084,22 @@ 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_isCaptureSurfaceViews = _class.instanceMethodId( + static final _id_get$isCaptureSurfaceViews = + SentryReplayOptions._class.instanceMethodId( r'isCaptureSurfaceViews', r'()Z', ); - static final _isCaptureSurfaceViews = jni$_.ProtectedJniExtensions.lookup< + static final _get$isCaptureSurfaceViews = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -22334,18 +19112,19 @@ class SentryReplayOptions extends jni$_.JObject { )>(); /// from: `public boolean isCaptureSurfaceViews()` - bool isCaptureSurfaceViews() { - return _isCaptureSurfaceViews( - reference.pointer, _id_isCaptureSurfaceViews as jni$_.JMethodIDPtr) + core$_.bool get isCaptureSurfaceViews { + return _get$isCaptureSurfaceViews( + reference.pointer, _id_get$isCaptureSurfaceViews.pointer) .boolean; } - static final _id_setCaptureSurfaceViews = _class.instanceMethodId( + static final _id_set$captureSurfaceViews = + SentryReplayOptions._class.instanceMethodId( r'setCaptureSurfaceViews', r'(Z)V', ); - static final _setCaptureSurfaceViews = jni$_.ProtectedJniExtensions.lookup< + static final _set$captureSurfaceViews = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -22353,75 +19132,75 @@ 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 setCaptureSurfaceViews(boolean z)` - void setCaptureSurfaceViews( - bool z, - ) { - _setCaptureSurfaceViews(reference.pointer, - _id_setCaptureSurfaceViews as jni$_.JMethodIDPtr, z ? 1 : 0) + set captureSurfaceViews(core$_.bool z) { + _set$captureSurfaceViews( + reference.pointer, _id_set$captureSurfaceViews.pointer, z ? 1 : 0) .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, @@ -22435,19 +19214,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, @@ -22459,45 +19238,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, @@ -22505,23 +19285,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, @@ -22535,19 +19314,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, @@ -22559,73 +19338,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, @@ -22639,19 +19418,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, @@ -22663,115 +19442,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', ); @@ -22791,12 +19493,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;', ); @@ -22826,111 +19531,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;', @@ -22939,7 +19564,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', @@ -22949,7 +19574,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', @@ -22959,7 +19584,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', @@ -22969,7 +19594,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', @@ -22979,7 +19604,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', @@ -22989,7 +19614,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', @@ -22999,7 +19625,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', @@ -23009,7 +19635,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', @@ -23019,7 +19645,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', @@ -23040,108 +19666,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', ); @@ -23161,12 +19709,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;', ); @@ -23196,120 +19747,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;', @@ -23318,7 +19781,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', @@ -23328,7 +19792,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', @@ -23350,10 +19815,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( @@ -23378,13 +19841,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', ); @@ -23413,106 +19879,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; @@ -23524,7 +19913,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', @@ -23545,17 +19935,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, @@ -23569,18 +19960,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, @@ -23592,21 +19982,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, @@ -23620,17 +20007,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, @@ -23642,21 +20029,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, @@ -23670,18 +20054,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, @@ -23693,21 +20076,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, @@ -23720,18 +20101,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, @@ -23739,22 +20118,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, @@ -23768,18 +20144,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, @@ -23791,21 +20166,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, @@ -23819,18 +20192,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, @@ -23842,21 +20216,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, @@ -23870,19 +20242,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, @@ -23894,21 +20264,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, @@ -23922,20 +20288,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, @@ -23947,21 +20310,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, @@ -23975,20 +20335,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, @@ -24000,21 +20357,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, @@ -24028,19 +20382,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, @@ -24052,16 +20404,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', ); @@ -24078,16 +20428,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', ); @@ -24105,12 +20454,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', ); @@ -24139,17 +20487,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, @@ -24163,19 +20511,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, @@ -24187,110 +20533,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', ); @@ -24310,12 +20577,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;', ); @@ -24345,109 +20614,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;', @@ -24456,7 +20646,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', @@ -24466,7 +20656,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', @@ -24476,7 +20666,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', @@ -24486,7 +20676,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', @@ -24496,7 +20686,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', @@ -24506,7 +20696,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', @@ -24516,7 +20706,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', @@ -24526,7 +20716,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', @@ -24536,7 +20726,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', @@ -24557,106 +20747,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', ); @@ -24678,9 +20790,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( @@ -24702,9 +20814,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( @@ -24728,68 +20839,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, @@ -24803,17 +20864,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, @@ -24825,21 +20886,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, @@ -24853,17 +20911,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, @@ -24875,21 +20933,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, @@ -24903,19 +20958,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, @@ -24927,21 +20980,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, @@ -24955,20 +21005,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, @@ -24980,21 +21027,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, @@ -25008,17 +21053,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, @@ -25030,21 +21075,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, @@ -25058,18 +21100,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, @@ -25081,21 +21122,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, @@ -25109,20 +21148,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, @@ -25134,21 +21170,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, @@ -25160,16 +21194,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', ); @@ -25198,12 +21229,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', ); @@ -25224,12 +21255,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;', ); @@ -25251,17 +21281,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, @@ -25274,17 +21304,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, @@ -25298,18 +21327,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, @@ -25322,12 +21351,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', ); @@ -25356,17 +21384,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, @@ -25380,19 +21408,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, @@ -25404,108 +21430,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', ); @@ -25525,12 +21474,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', ); @@ -25557,7 +21509,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, @@ -25569,7 +21521,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, @@ -25578,101 +21530,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;', @@ -25681,7 +21557,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', @@ -25691,7 +21567,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', @@ -25701,7 +21577,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', @@ -25711,7 +21587,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', @@ -25721,7 +21597,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', @@ -25731,7 +21607,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', @@ -25741,7 +21617,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', @@ -25751,7 +21627,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', @@ -25761,7 +21637,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', @@ -25771,7 +21647,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', @@ -25781,7 +21657,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', @@ -25791,7 +21667,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', @@ -25801,7 +21677,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', @@ -25811,7 +21687,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', @@ -25832,107 +21708,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', ); @@ -25952,12 +21751,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', ); @@ -25992,7 +21793,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) @@ -26000,100 +21801,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;', @@ -26102,14 +21826,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, @@ -26123,17 +21850,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, @@ -26145,21 +21872,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, @@ -26173,18 +21897,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, @@ -26198,17 +21921,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, @@ -26220,21 +21943,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, @@ -26248,17 +21968,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, @@ -26270,21 +21990,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, @@ -26298,18 +22015,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, @@ -26323,18 +22040,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, @@ -26346,21 +22063,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, @@ -26374,19 +22089,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, @@ -26398,16 +22111,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', ); @@ -26428,12 +22137,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;', ); @@ -26455,12 +22163,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', ); @@ -26489,17 +22196,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, @@ -26513,17 +22220,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, @@ -26535,21 +22242,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, @@ -26563,18 +22268,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, @@ -26586,21 +22290,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, @@ -26614,18 +22316,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, @@ -26637,21 +22338,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, @@ -26665,18 +22363,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, @@ -26688,21 +22385,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, @@ -26716,17 +22411,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, @@ -26738,21 +22433,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, @@ -26766,17 +22458,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, @@ -26788,21 +22479,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, @@ -26816,20 +22503,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, @@ -26841,16 +22525,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', ); @@ -26871,17 +22553,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, @@ -26895,18 +22577,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, @@ -26918,21 +22599,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, @@ -26946,19 +22625,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, @@ -26970,16 +22647,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', ); @@ -27008,12 +22682,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', ); @@ -27034,12 +22708,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;', ); @@ -27061,12 +22734,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', ); @@ -27087,105 +22759,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', ); @@ -27205,12 +22802,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;', ); @@ -27240,109 +22839,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;', @@ -27351,7 +22869,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', @@ -27361,7 +22879,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', @@ -27371,7 +22889,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', @@ -27381,7 +22899,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', @@ -27391,7 +22909,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', @@ -27413,10 +22931,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( @@ -27441,12 +22957,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', ); @@ -27475,103 +22993,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', ); @@ -27591,9 +23033,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( @@ -27618,9 +23058,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( @@ -27646,11 +23086,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', ); @@ -27679,12 +23121,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;', ); @@ -27706,12 +23147,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;', ); @@ -27737,17 +23177,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', ); @@ -27768,12 +23207,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', ); @@ -27794,12 +23231,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', ); @@ -27820,17 +23257,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, @@ -27844,14 +23281,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', ); @@ -27872,12 +23307,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', ); @@ -27896,12 +23331,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', ); @@ -27920,15 +23353,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, @@ -27940,21 +23373,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, @@ -27968,18 +23399,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, @@ -27991,21 +23421,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, @@ -28019,18 +23447,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, @@ -28042,21 +23469,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, @@ -28070,18 +23495,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, @@ -28095,18 +23519,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, @@ -28118,108 +23542,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', ); @@ -28239,12 +23588,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;', ); @@ -28274,110 +23626,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;', @@ -28386,7 +23659,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', @@ -28407,106 +23680,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', ); @@ -28526,17 +23721,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, @@ -28550,18 +23746,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, @@ -28573,21 +23768,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, @@ -28601,19 +23794,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, @@ -28625,16 +23816,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', ); @@ -28651,16 +23839,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', ); @@ -28678,12 +23865,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', ); @@ -28712,17 +23898,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, @@ -28736,19 +23922,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, @@ -28760,109 +23944,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', ); @@ -28882,12 +23988,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;', ); @@ -28917,109 +24025,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;', @@ -29028,7 +24057,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', @@ -29038,7 +24067,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', @@ -29048,7 +24077,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', @@ -29058,7 +24087,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', @@ -29068,7 +24097,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', @@ -29078,7 +24107,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', @@ -29088,7 +24117,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', @@ -29109,106 +24138,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', ); @@ -29230,9 +24180,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( @@ -29247,16 +24196,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( @@ -29289,9 +24237,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( @@ -29324,9 +24272,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( @@ -29363,9 +24311,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( @@ -29404,11 +24352,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( @@ -29451,12 +24399,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( @@ -29499,12 +24447,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( @@ -29537,12 +24485,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( @@ -29567,9 +24512,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( @@ -29594,9 +24539,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( @@ -29621,9 +24565,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( @@ -29648,9 +24591,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( @@ -29675,9 +24617,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( @@ -29710,9 +24651,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( @@ -29745,9 +24686,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( @@ -29786,11 +24727,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( @@ -29837,13 +24778,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( @@ -29886,12 +24827,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( @@ -29913,9 +24854,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( @@ -29939,17 +24879,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, @@ -29963,18 +24904,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, @@ -29988,17 +24928,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, @@ -30010,21 +24950,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, @@ -30038,17 +24975,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, @@ -30060,21 +24997,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, @@ -30088,19 +25022,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, @@ -30113,16 +25045,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', ); @@ -30151,12 +25082,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', ); @@ -30177,17 +25108,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, @@ -30201,18 +25131,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, @@ -30224,21 +25153,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, @@ -30252,17 +25178,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, @@ -30274,21 +25200,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, @@ -30302,17 +25225,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, @@ -30324,16 +25247,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', ); @@ -30350,16 +25270,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', ); @@ -30377,17 +25296,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, @@ -30401,19 +25319,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, @@ -30425,16 +25341,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', ); @@ -30451,16 +25364,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', ); @@ -30489,124 +25402,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, @@ -30620,18 +25458,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, @@ -30644,12 +25483,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;', ); @@ -30679,15 +25517,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;', ); @@ -30721,16 +25556,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;', ); @@ -30760,15 +25591,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;', ); @@ -30802,16 +25630,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;', ); @@ -30833,12 +25657,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;', ); @@ -30868,15 +25692,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;', ); @@ -30910,16 +25731,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;', ); @@ -30949,15 +25766,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;', ); @@ -30987,15 +25801,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;', ); @@ -31031,14 +25842,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', ); @@ -31059,14 +25870,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', ); @@ -31085,11 +25894,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', ); @@ -31108,11 +25916,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', ); @@ -31125,17 +25932,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', ); @@ -31154,10 +25960,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', ); @@ -31186,12 +25992,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', ); @@ -31212,17 +26018,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, @@ -31234,21 +26040,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, @@ -31260,21 +26063,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, @@ -31286,21 +26087,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, @@ -31312,16 +26109,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', ); @@ -31340,12 +26135,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', ); @@ -31374,12 +26167,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', ); @@ -31400,12 +26193,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', ); @@ -31434,12 +26226,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', ); @@ -31460,17 +26252,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, @@ -31484,13 +26275,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;', ); @@ -31510,11 +26300,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;', ); @@ -31535,11 +26325,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', ); @@ -31558,10 +26348,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', ); @@ -31582,12 +26372,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', ); @@ -31608,14 +26398,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', ); @@ -31644,12 +26432,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', ); @@ -31670,17 +26458,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, @@ -31693,12 +26481,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', ); @@ -31711,16 +26498,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;', ); @@ -31740,11 +26527,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;', ); @@ -31766,12 +26552,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;', ); @@ -31793,12 +26579,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;', ); @@ -31820,12 +26606,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;', ); @@ -31845,17 +26631,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, @@ -31869,17 +26654,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, @@ -31893,18 +26678,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, @@ -31918,18 +26703,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, @@ -31943,13 +26727,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', ); @@ -31966,16 +26749,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;', ); @@ -32016,15 +26799,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;', ); @@ -32046,14 +26829,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;', ); @@ -32083,15 +26864,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', ); @@ -32110,11 +26888,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', ); @@ -32133,11 +26910,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', ); @@ -32170,17 +26946,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, @@ -32194,17 +26970,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, @@ -32216,21 +26992,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, @@ -32244,18 +27018,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, @@ -32269,12 +27042,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;', ); @@ -32294,12 +27067,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', ); @@ -32318,12 +27090,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;', ); @@ -32353,20 +27124,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, @@ -32380,18 +27148,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, @@ -32405,12 +27172,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;', ); @@ -32432,17 +27199,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, @@ -32456,13 +27223,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;', ); @@ -32492,15 +27258,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;', ); @@ -32520,11 +27283,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;', ); @@ -32544,11 +27307,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_feedback = _class.instanceMethodId( + static final _id_feedback = ScopesAdapter._class.instanceMethodId( r'feedback', r'()Lio/sentry/IFeedbackApi;', ); @@ -32568,11 +27331,11 @@ class ScopesAdapter extends jni$_.JObject { /// from: `public io.sentry.IFeedbackApi feedback()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject feedback() { - return _feedback(reference.pointer, _id_feedback as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _feedback(reference.pointer, _id_feedback.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', ); @@ -32601,17 +27364,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, @@ -32623,22 +27386,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, @@ -32650,17 +27411,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', ); @@ -32681,12 +27440,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', ); @@ -32715,134 +27474,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, ) { @@ -32863,7 +27524,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 { @@ -32871,7 +27532,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; } @@ -32913,20 +27574,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 @@ -32937,138 +27625,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, ) { @@ -33089,7 +27676,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 { @@ -33097,7 +27684,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; } @@ -33139,20 +27726,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 { @@ -33162,107 +27774,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', ); @@ -33284,17 +27818,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, @@ -33308,17 +27844,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, @@ -33330,21 +27866,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, @@ -33358,18 +27891,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, @@ -33381,21 +27914,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, @@ -33409,17 +27940,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, @@ -33431,21 +27962,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, @@ -33457,21 +27986,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, @@ -33485,17 +28012,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, @@ -33507,21 +28033,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, @@ -33535,17 +28057,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, @@ -33557,21 +28079,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, @@ -33585,18 +28104,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, @@ -33608,21 +28126,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, @@ -33636,17 +28152,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, @@ -33658,21 +28174,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, @@ -33686,19 +28199,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, @@ -33710,21 +28221,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, @@ -33738,13 +28247,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', ); @@ -33773,12 +28281,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', ); @@ -33799,12 +28307,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', ); @@ -33823,12 +28331,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', ); @@ -33847,17 +28353,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, @@ -33871,13 +28375,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', ); @@ -33896,15 +28399,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, @@ -33918,14 +28421,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', ); @@ -33954,12 +28455,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', ); @@ -33980,17 +28481,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, @@ -34004,15 +28504,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', ); @@ -34041,17 +28538,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, @@ -34063,22 +28560,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, @@ -34090,17 +28585,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', ); @@ -34121,17 +28614,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, @@ -34145,14 +28638,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', ); @@ -34181,12 +28672,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', ); @@ -34207,17 +28698,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, @@ -34231,13 +28721,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', ); @@ -34266,12 +28755,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', ); @@ -34300,12 +28789,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', ); @@ -34334,12 +28823,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', ); @@ -34368,12 +28857,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', ); @@ -34402,12 +28891,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', ); @@ -34436,12 +28925,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', ); @@ -34470,12 +28959,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', ); @@ -34496,17 +28985,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, @@ -34520,14 +29009,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', ); @@ -34548,12 +29035,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', ); @@ -34572,17 +29059,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, @@ -34596,19 +29081,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( @@ -34623,14 +29107,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', ); @@ -34651,14 +29134,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;', ); @@ -34680,12 +29161,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;', ); @@ -34705,12 +29186,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;', ); @@ -34730,11 +29210,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', ); @@ -34755,19 +29235,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, @@ -34781,17 +29259,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, @@ -34805,12 +29283,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', ); @@ -34829,16 +29307,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, @@ -34850,23 +29327,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, @@ -34880,13 +29353,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;', ); @@ -34910,12 +29383,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;', ); @@ -34935,16 +29408,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, @@ -34956,21 +29428,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, @@ -34984,13 +29454,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', ); @@ -35011,17 +29480,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, @@ -35035,12 +29504,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', ); @@ -35069,17 +29538,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, @@ -35093,18 +29562,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, @@ -35118,13 +29586,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', ); @@ -35145,12 +29613,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', ); @@ -35183,12 +29651,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', ); @@ -35209,129 +29677,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, ) { @@ -35352,7 +29723,7 @@ class ScopeCallback extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -35360,7 +29731,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; } @@ -35402,20 +29773,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 { @@ -35425,105 +29820,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', ); @@ -35543,12 +29863,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;', ); @@ -35578,109 +29899,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;', @@ -35689,7 +29929,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', @@ -35699,7 +29939,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', @@ -35709,7 +29949,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', @@ -35719,7 +29959,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', @@ -35729,7 +29969,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', @@ -35739,7 +29979,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', @@ -35749,7 +29989,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', @@ -35770,103 +30010,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', ); @@ -35886,9 +30049,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( @@ -35912,9 +30073,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( @@ -35947,17 +30107,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, @@ -35971,17 +30133,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, @@ -35993,21 +30155,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, @@ -36021,17 +30180,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, @@ -36043,20 +30202,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, @@ -36070,18 +30226,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, @@ -36093,21 +30248,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, @@ -36121,18 +30273,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, @@ -36144,21 +30295,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, @@ -36172,17 +30321,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, @@ -36194,21 +30343,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, @@ -36222,17 +30368,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, @@ -36244,20 +30390,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, @@ -36271,19 +30414,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, @@ -36295,16 +30436,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', ); @@ -36321,16 +30458,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', ); @@ -36348,17 +30484,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, @@ -36372,19 +30507,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, @@ -36396,16 +30529,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', ); @@ -36434,101 +30564,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', ); @@ -36548,12 +30607,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;', ); @@ -36583,109 +30643,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;', @@ -36694,7 +30673,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', @@ -36715,9 +30694,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( @@ -36741,9 +30718,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( @@ -36767,12 +30743,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;', ); @@ -36792,11 +30769,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', ); @@ -36813,16 +30790,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', ); @@ -36840,12 +30816,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', ); @@ -36874,101 +30849,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', ); @@ -36988,12 +30892,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;', ); @@ -37023,110 +30929,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;', @@ -37135,7 +30962,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', @@ -37145,7 +30972,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', @@ -37155,7 +30982,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', @@ -37165,7 +30992,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', @@ -37186,106 +31014,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', ); @@ -37315,17 +31064,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, @@ -37339,17 +31133,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, @@ -37361,21 +31155,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, @@ -37389,17 +31180,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, @@ -37411,16 +31202,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', ); @@ -37449,12 +31237,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', ); @@ -37475,17 +31263,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, @@ -37499,20 +31287,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, @@ -37526,57 +31311,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', ); @@ -37593,16 +31334,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', ); @@ -37620,17 +31360,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, @@ -37644,19 +31383,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, @@ -37668,16 +31405,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', ); @@ -37706,103 +31440,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', ); @@ -37822,12 +31483,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;', ); @@ -37857,110 +31520,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;', @@ -37969,7 +31553,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', @@ -37979,7 +31563,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', @@ -38000,107 +31584,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', ); @@ -38130,17 +31635,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, @@ -38154,17 +31661,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, @@ -38176,21 +31683,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, @@ -38204,17 +31708,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, @@ -38226,16 +31730,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', ); @@ -38252,16 +31753,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', ); @@ -38279,17 +31779,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, @@ -38303,19 +31802,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, @@ -38327,16 +31824,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', ); @@ -38365,104 +31859,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', ); @@ -38482,12 +31902,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;', ); @@ -38517,111 +31940,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;', @@ -38630,7 +31973,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', @@ -38640,7 +31983,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', @@ -38661,107 +32004,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;', @@ -38770,7 +32035,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', @@ -38791,9 +32056,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( @@ -38817,17 +32081,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, @@ -38841,17 +32107,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, @@ -38863,21 +32129,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, @@ -38891,20 +32154,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, @@ -38916,21 +32178,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, @@ -38944,20 +32204,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, @@ -38969,21 +32226,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, @@ -38997,19 +32252,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, @@ -39021,16 +32274,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', ); @@ -39059,106 +32309,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', ); @@ -39178,12 +32352,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', ); @@ -39210,7 +32386,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, @@ -39222,7 +32398,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, @@ -39231,101 +32407,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;', @@ -39334,7 +32434,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', @@ -39344,7 +32444,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', @@ -39354,7 +32454,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', @@ -39375,107 +32475,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', ); @@ -39495,12 +32518,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', ); @@ -39533,112 +32557,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, @@ -39652,17 +32601,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, @@ -39674,21 +32623,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, @@ -39701,18 +32648,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, @@ -39720,17 +32665,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', ); @@ -39747,16 +32689,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', ); @@ -39774,102 +32715,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;', @@ -39878,7 +32744,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', @@ -39913,13 +32780,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( @@ -39943,17 +32806,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, @@ -39967,17 +32831,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, @@ -39991,17 +32855,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, @@ -40015,17 +32879,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, @@ -40039,12 +32903,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;', ); @@ -40064,104 +32928,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;', @@ -40170,7 +32956,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', @@ -40179,7 +32965,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', @@ -40189,7 +32976,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', @@ -40211,10 +32998,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( @@ -40239,102 +33024,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;', @@ -40343,7 +33053,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', @@ -40374,15 +33084,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;', ); @@ -40402,11 +33111,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', ); @@ -40423,16 +33132,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', ); @@ -40450,12 +33158,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;', ); @@ -40475,11 +33182,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;', ); @@ -40499,100 +33206,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;', @@ -40601,7 +33236,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', @@ -40611,7 +33246,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', @@ -40621,7 +33256,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', @@ -40631,7 +33266,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', @@ -40641,7 +33277,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', @@ -40663,10 +33300,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( @@ -40691,107 +33326,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;', @@ -40800,7 +33356,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', @@ -40810,7 +33366,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', @@ -40820,7 +33376,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', @@ -40830,7 +33386,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', @@ -40840,7 +33396,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', @@ -40850,7 +33406,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', @@ -40860,7 +33416,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', @@ -40882,10 +33438,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( @@ -40910,103 +33464,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;', @@ -41015,152 +33493,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;', @@ -41183,9 +33519,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( @@ -41211,30 +33547,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( @@ -41262,37 +33592,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( @@ -41317,9 +33639,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( @@ -41344,28 +33666,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( @@ -41390,28 +33707,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( @@ -41437,31 +33749,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( @@ -41488,20 +33794,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; @@ -41509,14 +33815,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( @@ -41543,8 +33849,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)` @@ -41552,22 +33858,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( @@ -41596,10 +33896,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)` @@ -41607,10 +33907,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; @@ -41618,7 +33918,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, @@ -41626,7 +33926,7 @@ class Bitmap extends jni$_.JObject { i2, i3, _$config.pointer) - .object(const $Bitmap$NullableType()); + .object(); } static final _id_createBitmap$10 = _class.staticMethodId( @@ -41646,20 +33946,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( @@ -41680,26 +33984,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( @@ -41724,32 +34028,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( @@ -41774,28 +34078,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( @@ -41822,34 +34121,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( @@ -41870,29 +34169,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', ); @@ -41910,13 +34390,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', ); @@ -41929,17 +34408,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', ); @@ -41952,17 +34430,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;', ); @@ -41982,12 +34459,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;', ); @@ -42017,20 +34493,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, @@ -42043,18 +34516,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, @@ -42067,13 +34540,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;', ); @@ -42086,26 +34557,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, @@ -42119,18 +34589,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, @@ -42144,17 +34613,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, @@ -42167,17 +34636,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, @@ -42191,17 +34659,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, @@ -42214,18 +34682,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, @@ -42239,18 +34706,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, @@ -42263,17 +34730,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, @@ -42287,13 +34753,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', ); @@ -42306,20 +34772,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', ); @@ -42344,35 +34808,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, @@ -42385,13 +34849,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', ); @@ -42408,16 +34870,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', ); @@ -42434,18 +34896,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', ); @@ -42458,18 +34918,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', ); @@ -42486,16 +34946,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', ); @@ -42512,18 +34972,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', ); @@ -42536,23 +34994,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, @@ -42565,12 +35022,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', ); @@ -42588,12 +35044,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', ); @@ -42611,12 +35066,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', ); @@ -42634,17 +35088,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, @@ -42657,17 +35110,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, @@ -42680,18 +35132,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, @@ -42704,12 +35156,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', ); @@ -42728,11 +35180,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', ); @@ -42749,22 +35200,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', ); @@ -42783,10 +35238,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', ); @@ -42803,21 +35258,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, @@ -42829,21 +35283,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, @@ -42855,21 +35307,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, @@ -42877,22 +35326,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, @@ -42904,21 +35350,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, @@ -42926,23 +35369,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, @@ -42950,23 +35390,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, @@ -42974,17 +35411,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', ); @@ -42997,20 +35431,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', ); @@ -43035,35 +35468,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, @@ -43071,23 +35504,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, @@ -43095,54 +35526,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', ); @@ -43157,109 +35548,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;', @@ -43272,113 +35592,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;', @@ -43387,7 +35628,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', @@ -43397,7 +35639,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', @@ -43407,7 +35650,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', @@ -43417,8 +35661,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', @@ -43428,7 +35672,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', @@ -43438,7 +35683,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', @@ -43448,7 +35694,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', @@ -43458,7 +35705,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', @@ -43468,7 +35716,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', @@ -43478,7 +35727,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', @@ -43488,7 +35738,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; @@ -43542,7 +35793,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', @@ -43552,7 +35804,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', @@ -43562,7 +35815,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', @@ -43572,7 +35826,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', @@ -43582,7 +35837,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', @@ -43592,7 +35848,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', @@ -43602,7 +35859,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', @@ -43612,7 +35870,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', @@ -43622,8 +35881,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', @@ -43633,8 +35892,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', @@ -43644,7 +35903,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', @@ -43654,7 +35914,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', @@ -43664,7 +35925,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; @@ -43682,7 +35944,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', @@ -43692,8 +35955,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; @@ -43708,7 +35971,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', @@ -43718,7 +35982,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', @@ -43728,7 +35993,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', @@ -43738,7 +36004,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', @@ -43748,8 +36015,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', @@ -43759,7 +36026,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', @@ -43769,7 +36037,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', @@ -43779,7 +36048,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', @@ -43789,7 +36059,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', @@ -43799,7 +36070,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', @@ -43809,7 +36081,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', @@ -43819,8 +36092,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', @@ -43830,8 +36103,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', @@ -43841,7 +36114,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', @@ -43851,7 +36125,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', @@ -43861,7 +36136,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', @@ -43871,7 +36147,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', @@ -43881,7 +36158,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', @@ -43891,7 +36169,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', @@ -43901,7 +36180,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', @@ -43911,7 +36191,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', @@ -43921,8 +36202,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', @@ -43932,7 +36213,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', @@ -43942,7 +36224,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', @@ -43952,8 +36235,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', @@ -43963,7 +36246,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', @@ -43973,8 +36257,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', @@ -43984,7 +36268,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', @@ -43994,7 +36279,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', @@ -44004,7 +36290,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', @@ -44014,7 +36301,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; @@ -44044,7 +36332,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', @@ -44054,7 +36343,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', @@ -44064,7 +36353,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', @@ -44074,7 +36364,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', @@ -44084,7 +36374,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', @@ -44094,7 +36385,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', @@ -44104,8 +36396,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', @@ -44115,8 +36407,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', @@ -44126,7 +36418,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', @@ -44136,7 +36429,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', @@ -44146,7 +36440,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; @@ -44164,7 +36459,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', @@ -44174,7 +36470,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', @@ -44184,7 +36481,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', @@ -44194,7 +36492,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', @@ -44204,7 +36503,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', @@ -44214,7 +36514,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', @@ -44224,7 +36525,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', @@ -44234,7 +36536,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', @@ -44244,7 +36547,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', @@ -44254,7 +36558,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', @@ -44264,7 +36569,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', @@ -44274,7 +36580,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', @@ -44284,7 +36591,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', @@ -44294,7 +36602,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', @@ -44304,8 +36613,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', @@ -44315,7 +36624,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', @@ -44325,8 +36635,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', @@ -44336,8 +36646,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', @@ -44347,7 +36657,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', @@ -44357,7 +36668,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', @@ -44367,8 +36679,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', @@ -44378,7 +36690,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', @@ -44388,7 +36701,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', @@ -44398,7 +36712,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', @@ -44408,7 +36722,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', @@ -44418,8 +36733,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', @@ -44429,7 +36744,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', @@ -44439,7 +36755,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', @@ -44449,7 +36766,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', @@ -44459,7 +36777,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', @@ -44469,7 +36788,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', @@ -44479,7 +36799,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', @@ -44489,8 +36810,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', @@ -44500,7 +36821,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', @@ -44510,9 +36832,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', ); @@ -44541,7 +36866,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, @@ -44557,7 +36882,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, @@ -44566,7 +36891,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', ); @@ -44589,15 +36914,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, @@ -44609,7 +36934,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, @@ -44618,7 +36943,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', ); @@ -44645,7 +36970,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, @@ -44659,7 +36984,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, @@ -44667,7 +36992,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', ); @@ -44692,7 +37017,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, @@ -44704,14 +37029,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', ); @@ -44733,27 +37058,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', ); @@ -44775,14 +37096,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, ) { @@ -44792,7 +37113,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, @@ -44800,7 +37121,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', ); @@ -44827,7 +37148,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, @@ -44841,7 +37162,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, @@ -44849,7 +37170,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', ); @@ -44872,14 +37193,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; @@ -44888,7 +37209,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, @@ -44896,7 +37217,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', ); @@ -44914,18 +37236,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', ); @@ -44943,23 +37264,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', ); @@ -44977,24 +37296,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', ); @@ -45011,16 +37327,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', ); @@ -45035,23 +37351,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', ); @@ -45069,24 +37382,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', ); @@ -45109,29 +37420,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', ); @@ -45148,22 +37454,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', ); @@ -45180,16 +37490,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', ); @@ -45207,28 +37517,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', ); @@ -45254,25 +37564,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, @@ -45282,7 +37592,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', ); @@ -45300,29 +37610,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', ); @@ -45341,11 +37651,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;', ); @@ -45367,14 +37676,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;', ); @@ -45397,14 +37704,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;', ); @@ -45426,12 +37731,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;', ); @@ -45454,11 +37759,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;', ); @@ -45471,20 +37776,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;', ); @@ -45505,12 +37810,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;', ); @@ -45533,11 +37838,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;', ); @@ -45552,21 +37857,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;', ); @@ -45587,28 +37892,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;', ); @@ -45623,24 +37928,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;', ); @@ -45660,14 +37962,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', ); @@ -45684,16 +37983,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', ); @@ -45710,16 +38009,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', ); @@ -45736,16 +38035,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', ); @@ -45777,13 +38077,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', ); @@ -45805,27 +38106,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', ); @@ -45856,13 +38157,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', ); @@ -45884,27 +38186,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', ); @@ -45926,30 +38228,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', ); @@ -45972,33 +38269,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', ); @@ -46025,9 +38316,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)` @@ -46035,9 +38326,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; @@ -46046,7 +38337,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, @@ -46057,7 +38348,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;', ); @@ -46077,18 +38368,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, @@ -46102,18 +38391,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, @@ -46127,18 +38416,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, @@ -46152,17 +38441,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, @@ -46176,18 +38465,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, @@ -46201,18 +38490,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, @@ -46226,18 +38515,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, @@ -46251,18 +38539,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, @@ -46276,13 +38563,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', ); @@ -46295,17 +38581,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;', ); @@ -46318,24 +38603,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, @@ -46349,18 +38634,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, @@ -46374,12 +38659,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;', ); @@ -46401,17 +38686,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, @@ -46424,13 +38709,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;', ); @@ -46445,26 +38728,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, @@ -46478,12 +38760,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;', ); @@ -46496,24 +38778,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, @@ -46527,18 +38808,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, @@ -46552,15 +38833,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;', ); @@ -46583,11 +38862,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;', ); @@ -46610,18 +38889,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, @@ -46635,15 +38912,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;', ); @@ -46665,17 +38940,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, @@ -46689,18 +38964,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, @@ -46714,18 +38988,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, @@ -46739,18 +39012,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, @@ -46764,18 +39036,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, @@ -46789,17 +39061,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, @@ -46813,19 +39085,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, @@ -46839,18 +39109,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, @@ -46864,18 +39133,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, @@ -46889,18 +39158,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, @@ -46914,18 +39183,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, @@ -46939,18 +39207,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, @@ -46964,17 +39232,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, @@ -46988,13 +39256,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;', ); @@ -47009,21 +39276,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;', ); @@ -47036,18 +39303,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;', ); @@ -47062,21 +39329,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;', ); @@ -47095,16 +39362,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;', ); @@ -47126,12 +39392,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;', ); @@ -47154,11 +39420,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;', ); @@ -47171,23 +39437,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, @@ -47201,17 +39467,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, @@ -47225,18 +39491,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( @@ -47250,18 +39516,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( @@ -47275,13 +39542,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', ); @@ -47303,55 +39570,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, @@ -47364,18 +39629,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, @@ -47388,13 +39652,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', ); @@ -47417,21 +39680,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', ); @@ -47454,7 +39714,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, ) { @@ -47462,13 +39722,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;', ); @@ -47500,13 +39760,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;', ); @@ -47529,30 +39789,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;', ); @@ -47567,24 +39827,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;', ); @@ -47607,11 +39864,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;', ); @@ -47633,12 +39890,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;', ); @@ -47653,21 +39910,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;', ); @@ -47688,28 +39945,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;', ); @@ -47731,7 +39988,7 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer, jni$_.Pointer)>(); @@ -47739,7 +39996,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, ) { @@ -47749,15 +40006,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;', ); @@ -47777,12 +40034,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', ); @@ -47807,12 +40063,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', ); @@ -47844,13 +40101,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;', ); @@ -47881,15 +40138,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;', ); @@ -47911,28 +40165,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;', ); @@ -47973,15 +40227,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;', ); @@ -48007,7 +40261,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. @@ -48016,7 +40270,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; @@ -48025,16 +40279,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', ); @@ -48055,12 +40309,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', ); @@ -48092,13 +40347,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', ); @@ -48120,14 +40375,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', ); @@ -48149,14 +40403,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', ); @@ -48171,20 +40423,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', ); @@ -48206,26 +40458,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', ); @@ -48246,12 +40494,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', ); @@ -48280,15 +40528,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', ); @@ -48321,16 +40566,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', ); @@ -48359,15 +40600,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', ); @@ -48400,17 +40638,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', ); @@ -48442,13 +40676,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', ); @@ -48477,15 +40711,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', ); @@ -48513,7 +40744,7 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer, jni$_.Pointer)>(); @@ -48523,7 +40754,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, ) { @@ -48536,7 +40767,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, @@ -48547,7 +40778,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', ); @@ -48582,14 +40813,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', ); @@ -48619,7 +40850,7 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer, jni$_.Pointer)>(); @@ -48630,7 +40861,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, ) { @@ -48644,7 +40875,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, @@ -48656,7 +40887,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', ); @@ -48686,7 +40917,7 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer, jni$_.Pointer)>(); @@ -48697,7 +40928,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, ) { @@ -48711,7 +40942,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, @@ -48723,7 +40954,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', ); @@ -48754,7 +40985,7 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer, jni$_.Pointer)>(); @@ -48765,7 +40996,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, ) { @@ -48779,7 +41010,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, @@ -48791,7 +41022,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', ); @@ -48812,12 +41043,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', ); @@ -48846,15 +41077,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', ); @@ -48885,13 +41113,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', ); @@ -48918,7 +41146,7 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer, jni$_.Pointer)>(); @@ -48927,7 +41155,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, ) { @@ -48939,7 +41167,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, @@ -48949,7 +41177,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', ); @@ -48978,7 +41207,7 @@ class Context extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer, jni$_.Pointer)>(); @@ -48988,7 +41217,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, ) { @@ -49001,7 +41230,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, @@ -49012,12 +41241,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, @@ -49025,21 +41254,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, @@ -49051,21 +41278,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, @@ -49077,16 +41302,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', ); @@ -49107,12 +41330,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', ); @@ -49141,15 +41364,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', ); @@ -49170,12 +41390,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', ); @@ -49204,15 +41424,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;', ); @@ -49235,11 +41452,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', ); @@ -49264,7 +41481,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, @@ -49274,14 +41491,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', ); @@ -49305,32 +41522,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', ); @@ -49355,18 +41566,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; @@ -49374,7 +41585,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, @@ -49384,7 +41595,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;', ); @@ -49406,12 +41617,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', ); @@ -49428,16 +41639,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', ); @@ -49459,12 +41670,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', ); @@ -49489,12 +41701,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', ); @@ -49516,14 +41729,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', ); @@ -49545,14 +41756,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', ); @@ -49569,94 +41778,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 afc63ff070..b20c416bba 100644 --- a/packages/flutter/lib/src/native/java/sentry_native_java.dart +++ b/packages/flutter/lib/src/native/java/sentry_native_java.dart @@ -5,8 +5,6 @@ import 'dart:typed_data'; import 'package:jni/jni.dart'; import 'package:meta/meta.dart'; -// ignore: implementation_imports -import 'package:sentry/src/utils/iterable_utils.dart'; import '../../../sentry_flutter.dart'; import '../../replay/replay_config.dart'; @@ -68,9 +66,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 @@ -141,8 +138,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 @@ -195,10 +192,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 = @@ -220,12 +217,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) @@ -234,7 +231,7 @@ class SentryNativeJava extends SentryNativeChannel { jMap.release(); if (nativeUser == null) return; - native.Sentry.setUser(nativeUser); + native.Sentry.user = nativeUser; } }); }); @@ -303,7 +300,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; @@ -413,7 +410,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); @@ -424,11 +421,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 b50762e8af..2109a18ea4 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 @@ -21,7 +21,7 @@ void initSentryAndroid({ final beforeSendReplayCallback = createBeforeSendReplayCallback(options); using((arena) { - final context = native.SentryFlutterPlugin.getApplicationContext() + final context = native.SentryFlutterPlugin.applicationContext ?..releasedBy(arena); if (context == null) { options.log(SentryLevel.error, @@ -30,8 +30,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; @@ -62,26 +61,35 @@ native.SentryOptions$BeforeSendReplayCallback createBeforeSendReplayCallback( native.$SentryOptions$BeforeSendReplayCallback( execute: (sentryReplayEvent, hint) { using((arena) { - final data = hint - .getReplayRecording() - ?.getPayload() - ?.use((payload) => payload.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) continue; + if (key.toDartString().contains('mask')) { + keysToRemove.add(key); + } else { + key.release(); + } + } + } + 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(); } }); @@ -156,85 +164,84 @@ 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.setStrictTraceContinuation(options.strictTraceContinuation); - androidOptions - // ignore: invalid_use_of_internal_member - .setOrgId(options.effectiveOrgId?.toJString()?..releasedBy(arena)); - androidOptions - .setConnectionTimeoutMillis(options.connectionTimeout.inMilliseconds); - androidOptions.setReadTimeoutMillis(options.readTimeout.inMilliseconds); + androidOptions.sendClientReports = options.sendClientReports; + androidOptions.maxAttachmentSize = options.maxAttachmentSize; + androidOptions.strictTraceContinuation = options.strictTraceContinuation; + // ignore: invalid_use_of_internal_member + androidOptions.orgId = options.effectiveOrgId?.toJString() + ?..releasedBy(arena); + 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( @@ -242,13 +249,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)); } @@ -261,32 +267,32 @@ void configureAndroidOptions({ native.SentryFlutterPlugin.setupBeforeSend(androidOptions); - 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/lib/src/version.dart b/packages/flutter/lib/src/version.dart index 6f97638607..1d61493183 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.19.0'; +const String sdkVersion = '9.20.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 558325fa75..f0d3a22954 100644 --- a/packages/flutter/pubspec.yaml +++ b/packages/flutter/pubspec.yaml @@ -1,5 +1,5 @@ name: sentry_flutter -version: 9.19.0 +version: 9.20.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,12 +23,12 @@ dependencies: sdk: flutter flutter_web_plugins: sdk: flutter - sentry: 9.19.0 + sentry: 9.20.0 package_info_plus: '>=1.0.0' meta: ^1.3.0 ffi: ^2.0.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/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 diff --git a/packages/flutter/scripts/safe-regenerate-jni.sh b/packages/flutter/scripts/safe-regenerate-jni.sh index 116d561b9f..3e344ae138 100755 --- a/packages/flutter/scripts/safe-regenerate-jni.sh +++ b/packages/flutter/scripts/safe-regenerate-jni.sh @@ -26,6 +26,10 @@ else DART="dart" fi +run_jnigen() { + $DART run tool/generate_jni.dart --config ffi-jni.yaml +} + echo "=== Attempting normal JNI binding regeneration ===" # The normal path: build APK (compiles Dart + Java), then run jnigen. @@ -38,7 +42,7 @@ normal_build=$? set -e if [ $normal_build -eq 0 ]; then - $DART run jnigen --config ffi-jni.yaml + run_jnigen $DART format "$binding_path" echo "=== Normal regeneration succeeded ===" exit 0 @@ -81,7 +85,7 @@ jar cf example/build/app/intermediates/flutter/release/libs.jar -C "$stub_dir" . rm -rf "$stub_dir" echo "Step 4: Running jnigen..." -$DART run jnigen --config ffi-jni.yaml +run_jnigen echo "Step 5: Formatting generated binding..." $DART format "$binding_path" 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); +} diff --git a/packages/hive/lib/src/version.dart b/packages/hive/lib/src/version.dart index ecf42f0c3f..82dbf2192d 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.19.0'; +const String sdkVersion = '9.20.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 82e8d32aa1..1262bbe824 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.19.0 +version: 9.20.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.19.0 + sentry: 9.20.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 47bc61989d..908089bfd9 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.19.0'; +const String sdkVersion = '9.20.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 64d04230d8..0de0dc766b 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.19.0 +version: 9.20.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.19.0 + sentry: 9.20.0 meta: ^1.3.0 path: ^1.8.3 diff --git a/packages/link/pubspec.yaml b/packages/link/pubspec.yaml index b4168797a3..bf6cf98d8b 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.19.0 +version: 9.20.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.19.0 + sentry: 9.20.0 dev_dependencies: _sentry_testing: diff --git a/packages/logging/lib/src/version.dart b/packages/logging/lib/src/version.dart index 11453c2c89..65cb093ae3 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.19.0'; +const String sdkVersion = '9.20.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 662ea4b8f2..0ff1f04a4f 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.19.0 +version: 9.20.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.19.0 + sentry: 9.20.0 meta: ^1.3.0 dev_dependencies: diff --git a/packages/sqflite/lib/src/version.dart b/packages/sqflite/lib/src/version.dart index e0a3962ff0..e0f8d13470 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.19.0'; +const String sdkVersion = '9.20.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 21436b9feb..de7d8b6034 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.19.0 +version: 9.20.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.19.0 + sentry: 9.20.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 743c71333b..1d4632f37d 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.19.0 +version: 9.20.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.19.0 + sentry: 9.20.0 dev_dependencies: _sentry_testing: