diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index e99aa76a..c516fde2 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1 +1,3 @@ -custom: ["https://www.paypal.com/paypalme/joschaeckert"] \ No newline at end of file + +github: ["josxha"] +custom: ["https://paypal.me/joschaeckert"] \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index ed6769bf..793041ad 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,8 +1,14 @@ blank_issues_enabled: false contact_links: - - name: "Q&A - GitHub Discussions" - url: https://github.com/josxha/flutter-maplibre/discussions/categories/q-a + - name: "Ask a Question" + url: https://github.com/josxha/flutter-maplibre/discussions/new?category=q-a about: "If you have a question about using MapLibre on Flutter" + - name: "Start a Discussion" + url: https://github.com/josxha/flutter-maplibre/discussions/new?category=general + about: "Start a discussion on some topic" + - name: "Share some Idea" + url: https://github.com/josxha/flutter-maplibre/discussions/new?category=ideas + about: "Share an idea, that isn't quite ready for a feature request" - name: "Join on Slack" url: https://slack.openstreetmap.us/ about: "Join #maplibre-flutter on the OpenStreetMap Slack" \ No newline at end of file diff --git a/codecov.yml b/.github/codecov.yml similarity index 70% rename from codecov.yml rename to .github/codecov.yml index 95a990f4..d1c5cc7b 100644 --- a/codecov.yml +++ b/.github/codecov.yml @@ -8,4 +8,12 @@ comment: ignore: - "**/*.g.dart" - "lib/src/platform/android/jni/**" - - "example/**" \ No newline at end of file + - "example/**" + +github_checks: + annotations: false + +coverage: + status: + project: off + patch: off \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 24fdb023..e8334b9b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,8 @@ jobs: - uses: subosito/flutter-action@v2 with: cache: true + - name: "Get Flutter dependencies" + run: dart pub get - name: Lint analysis run: dart format --set-exit-if-changed . lint-dart: @@ -69,7 +71,7 @@ jobs: strategy: fail-fast: false matrix: - sdk: [ '3.27.0', '' ] + sdk: [ '3.32.0', '' ] timeout-minutes: 30 steps: - uses: actions/checkout@v4 @@ -176,7 +178,7 @@ jobs: strategy: fail-fast: false matrix: - sdk: [ '3.27.0', '' ] + sdk: [ '3.32.0', '' ] steps: - uses: actions/checkout@v4 - uses: subosito/flutter-action@v2 @@ -208,7 +210,7 @@ jobs: # strategy: # fail-fast: false # matrix: -# sdk: [ '3.27.0', '' ] +# sdk: [ '3.32.0', '' ] # steps: # - uses: actions/checkout@v4 # - uses: subosito/flutter-action@v2 @@ -237,7 +239,7 @@ jobs: strategy: fail-fast: false matrix: - sdk: [ '3.27.0', '' ] + sdk: [ '3.32.0', '' ] steps: - uses: actions/checkout@v4 - uses: subosito/flutter-action@v2 @@ -257,7 +259,7 @@ jobs: strategy: fail-fast: false matrix: - sdk: [ '3.27.0', '' ] + sdk: [ '3.32.0', '' ] steps: - uses: actions/checkout@v4 - uses: subosito/flutter-action@v2 diff --git a/.metadata b/.metadata index b42501b7..2c6a77c3 100644 --- a/.metadata +++ b/.metadata @@ -4,7 +4,7 @@ # This file should be version controlled and should not be manually edited. version: - revision: "5dcb86f68f239346676ceb1ed1ea385bd215fba1" + revision: "c23637390482d4cf9598c3ce3f2be31aa7332daf" channel: "stable" project_type: plugin @@ -13,26 +13,26 @@ project_type: plugin migration: platforms: - platform: root - create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1 - base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1 + create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf + base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf - platform: android - create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1 - base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1 + create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf + base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf - platform: ios - create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1 - base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1 + create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf + base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf - platform: linux - create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1 - base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1 + create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf + base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf - platform: macos - create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1 - base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1 + create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf + base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf - platform: web - create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1 - base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1 + create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf + base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf - platform: windows - create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1 - base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1 + create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf + base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf # User provided section diff --git a/CHANGELOG.md b/CHANGELOG.md index dbb7cfdf..e9b780af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,46 @@ +## 0.2.1 + +This release builds upon the long anticipated merged threads in Flutter 3.29.0 +which removes the need of switching threads. Furthermore, the release contains a +couple of features and new fixes. + +Thanks for your contributions for this release, @felix-larsen and @pamtbaau! + +### New Features + +- Upgrade MapLibre Native on Android + to [11.8.0](https://github.com/maplibre/maplibre-native/blob/main/platform/android/CHANGELOG.md#1180) + which introduces support for PMTiles. +- Add `removePinchOnPressed` and `webRotationSpeed` as parameters to the + `MapCompass` widget. +- Allow the `SourceAttribution` widget to use multiple lines for its + attributions. +- Underline an attribution link for a `SourceAttribution` widget when hovered + with a cursor. +- Add the parameter `allowInteraction` to the `WidgetLayer` that allows widgets + to detect gestures on these widgets. +- Reintroduce awaitable `moveCamera()`, `animateCamera()` and `fitCamera()` on + Android. +- Use synchronous JNI calls on Android to prevent thread hopping. + +### Bug Fixes + +- Fix exceptions when the map widget rebuilds a lot in a short amount of time. +- Fix `moveCamera()`, `animateCamera()` and `fitCamera()` does not ignore null + parameters. +- Fix app freeze on Android using Flutter 3.29.0 caused by the merged threads. +- Fix exception when adding a RasterSource programatically. + +### Misc + +- Update examples and documentation. +- Set minimum Flutter version + to [3.29.0](https://discord.com/channels/951867686378409984/951879268227485707/1339719764574081148) + and minimum Dart version + to [3.7.0](https://discord.com/channels/951867686378409984/951879268227485707/1339719747981545485). +- Use the new code formatting. +- Upgrade pigeon to 24. + ## 0.2.0 This release is a collection of user affecting changes along a couple of new diff --git a/README.md b/README.md index 4c84d79e..2b268d66 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![stars](https://badgen.net/github/stars/josxha/flutter-maplibre?label=stars&color=green&icon=github)](https://github.com/josxha/flutter-maplibre/stargazers) [![likes](https://img.shields.io/pub/likes/maplibre?logo=flutter)](https://pub.dev/packages/maplibre) [![Pub Points](https://img.shields.io/pub/points/maplibre)](https://pub.dev/packages/maplibre/score) -[![Pub Popularity](https://img.shields.io/pub/popularity/maplibre)](https://pub.dev/packages/maplibre) +[![Pub Downloads](https://img.shields.io/pub/dm/maplibre)](https://pub.dev/packages/maplibre) [![codecov](https://codecov.io/gh/josxha/flutter-maplibre/graph/badge.svg?token=3LK7EQMSUM)](https://codecov.io/gh/josxha/flutter-maplibre) [![style: very good analysis](https://img.shields.io/badge/style-very_good_analysis-B22C89.svg)](https://pub.dev/packages/very_good_analysis) @@ -76,8 +76,6 @@ functionality. - - @@ -112,4 +110,5 @@ development: feature, [open a feature request](https://github.com/josxha/flutter-maplibre/issues/new?assignees=&labels=feature&projects=&template=2-feature.yml&title=%5BFEATURE%5D+%3Ctitle%3E). or [post your idea as discussion](https://github.com/josxha/flutter-maplibre/discussions/categories/ideas). - Enhance the package documentation. -- [Sponsor this project](https://www.paypal.com/paypalme/joschaeckert). +- Sponsor this + project: [GitHub-Sponsors](https://github.com/sponsors/josxha), [PayPal](https://www.paypal.com/paypalme/joschaeckert). diff --git a/android/build.gradle b/android/build.gradle index d573279f..41487104 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -2,7 +2,7 @@ group = "com.github.josxha.maplibre" version = "1.0-SNAPSHOT" buildscript { - ext.kotlin_version = "2.1.0" + ext.kotlin_version = "2.1.21" repositories { google() mavenCentral() @@ -12,10 +12,10 @@ buildscript { } dependencies { - classpath("com.android.tools.build:gradle:8.6.1") + classpath("com.android.tools.build:gradle:8.10.1") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version") // noinspection GradleDynamicVersion - classpath("org.jlleitschuh.gradle:ktlint-gradle:12.1.+") + classpath("org.jlleitschuh.gradle:ktlint-gradle:12.3.+") } } @@ -45,7 +45,7 @@ android { namespace = "com.github.josxha.maplibre" } - compileSdk = 34 + compileSdk = 35 compileOptions { sourceCompatibility = JavaVersion.VERSION_11 @@ -67,7 +67,6 @@ android { dependencies { // noinspection GradleDynamicVersion - implementation 'org.maplibre.gl:android-sdk:11.7.+' // JNIGEN // JNIGEN implementation project(":MapLibreAndroid") // JNIGEN implementation 'com.google.code.gson:gson:2.11.0' // JNIGEN implementation 'org.maplibre.gl:maplibre-android-gestures:0.0.3' @@ -75,10 +74,11 @@ android { // JNIGEN implementation 'org.maplibre.gl:android-sdk-turf:6.0.1' // JNIGEN implementation 'com.jakewharton.timber:timber:5.0.1' // JNIGEN implementation 'androidx.annotation:annotation:1.9.0' + implementation 'org.maplibre.gl:android-sdk:11.10.+' // JNIGEN // implementation 'org.maplibre.gl:android-plugin-offline-v9:3.0.2' // JNIGEN implementation 'com.squareup.okhttp3:okhttp:4.12.0' testImplementation("org.jetbrains.kotlin:kotlin-test") - testImplementation("org.mockito:mockito-core:5.14.2") + testImplementation("org.mockito:mockito-core:5.18.0") } testOptions { diff --git a/android/gradlew b/android/gradlew old mode 100644 new mode 100755 diff --git a/android/src/main/kotlin/com/github/josxha/maplibre/Pigeon.g.kt b/android/src/main/kotlin/com/github/josxha/maplibre/Pigeon.g.kt index 29c20c73..e82254f8 100644 --- a/android/src/main/kotlin/com/github/josxha/maplibre/Pigeon.g.kt +++ b/android/src/main/kotlin/com/github/josxha/maplibre/Pigeon.g.kt @@ -1,4 +1,4 @@ -// Autogenerated from Pigeon (v22.6.0), do not edit directly. +// Autogenerated from Pigeon (v25.2.0), do not edit directly. // See also: https://pub.dev/packages/pigeon @file:Suppress("UNCHECKED_CAST", "ArrayInDataClass") @@ -6,7 +6,9 @@ import android.util.Log import io.flutter.plugin.common.BasicMessageChannel import io.flutter.plugin.common.BinaryMessenger +import io.flutter.plugin.common.EventChannel import io.flutter.plugin.common.MessageCodec +import io.flutter.plugin.common.StandardMethodCodec import io.flutter.plugin.common.StandardMessageCodec import java.io.ByteArrayOutputStream import java.nio.ByteBuffer @@ -160,6 +162,28 @@ data class MapOptions ( androidTextureMode, ) } + override fun equals(other: Any?): Boolean { + if (other !is MapOptions) { + return false + } + if (this === other) { + return true + } + return style == other.style + && zoom == other.zoom + && pitch == other.pitch + && bearing == other.bearing + && center == other.center + && maxBounds == other.maxBounds + && minZoom == other.minZoom + && maxZoom == other.maxZoom + && minPitch == other.minPitch + && maxPitch == other.maxPitch + && gestures == other.gestures + && androidTextureMode == other.androidTextureMode + } + + override fun hashCode(): Int = toList().hashCode() } /** @@ -195,6 +219,20 @@ data class MapGestures ( tilt, ) } + override fun equals(other: Any?): Boolean { + if (other !is MapGestures) { + return false + } + if (this === other) { + return true + } + return rotate == other.rotate + && pan == other.pan + && zoom == other.zoom + && tilt == other.tilt + } + + override fun hashCode(): Int = toList().hashCode() } /** @@ -222,6 +260,18 @@ data class LngLat ( lat, ) } + override fun equals(other: Any?): Boolean { + if (other !is LngLat) { + return false + } + if (this === other) { + return true + } + return lng == other.lng + && lat == other.lat + } + + override fun hashCode(): Int = toList().hashCode() } /** @@ -249,6 +299,18 @@ data class Offset ( y, ) } + override fun equals(other: Any?): Boolean { + if (other !is Offset) { + return false + } + if (this === other) { + return true + } + return x == other.x + && y == other.y + } + + override fun hashCode(): Int = toList().hashCode() } /** @@ -280,6 +342,20 @@ data class Padding ( right, ) } + override fun equals(other: Any?): Boolean { + if (other !is Padding) { + return false + } + if (this === other) { + return true + } + return top == other.top + && bottom == other.bottom + && left == other.left + && right == other.right + } + + override fun hashCode(): Int = toList().hashCode() } /** @@ -311,6 +387,20 @@ data class MapCamera ( bearing, ) } + override fun equals(other: Any?): Boolean { + if (other !is MapCamera) { + return false + } + if (this === other) { + return true + } + return center == other.center + && zoom == other.zoom + && pitch == other.pitch + && bearing == other.bearing + } + + override fun hashCode(): Int = toList().hashCode() } /** @@ -342,6 +432,20 @@ data class LngLatBounds ( latitudeNorth, ) } + override fun equals(other: Any?): Boolean { + if (other !is LngLatBounds) { + return false + } + if (this === other) { + return true + } + return longitudeWest == other.longitudeWest + && longitudeEast == other.longitudeEast + && latitudeSouth == other.latitudeSouth + && latitudeNorth == other.latitudeNorth + } + + override fun hashCode(): Int = toList().hashCode() } private open class PigeonPigeonCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { diff --git a/doc/logo.png b/doc/logo.png index 97755c0f..7d1c143e 100644 Binary files a/doc/logo.png and b/doc/logo.png differ diff --git a/doc/logo_rounded.png b/doc/logo_rounded.png new file mode 100644 index 00000000..97755c0f Binary files /dev/null and b/doc/logo_rounded.png differ diff --git a/docs/.yarn/install-state.gz b/docs/.yarn/install-state.gz index 6d297038..d33e6ac6 100644 Binary files a/docs/.yarn/install-state.gz and b/docs/.yarn/install-state.gz differ diff --git a/docs/docs/getting-started/add-dependency.md b/docs/docs/getting-started/add-dependency.md index 67851351..bee159da 100644 --- a/docs/docs/getting-started/add-dependency.md +++ b/docs/docs/getting-started/add-dependency.md @@ -18,7 +18,7 @@ run `flutter pub get`: ```yaml title="pubspec.yaml" dependencies: # highlight-next-line - maplibre: ^0.1.0 + maplibre: ^0.2.0 ``` Ensure that you use the documentation of the right diff --git a/docs/package.json b/docs/package.json index cf469316..973410bd 100644 --- a/docs/package.json +++ b/docs/package.json @@ -15,20 +15,20 @@ "typecheck": "tsc" }, "dependencies": { - "@docusaurus/core": "^3.6.3", - "@docusaurus/preset-classic": "^3.6.3", - "@docusaurus/theme-mermaid": "^3.6.3", + "@docusaurus/core": "^3.8.1", + "@docusaurus/preset-classic": "^3.8.1", + "@docusaurus/theme-mermaid": "^3.8.1", "@mdx-js/react": "^3.1.0", - "clsx": "^2.0.0", - "prism-react-renderer": "^2.3.0", - "react": "^18.0.0", - "react-dom": "^18.0.0" + "clsx": "^2.1.1", + "prism-react-renderer": "^2.4.1", + "react": "^19.1.0", + "react-dom": "^19.1.0" }, "devDependencies": { - "@docusaurus/module-type-aliases": "^3.6.3", - "@docusaurus/tsconfig": "^3.6.3", - "@docusaurus/types": "^3.6.3", - "typescript": "~5.7.2" + "@docusaurus/module-type-aliases": "^3.8.1", + "@docusaurus/tsconfig": "^3.8.1", + "@docusaurus/types": "^3.8.1", + "typescript": "~5.8.3" }, "browserslist": { "production": [ diff --git a/docs/src/pages/features.md b/docs/src/pages/features.md index 7faa3616..f02916cb 100644 --- a/docs/src/pages/features.md +++ b/docs/src/pages/features.md @@ -22,15 +22,15 @@ lack of platform views of these platforms. ### General Functionality -| Feature | web | android | iOS | windows | macOS | linux | -|---------------------|-----|---------|-----|---------|-------|-------| -| Map | ✅ | ✅ | ❌ | ➖ | ➖ | ➖ | -| MapController | ✅ | ✅ | ❌ | ➖ | ➖ | ➖ | -| UI Controls for web | ✅ | ✅ | ➖ | ➖ | ➖ | ➖ | -| Offline | ➖ | ✅ | ❌ | ➖ | ➖ | ➖ | -| Events | ✅ | ✅ | ❌ | ➖ | ➖ | ➖ | -| Snapshotter | ➖ | ❌ | ❌ | ➖ | ➖ | ➖ | -| Annotations | ✅ | ✅ | ❌ | ➖ | ➖ | ➖ | +| Feature | web | android | iOS | windows | macOS | linux | +|---------------|-----|---------|-----|---------|-------|-------| +| Map | ✅ | ✅ | ❌ | ➖ | ➖ | ➖ | +| MapController | ✅ | ✅ | ❌ | ➖ | ➖ | ➖ | +| Offline | ➖ | ✅ | ❌ | ➖ | ➖ | ➖ | +| Events | ✅ | ✅ | ❌ | ➖ | ➖ | ➖ | +| Annotations | ✅ | ✅ | ❌ | ➖ | ➖ | ➖ | +| MBTiles | ➖ | ✅ | ❌ | ➖ | ➖ | ➖ | +| PMTiles | ❌ | ✅ | ❌ | ➖ | ➖ | ➖ | ### Style Layers diff --git a/docs/versioned_docs/version-0.2.x/getting-started/add-dependency.md b/docs/versioned_docs/version-0.2.x/getting-started/add-dependency.md index 67851351..bee159da 100644 --- a/docs/versioned_docs/version-0.2.x/getting-started/add-dependency.md +++ b/docs/versioned_docs/version-0.2.x/getting-started/add-dependency.md @@ -18,7 +18,7 @@ run `flutter pub get`: ```yaml title="pubspec.yaml" dependencies: # highlight-next-line - maplibre: ^0.1.0 + maplibre: ^0.2.0 ``` Ensure that you use the documentation of the right diff --git a/docs/yarn.lock b/docs/yarn.lock index 11509480..faed798f 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -5,126 +5,125 @@ __metadata: version: 8 cacheKey: 10c0 -"@algolia/autocomplete-core@npm:1.9.3": - version: 1.9.3 - resolution: "@algolia/autocomplete-core@npm:1.9.3" +"@algolia/autocomplete-core@npm:1.17.9": + version: 1.17.9 + resolution: "@algolia/autocomplete-core@npm:1.17.9" dependencies: - "@algolia/autocomplete-plugin-algolia-insights": "npm:1.9.3" - "@algolia/autocomplete-shared": "npm:1.9.3" - checksum: 10c0/a751b20f15c9a30b8b2d5a4f1f62fb4dbd012fb7ffec1b12308d6e7388b5a4dc83af52176634f17facb57a7727204843c5aa2f6e80efafaaf244275f44af11d9 + "@algolia/autocomplete-plugin-algolia-insights": "npm:1.17.9" + "@algolia/autocomplete-shared": "npm:1.17.9" + checksum: 10c0/e1111769a8723b9dd45fc38cd7edc535c86c1f908b84b5fdc5de06ba6b8c7aca14e5f52ebce84fa5f7adf857332e396b93b7e7933b157b2c9aefc0a19d9574ab languageName: node linkType: hard -"@algolia/autocomplete-plugin-algolia-insights@npm:1.9.3": - version: 1.9.3 - resolution: "@algolia/autocomplete-plugin-algolia-insights@npm:1.9.3" +"@algolia/autocomplete-plugin-algolia-insights@npm:1.17.9": + version: 1.17.9 + resolution: "@algolia/autocomplete-plugin-algolia-insights@npm:1.17.9" dependencies: - "@algolia/autocomplete-shared": "npm:1.9.3" + "@algolia/autocomplete-shared": "npm:1.17.9" peerDependencies: search-insights: ">= 1 < 3" - checksum: 10c0/574196f66fe828be1029439032376685020524d6c729dea99caef336cc7be244d2539fa91b3fe80db80efe3420c2c05063cab3534514be6c637bf1914b17a6f6 + checksum: 10c0/05c21502631643abdcd6e9f70b5814a60d34bad59bca501e26e030fd72e689be5cecfb6e8939a0a1bdcb2394591e55e26a42a82c7247528eafeff714db0819a4 languageName: node linkType: hard -"@algolia/autocomplete-preset-algolia@npm:1.9.3": - version: 1.9.3 - resolution: "@algolia/autocomplete-preset-algolia@npm:1.9.3" +"@algolia/autocomplete-preset-algolia@npm:1.17.9": + version: 1.17.9 + resolution: "@algolia/autocomplete-preset-algolia@npm:1.17.9" dependencies: - "@algolia/autocomplete-shared": "npm:1.9.3" + "@algolia/autocomplete-shared": "npm:1.17.9" peerDependencies: "@algolia/client-search": ">= 4.9.1 < 6" algoliasearch: ">= 4.9.1 < 6" - checksum: 10c0/38c1872db4dae69b4eec622db940c7a992d8530e33fbac7df593473ef404312076d9933b4a7ea25c2d401ea5b62ebd64b56aa25b5cdd8e8ba3fd309a39d9d816 + checksum: 10c0/99159c7e02a927d0d96717cb4cfd2f8dbc4da73267a8eae4f83af5bf74087089f6e7dbffd316512e713a4cc534e936b6a7ccb5c4a5ff84b4bf73f2d3cc050e79 languageName: node linkType: hard -"@algolia/autocomplete-shared@npm:1.9.3": - version: 1.9.3 - resolution: "@algolia/autocomplete-shared@npm:1.9.3" +"@algolia/autocomplete-shared@npm:1.17.9": + version: 1.17.9 + resolution: "@algolia/autocomplete-shared@npm:1.17.9" peerDependencies: "@algolia/client-search": ">= 4.9.1 < 6" algoliasearch: ">= 4.9.1 < 6" - checksum: 10c0/1aa926532c32be6bb5384c8c0ae51a312c9d79ed7486371218dfcb61c8ea1ed46171bdc9f9b596a266aece104a0ef76d6aac2f9a378a5a6eb4460e638d59f6ae + checksum: 10c0/b318281aecdaae09171b47ee4f7bc66b613852cad4506e9d6278fff35ba68a12dd9cce2d90b5f4c3ba0e3d7d780583cbe46b22275260e41bbf09fb01e4a18f49 languageName: node linkType: hard -"@algolia/cache-browser-local-storage@npm:4.24.0": - version: 4.24.0 - resolution: "@algolia/cache-browser-local-storage@npm:4.24.0" +"@algolia/client-abtesting@npm:5.20.0": + version: 5.20.0 + resolution: "@algolia/client-abtesting@npm:5.20.0" dependencies: - "@algolia/cache-common": "npm:4.24.0" - checksum: 10c0/68823c3b1c07dab093de98e678e2ff7fcf7a40915a157715f6f51d073e3865086be98cbbe554b7bf9e0514db5dd9e726033e27e566d9e5db059cb5059c3436cc + "@algolia/client-common": "npm:5.20.0" + "@algolia/requester-browser-xhr": "npm:5.20.0" + "@algolia/requester-fetch": "npm:5.20.0" + "@algolia/requester-node-http": "npm:5.20.0" + checksum: 10c0/9c374efbb79d9ec322f92618d70183aad90f1e386e8df2f82c776af7011f2ddc0feafdb1639edfd40a4a12394e44f442016bca2e125a20d52e6227d7fbb23646 languageName: node linkType: hard -"@algolia/cache-common@npm:4.24.0": - version: 4.24.0 - resolution: "@algolia/cache-common@npm:4.24.0" - checksum: 10c0/ad481ad50d7ea92d0cce525757627f4a647b5373dc6d3cbed6405d05cb83f21a110919e7133e5233d5b13c2c8f59ed9e927efdbc82e70571707709075b07d2c6 - languageName: node - linkType: hard - -"@algolia/cache-in-memory@npm:4.24.0": - version: 4.24.0 - resolution: "@algolia/cache-in-memory@npm:4.24.0" +"@algolia/client-analytics@npm:5.20.0": + version: 5.20.0 + resolution: "@algolia/client-analytics@npm:5.20.0" dependencies: - "@algolia/cache-common": "npm:4.24.0" - checksum: 10c0/2956600b2722f113373dbb71449f546afb5a0fb1a3d1558a1a3e957b7a630d1f25045c29646c8dbb44cdffe6ff4c9d1219bf63fc9fd8e4d5467381c7150e09f9 + "@algolia/client-common": "npm:5.20.0" + "@algolia/requester-browser-xhr": "npm:5.20.0" + "@algolia/requester-fetch": "npm:5.20.0" + "@algolia/requester-node-http": "npm:5.20.0" + checksum: 10c0/c3cc9b0eea8af6f22a4598decd1be9d3df3f4aabc7301abed38e7f3dec078827b69de38893e93c0cc2c1d0d07af03d536577c967270cb5328aeb9af2ee8eb807 languageName: node linkType: hard -"@algolia/client-account@npm:4.24.0": - version: 4.24.0 - resolution: "@algolia/client-account@npm:4.24.0" - dependencies: - "@algolia/client-common": "npm:4.24.0" - "@algolia/client-search": "npm:4.24.0" - "@algolia/transporter": "npm:4.24.0" - checksum: 10c0/3dd52dd692a2194eb45844280e6261192d5a4ef99aec729a09a01da5cf071fd77b37c6d164bf8877823efc1484d576068d76ada764a4f0624238a3475bc199b2 +"@algolia/client-common@npm:5.20.0": + version: 5.20.0 + resolution: "@algolia/client-common@npm:5.20.0" + checksum: 10c0/c1288c7a3f3366c48b31a4810223d9ca17878a9da656f89dda5e8348e3ec5dc82d538bfd6ad8c203e1aa28d191ef93b10cdad90ad3a96dddd7772ffc4f26ad4e languageName: node linkType: hard -"@algolia/client-analytics@npm:4.24.0": - version: 4.24.0 - resolution: "@algolia/client-analytics@npm:4.24.0" +"@algolia/client-insights@npm:5.20.0": + version: 5.20.0 + resolution: "@algolia/client-insights@npm:5.20.0" dependencies: - "@algolia/client-common": "npm:4.24.0" - "@algolia/client-search": "npm:4.24.0" - "@algolia/requester-common": "npm:4.24.0" - "@algolia/transporter": "npm:4.24.0" - checksum: 10c0/8d02e6d0eb0dcde099832c62fa7d7e9910b2757b4d37e07e1eefb65a12fef7e7ce3d73fda23e8ee02d53953a91efc15086016b1af5e9fea9227dfc0fc61c9f63 + "@algolia/client-common": "npm:5.20.0" + "@algolia/requester-browser-xhr": "npm:5.20.0" + "@algolia/requester-fetch": "npm:5.20.0" + "@algolia/requester-node-http": "npm:5.20.0" + checksum: 10c0/79a4353464ce1480b446a704c2bf95db33911fce1c6975dea26bfd2cf68ca50dfaf6e5643fc11dfda8b2d3f4a7e921a615372ce61b4b781fff8c961b96a0f992 languageName: node linkType: hard -"@algolia/client-common@npm:4.24.0": - version: 4.24.0 - resolution: "@algolia/client-common@npm:4.24.0" +"@algolia/client-personalization@npm:5.20.0": + version: 5.20.0 + resolution: "@algolia/client-personalization@npm:5.20.0" dependencies: - "@algolia/requester-common": "npm:4.24.0" - "@algolia/transporter": "npm:4.24.0" - checksum: 10c0/9e75d0bb51bb04f099e823e4397d1bac6659e1ecb7c7a73a5eaf9153632d544bd6c62a4961b606490220b236361eb8b7b77a5e4c47f12aefdd2952b14ce2fd18 + "@algolia/client-common": "npm:5.20.0" + "@algolia/requester-browser-xhr": "npm:5.20.0" + "@algolia/requester-fetch": "npm:5.20.0" + "@algolia/requester-node-http": "npm:5.20.0" + checksum: 10c0/c7fbea1e3f7023c8687f21da25421187478440a16816ffaf3c0191b922ebfba23122d145cc270860f5e5a2f90157db8f0579330c2652a41280e907cd1c50c016 languageName: node linkType: hard -"@algolia/client-personalization@npm:4.24.0": - version: 4.24.0 - resolution: "@algolia/client-personalization@npm:4.24.0" +"@algolia/client-query-suggestions@npm:5.20.0": + version: 5.20.0 + resolution: "@algolia/client-query-suggestions@npm:5.20.0" dependencies: - "@algolia/client-common": "npm:4.24.0" - "@algolia/requester-common": "npm:4.24.0" - "@algolia/transporter": "npm:4.24.0" - checksum: 10c0/9193e032841ae991ce6dd8c8988608d0d83a6785681abf26055812506aaf070db8d8f44403d0270384ff39530677603d103c330a869a397181d594bebe46b4b0 + "@algolia/client-common": "npm:5.20.0" + "@algolia/requester-browser-xhr": "npm:5.20.0" + "@algolia/requester-fetch": "npm:5.20.0" + "@algolia/requester-node-http": "npm:5.20.0" + checksum: 10c0/ffaadf1b1df25fe2006daafd4d5cef97897b17a944d4263df8ff892195f5ba9fb4cf51c33f6672c41d1fe593e2ed032fa28f586dc6a14abcec64c77ce3f38b63 languageName: node linkType: hard -"@algolia/client-search@npm:4.24.0": - version: 4.24.0 - resolution: "@algolia/client-search@npm:4.24.0" +"@algolia/client-search@npm:5.20.0": + version: 5.20.0 + resolution: "@algolia/client-search@npm:5.20.0" dependencies: - "@algolia/client-common": "npm:4.24.0" - "@algolia/requester-common": "npm:4.24.0" - "@algolia/transporter": "npm:4.24.0" - checksum: 10c0/d161235014fa73acc0ff04d737c695b7357c060d31db6d602464b27ba846208c6aeb35b179e76d4c33b51329b77de0c460f6cb21b66d364c18a5534874c7b987 + "@algolia/client-common": "npm:5.20.0" + "@algolia/requester-browser-xhr": "npm:5.20.0" + "@algolia/requester-fetch": "npm:5.20.0" + "@algolia/requester-node-http": "npm:5.20.0" + checksum: 10c0/2d62718f3b054a3dbee6f4b07a51eef5102c41b336e7d7768afe26889dc1852b92c0f9c747d1b44a9b921eb8daef7dfe2b2087f44a3177d21fe7d7080c83f9fe languageName: node linkType: hard @@ -135,74 +134,66 @@ __metadata: languageName: node linkType: hard -"@algolia/logger-common@npm:4.24.0": - version: 4.24.0 - resolution: "@algolia/logger-common@npm:4.24.0" - checksum: 10c0/1ebe93901a2b3ce41696b535d028337c1c6a98a4262868117c16dd603cc8bb106b840e45cf53c08d098cf518e07bedc64a59cc86bef18795dc49031c2c208d31 - languageName: node - linkType: hard - -"@algolia/logger-console@npm:4.24.0": - version: 4.24.0 - resolution: "@algolia/logger-console@npm:4.24.0" +"@algolia/ingestion@npm:1.20.0": + version: 1.20.0 + resolution: "@algolia/ingestion@npm:1.20.0" dependencies: - "@algolia/logger-common": "npm:4.24.0" - checksum: 10c0/fdfa3983e6c38cc7b69d66e1085ac702e009d693bd49d64b27cad9ba4197788a8784529a8ed9c25e6ccd51cc4ad3a2427241ecc322c22ca2c8ce6a8d4d94fe69 + "@algolia/client-common": "npm:5.20.0" + "@algolia/requester-browser-xhr": "npm:5.20.0" + "@algolia/requester-fetch": "npm:5.20.0" + "@algolia/requester-node-http": "npm:5.20.0" + checksum: 10c0/be77d56c378e9196c817b66afd922a4a812d4cb0fa0f8b7c09c8eca219f1262212e02f948d54e5ae460aea2a08dcc67f1968a1fcfdf18a1f0fd5267e8b1881d9 languageName: node linkType: hard -"@algolia/recommend@npm:4.24.0": - version: 4.24.0 - resolution: "@algolia/recommend@npm:4.24.0" +"@algolia/monitoring@npm:1.20.0": + version: 1.20.0 + resolution: "@algolia/monitoring@npm:1.20.0" dependencies: - "@algolia/cache-browser-local-storage": "npm:4.24.0" - "@algolia/cache-common": "npm:4.24.0" - "@algolia/cache-in-memory": "npm:4.24.0" - "@algolia/client-common": "npm:4.24.0" - "@algolia/client-search": "npm:4.24.0" - "@algolia/logger-common": "npm:4.24.0" - "@algolia/logger-console": "npm:4.24.0" - "@algolia/requester-browser-xhr": "npm:4.24.0" - "@algolia/requester-common": "npm:4.24.0" - "@algolia/requester-node-http": "npm:4.24.0" - "@algolia/transporter": "npm:4.24.0" - checksum: 10c0/685fb5c1d85d7b9fd39d9246b49da5be4199fecc144bb350ed92fc191b66e4e1101ee6df9ca857ac5096f587638fa3366e01ddca0258f11000aa092ed68daea3 + "@algolia/client-common": "npm:5.20.0" + "@algolia/requester-browser-xhr": "npm:5.20.0" + "@algolia/requester-fetch": "npm:5.20.0" + "@algolia/requester-node-http": "npm:5.20.0" + checksum: 10c0/0b2f9d899e2662fe0e6eb0c45fb3cc46c546951603f1ea52f9adc8d2dd4296f7010e93b2b2e0b94c1f51a2e1edc887eeb054db76c6b6f417fa123d4f1c674bdd languageName: node linkType: hard -"@algolia/requester-browser-xhr@npm:4.24.0": - version: 4.24.0 - resolution: "@algolia/requester-browser-xhr@npm:4.24.0" +"@algolia/recommend@npm:5.20.0": + version: 5.20.0 + resolution: "@algolia/recommend@npm:5.20.0" dependencies: - "@algolia/requester-common": "npm:4.24.0" - checksum: 10c0/2d277b291bcc0a388f114116879c15a96c057f698b026c32e719b354c2e2e03e05b3c304f45d2354eb4dd8dfa519d481af51ce8ef19b6fb4fd6d384cf41373de + "@algolia/client-common": "npm:5.20.0" + "@algolia/requester-browser-xhr": "npm:5.20.0" + "@algolia/requester-fetch": "npm:5.20.0" + "@algolia/requester-node-http": "npm:5.20.0" + checksum: 10c0/ce62228b630864ed0faf78c0f3b5fbca5ef38e9c07ec6e492d7d36b948418ec87b82869d78740c980f5d0bbfbff37f15f394bfffd0571fdfb8a0973915b200cb languageName: node linkType: hard -"@algolia/requester-common@npm:4.24.0": - version: 4.24.0 - resolution: "@algolia/requester-common@npm:4.24.0" - checksum: 10c0/cf88ca1f04f4243515bbfa05d7cf51afe6a57904390d9e1ccab799bae20f6fa77e954d9eee9d5c718086582aeb478e271ccf1d5a6a5ab943494250dce820268e +"@algolia/requester-browser-xhr@npm:5.20.0": + version: 5.20.0 + resolution: "@algolia/requester-browser-xhr@npm:5.20.0" + dependencies: + "@algolia/client-common": "npm:5.20.0" + checksum: 10c0/80ae38016d682404468c8c8f3765fef468dc9f83095366f8531f48982400c1e2d7c55f95b331c23d44563cbf38afcf71c29a59c65dee5ca503a6b2a8386b2eea languageName: node linkType: hard -"@algolia/requester-node-http@npm:4.24.0": - version: 4.24.0 - resolution: "@algolia/requester-node-http@npm:4.24.0" +"@algolia/requester-fetch@npm:5.20.0": + version: 5.20.0 + resolution: "@algolia/requester-fetch@npm:5.20.0" dependencies: - "@algolia/requester-common": "npm:4.24.0" - checksum: 10c0/e9cef1463f29035a44f12941ddeb343a213ff512c61ade46a07db19b2023f49a5ac12024a3f56d8b9c0c5b2bd32466030c5e27b26a6a6e17773b810388ddb3b7 + "@algolia/client-common": "npm:5.20.0" + checksum: 10c0/8d9118088a39be10ba362fd37963c41a62dfe480ef42dfa17a32438c1278041074be12d2c459de0c0a1575452f64edb64856e8f47a4bba9b732cf1fe60ad0f92 languageName: node linkType: hard -"@algolia/transporter@npm:4.24.0": - version: 4.24.0 - resolution: "@algolia/transporter@npm:4.24.0" +"@algolia/requester-node-http@npm:5.20.0": + version: 5.20.0 + resolution: "@algolia/requester-node-http@npm:5.20.0" dependencies: - "@algolia/cache-common": "npm:4.24.0" - "@algolia/logger-common": "npm:4.24.0" - "@algolia/requester-common": "npm:4.24.0" - checksum: 10c0/9eee8e6613c8d2a5562e4df284dc7b0804a7bf80586fd8512ad769dc4829f947a334480378d94efd3cc57ca4d400886eb677786a3c5664f85881093f9e27cab7 + "@algolia/client-common": "npm:5.20.0" + checksum: 10c0/f1e2277c675d866e143ddb4c5b2eae69cd8af62194489e802cae25152854afdad03d2ce59d354b6a57952857b460962a65909ed5dfd4164db833690dbedcf7c7 languageName: node linkType: hard @@ -216,24 +207,24 @@ __metadata: languageName: node linkType: hard -"@antfu/install-pkg@npm:^0.4.0": - version: 0.4.1 - resolution: "@antfu/install-pkg@npm:0.4.1" +"@antfu/install-pkg@npm:^1.0.0": + version: 1.1.0 + resolution: "@antfu/install-pkg@npm:1.1.0" dependencies: - package-manager-detector: "npm:^0.2.0" - tinyexec: "npm:^0.3.0" - checksum: 10c0/af47a84e77f3f69077ec464e0a9e82791666693380fc8ed9867f388f5c0cd8421e2642b9deefc7d4adb7b8cfb9dd1a715b25f9a974d023b10779cad0885439ef + package-manager-detector: "npm:^1.3.0" + tinyexec: "npm:^1.0.1" + checksum: 10c0/140d5994c76fd3d0e824c88f1ce91b3370e8066a8bc2f5729ae133bf768caa239f7915e29c78f239b7ead253113ace51293e95127fafe2b786b88eb615b3be47 languageName: node linkType: hard -"@antfu/utils@npm:^0.7.10": - version: 0.7.10 - resolution: "@antfu/utils@npm:0.7.10" - checksum: 10c0/98991f66a4752ef097280b4235b27d961a13a2c67ef8e5b716a120eb9823958e20566516711204e2bfb08f0b935814b715f49ecd79c3b9b93ce32747ac297752 +"@antfu/utils@npm:^8.1.0": + version: 8.1.1 + resolution: "@antfu/utils@npm:8.1.1" + checksum: 10c0/cd55d322496f0324323a7bd312bbdc305db02f5c74c53d59213a00a7ecfd66926b6755a41f27c6e664a687cd7a967d3a8b12d3ea57f264ae45dd1c5c181f5160 languageName: node linkType: hard -"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.16.0, @babel/code-frame@npm:^7.24.7, @babel/code-frame@npm:^7.8.3": +"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.24.7": version: 7.24.7 resolution: "@babel/code-frame@npm:7.24.7" dependencies: @@ -243,7 +234,7 @@ __metadata: languageName: node linkType: hard -"@babel/code-frame@npm:^7.25.9, @babel/code-frame@npm:^7.26.0": +"@babel/code-frame@npm:^7.25.9, @babel/code-frame@npm:^7.26.0, @babel/code-frame@npm:^7.26.2": version: 7.26.2 resolution: "@babel/code-frame@npm:7.26.2" dependencies: @@ -733,23 +724,13 @@ __metadata: languageName: node linkType: hard -"@babel/helpers@npm:^7.25.0": - version: 7.25.6 - resolution: "@babel/helpers@npm:7.25.6" - dependencies: - "@babel/template": "npm:^7.25.0" - "@babel/types": "npm:^7.25.6" - checksum: 10c0/448c1cdabccca42fd97a252f73f1e4bcd93776dbf24044f3b4f49b756bf2ece73ee6df05177473bb74ea7456dddd18d6f481e4d96d2cc7839d078900d48c696c - languageName: node - linkType: hard - -"@babel/helpers@npm:^7.26.0": - version: 7.26.0 - resolution: "@babel/helpers@npm:7.26.0" +"@babel/helpers@npm:^7.25.0, @babel/helpers@npm:^7.26.0": + version: 7.26.10 + resolution: "@babel/helpers@npm:7.26.10" dependencies: - "@babel/template": "npm:^7.25.9" - "@babel/types": "npm:^7.26.0" - checksum: 10c0/343333cced6946fe46617690a1d0789346960910225ce359021a88a60a65bc0d791f0c5d240c0ed46cf8cc63b5fd7df52734ff14e43b9c32feae2b61b1647097 + "@babel/template": "npm:^7.26.9" + "@babel/types": "npm:^7.26.10" + checksum: 10c0/f99e1836bcffce96db43158518bb4a24cf266820021f6461092a776cba2dc01d9fc8b1b90979d7643c5c2ab7facc438149064463a52dd528b21c6ab32509784f languageName: node linkType: hard @@ -787,6 +768,17 @@ __metadata: languageName: node linkType: hard +"@babel/parser@npm:^7.26.9": + version: 7.26.10 + resolution: "@babel/parser@npm:7.26.10" + dependencies: + "@babel/types": "npm:^7.26.10" + bin: + parser: ./bin/babel-parser.js + checksum: 10c0/c47f5c0f63cd12a663e9dc94a635f9efbb5059d98086a92286d7764357c66bceba18ccbe79333e01e9be3bfb8caba34b3aaebfd8e62c3d5921c8cf907267be75 + languageName: node + linkType: hard + "@babel/plugin-bugfix-firefox-class-in-computed-class-key@npm:^7.25.3": version: 7.25.3 resolution: "@babel/plugin-bugfix-firefox-class-in-computed-class-key@npm:7.25.3" @@ -2767,30 +2759,21 @@ __metadata: linkType: hard "@babel/runtime-corejs3@npm:^7.25.9": - version: 7.26.0 - resolution: "@babel/runtime-corejs3@npm:7.26.0" + version: 7.26.10 + resolution: "@babel/runtime-corejs3@npm:7.26.10" dependencies: core-js-pure: "npm:^3.30.2" regenerator-runtime: "npm:^0.14.0" - checksum: 10c0/921fa27c004cf2b92f0d49efc2006cfc1a72d2a35c7374da8ec88d8b63543963e6ef29d4820e068a7892a7d553dc2bac7208aef8fef30642bc843b63255b650b + checksum: 10c0/897b61d84809d6e63e08566d436cd08a3a78f218283641bb53533948d4bcd5524c6a1f83613e20485cf7fa8d054da20dd9039d17e06c92cf282f25d4d4f57250 languageName: node linkType: hard -"@babel/runtime@npm:^7.1.2, @babel/runtime@npm:^7.10.3, @babel/runtime@npm:^7.12.13, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.8.4": - version: 7.25.6 - resolution: "@babel/runtime@npm:7.25.6" +"@babel/runtime@npm:^7.1.2, @babel/runtime@npm:^7.10.3, @babel/runtime@npm:^7.12.13, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.25.9, @babel/runtime@npm:^7.8.4": + version: 7.26.10 + resolution: "@babel/runtime@npm:7.26.10" dependencies: regenerator-runtime: "npm:^0.14.0" - checksum: 10c0/d6143adf5aa1ce79ed374e33fdfd74fa975055a80bc6e479672ab1eadc4e4bfd7484444e17dd063a1d180e051f3ec62b357c7a2b817e7657687b47313158c3d2 - languageName: node - linkType: hard - -"@babel/runtime@npm:^7.25.9": - version: 7.26.0 - resolution: "@babel/runtime@npm:7.26.0" - dependencies: - regenerator-runtime: "npm:^0.14.0" - checksum: 10c0/12c01357e0345f89f4f7e8c0e81921f2a3e3e101f06e8eaa18a382b517376520cd2fa8c237726eb094dab25532855df28a7baaf1c26342b52782f6936b07c287 + checksum: 10c0/6dc6d88c7908f505c4f7770fb4677dfa61f68f659b943c2be1f2a99cb6680343462867abf2d49822adc435932919b36c77ac60125793e719ea8745f2073d3745 languageName: node linkType: hard @@ -2816,6 +2799,17 @@ __metadata: languageName: node linkType: hard +"@babel/template@npm:^7.26.9": + version: 7.26.9 + resolution: "@babel/template@npm:7.26.9" + dependencies: + "@babel/code-frame": "npm:^7.26.2" + "@babel/parser": "npm:^7.26.9" + "@babel/types": "npm:^7.26.9" + checksum: 10c0/019b1c4129cc01ad63e17529089c2c559c74709d225f595eee017af227fee11ae8a97a6ab19ae6768b8aa22d8d75dcb60a00b28f52e9fa78140672d928bc1ae9 + languageName: node + linkType: hard + "@babel/traverse@npm:^7.24.7, @babel/traverse@npm:^7.24.8, @babel/traverse@npm:^7.25.0, @babel/traverse@npm:^7.25.1, @babel/traverse@npm:^7.25.2, @babel/traverse@npm:^7.25.3, @babel/traverse@npm:^7.25.4": version: 7.25.6 resolution: "@babel/traverse@npm:7.25.6" @@ -2867,10 +2861,20 @@ __metadata: languageName: node linkType: hard -"@braintree/sanitize-url@npm:^7.0.1": - version: 7.1.0 - resolution: "@braintree/sanitize-url@npm:7.1.0" - checksum: 10c0/ff30c09ae38cf9812dd118c5af663180a2b766abd485432327ba4fef3c49ed4c42309524438a8d67961ae9dbcc220a0d350cbb5ec0512fc8791c599451686a2a +"@babel/types@npm:^7.26.10, @babel/types@npm:^7.26.9": + version: 7.26.10 + resolution: "@babel/types@npm:7.26.10" + dependencies: + "@babel/helper-string-parser": "npm:^7.25.9" + "@babel/helper-validator-identifier": "npm:^7.25.9" + checksum: 10c0/7a7f83f568bfc3dfabfaf9ae3a97ab5c061726c0afa7dcd94226d4f84a81559da368ed79671e3a8039d16f12476cf110381a377ebdea07587925f69628200dac + languageName: node + linkType: hard + +"@braintree/sanitize-url@npm:^7.0.4": + version: 7.1.1 + resolution: "@braintree/sanitize-url@npm:7.1.1" + checksum: 10c0/fdfc1759c4244e287693ce1e9d42d649423e7c203fdccf27a571f8951ddfe34baa5273b7e6a8dd3007d7676859c7a0a9819be0ab42a3505f8505ad0eefecf7c1 languageName: node linkType: hard @@ -2923,138 +2927,153 @@ __metadata: languageName: node linkType: hard -"@csstools/cascade-layer-name-parser@npm:^2.0.4": - version: 2.0.4 - resolution: "@csstools/cascade-layer-name-parser@npm:2.0.4" +"@csstools/cascade-layer-name-parser@npm:^2.0.5": + version: 2.0.5 + resolution: "@csstools/cascade-layer-name-parser@npm:2.0.5" peerDependencies: - "@csstools/css-parser-algorithms": ^3.0.4 - "@csstools/css-tokenizer": ^3.0.3 - checksum: 10c0/774f2bcc96a576183853191bdfd31df15e22c51901ee01678ee47f1d1afcb4ab0e6d9a78e08f7383ac089c7e0b390013633f45ff1f1d577c9aefd252589bcced + "@csstools/css-parser-algorithms": ^3.0.5 + "@csstools/css-tokenizer": ^3.0.4 + checksum: 10c0/b6c73d5c8132f922edc88b9df5272c93c9753945f1e1077b80d03b314076ffe03c2cc9bf6cbc85501ee7c7f27e477263df96997c9125fd2fd0cfe82fe2d7c141 languageName: node linkType: hard -"@csstools/color-helpers@npm:^5.0.1": - version: 5.0.1 - resolution: "@csstools/color-helpers@npm:5.0.1" - checksum: 10c0/77fa3b7236eaa3f36dea24708ac0d5e53168903624ac5aed54615752a0730cd20773fda50e742ce868012eca8c000cc39688e05869e79f34714230ab6968d1e6 +"@csstools/color-helpers@npm:^5.0.2": + version: 5.0.2 + resolution: "@csstools/color-helpers@npm:5.0.2" + checksum: 10c0/bebaddb28b9eb58b0449edd5d0c0318fa88f3cb079602ee27e88c9118070d666dcc4e09a5aa936aba2fde6ba419922ade07b7b506af97dd7051abd08dfb2959b languageName: node linkType: hard -"@csstools/css-calc@npm:^2.1.0": - version: 2.1.0 - resolution: "@csstools/css-calc@npm:2.1.0" +"@csstools/css-calc@npm:^2.1.4": + version: 2.1.4 + resolution: "@csstools/css-calc@npm:2.1.4" peerDependencies: - "@csstools/css-parser-algorithms": ^3.0.4 - "@csstools/css-tokenizer": ^3.0.3 - checksum: 10c0/c707bb533a6ea63ed5bb4b8f1ffcbf3cd2daf970a6d76d42b684243426f5aa7513179a8f34d2e3c5a85df3870f44d3bc2850ca40b085c5fe00b41a291a2ecae2 + "@csstools/css-parser-algorithms": ^3.0.5 + "@csstools/css-tokenizer": ^3.0.4 + checksum: 10c0/42ce5793e55ec4d772083808a11e9fb2dfe36db3ec168713069a276b4c3882205b3507c4680224c28a5d35fe0bc2d308c77f8f2c39c7c09aad8747708eb8ddd8 languageName: node linkType: hard -"@csstools/css-color-parser@npm:^3.0.6": - version: 3.0.6 - resolution: "@csstools/css-color-parser@npm:3.0.6" +"@csstools/css-color-parser@npm:^3.0.10": + version: 3.0.10 + resolution: "@csstools/css-color-parser@npm:3.0.10" dependencies: - "@csstools/color-helpers": "npm:^5.0.1" - "@csstools/css-calc": "npm:^2.1.0" + "@csstools/color-helpers": "npm:^5.0.2" + "@csstools/css-calc": "npm:^2.1.4" peerDependencies: - "@csstools/css-parser-algorithms": ^3.0.4 - "@csstools/css-tokenizer": ^3.0.3 - checksum: 10c0/7c4f42a704c8c44cece75f5dcd647a83634dec0f44d398ae1fbdc6e8527d4fbdc3a809eaaba3b739edf8e3c09d62c28234636f250f9b0b0d52a599e824c22047 + "@csstools/css-parser-algorithms": ^3.0.5 + "@csstools/css-tokenizer": ^3.0.4 + checksum: 10c0/8f8a2395b117c2f09366b5c9bf49bc740c92a65b6330fe3cc1e76abafd0d1000e42a657d7b0a3814846a66f1d69896142f7e36d7a4aca77de977e5cc5f944747 languageName: node linkType: hard -"@csstools/css-parser-algorithms@npm:^3.0.4": - version: 3.0.4 - resolution: "@csstools/css-parser-algorithms@npm:3.0.4" +"@csstools/css-parser-algorithms@npm:^3.0.5": + version: 3.0.5 + resolution: "@csstools/css-parser-algorithms@npm:3.0.5" peerDependencies: - "@csstools/css-tokenizer": ^3.0.3 - checksum: 10c0/d411f07765e14eede17bccc6bd4f90ff303694df09aabfede3fd104b2dfacfd4fe3697cd25ddad14684c850328f3f9420ebfa9f78380892492974db24ae47dbd + "@csstools/css-tokenizer": ^3.0.4 + checksum: 10c0/d9a1c888bd43849ae3437ca39251d5c95d2c8fd6b5ccdb7c45491dfd2c1cbdc3075645e80901d120e4d2c1993db9a5b2d83793b779dbbabcfb132adb142eb7f7 languageName: node linkType: hard -"@csstools/css-tokenizer@npm:^3.0.3": - version: 3.0.3 - resolution: "@csstools/css-tokenizer@npm:3.0.3" - checksum: 10c0/c31bf410e1244b942e71798e37c54639d040cb59e0121b21712b40015fced2b0fb1ffe588434c5f8923c9cd0017cfc1c1c8f3921abc94c96edf471aac2eba5e5 +"@csstools/css-tokenizer@npm:^3.0.4": + version: 3.0.4 + resolution: "@csstools/css-tokenizer@npm:3.0.4" + checksum: 10c0/3b589f8e9942075a642213b389bab75a2d50d05d203727fcdac6827648a5572674caff07907eff3f9a2389d86a4ee47308fafe4f8588f4a77b7167c588d2559f languageName: node linkType: hard -"@csstools/media-query-list-parser@npm:^4.0.2": - version: 4.0.2 - resolution: "@csstools/media-query-list-parser@npm:4.0.2" +"@csstools/media-query-list-parser@npm:^4.0.3": + version: 4.0.3 + resolution: "@csstools/media-query-list-parser@npm:4.0.3" peerDependencies: - "@csstools/css-parser-algorithms": ^3.0.4 - "@csstools/css-tokenizer": ^3.0.3 - checksum: 10c0/5d008a70f5d4fd96224066a433f5cdefa76cfd78a74416a20d6d5b2bb1bc8282b140e8373015d807d4dadb91daf3deb73eb13f853ec4e0479d0cb92e80c6f20d + "@csstools/css-parser-algorithms": ^3.0.5 + "@csstools/css-tokenizer": ^3.0.4 + checksum: 10c0/e29d856d57e9a036694662163179fc061a99579f05e7c3c35438b3e063790ae8a9ee9f1fb4b4693d8fc7672ae0801764fe83762ab7b9df2921fcc6172cfd5584 languageName: node linkType: hard -"@csstools/postcss-cascade-layers@npm:^5.0.1": - version: 5.0.1 - resolution: "@csstools/postcss-cascade-layers@npm:5.0.1" +"@csstools/postcss-cascade-layers@npm:^5.0.2": + version: 5.0.2 + resolution: "@csstools/postcss-cascade-layers@npm:5.0.2" dependencies: "@csstools/selector-specificity": "npm:^5.0.0" postcss-selector-parser: "npm:^7.0.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/5cc3c6f220d9216f7ab16e716a20d6db845f127c917521e6236342bfa871accd63eb662a04c1e24a28e396412dcb47b1c4abccc490b88e4010cd704d14a702f1 + checksum: 10c0/dd8e29cfd3a93932fa35e3a59aa62fd2e720772d450f40f38f65ce1e736e2fe839635eb6f033abcc8ee8bc2856161a297f4458b352b26d2216856feb03176612 languageName: node linkType: hard -"@csstools/postcss-color-function@npm:^4.0.6": - version: 4.0.6 - resolution: "@csstools/postcss-color-function@npm:4.0.6" +"@csstools/postcss-color-function@npm:^4.0.10": + version: 4.0.10 + resolution: "@csstools/postcss-color-function@npm:4.0.10" dependencies: - "@csstools/css-color-parser": "npm:^3.0.6" - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" - "@csstools/postcss-progressive-custom-properties": "npm:^4.0.0" + "@csstools/css-color-parser": "npm:^3.0.10" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" + "@csstools/postcss-progressive-custom-properties": "npm:^4.1.0" "@csstools/utilities": "npm:^2.0.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/facbae01fd58898a176219cfcffee9ffb06fb466a2c439fd28403819e48778b682621b86a69682c0f758c659f8ec5f14eca1a9612b12b8777a2198173f386b49 + checksum: 10c0/a6e65d37a114f95634a07660daa1aa52f4abfb6ddd740cc9267967a5948f5c72469a6ba2432ab1f31616d6f1a4ab963b69f778497496986535831b0b2b399f75 languageName: node linkType: hard -"@csstools/postcss-color-mix-function@npm:^3.0.6": - version: 3.0.6 - resolution: "@csstools/postcss-color-mix-function@npm:3.0.6" +"@csstools/postcss-color-mix-function@npm:^3.0.10": + version: 3.0.10 + resolution: "@csstools/postcss-color-mix-function@npm:3.0.10" dependencies: - "@csstools/css-color-parser": "npm:^3.0.6" - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" - "@csstools/postcss-progressive-custom-properties": "npm:^4.0.0" + "@csstools/css-color-parser": "npm:^3.0.10" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" + "@csstools/postcss-progressive-custom-properties": "npm:^4.1.0" "@csstools/utilities": "npm:^2.0.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/66b906b2425ed137b1c2ef3d166036719ae69039668385dccce4e02bd91e41733b37dd3c884b74a2999067bfe8a8d8d1afa4082ef21a0bf044ba7e7fffb77e01 + checksum: 10c0/9505a09a805f52555bd06c8f54d537a99578efe5c7e643c9fdaca8cbb7d74d4d3e07b829c6aed315c75ec5ce113261fb402e01b67e4a423ed39ea8991a6dded0 languageName: node linkType: hard -"@csstools/postcss-content-alt-text@npm:^2.0.4": - version: 2.0.4 - resolution: "@csstools/postcss-content-alt-text@npm:2.0.4" +"@csstools/postcss-color-mix-variadic-function-arguments@npm:^1.0.0": + version: 1.0.0 + resolution: "@csstools/postcss-color-mix-variadic-function-arguments@npm:1.0.0" dependencies: - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" - "@csstools/postcss-progressive-custom-properties": "npm:^4.0.0" + "@csstools/css-color-parser": "npm:^3.0.10" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" + "@csstools/postcss-progressive-custom-properties": "npm:^4.1.0" "@csstools/utilities": "npm:^2.0.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/84caccedd8a519df434babd58b14104c5a92cd326057ce509bdbaa2a4bb3130afb1c1456caf30235ba14da52d1628a5411ea4f5d2fb558d603d234f795538017 + checksum: 10c0/dd45bd19931cc4780247173b793e5f1e6409b76f92b04fe26e07b0fa048aedc7bcbd92356a558581f695654c2f2d189e1b40b14a9c3f246e86e83b0edf646066 languageName: node linkType: hard -"@csstools/postcss-exponential-functions@npm:^2.0.5": - version: 2.0.5 - resolution: "@csstools/postcss-exponential-functions@npm:2.0.5" +"@csstools/postcss-content-alt-text@npm:^2.0.6": + version: 2.0.6 + resolution: "@csstools/postcss-content-alt-text@npm:2.0.6" + dependencies: + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" + "@csstools/postcss-progressive-custom-properties": "npm:^4.1.0" + "@csstools/utilities": "npm:^2.0.0" + peerDependencies: + postcss: ^8.4 + checksum: 10c0/e7d21002a84d0fba4fe815fb7d3d19b81fb1719a7b6fdd240eb6639d58937b64d6f5c9aa11ffe8a64891a2ed181818cd56d346f58949c2eaa9df7c82ee95ef8e + languageName: node + linkType: hard + +"@csstools/postcss-exponential-functions@npm:^2.0.9": + version: 2.0.9 + resolution: "@csstools/postcss-exponential-functions@npm:2.0.9" dependencies: - "@csstools/css-calc": "npm:^2.1.0" - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" + "@csstools/css-calc": "npm:^2.1.4" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" peerDependencies: postcss: ^8.4 - checksum: 10c0/8935cb69f70d7448aa5a3dcdfd188bdcfbc34e9a99131306947df8847126272773212011dcff85e10bcee4c9d01f94f7f8557ef93933122a0b82743185684ab1 + checksum: 10c0/78ea627a87fb23e12616c4e54150363b0e8793064634983dbe0368a0aca1ff73206c2d1f29845773daaf42787e7d1f180ce1b57c43e2b0d10da450101f9f34b6 languageName: node linkType: hard @@ -3070,94 +3089,94 @@ __metadata: languageName: node linkType: hard -"@csstools/postcss-gamut-mapping@npm:^2.0.6": - version: 2.0.6 - resolution: "@csstools/postcss-gamut-mapping@npm:2.0.6" +"@csstools/postcss-gamut-mapping@npm:^2.0.10": + version: 2.0.10 + resolution: "@csstools/postcss-gamut-mapping@npm:2.0.10" dependencies: - "@csstools/css-color-parser": "npm:^3.0.6" - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" + "@csstools/css-color-parser": "npm:^3.0.10" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" peerDependencies: postcss: ^8.4 - checksum: 10c0/8a3f012774ab261924cc9f3519caa87a25a6abcd70d78f622144d8e7126a687bddbdaa92995fc30f53355759cd5971e71ac099b6b8cb85c89d8ca86455588e3b + checksum: 10c0/87cd8289478bf88195469fcf4f80c8fed9e0e5ef76a335a10c4c21582542acb16cced1e00e7da90deaf2e62e383a5c6fe402f429f227c87a2c20e2545a69c537 languageName: node linkType: hard -"@csstools/postcss-gradients-interpolation-method@npm:^5.0.6": - version: 5.0.6 - resolution: "@csstools/postcss-gradients-interpolation-method@npm:5.0.6" +"@csstools/postcss-gradients-interpolation-method@npm:^5.0.10": + version: 5.0.10 + resolution: "@csstools/postcss-gradients-interpolation-method@npm:5.0.10" dependencies: - "@csstools/css-color-parser": "npm:^3.0.6" - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" - "@csstools/postcss-progressive-custom-properties": "npm:^4.0.0" + "@csstools/css-color-parser": "npm:^3.0.10" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" + "@csstools/postcss-progressive-custom-properties": "npm:^4.1.0" "@csstools/utilities": "npm:^2.0.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/0d97be76837f972ea323b58189ded2310b618ad94b40777464d0d8ac050b557ca9fd1f20af5ada105d61574cc9d8c119ae0daf294a3aacaaa89926f864d9d674 + checksum: 10c0/206d079d7679a9609a4fb227ddaf3443d04cff88b55bcfec1cf63c9de372b8720edde8614fc51d2237e4edbff8ce34697f912bc25c2ae41390353fce88455515 languageName: node linkType: hard -"@csstools/postcss-hwb-function@npm:^4.0.6": - version: 4.0.6 - resolution: "@csstools/postcss-hwb-function@npm:4.0.6" +"@csstools/postcss-hwb-function@npm:^4.0.10": + version: 4.0.10 + resolution: "@csstools/postcss-hwb-function@npm:4.0.10" dependencies: - "@csstools/css-color-parser": "npm:^3.0.6" - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" - "@csstools/postcss-progressive-custom-properties": "npm:^4.0.0" + "@csstools/css-color-parser": "npm:^3.0.10" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" + "@csstools/postcss-progressive-custom-properties": "npm:^4.1.0" "@csstools/utilities": "npm:^2.0.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/e7bcc98095ef2873a7b1a7326f1618bbeecc1c78660b23805bbefd8ec067bf2f35f2a2d4675be51a02d2280046f36f74d55f6af78e3ce107b82624d1a421ffcf + checksum: 10c0/defb9b319b14228307196b9a88e3cbf0acd1d3768b936716dca846875068ad4453e7a2a3d75d1fab5534c8655e9c555e1fa70d30e2c85d68ed2117a7cfe7837c languageName: node linkType: hard -"@csstools/postcss-ic-unit@npm:^4.0.0": - version: 4.0.0 - resolution: "@csstools/postcss-ic-unit@npm:4.0.0" +"@csstools/postcss-ic-unit@npm:^4.0.2": + version: 4.0.2 + resolution: "@csstools/postcss-ic-unit@npm:4.0.2" dependencies: - "@csstools/postcss-progressive-custom-properties": "npm:^4.0.0" + "@csstools/postcss-progressive-custom-properties": "npm:^4.1.0" "@csstools/utilities": "npm:^2.0.0" postcss-value-parser: "npm:^4.2.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/6f94ec31002a245768a30d240c432b8712af4d9ea76a62403e16d4e0afb5be7636348a2d4619046ed29aa7726f88a0c191ca41c96d7ab0f3da940025c91b056e + checksum: 10c0/26adb8351143e591080f542d87b223ee5ebc5f33f6d03b217505b249ceb19c46a06732a88000e3a1857ae712a6ea0ffa089a24ad8b8042421490539de5c3d0e8 languageName: node linkType: hard -"@csstools/postcss-initial@npm:^2.0.0": - version: 2.0.0 - resolution: "@csstools/postcss-initial@npm:2.0.0" +"@csstools/postcss-initial@npm:^2.0.1": + version: 2.0.1 + resolution: "@csstools/postcss-initial@npm:2.0.1" peerDependencies: postcss: ^8.4 - checksum: 10c0/44c443cba84cc66367f2082bf20db06c8437338c02c244c38798c5bf5342932d89fed0dd13e4409f084ecf7fce47ae6394e9a7a006fd98a973decfa24ab1eb04 + checksum: 10c0/dbff7084ef4f1c4647efe2b147001daf172003c15b5e22689f0540d03c8d362f2a332cd9cf136e6c8dcda7564ee30492a4267ea188f72cb9c1000fb9bcfbfef8 languageName: node linkType: hard -"@csstools/postcss-is-pseudo-class@npm:^5.0.1": - version: 5.0.1 - resolution: "@csstools/postcss-is-pseudo-class@npm:5.0.1" +"@csstools/postcss-is-pseudo-class@npm:^5.0.3": + version: 5.0.3 + resolution: "@csstools/postcss-is-pseudo-class@npm:5.0.3" dependencies: "@csstools/selector-specificity": "npm:^5.0.0" postcss-selector-parser: "npm:^7.0.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/3aaab18ebb2dcf5565efa79813eaa987d40de1e086765358524392a09631c68ad1ee952e6aff8f42513b2c18ab84891787e065fe287f696128498fc641520b6c + checksum: 10c0/7980f1cabf32850bac72552e4e9de47412359e36e259a92b9b9af25dae4cce42bbcc5fdca8f384a589565bf383ecb23dec3af9f084d8df18b82552318b2841b6 languageName: node linkType: hard -"@csstools/postcss-light-dark-function@npm:^2.0.7": - version: 2.0.7 - resolution: "@csstools/postcss-light-dark-function@npm:2.0.7" +"@csstools/postcss-light-dark-function@npm:^2.0.9": + version: 2.0.9 + resolution: "@csstools/postcss-light-dark-function@npm:2.0.9" dependencies: - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" - "@csstools/postcss-progressive-custom-properties": "npm:^4.0.0" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" + "@csstools/postcss-progressive-custom-properties": "npm:^4.1.0" "@csstools/utilities": "npm:^2.0.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/c116bfd2d3f4d0caabdedf8954c2a25908ffb29f9bbe2c57d44a2974277c7e46ee79862eea848385dc040275d343f2330350394a2095ec30f0aa17f72e2f4e39 + checksum: 10c0/ee2937f0e5dcaafd10349f0914596e8e1ef6f9d46939c6a6b0e2e63cab0552594e5140bf56e485048c3bca6634dd9673a176c57b9e77001332787f4263835c0f languageName: node linkType: hard @@ -3199,42 +3218,42 @@ __metadata: languageName: node linkType: hard -"@csstools/postcss-logical-viewport-units@npm:^3.0.3": - version: 3.0.3 - resolution: "@csstools/postcss-logical-viewport-units@npm:3.0.3" +"@csstools/postcss-logical-viewport-units@npm:^3.0.4": + version: 3.0.4 + resolution: "@csstools/postcss-logical-viewport-units@npm:3.0.4" dependencies: - "@csstools/css-tokenizer": "npm:^3.0.3" + "@csstools/css-tokenizer": "npm:^3.0.4" "@csstools/utilities": "npm:^2.0.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/8ec746598d7ce8697c3dafd83cb3a319a90079ad755dd78e3ec92f4ba9ad849c4cdaba33b16e9dcbac1e9489b3d7c48262030110c20ce1d88cdacbe9f5987cec + checksum: 10c0/f0b5ba38acde3bf0ca880c6e0a883950c99fa9919b0e6290c894d5716569663590f26aa1170fd9483ce14544e46afac006ab3b02781410d5e7c8dd1467c674ce languageName: node linkType: hard -"@csstools/postcss-media-minmax@npm:^2.0.5": - version: 2.0.5 - resolution: "@csstools/postcss-media-minmax@npm:2.0.5" +"@csstools/postcss-media-minmax@npm:^2.0.9": + version: 2.0.9 + resolution: "@csstools/postcss-media-minmax@npm:2.0.9" dependencies: - "@csstools/css-calc": "npm:^2.1.0" - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" - "@csstools/media-query-list-parser": "npm:^4.0.2" + "@csstools/css-calc": "npm:^2.1.4" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" + "@csstools/media-query-list-parser": "npm:^4.0.3" peerDependencies: postcss: ^8.4 - checksum: 10c0/0d17782076fcaba2c3c85bd769fc102d95809e9ee6141ad9de706ee116466cada62424fd68623c58cc2456771725291c356e550377ba73a102ab6fe628931e30 + checksum: 10c0/d82622ee9de6eacba1abbf31718cd58759d158ed8a575f36f08e982d07a7d83e51fb184178b96c6f7b76cb333bb33cac04d06a750b6b9c5c43ae1c56232880f9 languageName: node linkType: hard -"@csstools/postcss-media-queries-aspect-ratio-number-values@npm:^3.0.4": - version: 3.0.4 - resolution: "@csstools/postcss-media-queries-aspect-ratio-number-values@npm:3.0.4" +"@csstools/postcss-media-queries-aspect-ratio-number-values@npm:^3.0.5": + version: 3.0.5 + resolution: "@csstools/postcss-media-queries-aspect-ratio-number-values@npm:3.0.5" dependencies: - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" - "@csstools/media-query-list-parser": "npm:^4.0.2" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" + "@csstools/media-query-list-parser": "npm:^4.0.3" peerDependencies: postcss: ^8.4 - checksum: 10c0/27dc9419b0f4315774647588f599348e7cc593984f59b414c51c910066501fd087cbe232deb762907c18bd21dd4184e7b6e0e0b730e5c72341ab9cc696c75739 + checksum: 10c0/a47abdaa7f4b26596bd9d6bb77aed872a232fc12bd144d2c062d9da626e8dfd8336e2fff67617dba61a1666c2b8027145b390d70d5cd4d4f608604e077cfb04e languageName: node linkType: hard @@ -3261,57 +3280,57 @@ __metadata: languageName: node linkType: hard -"@csstools/postcss-oklab-function@npm:^4.0.6": - version: 4.0.6 - resolution: "@csstools/postcss-oklab-function@npm:4.0.6" +"@csstools/postcss-oklab-function@npm:^4.0.10": + version: 4.0.10 + resolution: "@csstools/postcss-oklab-function@npm:4.0.10" dependencies: - "@csstools/css-color-parser": "npm:^3.0.6" - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" - "@csstools/postcss-progressive-custom-properties": "npm:^4.0.0" + "@csstools/css-color-parser": "npm:^3.0.10" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" + "@csstools/postcss-progressive-custom-properties": "npm:^4.1.0" "@csstools/utilities": "npm:^2.0.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/74ec74eb7171881deeff7a79e0dc696097fb53dcdcd9627d9559cd7be63f41adecec06c1e88ddd5d8a37f4705715d1c0c135ca2b001fb70fdc0b76ab1e491b66 + checksum: 10c0/421d1f2574941c3caecd608588533581fc0766998cc85474008a49b5f1011249cb2be7ef9f21a346fd3895598da18e58860fde06d34b1b833918fa880c41c18f languageName: node linkType: hard -"@csstools/postcss-progressive-custom-properties@npm:^4.0.0": - version: 4.0.0 - resolution: "@csstools/postcss-progressive-custom-properties@npm:4.0.0" +"@csstools/postcss-progressive-custom-properties@npm:^4.1.0": + version: 4.1.0 + resolution: "@csstools/postcss-progressive-custom-properties@npm:4.1.0" dependencies: postcss-value-parser: "npm:^4.2.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/517e5e0b1525667ea1c4469bb2af52995934b9ab3165bba33e3bfdfac63b20bb51c878da582d805957dc0291e396e5a540cac18d1220a08190d98d5463d26ce2 + checksum: 10c0/175081a5c53e37a282f596e01359d4411800e4017c2d389caaa2b7c9b7507a50c5f1ac3d937f27f000be3ac2ac788cad9c1490ec6bc1d4de51331f3cc8ccda8e languageName: node linkType: hard -"@csstools/postcss-random-function@npm:^1.0.1": - version: 1.0.1 - resolution: "@csstools/postcss-random-function@npm:1.0.1" +"@csstools/postcss-random-function@npm:^2.0.1": + version: 2.0.1 + resolution: "@csstools/postcss-random-function@npm:2.0.1" dependencies: - "@csstools/css-calc": "npm:^2.1.0" - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" + "@csstools/css-calc": "npm:^2.1.4" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" peerDependencies: postcss: ^8.4 - checksum: 10c0/5e8f29c024aa6ed1f89ee8b9c8ece39c8e72602d63faa82d9684e3183828f01971cf2f760b7d5b773605d44a4ea661d6d4389ec03f7e21002f9aa9e8db613a61 + checksum: 10c0/475bacf685b8bb82942d388e9e3b95f4156800f370299f19f5acc490475dc2813100de81a5a6bf48b696b4d83247622005b616af3166a668556b4b1aceded70d languageName: node linkType: hard -"@csstools/postcss-relative-color-syntax@npm:^3.0.6": - version: 3.0.6 - resolution: "@csstools/postcss-relative-color-syntax@npm:3.0.6" +"@csstools/postcss-relative-color-syntax@npm:^3.0.10": + version: 3.0.10 + resolution: "@csstools/postcss-relative-color-syntax@npm:3.0.10" dependencies: - "@csstools/css-color-parser": "npm:^3.0.6" - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" - "@csstools/postcss-progressive-custom-properties": "npm:^4.0.0" + "@csstools/css-color-parser": "npm:^3.0.10" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" + "@csstools/postcss-progressive-custom-properties": "npm:^4.1.0" "@csstools/utilities": "npm:^2.0.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/207ae711831f8ae9170093dbea3727cd6f32ca31d22c1231b5b678592679eb49e329e87ea403714b8e10feb5b9137780364cc7e1e7d8cc4c90d47483a42132dc + checksum: 10c0/de9c41a936a77dab68cdb2dd23a26ba1b92d90bf2a7cf463fada2f2daf6ad0d7394fa2b1ed444f509006992961d993383a34a9afd3a48a9dc67a3793afcd9bb8 languageName: node linkType: hard @@ -3326,54 +3345,54 @@ __metadata: languageName: node linkType: hard -"@csstools/postcss-sign-functions@npm:^1.1.0": - version: 1.1.0 - resolution: "@csstools/postcss-sign-functions@npm:1.1.0" +"@csstools/postcss-sign-functions@npm:^1.1.4": + version: 1.1.4 + resolution: "@csstools/postcss-sign-functions@npm:1.1.4" dependencies: - "@csstools/css-calc": "npm:^2.1.0" - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" + "@csstools/css-calc": "npm:^2.1.4" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" peerDependencies: postcss: ^8.4 - checksum: 10c0/503bbaa8fe1d1a619880d5d6b838f07f1898a5820889e5db3c4e02bb8b340dab18b88f439f9f1da44c6669bab2d4ba3f9543643ccc459d8a21191c5d22109c9b + checksum: 10c0/ff58108b2527832a84c571a1f40224b5c8d2afa8db2fe3b1e3599ff6f3469d9f4c528a70eb3c25c5d7801e30474fabfec04e7c23bfdad8572ad492053cd4f899 languageName: node linkType: hard -"@csstools/postcss-stepped-value-functions@npm:^4.0.5": - version: 4.0.5 - resolution: "@csstools/postcss-stepped-value-functions@npm:4.0.5" +"@csstools/postcss-stepped-value-functions@npm:^4.0.9": + version: 4.0.9 + resolution: "@csstools/postcss-stepped-value-functions@npm:4.0.9" dependencies: - "@csstools/css-calc": "npm:^2.1.0" - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" + "@csstools/css-calc": "npm:^2.1.4" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" peerDependencies: postcss: ^8.4 - checksum: 10c0/76f1f60c24b9e6a80b044eb19f37c1816788a2335fbf7c25f3fbea1cd7104857f424a451dcff60e4f8841618c6b6ffa6091f8b840d6d5930c1c7100c2f8ae74b + checksum: 10c0/f143ca06338c30abb2aa37adc3d7e43a78f3b4493093160cb5babe3ec8cf6b86d83876746ee8e162db87b5e9af6e0066958d89fe8b4a503a29568e5c57c1bf8a languageName: node linkType: hard -"@csstools/postcss-text-decoration-shorthand@npm:^4.0.1": - version: 4.0.1 - resolution: "@csstools/postcss-text-decoration-shorthand@npm:4.0.1" +"@csstools/postcss-text-decoration-shorthand@npm:^4.0.2": + version: 4.0.2 + resolution: "@csstools/postcss-text-decoration-shorthand@npm:4.0.2" dependencies: - "@csstools/color-helpers": "npm:^5.0.1" + "@csstools/color-helpers": "npm:^5.0.2" postcss-value-parser: "npm:^4.2.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/81950e248d6019c0066353895e0fa2a5c684b754c9af349218cb919534f5ebf79e5e9c7a10b3af1e9c56de2f246968de3b87a00d8c4102e5f88e0f05c04f9889 + checksum: 10c0/01e2f3717e7a42224dc1a746491c55a381cf208cb7588f0308eeefe730675be4c7bb56c0cc557e75999c981e67da7d0b0bb68610635752c89ef251ee435b9cac languageName: node linkType: hard -"@csstools/postcss-trigonometric-functions@npm:^4.0.5": - version: 4.0.5 - resolution: "@csstools/postcss-trigonometric-functions@npm:4.0.5" +"@csstools/postcss-trigonometric-functions@npm:^4.0.9": + version: 4.0.9 + resolution: "@csstools/postcss-trigonometric-functions@npm:4.0.9" dependencies: - "@csstools/css-calc": "npm:^2.1.0" - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" + "@csstools/css-calc": "npm:^2.1.4" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" peerDependencies: postcss: ^8.4 - checksum: 10c0/b8518c8b81da047448dcee12a5f3716dbc19671333387a4a673991a16f1a120441d2768de8a30ce1e2ef8d0d76509b9509f506ef1e8630da84834451414b23a3 + checksum: 10c0/6ba3d381c977c224f01d47a36f78c9b99d3b89d060a357a9f8840537fdf497d9587a28165dc74e96abdf02f8db0a277d3558646355085a74c8915ee73c6780d1 languageName: node linkType: hard @@ -3386,12 +3405,12 @@ __metadata: languageName: node linkType: hard -"@csstools/selector-resolve-nested@npm:^3.0.0": - version: 3.0.0 - resolution: "@csstools/selector-resolve-nested@npm:3.0.0" +"@csstools/selector-resolve-nested@npm:^3.1.0": + version: 3.1.0 + resolution: "@csstools/selector-resolve-nested@npm:3.1.0" peerDependencies: postcss-selector-parser: ^7.0.0 - checksum: 10c0/2b01c36b3fa81388d5bddd8db962766465d76b021a815c8bb5a48c3a42c530154cc155fc496707ade627dbba6745eb8ecd9fa840c1972133c0f7d8811e0a959d + checksum: 10c0/c2b1a930ad03c1427ab90b28c4940424fb39e8175130148f16209be3a3937f7a146d5483ca1da1dfc100aa7ae86df713f0ee82d4bbaa9b986e7f47f35cb67cca languageName: node linkType: hard @@ -3420,25 +3439,25 @@ __metadata: languageName: node linkType: hard -"@docsearch/css@npm:3.6.1": - version: 3.6.1 - resolution: "@docsearch/css@npm:3.6.1" - checksum: 10c0/546b7b725044d006fe5fd2061763fbd1f944d9db21c7b86adb2d11e7bd5eee41b102f1ecccb001bb1603ef7503282cc9ad204482db62e4bc0b038c46a9cd9e6d +"@docsearch/css@npm:3.9.0": + version: 3.9.0 + resolution: "@docsearch/css@npm:3.9.0" + checksum: 10c0/6300551e1cab7a5487063ec3581ae78ddaee3d93ec799556b451054448559b3ba849751b825fbd8b678367ef944bd82b3f11bc1d9e74e08e3cc48db40487b396 languageName: node linkType: hard -"@docsearch/react@npm:^3.5.2": - version: 3.6.1 - resolution: "@docsearch/react@npm:3.6.1" +"@docsearch/react@npm:^3.9.0": + version: 3.9.0 + resolution: "@docsearch/react@npm:3.9.0" dependencies: - "@algolia/autocomplete-core": "npm:1.9.3" - "@algolia/autocomplete-preset-algolia": "npm:1.9.3" - "@docsearch/css": "npm:3.6.1" - algoliasearch: "npm:^4.19.1" + "@algolia/autocomplete-core": "npm:1.17.9" + "@algolia/autocomplete-preset-algolia": "npm:1.17.9" + "@docsearch/css": "npm:3.9.0" + algoliasearch: "npm:^5.14.2" peerDependencies: - "@types/react": ">= 16.8.0 < 19.0.0" - react: ">= 16.8.0 < 19.0.0" - react-dom: ">= 16.8.0 < 19.0.0" + "@types/react": ">= 16.8.0 < 20.0.0" + react: ">= 16.8.0 < 20.0.0" + react-dom: ">= 16.8.0 < 20.0.0" search-insights: ">= 1 < 3" peerDependenciesMeta: "@types/react": @@ -3449,13 +3468,13 @@ __metadata: optional: true search-insights: optional: true - checksum: 10c0/890d46ed1f971a6af9f64377c9e510e4b39324bfedcc143c7bd35ba883f8fdac3dc844b0a0000059fd3dec16a0443e7f723d65c468ca7bafd03be546caf38479 + checksum: 10c0/5e737a5d9ef1daae1cd93e89870214c1ab0c36a3a2193e898db044bcc5d9de59f85228b2360ec0e8f10cdac7fd2fe3c6ec8a05d943ee7e17d6c1cef2e6e9ff2d languageName: node linkType: hard -"@docusaurus/babel@npm:3.6.3": - version: 3.6.3 - resolution: "@docusaurus/babel@npm:3.6.3" +"@docusaurus/babel@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/babel@npm:3.8.1" dependencies: "@babel/core": "npm:^7.25.9" "@babel/generator": "npm:^7.25.9" @@ -3467,39 +3486,38 @@ __metadata: "@babel/runtime": "npm:^7.25.9" "@babel/runtime-corejs3": "npm:^7.25.9" "@babel/traverse": "npm:^7.25.9" - "@docusaurus/logger": "npm:3.6.3" - "@docusaurus/utils": "npm:3.6.3" + "@docusaurus/logger": "npm:3.8.1" + "@docusaurus/utils": "npm:3.8.1" babel-plugin-dynamic-import-node: "npm:^2.3.3" fs-extra: "npm:^11.1.1" tslib: "npm:^2.6.0" - checksum: 10c0/b4436423a95afa60709ec285e56f93c7825274bcacbf6ede1fb9aea1ee02095ab8179456c0a7ba7070fa216f3a6a46db7493b3abb5cd54f4d76cf154bd978b8f + checksum: 10c0/dc57cf46e70a66547a576c32d30c7a8f61171b860604fdcd04812dcff45e07470796beaee11cb407a0a32a4fda474d373218907e9e85d5ef220145eca5baf898 languageName: node linkType: hard -"@docusaurus/bundler@npm:3.6.3": - version: 3.6.3 - resolution: "@docusaurus/bundler@npm:3.6.3" +"@docusaurus/bundler@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/bundler@npm:3.8.1" dependencies: "@babel/core": "npm:^7.25.9" - "@docusaurus/babel": "npm:3.6.3" - "@docusaurus/cssnano-preset": "npm:3.6.3" - "@docusaurus/logger": "npm:3.6.3" - "@docusaurus/types": "npm:3.6.3" - "@docusaurus/utils": "npm:3.6.3" + "@docusaurus/babel": "npm:3.8.1" + "@docusaurus/cssnano-preset": "npm:3.8.1" + "@docusaurus/logger": "npm:3.8.1" + "@docusaurus/types": "npm:3.8.1" + "@docusaurus/utils": "npm:3.8.1" babel-loader: "npm:^9.2.1" - clean-css: "npm:^5.3.2" + clean-css: "npm:^5.3.3" copy-webpack-plugin: "npm:^11.0.0" - css-loader: "npm:^6.8.1" + css-loader: "npm:^6.11.0" css-minimizer-webpack-plugin: "npm:^5.0.1" cssnano: "npm:^6.1.2" file-loader: "npm:^6.2.0" html-minifier-terser: "npm:^7.2.0" - mini-css-extract-plugin: "npm:^2.9.1" + mini-css-extract-plugin: "npm:^2.9.2" null-loader: "npm:^4.0.1" - postcss: "npm:^8.4.26" - postcss-loader: "npm:^7.3.3" - postcss-preset-env: "npm:^10.1.0" - react-dev-utils: "npm:^12.0.1" + postcss: "npm:^8.5.4" + postcss-loader: "npm:^7.3.4" + postcss-preset-env: "npm:^10.2.1" terser-webpack-plugin: "npm:^5.3.9" tslib: "npm:^2.6.0" url-loader: "npm:^4.1.1" @@ -3510,21 +3528,21 @@ __metadata: peerDependenciesMeta: "@docusaurus/faster": optional: true - checksum: 10c0/abe5fc932fe2c884f2d554b61e8e56ec21c629a4dc28c6b9d199639b10beb83c37e0e47bab1ed8bee40b171ce4afa1dbdce5494fcac8b3089b44a6e170b6d499 + checksum: 10c0/9ef18bf742f3ff582baaf1ce18e676b2886136c1bd56f479cb9eb30e04ed96a2fd97457d3dd418c8360856a19ed59a86e5253bd3e4382688c1abd841f7729257 languageName: node linkType: hard -"@docusaurus/core@npm:3.6.3, @docusaurus/core@npm:^3.6.3": - version: 3.6.3 - resolution: "@docusaurus/core@npm:3.6.3" +"@docusaurus/core@npm:3.8.1, @docusaurus/core@npm:^3.8.1": + version: 3.8.1 + resolution: "@docusaurus/core@npm:3.8.1" dependencies: - "@docusaurus/babel": "npm:3.6.3" - "@docusaurus/bundler": "npm:3.6.3" - "@docusaurus/logger": "npm:3.6.3" - "@docusaurus/mdx-loader": "npm:3.6.3" - "@docusaurus/utils": "npm:3.6.3" - "@docusaurus/utils-common": "npm:3.6.3" - "@docusaurus/utils-validation": "npm:3.6.3" + "@docusaurus/babel": "npm:3.8.1" + "@docusaurus/bundler": "npm:3.8.1" + "@docusaurus/logger": "npm:3.8.1" + "@docusaurus/mdx-loader": "npm:3.8.1" + "@docusaurus/utils": "npm:3.8.1" + "@docusaurus/utils-common": "npm:3.8.1" + "@docusaurus/utils-validation": "npm:3.8.1" boxen: "npm:^6.2.1" chalk: "npm:^4.1.2" chokidar: "npm:^3.5.3" @@ -3532,29 +3550,28 @@ __metadata: combine-promises: "npm:^1.1.0" commander: "npm:^5.1.0" core-js: "npm:^3.31.1" - del: "npm:^6.1.1" detect-port: "npm:^1.5.1" escape-html: "npm:^1.0.3" eta: "npm:^2.2.0" eval: "npm:^0.1.8" + execa: "npm:5.1.1" fs-extra: "npm:^11.1.1" html-tags: "npm:^3.3.1" html-webpack-plugin: "npm:^5.6.0" leven: "npm:^3.1.0" lodash: "npm:^4.17.21" + open: "npm:^8.4.0" p-map: "npm:^4.0.0" prompts: "npm:^2.4.2" - react-dev-utils: "npm:^12.0.1" - react-helmet-async: "npm:^1.3.0" + react-helmet-async: "npm:@slorber/react-helmet-async@1.3.0" react-loadable: "npm:@docusaurus/react-loadable@6.0.0" react-loadable-ssr-addon-v5-slorber: "npm:^1.0.1" react-router: "npm:^5.3.4" react-router-config: "npm:^5.1.1" react-router-dom: "npm:^5.3.4" - rtl-detect: "npm:^1.0.4" semver: "npm:^7.5.4" serve-handler: "npm:^6.1.6" - shelljs: "npm:^0.8.5" + tinypool: "npm:^1.0.2" tslib: "npm:^2.6.0" update-notifier: "npm:^6.0.2" webpack: "npm:^5.95.0" @@ -3563,50 +3580,50 @@ __metadata: webpack-merge: "npm:^6.0.1" peerDependencies: "@mdx-js/react": ^3.0.0 - react: ^18.0.0 - react-dom: ^18.0.0 + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 bin: docusaurus: bin/docusaurus.mjs - checksum: 10c0/551e7af994bb41ccbe9866bb380def55ed03316b4de5ae2b5ad98721f3cc0a209ed86becb70dac80c360c36767b4d1375115de190ac1c11b28e813ee8c38ebd6 + checksum: 10c0/bd9fab011b034bef800d752ff58a6a6e33061fb6d891b32f1b296f41435ff31ddd1e97cf3c49c2cb9d4ecddcef4b1b7e23b900b444d8362eb14e8090fdfda7d8 languageName: node linkType: hard -"@docusaurus/cssnano-preset@npm:3.6.3": - version: 3.6.3 - resolution: "@docusaurus/cssnano-preset@npm:3.6.3" +"@docusaurus/cssnano-preset@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/cssnano-preset@npm:3.8.1" dependencies: cssnano-preset-advanced: "npm:^6.1.2" - postcss: "npm:^8.4.38" + postcss: "npm:^8.5.4" postcss-sort-media-queries: "npm:^5.2.0" tslib: "npm:^2.6.0" - checksum: 10c0/0289e37587d05dd3fd197d1014c083192e391f28e33baf465941e54086f182bf65938e56f8e346cec6c4323fbb359139564b48ee236f3b45ae6f28f44d1e79c1 + checksum: 10c0/95261dd22d2c0eafd232e27430035783c421a469026b9dd2bcb878e1682c1e947112cef009e77db0b23f571a04c2037ac1959a251da23c5e3f39104376e5cf07 languageName: node linkType: hard -"@docusaurus/logger@npm:3.6.3": - version: 3.6.3 - resolution: "@docusaurus/logger@npm:3.6.3" +"@docusaurus/logger@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/logger@npm:3.8.1" dependencies: chalk: "npm:^4.1.2" tslib: "npm:^2.6.0" - checksum: 10c0/3119c8c586d6c5dba5595d8b795903c808ffa5011cb0e945b32cb011457f18f79909aca2f9864a5122ccfe32ecba9fd9c7fa1477d534febbcc5d3855a0daab91 + checksum: 10c0/2943773f1917eb3688437123e137229a1042e4defa8432b255b9d44860c643bfdd8a10fbd544ceb2df33e5100748b113c6ebcb8df0dbcdac9316a7748dafd88e languageName: node linkType: hard -"@docusaurus/mdx-loader@npm:3.6.3": - version: 3.6.3 - resolution: "@docusaurus/mdx-loader@npm:3.6.3" +"@docusaurus/mdx-loader@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/mdx-loader@npm:3.8.1" dependencies: - "@docusaurus/logger": "npm:3.6.3" - "@docusaurus/utils": "npm:3.6.3" - "@docusaurus/utils-validation": "npm:3.6.3" + "@docusaurus/logger": "npm:3.8.1" + "@docusaurus/utils": "npm:3.8.1" + "@docusaurus/utils-validation": "npm:3.8.1" "@mdx-js/mdx": "npm:^3.0.0" "@slorber/remark-comment": "npm:^1.0.0" escape-html: "npm:^1.0.3" estree-util-value-to-estree: "npm:^3.0.1" file-loader: "npm:^6.2.0" fs-extra: "npm:^11.1.1" - image-size: "npm:^1.0.2" + image-size: "npm:^2.0.2" mdast-util-mdx: "npm:^3.0.0" mdast-util-to-string: "npm:^4.0.0" rehype-raw: "npm:^7.0.0" @@ -3622,47 +3639,47 @@ __metadata: vfile: "npm:^6.0.1" webpack: "npm:^5.88.1" peerDependencies: - react: ^18.0.0 - react-dom: ^18.0.0 - checksum: 10c0/c8d358c665176bb185284c38d7465fcefce4f0da4ac7cc83f25b5258c4489cdaa2916b183d83f47e0af33158a22cd06af1ffd383f8aac04549393f4c544c56bc + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + checksum: 10c0/dc5a2c01eb0bff5648799bd797ac8f8b81e1a12a5a99cfc11549390d49ff28ac2e9b20e10cc5d8dd117c59de33753faaae5c1a5a762f54ad01ffa01aea112a56 languageName: node linkType: hard -"@docusaurus/module-type-aliases@npm:3.6.3, @docusaurus/module-type-aliases@npm:^3.6.3": - version: 3.6.3 - resolution: "@docusaurus/module-type-aliases@npm:3.6.3" +"@docusaurus/module-type-aliases@npm:3.8.1, @docusaurus/module-type-aliases@npm:^3.8.1": + version: 3.8.1 + resolution: "@docusaurus/module-type-aliases@npm:3.8.1" dependencies: - "@docusaurus/types": "npm:3.6.3" + "@docusaurus/types": "npm:3.8.1" "@types/history": "npm:^4.7.11" "@types/react": "npm:*" "@types/react-router-config": "npm:*" "@types/react-router-dom": "npm:*" - react-helmet-async: "npm:*" + react-helmet-async: "npm:@slorber/react-helmet-async@1.3.0" react-loadable: "npm:@docusaurus/react-loadable@6.0.0" peerDependencies: react: "*" react-dom: "*" - checksum: 10c0/e142ba7af9059611751159b844bb0ba37c70e29f15b122d1c7ca869a5200a0d3b62fa84dc71a7da04f6d27efffc19c45181d9e6ad46506aaacfe463ffac9e62d + checksum: 10c0/85e2ba80e628dd637607fd18eaa4619b09f7d201afcc3f087ce73cddd141e6e1d894c3936aeae135113faa5845d37144358ae1434557719e7da1f746b288024e languageName: node linkType: hard -"@docusaurus/plugin-content-blog@npm:3.6.3": - version: 3.6.3 - resolution: "@docusaurus/plugin-content-blog@npm:3.6.3" +"@docusaurus/plugin-content-blog@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/plugin-content-blog@npm:3.8.1" dependencies: - "@docusaurus/core": "npm:3.6.3" - "@docusaurus/logger": "npm:3.6.3" - "@docusaurus/mdx-loader": "npm:3.6.3" - "@docusaurus/theme-common": "npm:3.6.3" - "@docusaurus/types": "npm:3.6.3" - "@docusaurus/utils": "npm:3.6.3" - "@docusaurus/utils-common": "npm:3.6.3" - "@docusaurus/utils-validation": "npm:3.6.3" + "@docusaurus/core": "npm:3.8.1" + "@docusaurus/logger": "npm:3.8.1" + "@docusaurus/mdx-loader": "npm:3.8.1" + "@docusaurus/theme-common": "npm:3.8.1" + "@docusaurus/types": "npm:3.8.1" + "@docusaurus/utils": "npm:3.8.1" + "@docusaurus/utils-common": "npm:3.8.1" + "@docusaurus/utils-validation": "npm:3.8.1" cheerio: "npm:1.0.0-rc.12" feed: "npm:^4.2.2" fs-extra: "npm:^11.1.1" lodash: "npm:^4.17.21" - reading-time: "npm:^1.5.0" + schema-dts: "npm:^1.1.2" srcset: "npm:^4.0.0" tslib: "npm:^2.6.0" unist-util-visit: "npm:^5.0.0" @@ -3670,190 +3687,225 @@ __metadata: webpack: "npm:^5.88.1" peerDependencies: "@docusaurus/plugin-content-docs": "*" - react: ^18.0.0 - react-dom: ^18.0.0 - checksum: 10c0/6f8b229c66fd7c155e120732a3a2cca614c610f1458a016f15b6a30f100f1b1679f41b0defcc6a7d95fb55b9ba798722101b54171965c0068a843b4d8de3ff8f + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + checksum: 10c0/03eaee437a77f73f0de47cfc8aea1de117f9e342e0349ab2767584666098b4a3013041f56d502cbf0531e5ced9f6d8951fc6f1b63600f48b9e039c6a9618d3fe languageName: node linkType: hard -"@docusaurus/plugin-content-docs@npm:3.6.3": - version: 3.6.3 - resolution: "@docusaurus/plugin-content-docs@npm:3.6.3" +"@docusaurus/plugin-content-docs@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/plugin-content-docs@npm:3.8.1" dependencies: - "@docusaurus/core": "npm:3.6.3" - "@docusaurus/logger": "npm:3.6.3" - "@docusaurus/mdx-loader": "npm:3.6.3" - "@docusaurus/module-type-aliases": "npm:3.6.3" - "@docusaurus/theme-common": "npm:3.6.3" - "@docusaurus/types": "npm:3.6.3" - "@docusaurus/utils": "npm:3.6.3" - "@docusaurus/utils-common": "npm:3.6.3" - "@docusaurus/utils-validation": "npm:3.6.3" + "@docusaurus/core": "npm:3.8.1" + "@docusaurus/logger": "npm:3.8.1" + "@docusaurus/mdx-loader": "npm:3.8.1" + "@docusaurus/module-type-aliases": "npm:3.8.1" + "@docusaurus/theme-common": "npm:3.8.1" + "@docusaurus/types": "npm:3.8.1" + "@docusaurus/utils": "npm:3.8.1" + "@docusaurus/utils-common": "npm:3.8.1" + "@docusaurus/utils-validation": "npm:3.8.1" "@types/react-router-config": "npm:^5.0.7" combine-promises: "npm:^1.1.0" fs-extra: "npm:^11.1.1" js-yaml: "npm:^4.1.0" lodash: "npm:^4.17.21" + schema-dts: "npm:^1.1.2" tslib: "npm:^2.6.0" utility-types: "npm:^3.10.0" webpack: "npm:^5.88.1" peerDependencies: - react: ^18.0.0 - react-dom: ^18.0.0 - checksum: 10c0/53c1e35e2d4b03b1f1d7990c1eccd0dfbccb244ed5250370add44349e0976fade1b9afca9d2b45c4013bbab5624bb432aa5c6e0e913fdb69df814ccb51212887 + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + checksum: 10c0/243d4caa64632400d8f7f5815bb4de95413f06cfdacb6ddf81e20ee58aaf6f1df52b0b82b95ec166997ab3dbe8ff6240e1eb55ee6c0979f521a69a88c2168b64 languageName: node linkType: hard -"@docusaurus/plugin-content-pages@npm:3.6.3": - version: 3.6.3 - resolution: "@docusaurus/plugin-content-pages@npm:3.6.3" +"@docusaurus/plugin-content-pages@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/plugin-content-pages@npm:3.8.1" dependencies: - "@docusaurus/core": "npm:3.6.3" - "@docusaurus/mdx-loader": "npm:3.6.3" - "@docusaurus/types": "npm:3.6.3" - "@docusaurus/utils": "npm:3.6.3" - "@docusaurus/utils-validation": "npm:3.6.3" + "@docusaurus/core": "npm:3.8.1" + "@docusaurus/mdx-loader": "npm:3.8.1" + "@docusaurus/types": "npm:3.8.1" + "@docusaurus/utils": "npm:3.8.1" + "@docusaurus/utils-validation": "npm:3.8.1" fs-extra: "npm:^11.1.1" tslib: "npm:^2.6.0" webpack: "npm:^5.88.1" peerDependencies: - react: ^18.0.0 - react-dom: ^18.0.0 - checksum: 10c0/f40dba85fb122c5f2a60ba634176c5817c1766751ff887c4f8056f4ccb32c332e1e92d77baf73c2c8178b77bae764f018ec7b3889927f2c4bbdb0ab442078a8c + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + checksum: 10c0/d940a966154674f00ffabccd84fc92f14a7a61c1f300da34944e4b79b5eb34951a5d6b0f33c62ea07b787c7131adb6e926b415ca30467439d5afac3cd2b64d34 languageName: node linkType: hard -"@docusaurus/plugin-debug@npm:3.6.3": - version: 3.6.3 - resolution: "@docusaurus/plugin-debug@npm:3.6.3" +"@docusaurus/plugin-css-cascade-layers@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/plugin-css-cascade-layers@npm:3.8.1" dependencies: - "@docusaurus/core": "npm:3.6.3" - "@docusaurus/types": "npm:3.6.3" - "@docusaurus/utils": "npm:3.6.3" + "@docusaurus/core": "npm:3.8.1" + "@docusaurus/types": "npm:3.8.1" + "@docusaurus/utils": "npm:3.8.1" + "@docusaurus/utils-validation": "npm:3.8.1" + tslib: "npm:^2.6.0" + checksum: 10c0/a2967dd203c572aa627ecd5cadb90cca1c1515b1f1b8c6db6b7e9ce4490fecc62bedf73a8a7284934aa87ce0a369fefe7521328eefa482edfbf351ff23db91fa + languageName: node + linkType: hard + +"@docusaurus/plugin-debug@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/plugin-debug@npm:3.8.1" + dependencies: + "@docusaurus/core": "npm:3.8.1" + "@docusaurus/types": "npm:3.8.1" + "@docusaurus/utils": "npm:3.8.1" fs-extra: "npm:^11.1.1" - react-json-view-lite: "npm:^1.2.0" + react-json-view-lite: "npm:^2.3.0" tslib: "npm:^2.6.0" peerDependencies: - react: ^18.0.0 - react-dom: ^18.0.0 - checksum: 10c0/1f3f4b9d52aa24ee144476959290c17db04b891f0f39b8dece703167df555f7a5577fc93e6c851122361d25f8654f1dd975e41848333848e5eabb788dedd83a5 + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + checksum: 10c0/50ab5e510a7e4295daa9290b56a6b0dd18bb0fde42e002e5ba33bc4551e55077dc360b625b0e9d63a2f3c09ba53414984210550b362161bd2fb76460cb96768c languageName: node linkType: hard -"@docusaurus/plugin-google-analytics@npm:3.6.3": - version: 3.6.3 - resolution: "@docusaurus/plugin-google-analytics@npm:3.6.3" +"@docusaurus/plugin-google-analytics@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/plugin-google-analytics@npm:3.8.1" dependencies: - "@docusaurus/core": "npm:3.6.3" - "@docusaurus/types": "npm:3.6.3" - "@docusaurus/utils-validation": "npm:3.6.3" + "@docusaurus/core": "npm:3.8.1" + "@docusaurus/types": "npm:3.8.1" + "@docusaurus/utils-validation": "npm:3.8.1" tslib: "npm:^2.6.0" peerDependencies: - react: ^18.0.0 - react-dom: ^18.0.0 - checksum: 10c0/762dc9e93cb8728cc71be927521c1a24b10d48100145a7f4e83d912513b2048389bd4604aff72520d56ef6899dc44852067ad153b85d7bf5a7cb391f40b3289c + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + checksum: 10c0/9c2eb5c2678d04d35d855252077f33b761757575fad4e6e1526e538fc1c62174d88117cc2a4ec62ee98d83ad2ece2edfff089107469dfc5dda30d8dc65251776 languageName: node linkType: hard -"@docusaurus/plugin-google-gtag@npm:3.6.3": - version: 3.6.3 - resolution: "@docusaurus/plugin-google-gtag@npm:3.6.3" +"@docusaurus/plugin-google-gtag@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/plugin-google-gtag@npm:3.8.1" dependencies: - "@docusaurus/core": "npm:3.6.3" - "@docusaurus/types": "npm:3.6.3" - "@docusaurus/utils-validation": "npm:3.6.3" + "@docusaurus/core": "npm:3.8.1" + "@docusaurus/types": "npm:3.8.1" + "@docusaurus/utils-validation": "npm:3.8.1" "@types/gtag.js": "npm:^0.0.12" tslib: "npm:^2.6.0" peerDependencies: - react: ^18.0.0 - react-dom: ^18.0.0 - checksum: 10c0/671b0d9be8603b6baa63701b28d9f14080f057a0d69c61eef8ad954844ba8f832c9a83f8f14eeeb3dd84baa4861ccc8b50f5b62afe51ba70474ab15cdd77af94 + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + checksum: 10c0/77d6532fef8e442fe73fc12560358606e3c3d395f059ff69a677be7dc1de1e220283eabf8f856eb753c075f61f09774147d504c10ec4b0cf5b6aeb5284ace6dd languageName: node linkType: hard -"@docusaurus/plugin-google-tag-manager@npm:3.6.3": - version: 3.6.3 - resolution: "@docusaurus/plugin-google-tag-manager@npm:3.6.3" +"@docusaurus/plugin-google-tag-manager@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/plugin-google-tag-manager@npm:3.8.1" dependencies: - "@docusaurus/core": "npm:3.6.3" - "@docusaurus/types": "npm:3.6.3" - "@docusaurus/utils-validation": "npm:3.6.3" + "@docusaurus/core": "npm:3.8.1" + "@docusaurus/types": "npm:3.8.1" + "@docusaurus/utils-validation": "npm:3.8.1" tslib: "npm:^2.6.0" peerDependencies: - react: ^18.0.0 - react-dom: ^18.0.0 - checksum: 10c0/e3f9f3564d7092f0d2a443a66e1822cde7ef437b4385e41c1ad2fb048f8cba9c97bee462c57a1ed93b5f86ce596e065f114375559979ce586b6403aa139a92cf + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + checksum: 10c0/e3d3ae5839479646d418040f6864abc70b15e62b5021dd9fcd18529de7199970d33c59f4174ee99561dc8dff74fa1828698d8b53adf30baaaf656c1df3d8abd1 languageName: node linkType: hard -"@docusaurus/plugin-sitemap@npm:3.6.3": - version: 3.6.3 - resolution: "@docusaurus/plugin-sitemap@npm:3.6.3" +"@docusaurus/plugin-sitemap@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/plugin-sitemap@npm:3.8.1" dependencies: - "@docusaurus/core": "npm:3.6.3" - "@docusaurus/logger": "npm:3.6.3" - "@docusaurus/types": "npm:3.6.3" - "@docusaurus/utils": "npm:3.6.3" - "@docusaurus/utils-common": "npm:3.6.3" - "@docusaurus/utils-validation": "npm:3.6.3" + "@docusaurus/core": "npm:3.8.1" + "@docusaurus/logger": "npm:3.8.1" + "@docusaurus/types": "npm:3.8.1" + "@docusaurus/utils": "npm:3.8.1" + "@docusaurus/utils-common": "npm:3.8.1" + "@docusaurus/utils-validation": "npm:3.8.1" fs-extra: "npm:^11.1.1" sitemap: "npm:^7.1.1" tslib: "npm:^2.6.0" peerDependencies: - react: ^18.0.0 - react-dom: ^18.0.0 - checksum: 10c0/52d39a8b9f6db21343f363703b15b1257c60479d0fa9846db39e953fa88143e8e3a5bbeed5be94fcccc7bc87736fe7842f19f71021f819933177aa3a44da7916 - languageName: node - linkType: hard - -"@docusaurus/preset-classic@npm:^3.6.3": - version: 3.6.3 - resolution: "@docusaurus/preset-classic@npm:3.6.3" - dependencies: - "@docusaurus/core": "npm:3.6.3" - "@docusaurus/plugin-content-blog": "npm:3.6.3" - "@docusaurus/plugin-content-docs": "npm:3.6.3" - "@docusaurus/plugin-content-pages": "npm:3.6.3" - "@docusaurus/plugin-debug": "npm:3.6.3" - "@docusaurus/plugin-google-analytics": "npm:3.6.3" - "@docusaurus/plugin-google-gtag": "npm:3.6.3" - "@docusaurus/plugin-google-tag-manager": "npm:3.6.3" - "@docusaurus/plugin-sitemap": "npm:3.6.3" - "@docusaurus/theme-classic": "npm:3.6.3" - "@docusaurus/theme-common": "npm:3.6.3" - "@docusaurus/theme-search-algolia": "npm:3.6.3" - "@docusaurus/types": "npm:3.6.3" - peerDependencies: - react: ^18.0.0 - react-dom: ^18.0.0 - checksum: 10c0/bb94646f5e5d552787d2b2f2104071ef6ae178593445c08d8669e9150792706065e51df94d13e3907ee08d742d72bdffb48233f758b7864c0e0fbd238e22799b - languageName: node - linkType: hard - -"@docusaurus/theme-classic@npm:3.6.3": - version: 3.6.3 - resolution: "@docusaurus/theme-classic@npm:3.6.3" - dependencies: - "@docusaurus/core": "npm:3.6.3" - "@docusaurus/logger": "npm:3.6.3" - "@docusaurus/mdx-loader": "npm:3.6.3" - "@docusaurus/module-type-aliases": "npm:3.6.3" - "@docusaurus/plugin-content-blog": "npm:3.6.3" - "@docusaurus/plugin-content-docs": "npm:3.6.3" - "@docusaurus/plugin-content-pages": "npm:3.6.3" - "@docusaurus/theme-common": "npm:3.6.3" - "@docusaurus/theme-translations": "npm:3.6.3" - "@docusaurus/types": "npm:3.6.3" - "@docusaurus/utils": "npm:3.6.3" - "@docusaurus/utils-common": "npm:3.6.3" - "@docusaurus/utils-validation": "npm:3.6.3" + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + checksum: 10c0/6d32d0177e38364f281f85f4a777918de33d7202a73146f210e12ca818d1b9af31d42e63bce03a668435b39e2108fe75866d55ecd1268e557e89d55d264d61a6 + languageName: node + linkType: hard + +"@docusaurus/plugin-svgr@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/plugin-svgr@npm:3.8.1" + dependencies: + "@docusaurus/core": "npm:3.8.1" + "@docusaurus/types": "npm:3.8.1" + "@docusaurus/utils": "npm:3.8.1" + "@docusaurus/utils-validation": "npm:3.8.1" + "@svgr/core": "npm:8.1.0" + "@svgr/webpack": "npm:^8.1.0" + tslib: "npm:^2.6.0" + webpack: "npm:^5.88.1" + peerDependencies: + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + checksum: 10c0/65177cbe0a85f551332a84b2aaa880e5a198582df712ebbbe031dc2ce3f22c8c4ed362ff23424625ea2c3012a7d422b11b25e712868e296626842e6ab00077a7 + languageName: node + linkType: hard + +"@docusaurus/preset-classic@npm:^3.8.1": + version: 3.8.1 + resolution: "@docusaurus/preset-classic@npm:3.8.1" + dependencies: + "@docusaurus/core": "npm:3.8.1" + "@docusaurus/plugin-content-blog": "npm:3.8.1" + "@docusaurus/plugin-content-docs": "npm:3.8.1" + "@docusaurus/plugin-content-pages": "npm:3.8.1" + "@docusaurus/plugin-css-cascade-layers": "npm:3.8.1" + "@docusaurus/plugin-debug": "npm:3.8.1" + "@docusaurus/plugin-google-analytics": "npm:3.8.1" + "@docusaurus/plugin-google-gtag": "npm:3.8.1" + "@docusaurus/plugin-google-tag-manager": "npm:3.8.1" + "@docusaurus/plugin-sitemap": "npm:3.8.1" + "@docusaurus/plugin-svgr": "npm:3.8.1" + "@docusaurus/theme-classic": "npm:3.8.1" + "@docusaurus/theme-common": "npm:3.8.1" + "@docusaurus/theme-search-algolia": "npm:3.8.1" + "@docusaurus/types": "npm:3.8.1" + peerDependencies: + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + checksum: 10c0/2d32afe5867baf0b3baafdb965b490520cbf9c7939ca3ded489170b24eb779141ffbf46bdd9d8412fc05adf39440937a83b3218fe4571f52776f20f797786697 + languageName: node + linkType: hard + +"@docusaurus/theme-classic@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/theme-classic@npm:3.8.1" + dependencies: + "@docusaurus/core": "npm:3.8.1" + "@docusaurus/logger": "npm:3.8.1" + "@docusaurus/mdx-loader": "npm:3.8.1" + "@docusaurus/module-type-aliases": "npm:3.8.1" + "@docusaurus/plugin-content-blog": "npm:3.8.1" + "@docusaurus/plugin-content-docs": "npm:3.8.1" + "@docusaurus/plugin-content-pages": "npm:3.8.1" + "@docusaurus/theme-common": "npm:3.8.1" + "@docusaurus/theme-translations": "npm:3.8.1" + "@docusaurus/types": "npm:3.8.1" + "@docusaurus/utils": "npm:3.8.1" + "@docusaurus/utils-common": "npm:3.8.1" + "@docusaurus/utils-validation": "npm:3.8.1" "@mdx-js/react": "npm:^3.0.0" clsx: "npm:^2.0.0" copy-text-to-clipboard: "npm:^3.2.0" infima: "npm:0.2.0-alpha.45" lodash: "npm:^4.17.21" nprogress: "npm:^0.2.0" - postcss: "npm:^8.4.26" + postcss: "npm:^8.5.4" prism-react-renderer: "npm:^2.3.0" prismjs: "npm:^1.29.0" react-router-dom: "npm:^5.3.4" @@ -3861,20 +3913,20 @@ __metadata: tslib: "npm:^2.6.0" utility-types: "npm:^3.10.0" peerDependencies: - react: ^18.0.0 - react-dom: ^18.0.0 - checksum: 10c0/cfc891ecb967ca39d2726df426bcb5ed1033153f276dc63e1d7f8b2a3587c6ed035630de92817464de8ad9392217d56698c4584559475fd19df0a3199cf42153 + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + checksum: 10c0/3a37763875f41e8ac9c6baf6d796eb7804fd831eae3965db28b48e642b712b5fa4ba0c67bcb7056fe59220d0ccfa8e0320a7fb3bfe496f82b49b976ccfa50729 languageName: node linkType: hard -"@docusaurus/theme-common@npm:3.6.3": - version: 3.6.3 - resolution: "@docusaurus/theme-common@npm:3.6.3" +"@docusaurus/theme-common@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/theme-common@npm:3.8.1" dependencies: - "@docusaurus/mdx-loader": "npm:3.6.3" - "@docusaurus/module-type-aliases": "npm:3.6.3" - "@docusaurus/utils": "npm:3.6.3" - "@docusaurus/utils-common": "npm:3.6.3" + "@docusaurus/mdx-loader": "npm:3.8.1" + "@docusaurus/module-type-aliases": "npm:3.8.1" + "@docusaurus/utils": "npm:3.8.1" + "@docusaurus/utils-common": "npm:3.8.1" "@types/history": "npm:^4.7.11" "@types/react": "npm:*" "@types/react-router-config": "npm:*" @@ -3885,44 +3937,44 @@ __metadata: utility-types: "npm:^3.10.0" peerDependencies: "@docusaurus/plugin-content-docs": "*" - react: ^18.0.0 - react-dom: ^18.0.0 - checksum: 10c0/fdbab9ba549a10924f21cdfc53ebea43a514fef260981145e5b922a250959a042e29eaf3afeb633c703236902325bcd302b87ff92c587985c65eba5a3d111ddb + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + checksum: 10c0/23a4b766778acb10321c617408ac7c65db08fe2d5493be3d6faeeec0ec1be90f00031f691e2ae6716054136b543455eeb4c2a8ef6987a8bc4d474bf4cba53acb languageName: node linkType: hard -"@docusaurus/theme-mermaid@npm:^3.6.3": - version: 3.6.3 - resolution: "@docusaurus/theme-mermaid@npm:3.6.3" +"@docusaurus/theme-mermaid@npm:^3.8.1": + version: 3.8.1 + resolution: "@docusaurus/theme-mermaid@npm:3.8.1" dependencies: - "@docusaurus/core": "npm:3.6.3" - "@docusaurus/module-type-aliases": "npm:3.6.3" - "@docusaurus/theme-common": "npm:3.6.3" - "@docusaurus/types": "npm:3.6.3" - "@docusaurus/utils-validation": "npm:3.6.3" - mermaid: "npm:>=10.4" + "@docusaurus/core": "npm:3.8.1" + "@docusaurus/module-type-aliases": "npm:3.8.1" + "@docusaurus/theme-common": "npm:3.8.1" + "@docusaurus/types": "npm:3.8.1" + "@docusaurus/utils-validation": "npm:3.8.1" + mermaid: "npm:>=11.6.0" tslib: "npm:^2.6.0" peerDependencies: - react: ^18.0.0 - react-dom: ^18.0.0 - checksum: 10c0/de5f068852e2231efe081aceb9f4830beeb559bde3c765e6c47db1c4a1907eb1dd557c4a0275b5babe97a5f61a8ba14b68ffb64b715b2e3ee282771ea2d7f760 + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + checksum: 10c0/7beb615f34d8827ab9f510a17bc84a76d004f7f16866d9e680339b7db55ef82543be328c6e17e3f1ed646d50499ab6469dcd07abe8e12e6fd7acf1610311f94f languageName: node linkType: hard -"@docusaurus/theme-search-algolia@npm:3.6.3": - version: 3.6.3 - resolution: "@docusaurus/theme-search-algolia@npm:3.6.3" +"@docusaurus/theme-search-algolia@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/theme-search-algolia@npm:3.8.1" dependencies: - "@docsearch/react": "npm:^3.5.2" - "@docusaurus/core": "npm:3.6.3" - "@docusaurus/logger": "npm:3.6.3" - "@docusaurus/plugin-content-docs": "npm:3.6.3" - "@docusaurus/theme-common": "npm:3.6.3" - "@docusaurus/theme-translations": "npm:3.6.3" - "@docusaurus/utils": "npm:3.6.3" - "@docusaurus/utils-validation": "npm:3.6.3" - algoliasearch: "npm:^4.18.0" - algoliasearch-helper: "npm:^3.13.3" + "@docsearch/react": "npm:^3.9.0" + "@docusaurus/core": "npm:3.8.1" + "@docusaurus/logger": "npm:3.8.1" + "@docusaurus/plugin-content-docs": "npm:3.8.1" + "@docusaurus/theme-common": "npm:3.8.1" + "@docusaurus/theme-translations": "npm:3.8.1" + "@docusaurus/utils": "npm:3.8.1" + "@docusaurus/utils-validation": "npm:3.8.1" + algoliasearch: "npm:^5.17.1" + algoliasearch-helper: "npm:^3.22.6" clsx: "npm:^2.0.0" eta: "npm:^2.2.0" fs-extra: "npm:^11.1.1" @@ -3930,84 +3982,84 @@ __metadata: tslib: "npm:^2.6.0" utility-types: "npm:^3.10.0" peerDependencies: - react: ^18.0.0 - react-dom: ^18.0.0 - checksum: 10c0/e26dccca3d215f19930279254a619f9c02d30aac192a9cfa99e25f750f9100f811e3b81db9d149bac10a5c467dafb92d8d15a28f865a8dd910c12335e2bad397 + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + checksum: 10c0/ed29e2f88a0d9075c433303706fe7fbc0aa75f6bedf01e3549534c906669a290b3b2d062642961975f917cd952ab48a0ba838e4288e7caf23a73a856c23327f0 languageName: node linkType: hard -"@docusaurus/theme-translations@npm:3.6.3": - version: 3.6.3 - resolution: "@docusaurus/theme-translations@npm:3.6.3" +"@docusaurus/theme-translations@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/theme-translations@npm:3.8.1" dependencies: fs-extra: "npm:^11.1.1" tslib: "npm:^2.6.0" - checksum: 10c0/90cf563d747b3b82eb549f4ab319e7f3a929baaeb3898531e5155847eeb5f4b09518a0e9b9a2bfdc25df770ca4afd73b4f029fcb14b6d5e3cb39b25f4b944959 + checksum: 10c0/6c4b3db8beaf90d03f5c048e960df34aa57cae933f3db5be5973efe72556850059461fcf420458857efe951666cb9935853a17f4dd15dc0c8cabe7042f1d8c5e languageName: node linkType: hard -"@docusaurus/tsconfig@npm:^3.6.3": - version: 3.6.3 - resolution: "@docusaurus/tsconfig@npm:3.6.3" - checksum: 10c0/0ff7af6e0fe267d22c2e1c439d887aef1668b626731b07b4053c6fb5377f0faeec74d69f30d139522f6de74ba73d4462242400564024faa7ab0076c3af83d5d9 +"@docusaurus/tsconfig@npm:^3.8.1": + version: 3.8.1 + resolution: "@docusaurus/tsconfig@npm:3.8.1" + checksum: 10c0/137aad26f2f3cf7b36a80b36f25170cdb00f51d03e8aa10d4c7eaa2550770ec48d269ce016d852f13c9390176b70bbbb87af4946c4ca891d4be1f61a745a95a5 languageName: node linkType: hard -"@docusaurus/types@npm:3.6.3, @docusaurus/types@npm:^3.6.3": - version: 3.6.3 - resolution: "@docusaurus/types@npm:3.6.3" +"@docusaurus/types@npm:3.8.1, @docusaurus/types@npm:^3.8.1": + version: 3.8.1 + resolution: "@docusaurus/types@npm:3.8.1" dependencies: "@mdx-js/mdx": "npm:^3.0.0" "@types/history": "npm:^4.7.11" "@types/react": "npm:*" commander: "npm:^5.1.0" joi: "npm:^17.9.2" - react-helmet-async: "npm:^1.3.0" + react-helmet-async: "npm:@slorber/react-helmet-async@1.3.0" utility-types: "npm:^3.10.0" webpack: "npm:^5.95.0" webpack-merge: "npm:^5.9.0" peerDependencies: - react: ^18.0.0 - react-dom: ^18.0.0 - checksum: 10c0/fb4fca87c7e25482ee08d0e70da28cd795cd29a54bae3e95868e7e670a37154e4751712663674d03ff0a060c8b84787f296f397eb36027caf91c1633ac22789d + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + checksum: 10c0/1a70a104c73b8cd6329e5feda72732be606d65d5fbd7b99453756dac50dd91f7d35ddacd782468d7b92f786ab0094a68bed45e52fa104e5fa3bb4836282a6f41 languageName: node linkType: hard -"@docusaurus/utils-common@npm:3.6.3": - version: 3.6.3 - resolution: "@docusaurus/utils-common@npm:3.6.3" +"@docusaurus/utils-common@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/utils-common@npm:3.8.1" dependencies: - "@docusaurus/types": "npm:3.6.3" + "@docusaurus/types": "npm:3.8.1" tslib: "npm:^2.6.0" - checksum: 10c0/cf484b62541412a5706cbf8f8e7cc2f9bc1f0b4db33657b74fe2f02d1a3b4ba0349e99022d4aec6e1fecf76651316fce5a210172153b67a9ab16847c6ec00e6e + checksum: 10c0/59c672880c860560b0896b43bdc6f6ce868c2efb9b804b578b3449c9cd45669fe350a16ea35469f9da85d5f3166a404c46284476d1c91c35826cd51f7c8edba7 languageName: node linkType: hard -"@docusaurus/utils-validation@npm:3.6.3": - version: 3.6.3 - resolution: "@docusaurus/utils-validation@npm:3.6.3" +"@docusaurus/utils-validation@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/utils-validation@npm:3.8.1" dependencies: - "@docusaurus/logger": "npm:3.6.3" - "@docusaurus/utils": "npm:3.6.3" - "@docusaurus/utils-common": "npm:3.6.3" + "@docusaurus/logger": "npm:3.8.1" + "@docusaurus/utils": "npm:3.8.1" + "@docusaurus/utils-common": "npm:3.8.1" fs-extra: "npm:^11.2.0" joi: "npm:^17.9.2" js-yaml: "npm:^4.1.0" lodash: "npm:^4.17.21" tslib: "npm:^2.6.0" - checksum: 10c0/8cfc1d223e71612180d09ad3027ea10c4447fc70ed4bf680b66f72f1bce7c74556a6029073fa6a6bc64ddbc03a9a1c9d708607e62ef0b86a033f35ab6a63ddf9 + checksum: 10c0/e64008cd8575b9699a1772665b8bc2508f2410a6c9bc4858a9bc3c8a988a1cad10f63fd336fc7333df6d2dfb111a701f829b64faf053f0a73e7196ec3e122221 languageName: node linkType: hard -"@docusaurus/utils@npm:3.6.3": - version: 3.6.3 - resolution: "@docusaurus/utils@npm:3.6.3" +"@docusaurus/utils@npm:3.8.1": + version: 3.8.1 + resolution: "@docusaurus/utils@npm:3.8.1" dependencies: - "@docusaurus/logger": "npm:3.6.3" - "@docusaurus/types": "npm:3.6.3" - "@docusaurus/utils-common": "npm:3.6.3" - "@svgr/webpack": "npm:^8.1.0" + "@docusaurus/logger": "npm:3.8.1" + "@docusaurus/types": "npm:3.8.1" + "@docusaurus/utils-common": "npm:3.8.1" escape-string-regexp: "npm:^4.0.0" + execa: "npm:5.1.1" file-loader: "npm:^6.2.0" fs-extra: "npm:^11.1.1" github-slugger: "npm:^1.5.0" @@ -4017,14 +4069,14 @@ __metadata: js-yaml: "npm:^4.1.0" lodash: "npm:^4.17.21" micromatch: "npm:^4.0.5" + p-queue: "npm:^6.6.2" prompts: "npm:^2.4.2" resolve-pathname: "npm:^3.0.0" - shelljs: "npm:^0.8.5" tslib: "npm:^2.6.0" url-loader: "npm:^4.1.1" utility-types: "npm:^3.10.0" webpack: "npm:^5.88.1" - checksum: 10c0/e665e067be8a440a93bec66e79f94735f8cfb21940df8f57c89f923d2a5c08fb29b35e0309370baec644281b0764034fe75642a976d1ae04392fe21b905df8bf + checksum: 10c0/a44c9d7b7e268ad5783cbaa9b554bf78e03d6601dfc31be83c4d90977e862b5d342f758e46d63daeb91721c93d5da3c4e6dc94765d56dfb6a419583f2677619b languageName: node linkType: hard @@ -4051,18 +4103,19 @@ __metadata: languageName: node linkType: hard -"@iconify/utils@npm:^2.1.32": - version: 2.1.33 - resolution: "@iconify/utils@npm:2.1.33" +"@iconify/utils@npm:^2.1.33": + version: 2.3.0 + resolution: "@iconify/utils@npm:2.3.0" dependencies: - "@antfu/install-pkg": "npm:^0.4.0" - "@antfu/utils": "npm:^0.7.10" + "@antfu/install-pkg": "npm:^1.0.0" + "@antfu/utils": "npm:^8.1.0" "@iconify/types": "npm:^2.0.0" - debug: "npm:^4.3.6" + debug: "npm:^4.4.0" + globals: "npm:^15.14.0" kolorist: "npm:^1.8.0" - local-pkg: "npm:^0.5.0" - mlly: "npm:^1.7.1" - checksum: 10c0/86faf1abee78ba75cbb7d8cdd454f7a8da11d46913a8108c4c1f49243870ef787a2ef00e574e1cfff0f70e1f7bbe4ced2ffc7436baf95bfd66e52802e187bc13 + local-pkg: "npm:^1.0.0" + mlly: "npm:^1.7.4" + checksum: 10c0/926013852cd9d09b8501ee0f3f7d40386dc5ed1cb904869d6502f5ee1a64aee5664e9c00da49d700528d26c4a51ea0cac4f046c4eb281d0f8d54fc5df2f3fd0d languageName: node linkType: hard @@ -4217,12 +4270,12 @@ __metadata: languageName: node linkType: hard -"@mermaid-js/parser@npm:^0.3.0": - version: 0.3.0 - resolution: "@mermaid-js/parser@npm:0.3.0" +"@mermaid-js/parser@npm:^0.4.0": + version: 0.4.0 + resolution: "@mermaid-js/parser@npm:0.4.0" dependencies: - langium: "npm:3.0.0" - checksum: 10c0/88c08fb20256ce779fea2151500c017bffd8a970b8d2c6ead81b5ff14787877b16c75b43f503dd5365e4eb33d0b7d5a7d9fff852cff56eb67b3b6508f44576b7 + langium: "npm:3.3.1" + checksum: 10c0/f0bea89b993c89d9e655e487e6ffd6866897e607264e70a7addc4794683f5c9632376c1e9893246e7e2d5c05569d1b35005a213c283107453b8dff273fb8d8b2 languageName: node linkType: hard @@ -5023,7 +5076,7 @@ __metadata: languageName: node linkType: hard -"@types/json-schema@npm:*, @types/json-schema@npm:^7.0.4, @types/json-schema@npm:^7.0.5, @types/json-schema@npm:^7.0.8, @types/json-schema@npm:^7.0.9": +"@types/json-schema@npm:*, @types/json-schema@npm:^7.0.8, @types/json-schema@npm:^7.0.9": version: 7.0.15 resolution: "@types/json-schema@npm:7.0.15" checksum: 10c0/a996a745e6c5d60292f36731dd41341339d4eeed8180bb09226e5c8d23759067692b1d88e5d91d72ee83dfc00d3aca8e7bd43ea120516c17922cbcb7c3e252db @@ -5085,13 +5138,6 @@ __metadata: languageName: node linkType: hard -"@types/parse-json@npm:^4.0.0": - version: 4.0.2 - resolution: "@types/parse-json@npm:4.0.2" - checksum: 10c0/b1b863ac34a2c2172fbe0807a1ec4d5cb684e48d422d15ec95980b81475fac4fdb3768a8b13eef39130203a7c04340fc167bae057c7ebcafd7dec9fe6c36aeb1 - languageName: node - linkType: hard - "@types/prismjs@npm:^1.26.0": version: 1.26.4 resolution: "@types/prismjs@npm:1.26.4" @@ -5497,7 +5543,7 @@ __metadata: languageName: node linkType: hard -"address@npm:^1.0.1, address@npm:^1.1.2": +"address@npm:^1.0.1": version: 1.2.2 resolution: "address@npm:1.2.2" checksum: 10c0/1c8056b77fb124456997b78ed682ecc19d2fd7ea8bd5850a2aa8c3e3134c913847c57bcae418622efd32ba858fa1e242a40a251ac31da0515664fc0ac03a047d @@ -5537,7 +5583,7 @@ __metadata: languageName: node linkType: hard -"ajv-keywords@npm:^3.4.1, ajv-keywords@npm:^3.5.2": +"ajv-keywords@npm:^3.5.2": version: 3.5.2 resolution: "ajv-keywords@npm:3.5.2" peerDependencies: @@ -5557,7 +5603,7 @@ __metadata: languageName: node linkType: hard -"ajv@npm:^6.12.2, ajv@npm:^6.12.5": +"ajv@npm:^6.12.5": version: 6.12.6 resolution: "ajv@npm:6.12.6" dependencies: @@ -5581,37 +5627,35 @@ __metadata: languageName: node linkType: hard -"algoliasearch-helper@npm:^3.13.3": - version: 3.22.5 - resolution: "algoliasearch-helper@npm:3.22.5" +"algoliasearch-helper@npm:^3.22.6": + version: 3.24.1 + resolution: "algoliasearch-helper@npm:3.24.1" dependencies: "@algolia/events": "npm:^4.0.1" peerDependencies: algoliasearch: ">= 3.1 < 6" - checksum: 10c0/ac23bf64e8ae4f1388c121cb23ec0d2e2a996e77493a7da8141338e6b60be565c9085363ac7d0277469645474ce61c8a06ecbb6e4f0462736b79f3b1b54031b2 + checksum: 10c0/b6065ef5404e25f3cb65430f92b7926a7e597be34855eff86a616ae75bfb6d5f524fe8e34dcccde5df617a1eec1c01c20706f53a778d0006337ca40451e773d0 languageName: node linkType: hard -"algoliasearch@npm:^4.18.0, algoliasearch@npm:^4.19.1": - version: 4.24.0 - resolution: "algoliasearch@npm:4.24.0" +"algoliasearch@npm:^5.14.2, algoliasearch@npm:^5.17.1": + version: 5.20.0 + resolution: "algoliasearch@npm:5.20.0" dependencies: - "@algolia/cache-browser-local-storage": "npm:4.24.0" - "@algolia/cache-common": "npm:4.24.0" - "@algolia/cache-in-memory": "npm:4.24.0" - "@algolia/client-account": "npm:4.24.0" - "@algolia/client-analytics": "npm:4.24.0" - "@algolia/client-common": "npm:4.24.0" - "@algolia/client-personalization": "npm:4.24.0" - "@algolia/client-search": "npm:4.24.0" - "@algolia/logger-common": "npm:4.24.0" - "@algolia/logger-console": "npm:4.24.0" - "@algolia/recommend": "npm:4.24.0" - "@algolia/requester-browser-xhr": "npm:4.24.0" - "@algolia/requester-common": "npm:4.24.0" - "@algolia/requester-node-http": "npm:4.24.0" - "@algolia/transporter": "npm:4.24.0" - checksum: 10c0/ef09096619191181f3ea3376ed46b5bb2de1cd7d97a8d016f7cfe8e93c89d34f38cac8db5835314f8d97c939ad007c3dde716c1609953540258352edb25d12c2 + "@algolia/client-abtesting": "npm:5.20.0" + "@algolia/client-analytics": "npm:5.20.0" + "@algolia/client-common": "npm:5.20.0" + "@algolia/client-insights": "npm:5.20.0" + "@algolia/client-personalization": "npm:5.20.0" + "@algolia/client-query-suggestions": "npm:5.20.0" + "@algolia/client-search": "npm:5.20.0" + "@algolia/ingestion": "npm:1.20.0" + "@algolia/monitoring": "npm:1.20.0" + "@algolia/recommend": "npm:5.20.0" + "@algolia/requester-browser-xhr": "npm:5.20.0" + "@algolia/requester-fetch": "npm:5.20.0" + "@algolia/requester-node-http": "npm:5.20.0" + checksum: 10c0/34bbe5ea83b62ea7604fd50ef61d9225cfa1bf5b1bf064500c46dddbebad922d38dfb7fd7c531591ada113879ed81c3896912a561012b9e1c1b1ae3ec68b6edf languageName: node linkType: hard @@ -5737,13 +5781,6 @@ __metadata: languageName: node linkType: hard -"at-least-node@npm:^1.0.0": - version: 1.0.0 - resolution: "at-least-node@npm:1.0.0" - checksum: 10c0/4c058baf6df1bc5a1697cf182e2029c58cd99975288a13f9e70068ef5d6f4e1f1fd7c4d2c3c4912eae44797d1725be9700995736deca441b39f3e66d8dee97ef - languageName: node - linkType: hard - "autoprefixer@npm:^10.4.19": version: 10.4.20 resolution: "autoprefixer@npm:10.4.20" @@ -5762,6 +5799,24 @@ __metadata: languageName: node linkType: hard +"autoprefixer@npm:^10.4.21": + version: 10.4.21 + resolution: "autoprefixer@npm:10.4.21" + dependencies: + browserslist: "npm:^4.24.4" + caniuse-lite: "npm:^1.0.30001702" + fraction.js: "npm:^4.3.7" + normalize-range: "npm:^0.1.2" + picocolors: "npm:^1.1.1" + postcss-value-parser: "npm:^4.2.0" + peerDependencies: + postcss: ^8.1.0 + bin: + autoprefixer: bin/autoprefixer + checksum: 10c0/de5b71d26d0baff4bbfb3d59f7cf7114a6030c9eeb66167acf49a32c5b61c68e308f1e0f869d92334436a221035d08b51cd1b2f2c4689b8d955149423c16d4d4 + languageName: node + linkType: hard + "babel-loader@npm:^9.2.1": version: 9.2.1 resolution: "babel-loader@npm:9.2.1" @@ -5925,12 +5980,12 @@ __metadata: linkType: hard "brace-expansion@npm:^1.1.7": - version: 1.1.11 - resolution: "brace-expansion@npm:1.1.11" + version: 1.1.12 + resolution: "brace-expansion@npm:1.1.12" dependencies: balanced-match: "npm:^1.0.0" concat-map: "npm:0.0.1" - checksum: 10c0/695a56cd058096a7cb71fb09d9d6a7070113c7be516699ed361317aca2ec169f618e28b8af352e02ab4233fb54eb0168460a40dc320bab0034b36ab59aaad668 + checksum: 10c0/975fecac2bb7758c062c20d0b3b6288c7cc895219ee25f0a64a9de662dbac981ff0b6e89909c3897c1f84fa353113a721923afdec5f8b2350255b097f12b1f73 languageName: node linkType: hard @@ -5952,7 +6007,7 @@ __metadata: languageName: node linkType: hard -"browserslist@npm:^4.0.0, browserslist@npm:^4.18.1, browserslist@npm:^4.21.10, browserslist@npm:^4.23.0, browserslist@npm:^4.23.1, browserslist@npm:^4.23.3": +"browserslist@npm:^4.0.0, browserslist@npm:^4.21.10, browserslist@npm:^4.23.0, browserslist@npm:^4.23.1, browserslist@npm:^4.23.3": version: 4.23.3 resolution: "browserslist@npm:4.23.3" dependencies: @@ -5980,6 +6035,20 @@ __metadata: languageName: node linkType: hard +"browserslist@npm:^4.24.4, browserslist@npm:^4.25.0": + version: 4.25.1 + resolution: "browserslist@npm:4.25.1" + dependencies: + caniuse-lite: "npm:^1.0.30001726" + electron-to-chromium: "npm:^1.5.173" + node-releases: "npm:^2.0.19" + update-browserslist-db: "npm:^1.1.3" + bin: + browserslist: cli.js + checksum: 10c0/acba5f0bdbd5e72dafae1e6ec79235b7bad305ed104e082ed07c34c38c7cb8ea1bc0f6be1496958c40482e40166084458fc3aee15111f15faa79212ad9081b2a + languageName: node + linkType: hard + "buffer-from@npm:^1.0.0": version: 1.1.2 resolution: "buffer-from@npm:1.1.2" @@ -6113,6 +6182,13 @@ __metadata: languageName: node linkType: hard +"caniuse-lite@npm:^1.0.30001702, caniuse-lite@npm:^1.0.30001726": + version: 1.0.30001726 + resolution: "caniuse-lite@npm:1.0.30001726" + checksum: 10c0/2c5f91da7fd9ebf8c6b432818b1498ea28aca8de22b30dafabe2a2a6da1e014f10e67e14f8e68e872a0867b6b4cd6001558dde04e3ab9770c9252ca5c8849d0e + languageName: node + linkType: hard + "ccount@npm:^2.0.0": version: 2.0.1 resolution: "ccount@npm:2.0.1" @@ -6131,7 +6207,7 @@ __metadata: languageName: node linkType: hard -"chalk@npm:^4.0.0, chalk@npm:^4.1.0, chalk@npm:^4.1.2": +"chalk@npm:^4.0.0, chalk@npm:^4.1.2": version: 4.1.2 resolution: "chalk@npm:4.1.2" dependencies: @@ -6237,7 +6313,7 @@ __metadata: languageName: node linkType: hard -"chokidar@npm:^3.4.2, chokidar@npm:^3.5.3": +"chokidar@npm:^3.5.3": version: 3.6.0 resolution: "chokidar@npm:3.6.0" dependencies: @@ -6277,7 +6353,7 @@ __metadata: languageName: node linkType: hard -"clean-css@npm:^5.2.2, clean-css@npm:^5.3.2, clean-css@npm:~5.3.2": +"clean-css@npm:^5.2.2, clean-css@npm:^5.3.3, clean-css@npm:~5.3.2": version: 5.3.3 resolution: "clean-css@npm:5.3.3" dependencies: @@ -6324,7 +6400,7 @@ __metadata: languageName: node linkType: hard -"clsx@npm:^2.0.0": +"clsx@npm:^2.0.0, clsx@npm:^2.1.1": version: 2.1.1 resolution: "clsx@npm:2.1.1" checksum: 10c0/c4c8eb865f8c82baab07e71bfa8897c73454881c4f99d6bc81585aecd7c441746c1399d08363dc096c550cceaf97bd4ce1e8854e1771e9998d9f94c4fe075839 @@ -6478,6 +6554,13 @@ __metadata: languageName: node linkType: hard +"confbox@npm:^0.2.1": + version: 0.2.2 + resolution: "confbox@npm:0.2.2" + checksum: 10c0/7c246588d533d31e8cdf66cb4701dff6de60f9be77ab54c0d0338e7988750ac56863cc0aca1b3f2046f45ff223a765d3e5d4977a7674485afcd37b6edf3fd129 + languageName: node + linkType: hard + "config-chain@npm:^1.1.11": version: 1.1.13 resolution: "config-chain@npm:1.1.13" @@ -6639,19 +6722,6 @@ __metadata: languageName: node linkType: hard -"cosmiconfig@npm:^6.0.0": - version: 6.0.0 - resolution: "cosmiconfig@npm:6.0.0" - dependencies: - "@types/parse-json": "npm:^4.0.0" - import-fresh: "npm:^3.1.0" - parse-json: "npm:^5.0.0" - path-type: "npm:^4.0.0" - yaml: "npm:^1.7.2" - checksum: 10c0/666ed8732d0bf7d7fe6f8516c8ee6041e0622032e8fa26201577b883d2767ad105d03f38b34b93d1f02f26b22a89e7bab4443b9d2e7f931f48d0e944ffa038b5 - languageName: node - linkType: hard - "cosmiconfig@npm:^8.1.3, cosmiconfig@npm:^8.3.5": version: 8.3.6 resolution: "cosmiconfig@npm:8.3.6" @@ -6709,20 +6779,20 @@ __metadata: languageName: node linkType: hard -"css-has-pseudo@npm:^7.0.1": - version: 7.0.1 - resolution: "css-has-pseudo@npm:7.0.1" +"css-has-pseudo@npm:^7.0.2": + version: 7.0.2 + resolution: "css-has-pseudo@npm:7.0.2" dependencies: "@csstools/selector-specificity": "npm:^5.0.0" postcss-selector-parser: "npm:^7.0.0" postcss-value-parser: "npm:^4.2.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/13789b08b70169204be786d652190356ace9313099d3656bd2fc38afbdd28f3d9620f0e0b07425480961b7a1ec789794961d0472f205b959d3f64c9a78ce511c + checksum: 10c0/456e9ce1eec8a535683c329956acfe53ce5a208345d7f2fcbe662626be8b3c98681e9041d7f4980316714397b0c1c3defde25653d629c396df17803d599c4edf languageName: node linkType: hard -"css-loader@npm:^6.8.1": +"css-loader@npm:^6.11.0": version: 6.11.0 resolution: "css-loader@npm:6.11.0" dependencies: @@ -6837,10 +6907,10 @@ __metadata: languageName: node linkType: hard -"cssdb@npm:^8.2.1": - version: 8.2.1 - resolution: "cssdb@npm:8.2.1" - checksum: 10c0/d27d7db0a39e1105181aac119a98d6c92cd5ceba2e8bd349cdf2ba4a8d9ead149b685a1dba9542ca24f094cc70eca4a3e02973fe1f74c11a373b508606e5e1c0 +"cssdb@npm:^8.3.0": + version: 8.3.1 + resolution: "cssdb@npm:8.3.1" + checksum: 10c0/8eb6765eda84874cd09d064d6a463ba96b1fe47a89954863802c8c661d21f45d5dc57f13374c938d4ca32b0ae50952adda4413f494b1cf6db76cf5398c109d40 languageName: node linkType: hard @@ -6969,10 +7039,10 @@ __metadata: languageName: node linkType: hard -"cytoscape@npm:^3.29.2": - version: 3.30.4 - resolution: "cytoscape@npm:3.30.4" - checksum: 10c0/5973a7d4a079f65984fe48bce1f6e4377d31407b7054ba11297f9ba2a485f3fc06f26ab9d97a09fded84f0bfdbb9a2f1749884145c17618a0a4cec32b6c8bfce +"cytoscape@npm:^3.29.3": + version: 3.32.0 + resolution: "cytoscape@npm:3.32.0" + checksum: 10c0/21cb0d2e79ebe137c7218e96edc2fb1c9000faae4f58c6a3c1899d9689c447c91feff94e5de649f227ced66f8c6a092b838de3fff3d8b57366156900f5df6d71 languageName: node linkType: hard @@ -7339,7 +7409,7 @@ __metadata: languageName: node linkType: hard -"dayjs@npm:^1.11.10": +"dayjs@npm:^1.11.13": version: 1.11.13 resolution: "dayjs@npm:1.11.13" checksum: 10c0/a3caf6ac8363c7dade9d1ee797848ddcf25c1ace68d9fe8678ecf8ba0675825430de5d793672ec87b24a69bf04a1544b176547b2539982275d5542a7955f35b7 @@ -7353,7 +7423,7 @@ __metadata: languageName: node linkType: hard -"debug@npm:2.6.9, debug@npm:^2.6.0": +"debug@npm:2.6.9": version: 2.6.9 resolution: "debug@npm:2.6.9" dependencies: @@ -7374,15 +7444,15 @@ __metadata: languageName: node linkType: hard -"debug@npm:^4.3.6": - version: 4.4.0 - resolution: "debug@npm:4.4.0" +"debug@npm:^4.4.0": + version: 4.4.1 + resolution: "debug@npm:4.4.1" dependencies: ms: "npm:^2.1.3" peerDependenciesMeta: supports-color: optional: true - checksum: 10c0/db94f1a182bf886f57b4755f85b3a74c39b5114b9377b7ab375dc2cfa3454f09490cc6c30f829df3fc8042bc8b8995f6567ce5cd96f3bc3688bd24027197d9de + checksum: 10c0/d2b44bc1afd912b49bb7ebb0d50a860dc93a4dd7d946e8de94abc957bb63726b7dd5aa48c18c2386c379ec024c46692e15ed3ed97d481729f929201e671fcd55 languageName: node linkType: hard @@ -7411,7 +7481,7 @@ __metadata: languageName: node linkType: hard -"deepmerge@npm:^4.2.2, deepmerge@npm:^4.3.1": +"deepmerge@npm:^4.3.1": version: 4.3.1 resolution: "deepmerge@npm:4.3.1" checksum: 10c0/e53481aaf1aa2c4082b5342be6b6d8ad9dfe387bc92ce197a66dea08bd4265904a087e75e464f14d1347cf2ac8afe1e4c16b266e0561cc5df29382d3c5f80044 @@ -7463,22 +7533,6 @@ __metadata: languageName: node linkType: hard -"del@npm:^6.1.1": - version: 6.1.1 - resolution: "del@npm:6.1.1" - dependencies: - globby: "npm:^11.0.1" - graceful-fs: "npm:^4.2.4" - is-glob: "npm:^4.0.1" - is-path-cwd: "npm:^2.2.0" - is-path-inside: "npm:^3.0.2" - p-map: "npm:^4.0.0" - rimraf: "npm:^3.0.2" - slash: "npm:^3.0.0" - checksum: 10c0/8a095c5ccade42c867a60252914ae485ec90da243d735d1f63ec1e64c1cfbc2b8810ad69a29ab6326d159d4fddaa2f5bad067808c42072351ec458efff86708f - languageName: node - linkType: hard - "delaunator@npm:5": version: 5.0.1 resolution: "delaunator@npm:5.0.1" @@ -7523,19 +7577,6 @@ __metadata: languageName: node linkType: hard -"detect-port-alt@npm:^1.1.6": - version: 1.1.6 - resolution: "detect-port-alt@npm:1.1.6" - dependencies: - address: "npm:^1.0.1" - debug: "npm:^2.6.0" - bin: - detect: ./bin/detect-port - detect-port: ./bin/detect-port - checksum: 10c0/7269e6aef7b782d98c77505c07a7a0f5e2ee98a9607dc791035fc0192fc58aa03cc833fae605e10eaf239a2a5a55cd938e0bb141dea764ac6180ca082fd62b23 - languageName: node - linkType: hard - "detect-port@npm:^1.5.1": version: 1.6.1 resolution: "detect-port@npm:1.6.1" @@ -7580,18 +7621,18 @@ __metadata: version: 0.0.0-use.local resolution: "docs@workspace:." dependencies: - "@docusaurus/core": "npm:^3.6.3" - "@docusaurus/module-type-aliases": "npm:^3.6.3" - "@docusaurus/preset-classic": "npm:^3.6.3" - "@docusaurus/theme-mermaid": "npm:^3.6.3" - "@docusaurus/tsconfig": "npm:^3.6.3" - "@docusaurus/types": "npm:^3.6.3" + "@docusaurus/core": "npm:^3.8.1" + "@docusaurus/module-type-aliases": "npm:^3.8.1" + "@docusaurus/preset-classic": "npm:^3.8.1" + "@docusaurus/theme-mermaid": "npm:^3.8.1" + "@docusaurus/tsconfig": "npm:^3.8.1" + "@docusaurus/types": "npm:^3.8.1" "@mdx-js/react": "npm:^3.1.0" - clsx: "npm:^2.0.0" - prism-react-renderer: "npm:^2.3.0" - react: "npm:^18.0.0" - react-dom: "npm:^18.0.0" - typescript: "npm:~5.7.2" + clsx: "npm:^2.1.1" + prism-react-renderer: "npm:^2.4.1" + react: "npm:^19.1.0" + react-dom: "npm:^19.1.0" + typescript: "npm:~5.8.3" languageName: unknown linkType: soft @@ -7651,15 +7692,15 @@ __metadata: languageName: node linkType: hard -"dompurify@npm:^3.2.1": - version: 3.2.2 - resolution: "dompurify@npm:3.2.2" +"dompurify@npm:^3.2.4": + version: 3.2.6 + resolution: "dompurify@npm:3.2.6" dependencies: "@types/trusted-types": "npm:^2.0.7" dependenciesMeta: "@types/trusted-types": optional: true - checksum: 10c0/04fa1509a75c6c1dfc1f00c579253bd4781e291836176578927f5cb683dc904175c4fb71f9c40438b0b4b13fc306f79922d220200f3bd01eabe12727588afd1f + checksum: 10c0/c8f8e5b0879a0d93c84a2e5e78649a47d0c057ed0f7850ca3d573d2cca64b84fb1ff85bd4b20980ade69c4e5b80ae73011340f1c2ff375c7ef98bb8268e1d13a languageName: node linkType: hard @@ -7725,6 +7766,13 @@ __metadata: languageName: node linkType: hard +"electron-to-chromium@npm:^1.5.173": + version: 1.5.178 + resolution: "electron-to-chromium@npm:1.5.178" + checksum: 10c0/2734c8ee211fb6c5b4ac55d5797cbf9882a37515c3f9403427b8a97d75413f9e08786d1f5d7aa7dfd433bd53b0ae97fb186bcdd5bb137978eb0fa6a436f07de4 + languageName: node + linkType: hard + "electron-to-chromium@npm:^1.5.4": version: 1.5.20 resolution: "electron-to-chromium@npm:1.5.20" @@ -7992,11 +8040,11 @@ __metadata: linkType: hard "estree-util-value-to-estree@npm:^3.0.1": - version: 3.1.2 - resolution: "estree-util-value-to-estree@npm:3.1.2" + version: 3.3.3 + resolution: "estree-util-value-to-estree@npm:3.3.3" dependencies: "@types/estree": "npm:^1.0.0" - checksum: 10c0/fb0fa42f44488eeb2357b60dc3fd5581422b0a36144fd90639fd3963c7396f225e7d7efeee0144b0a7293ea00e4ec9647b8302d057d48f894e8d5775c3c72eb7 + checksum: 10c0/cc90e277bff949f49d08dbca28237821506839ab729cafc93105a5a1b02af1a308c1d1f6221ade840351f60ef03faedd2197be454318a16a9e1a7c5af0480c69 languageName: node linkType: hard @@ -8050,7 +8098,7 @@ __metadata: languageName: node linkType: hard -"eventemitter3@npm:^4.0.0": +"eventemitter3@npm:^4.0.0, eventemitter3@npm:^4.0.4": version: 4.0.7 resolution: "eventemitter3@npm:4.0.7" checksum: 10c0/5f6d97cbcbac47be798e6355e3a7639a84ee1f7d9b199a07017f1d2f1e2fe236004d14fa5dfaeba661f94ea57805385e326236a6debbc7145c8877fbc0297c6b @@ -8064,7 +8112,7 @@ __metadata: languageName: node linkType: hard -"execa@npm:^5.0.0": +"execa@npm:5.1.1, execa@npm:^5.0.0": version: 5.1.1 resolution: "execa@npm:5.1.1" dependencies: @@ -8127,6 +8175,13 @@ __metadata: languageName: node linkType: hard +"exsolve@npm:^1.0.1": + version: 1.0.5 + resolution: "exsolve@npm:1.0.5" + checksum: 10c0/0e845843951e8e7f190d26648259b3d584990933ea68a3c8ec984e826d4fb3731681f7f2569252b4fe619db1d67b0859abe0ef694cb2edb454343bd44bcdce59 + languageName: node + linkType: hard + "extend-shallow@npm:^2.0.1": version: 2.0.1 resolution: "extend-shallow@npm:2.0.1" @@ -8234,13 +8289,6 @@ __metadata: languageName: node linkType: hard -"filesize@npm:^8.0.6": - version: 8.0.7 - resolution: "filesize@npm:8.0.7" - checksum: 10c0/82072d94816484df5365d4d5acbb2327a65dc49704c64e403e8c40d8acb7364de1cf1e65cb512c77a15d353870f73e4fed46dad5c6153d0618d9ce7a64d09cfc - languageName: node - linkType: hard - "fill-range@npm:^7.1.1": version: 7.1.1 resolution: "fill-range@npm:7.1.1" @@ -8275,25 +8323,6 @@ __metadata: languageName: node linkType: hard -"find-up@npm:^3.0.0": - version: 3.0.0 - resolution: "find-up@npm:3.0.0" - dependencies: - locate-path: "npm:^3.0.0" - checksum: 10c0/2c2e7d0a26db858e2f624f39038c74739e38306dee42b45f404f770db357947be9d0d587f1cac72d20c114deb38aa57316e879eb0a78b17b46da7dab0a3bd6e3 - languageName: node - linkType: hard - -"find-up@npm:^5.0.0": - version: 5.0.0 - resolution: "find-up@npm:5.0.0" - dependencies: - locate-path: "npm:^6.0.0" - path-exists: "npm:^4.0.0" - checksum: 10c0/062c5a83a9c02f53cdd6d175a37ecf8f87ea5bbff1fdfb828f04bfa021441bc7583e8ebc0872a4c1baab96221fb8a8a275a19809fb93fbc40bd69ec35634069a - languageName: node - linkType: hard - "find-up@npm:^6.3.0": version: 6.3.0 resolution: "find-up@npm:6.3.0" @@ -8333,37 +8362,6 @@ __metadata: languageName: node linkType: hard -"fork-ts-checker-webpack-plugin@npm:^6.5.0": - version: 6.5.3 - resolution: "fork-ts-checker-webpack-plugin@npm:6.5.3" - dependencies: - "@babel/code-frame": "npm:^7.8.3" - "@types/json-schema": "npm:^7.0.5" - chalk: "npm:^4.1.0" - chokidar: "npm:^3.4.2" - cosmiconfig: "npm:^6.0.0" - deepmerge: "npm:^4.2.2" - fs-extra: "npm:^9.0.0" - glob: "npm:^7.1.6" - memfs: "npm:^3.1.2" - minimatch: "npm:^3.0.4" - schema-utils: "npm:2.7.0" - semver: "npm:^7.3.2" - tapable: "npm:^1.0.0" - peerDependencies: - eslint: ">= 6" - typescript: ">= 2.7" - vue-template-compiler: "*" - webpack: ">= 4" - peerDependenciesMeta: - eslint: - optional: true - vue-template-compiler: - optional: true - checksum: 10c0/0885ea75474de011d4068ca3e2d3ca6e4cd318f5cfa018e28ff8fef23ef3a1f1c130160ef192d3e5d31ef7b6fe9f8fb1d920eab5e9e449fb30ce5cc96647245c - languageName: node - linkType: hard - "form-data-encoder@npm:^2.1.2": version: 2.1.4 resolution: "form-data-encoder@npm:2.1.4" @@ -8410,18 +8408,6 @@ __metadata: languageName: node linkType: hard -"fs-extra@npm:^9.0.0": - version: 9.1.0 - resolution: "fs-extra@npm:9.1.0" - dependencies: - at-least-node: "npm:^1.0.0" - graceful-fs: "npm:^4.2.0" - jsonfile: "npm:^6.0.1" - universalify: "npm:^2.0.0" - checksum: 10c0/9b808bd884beff5cb940773018179a6b94a966381d005479f00adda6b44e5e3d4abf765135773d849cc27efe68c349e4a7b86acd7d3306d5932c14f3a4b17a92 - languageName: node - linkType: hard - "fs-minipass@npm:^2.0.0": version: 2.1.0 resolution: "fs-minipass@npm:2.1.0" @@ -8562,7 +8548,7 @@ __metadata: languageName: node linkType: hard -"glob@npm:^7.0.0, glob@npm:^7.1.3, glob@npm:^7.1.6": +"glob@npm:^7.1.3": version: 7.2.3 resolution: "glob@npm:7.2.3" dependencies: @@ -8585,26 +8571,6 @@ __metadata: languageName: node linkType: hard -"global-modules@npm:^2.0.0": - version: 2.0.0 - resolution: "global-modules@npm:2.0.0" - dependencies: - global-prefix: "npm:^3.0.0" - checksum: 10c0/43b770fe24aa6028f4b9770ea583a47f39750be15cf6e2578f851e4ccc9e4fa674b8541928c0b09c21461ca0763f0d36e4068cec86c914b07fd6e388e66ba5b9 - languageName: node - linkType: hard - -"global-prefix@npm:^3.0.0": - version: 3.0.0 - resolution: "global-prefix@npm:3.0.0" - dependencies: - ini: "npm:^1.3.5" - kind-of: "npm:^6.0.2" - which: "npm:^1.3.1" - checksum: 10c0/510f489fb68d1cc7060f276541709a0ee6d41356ef852de48f7906c648ac223082a1cc8fce86725ca6c0e032bcdc1189ae77b4744a624b29c34a9d0ece498269 - languageName: node - linkType: hard - "globals@npm:^11.1.0": version: 11.12.0 resolution: "globals@npm:11.12.0" @@ -8612,7 +8578,14 @@ __metadata: languageName: node linkType: hard -"globby@npm:^11.0.1, globby@npm:^11.0.4, globby@npm:^11.1.0": +"globals@npm:^15.14.0": + version: 15.15.0 + resolution: "globals@npm:15.15.0" + checksum: 10c0/f9ae80996392ca71316495a39bec88ac43ae3525a438b5626cd9d5ce9d5500d0a98a266409605f8cd7241c7acf57c354a48111ea02a767ba4f374b806d6861fe + languageName: node + linkType: hard + +"globby@npm:^11.1.0": version: 11.1.0 resolution: "globby@npm:11.1.0" dependencies: @@ -9107,8 +9080,8 @@ __metadata: linkType: hard "http-proxy-middleware@npm:^2.0.3": - version: 2.0.7 - resolution: "http-proxy-middleware@npm:2.0.7" + version: 2.0.9 + resolution: "http-proxy-middleware@npm:2.0.9" dependencies: "@types/http-proxy": "npm:^1.17.8" http-proxy: "npm:^1.18.1" @@ -9120,7 +9093,7 @@ __metadata: peerDependenciesMeta: "@types/express": optional: true - checksum: 10c0/8d00a61eb215b83826460b07489d8bb095368ec16e02a9d63e228dcf7524e7c20d61561e5476de1391aecd4ec32ea093279cdc972115b311f8e0a95a24c9e47e + checksum: 10c0/8e9032af625f7c9f2f0d318f6cdb14eb725cc16ffe7b4ccccea25cf591fa819bb7c3bb579e0b543e0ae9c73059b505a6d728290c757bff27bae526a6ed11c05e languageName: node linkType: hard @@ -9196,25 +9169,16 @@ __metadata: languageName: node linkType: hard -"image-size@npm:^1.0.2": - version: 1.1.1 - resolution: "image-size@npm:1.1.1" - dependencies: - queue: "npm:6.0.2" +"image-size@npm:^2.0.2": + version: 2.0.2 + resolution: "image-size@npm:2.0.2" bin: image-size: bin/image-size.js - checksum: 10c0/2660470096d12be82195f7e80fe03274689fbd14184afb78eaf66ade7cd06352518325814f88af4bde4b26647889fe49e573129f6e7ba8f5ff5b85cc7f559000 + checksum: 10c0/f09dd0f7cf8511cd20e4f756bdb5a7cb6d2240de3323f41bde266bed8373392a293892bf12e907e2995f52833fd88dd27cf6b1a52ab93968afc716cb78cd7b79 languageName: node linkType: hard -"immer@npm:^9.0.7": - version: 9.0.21 - resolution: "immer@npm:9.0.21" - checksum: 10c0/03ea3ed5d4d72e8bd428df4a38ad7e483ea8308e9a113d3b42e0ea2cc0cc38340eb0a6aca69592abbbf047c685dbda04e3d34bf2ff438ab57339ed0a34cc0a05 - languageName: node - linkType: hard - -"import-fresh@npm:^3.1.0, import-fresh@npm:^3.3.0": +"import-fresh@npm:^3.3.0": version: 3.3.0 resolution: "import-fresh@npm:3.3.0" dependencies: @@ -9283,7 +9247,7 @@ __metadata: languageName: node linkType: hard -"ini@npm:^1.3.4, ini@npm:^1.3.5, ini@npm:~1.3.0": +"ini@npm:^1.3.4, ini@npm:~1.3.0": version: 1.3.8 resolution: "ini@npm:1.3.8" checksum: 10c0/ec93838d2328b619532e4f1ff05df7909760b6f66d9c9e2ded11e5c1897d6f2f9980c54dd638f88654b00919ce31e827040631eab0a3969e4d1abefa0719516a @@ -9318,13 +9282,6 @@ __metadata: languageName: node linkType: hard -"interpret@npm:^1.0.0": - version: 1.4.0 - resolution: "interpret@npm:1.4.0" - checksum: 10c0/08c5ad30032edeec638485bc3f6db7d0094d9b3e85e0f950866600af3c52e9fd69715416d29564731c479d9f4d43ff3e4d302a178196bdc0e6837ec147640450 - languageName: node - linkType: hard - "invariant@npm:^2.2.4": version: 2.2.4 resolution: "invariant@npm:2.2.4" @@ -9509,13 +9466,6 @@ __metadata: languageName: node linkType: hard -"is-path-cwd@npm:^2.2.0": - version: 2.2.0 - resolution: "is-path-cwd@npm:2.2.0" - checksum: 10c0/afce71533a427a759cd0329301c18950333d7589533c2c90205bd3fdcf7b91eb92d1940493190567a433134d2128ec9325de2fd281e05be1920fbee9edd22e0a - languageName: node - linkType: hard - "is-path-inside@npm:^3.0.2": version: 3.0.3 resolution: "is-path-inside@npm:3.0.3" @@ -9562,13 +9512,6 @@ __metadata: languageName: node linkType: hard -"is-root@npm:^2.1.0": - version: 2.1.0 - resolution: "is-root@npm:2.1.0" - checksum: 10c0/83d3f5b052c3f28fbdbdf0d564bdd34fa14933f5694c78704f85cd1871255bc017fbe3fe2bc2fff2d227c6be5927ad2149b135c0a7c0060e7ac4e610d81a4f01 - languageName: node - linkType: hard - "is-stream@npm:^2.0.0": version: 2.0.1 resolution: "is-stream@npm:2.0.1" @@ -9821,13 +9764,13 @@ __metadata: linkType: hard "katex@npm:^0.16.9": - version: 0.16.11 - resolution: "katex@npm:0.16.11" + version: 0.16.21 + resolution: "katex@npm:0.16.21" dependencies: commander: "npm:^8.3.0" bin: katex: cli.js - checksum: 10c0/be405d45d7228bbfeecd491e0f74d9da0066b5e7b457e3f1dc833de5b63f9e98e40d2ef6b46e1cbe577490a43338c043851da032c45aeec0cc03ad431ef6fd83 + checksum: 10c0/e2e4139ba72a13f2393308fbb2b4c5511611a19a40a6e39d956cf775e553af3517dbfd0a54477faaf401c923e4654e32296347846b8ff15dfa579f88ff8579bb languageName: node linkType: hard @@ -9868,16 +9811,16 @@ __metadata: languageName: node linkType: hard -"langium@npm:3.0.0": - version: 3.0.0 - resolution: "langium@npm:3.0.0" +"langium@npm:3.3.1": + version: 3.3.1 + resolution: "langium@npm:3.3.1" dependencies: chevrotain: "npm:~11.0.3" chevrotain-allstar: "npm:~0.3.0" vscode-languageserver: "npm:~9.0.1" vscode-languageserver-textdocument: "npm:~1.0.11" vscode-uri: "npm:~3.0.8" - checksum: 10c0/d1cb87de67024aae6a49f4762164461d678ccdda908b48e017556ff73f4838ff5cb74fda61b42e72d9795fbc1639927a2205add358752708d5f600dcbb3f512c + checksum: 10c0/0c54803068addb0f7c16a57fdb2db2e5d4d9a21259d477c3c7d0587c2c2f65a313f9eeef3c95ac1c2e41cd11d4f2eaf620d2c03fe839a3350ffee59d2b4c7647 languageName: node linkType: hard @@ -9953,39 +9896,14 @@ __metadata: languageName: node linkType: hard -"loader-utils@npm:^3.2.0": - version: 3.3.1 - resolution: "loader-utils@npm:3.3.1" - checksum: 10c0/f2af4eb185ac5bf7e56e1337b666f90744e9f443861ac521b48f093fb9e8347f191c8960b4388a3365147d218913bc23421234e7788db69f385bacfefa0b4758 - languageName: node - linkType: hard - -"local-pkg@npm:^0.5.0": - version: 0.5.1 - resolution: "local-pkg@npm:0.5.1" - dependencies: - mlly: "npm:^1.7.3" - pkg-types: "npm:^1.2.1" - checksum: 10c0/ade8346f1dc04875921461adee3c40774b00d4b74095261222ebd4d5fd0a444676e36e325f76760f21af6a60bc82480e154909b54d2d9f7173671e36dacf1808 - languageName: node - linkType: hard - -"locate-path@npm:^3.0.0": - version: 3.0.0 - resolution: "locate-path@npm:3.0.0" - dependencies: - p-locate: "npm:^3.0.0" - path-exists: "npm:^3.0.0" - checksum: 10c0/3db394b7829a7fe2f4fbdd25d3c4689b85f003c318c5da4052c7e56eed697da8f1bce5294f685c69ff76e32cba7a33629d94396976f6d05fb7f4c755c5e2ae8b - languageName: node - linkType: hard - -"locate-path@npm:^6.0.0": - version: 6.0.0 - resolution: "locate-path@npm:6.0.0" +"local-pkg@npm:^1.0.0": + version: 1.1.1 + resolution: "local-pkg@npm:1.1.1" dependencies: - p-locate: "npm:^5.0.0" - checksum: 10c0/d3972ab70dfe58ce620e64265f90162d247e87159b6126b01314dd67be43d50e96a50b517bce2d9452a79409c7614054c277b5232377de50416564a77ac7aad3 + mlly: "npm:^1.7.4" + pkg-types: "npm:^2.0.1" + quansync: "npm:^0.2.8" + checksum: 10c0/fe8f9d0443fb066c3f28a4c89d587dd7cba3ab02645cd16598f8d5f30968acf60af1b0ec2d6ad768475ec9f52baad124f31a93d2fbc034f645bcc02bf3a84882 languageName: node linkType: hard @@ -10040,7 +9958,7 @@ __metadata: languageName: node linkType: hard -"loose-envify@npm:^1.0.0, loose-envify@npm:^1.1.0, loose-envify@npm:^1.2.0, loose-envify@npm:^1.3.1, loose-envify@npm:^1.4.0": +"loose-envify@npm:^1.0.0, loose-envify@npm:^1.2.0, loose-envify@npm:^1.3.1, loose-envify@npm:^1.4.0": version: 1.4.0 resolution: "loose-envify@npm:1.4.0" dependencies: @@ -10126,12 +10044,12 @@ __metadata: languageName: node linkType: hard -"marked@npm:^13.0.2": - version: 13.0.3 - resolution: "marked@npm:13.0.3" +"marked@npm:^15.0.7": + version: 15.0.12 + resolution: "marked@npm:15.0.12" bin: marked: bin/marked.js - checksum: 10c0/b1121f420f815206ae5ae109b9b0eb6c21f84d8d459cbe38ffa00543652e091f36a55c2c96ff1414821d8752682af8c0de3f44f0a2a5bd9c8612a4ef520e9b3d + checksum: 10c0/e09da211544b787ecfb25fed07af206060bf7cd6d9de6cb123f15c496a57f83b7aabea93340aaa94dae9c94e097ae129377cad6310abc16009590972e85f4212 languageName: node linkType: hard @@ -10408,7 +10326,7 @@ __metadata: languageName: node linkType: hard -"memfs@npm:^3.1.2, memfs@npm:^3.4.3": +"memfs@npm:^3.4.3": version: 3.6.0 resolution: "memfs@npm:3.6.0" dependencies: @@ -10438,31 +10356,31 @@ __metadata: languageName: node linkType: hard -"mermaid@npm:>=10.4": - version: 11.4.1 - resolution: "mermaid@npm:11.4.1" +"mermaid@npm:>=11.6.0": + version: 11.6.0 + resolution: "mermaid@npm:11.6.0" dependencies: - "@braintree/sanitize-url": "npm:^7.0.1" - "@iconify/utils": "npm:^2.1.32" - "@mermaid-js/parser": "npm:^0.3.0" + "@braintree/sanitize-url": "npm:^7.0.4" + "@iconify/utils": "npm:^2.1.33" + "@mermaid-js/parser": "npm:^0.4.0" "@types/d3": "npm:^7.4.3" - cytoscape: "npm:^3.29.2" + cytoscape: "npm:^3.29.3" cytoscape-cose-bilkent: "npm:^4.1.0" cytoscape-fcose: "npm:^2.2.0" d3: "npm:^7.9.0" d3-sankey: "npm:^0.12.3" dagre-d3-es: "npm:7.0.11" - dayjs: "npm:^1.11.10" - dompurify: "npm:^3.2.1" + dayjs: "npm:^1.11.13" + dompurify: "npm:^3.2.4" katex: "npm:^0.16.9" khroma: "npm:^2.1.0" lodash-es: "npm:^4.17.21" - marked: "npm:^13.0.2" + marked: "npm:^15.0.7" roughjs: "npm:^4.6.6" - stylis: "npm:^4.3.1" + stylis: "npm:^4.3.6" ts-dedent: "npm:^2.2.0" - uuid: "npm:^9.0.1" - checksum: 10c0/eb787a1ddcb02c496b5b38f43a43f35f6a358c5474517a7ba54bfba0022f90beeeb5174716ac53501ae05bb3c9667dc656822828786cc42ba1f507c9ff324cc9 + uuid: "npm:^11.1.0" + checksum: 10c0/69709ac58992ed532e1173e327b75f4135e226b7b9f61c15a759266a323b726ce429eef554357be1fc68463597a8111e9be4f7f013a6780b558e88ea3bda46b6 languageName: node linkType: hard @@ -11052,7 +10970,7 @@ __metadata: languageName: node linkType: hard -"mini-css-extract-plugin@npm:^2.9.1": +"mini-css-extract-plugin@npm:^2.9.2": version: 2.9.2 resolution: "mini-css-extract-plugin@npm:2.9.2" dependencies: @@ -11071,7 +10989,7 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:3.1.2, minimatch@npm:^3.0.4, minimatch@npm:^3.0.5, minimatch@npm:^3.1.1": +"minimatch@npm:3.1.2, minimatch@npm:^3.1.1": version: 3.1.2 resolution: "minimatch@npm:3.1.2" dependencies: @@ -11189,15 +11107,15 @@ __metadata: languageName: node linkType: hard -"mlly@npm:^1.7.1, mlly@npm:^1.7.2, mlly@npm:^1.7.3": - version: 1.7.3 - resolution: "mlly@npm:1.7.3" +"mlly@npm:^1.7.4": + version: 1.7.4 + resolution: "mlly@npm:1.7.4" dependencies: acorn: "npm:^8.14.0" - pathe: "npm:^1.1.2" - pkg-types: "npm:^1.2.1" + pathe: "npm:^2.0.1" + pkg-types: "npm:^1.3.0" ufo: "npm:^1.5.4" - checksum: 10c0/b530887fe95a6e3458c1b24e9775dc61c167d402126f2f5f13a13845a3fb77c3db8d79cb32077c98679a392d8ecfdc4e5df3d6925bf650d807dc2dfe8cc35b53 + checksum: 10c0/69e738218a13d6365caf930e0ab4e2b848b84eec261597df9788cefb9930f3e40667be9cb58a4718834ba5f97a6efeef31d3b5a95f4388143fd4e0d0deff72ff languageName: node linkType: hard @@ -11234,6 +11152,15 @@ __metadata: languageName: node linkType: hard +"nanoid@npm:^3.3.11": + version: 3.3.11 + resolution: "nanoid@npm:3.3.11" + bin: + nanoid: bin/nanoid.cjs + checksum: 10c0/40e7f70b3d15f725ca072dfc4f74e81fcf1fbb02e491cf58ac0c79093adc9b0a73b152bcde57df4b79cd097e13023d7504acb38404a4da7bc1cd8e887b82fe0b + languageName: node + linkType: hard + "nanoid@npm:^3.3.7": version: 3.3.8 resolution: "nanoid@npm:3.3.8" @@ -11313,6 +11240,13 @@ __metadata: languageName: node linkType: hard +"node-releases@npm:^2.0.19": + version: 2.0.19 + resolution: "node-releases@npm:2.0.19" + checksum: 10c0/52a0dbd25ccf545892670d1551690fe0facb6a471e15f2cfa1b20142a5b255b3aa254af5f59d6ecb69c2bec7390bc643c43aa63b13bf5e64b6075952e716b1aa + languageName: node + linkType: hard + "nopt@npm:^7.0.0": version: 7.2.1 resolution: "nopt@npm:7.2.1" @@ -11483,21 +11417,10 @@ __metadata: languageName: node linkType: hard -"p-limit@npm:^2.0.0": - version: 2.3.0 - resolution: "p-limit@npm:2.3.0" - dependencies: - p-try: "npm:^2.0.0" - checksum: 10c0/8da01ac53efe6a627080fafc127c873da40c18d87b3f5d5492d465bb85ec7207e153948df6b9cbaeb130be70152f874229b8242ee2be84c0794082510af97f12 - languageName: node - linkType: hard - -"p-limit@npm:^3.0.2": - version: 3.1.0 - resolution: "p-limit@npm:3.1.0" - dependencies: - yocto-queue: "npm:^0.1.0" - checksum: 10c0/9db675949dbdc9c3763c89e748d0ef8bdad0afbb24d49ceaf4c46c02c77d30db4e0652ed36d0a0a7a95154335fab810d95c86153105bb73b3a90448e2bb14e1a +"p-finally@npm:^1.0.0": + version: 1.0.0 + resolution: "p-finally@npm:1.0.0" + checksum: 10c0/6b8552339a71fe7bd424d01d8451eea92d379a711fc62f6b2fe64cad8a472c7259a236c9a22b4733abca0b5666ad503cb497792a0478c5af31ded793d00937e7 languageName: node linkType: hard @@ -11510,24 +11433,6 @@ __metadata: languageName: node linkType: hard -"p-locate@npm:^3.0.0": - version: 3.0.0 - resolution: "p-locate@npm:3.0.0" - dependencies: - p-limit: "npm:^2.0.0" - checksum: 10c0/7b7f06f718f19e989ce6280ed4396fb3c34dabdee0df948376483032f9d5ec22fdf7077ec942143a75827bb85b11da72016497fc10dac1106c837ed593969ee8 - languageName: node - linkType: hard - -"p-locate@npm:^5.0.0": - version: 5.0.0 - resolution: "p-locate@npm:5.0.0" - dependencies: - p-limit: "npm:^3.0.2" - checksum: 10c0/2290d627ab7903b8b70d11d384fee714b797f6040d9278932754a6860845c4d3190603a0772a663c8cb5a7b21d1b16acb3a6487ebcafa9773094edc3dfe6009a - languageName: node - linkType: hard - "p-locate@npm:^6.0.0": version: 6.0.0 resolution: "p-locate@npm:6.0.0" @@ -11546,6 +11451,16 @@ __metadata: languageName: node linkType: hard +"p-queue@npm:^6.6.2": + version: 6.6.2 + resolution: "p-queue@npm:6.6.2" + dependencies: + eventemitter3: "npm:^4.0.4" + p-timeout: "npm:^3.2.0" + checksum: 10c0/5739ecf5806bbeadf8e463793d5e3004d08bb3f6177bd1a44a005da8fd81bb90f80e4633e1fb6f1dfd35ee663a5c0229abe26aebb36f547ad5a858347c7b0d3e + languageName: node + linkType: hard + "p-retry@npm:^4.5.0": version: 4.6.2 resolution: "p-retry@npm:4.6.2" @@ -11556,10 +11471,12 @@ __metadata: languageName: node linkType: hard -"p-try@npm:^2.0.0": - version: 2.2.0 - resolution: "p-try@npm:2.2.0" - checksum: 10c0/c36c19907734c904b16994e6535b02c36c2224d433e01a2f1ab777237f4d86e6289fd5fd464850491e940379d4606ed850c03e0f9ab600b0ebddb511312e177f +"p-timeout@npm:^3.2.0": + version: 3.2.0 + resolution: "p-timeout@npm:3.2.0" + dependencies: + p-finally: "npm:^1.0.0" + checksum: 10c0/524b393711a6ba8e1d48137c5924749f29c93d70b671e6db761afa784726572ca06149c715632da8f70c090073afb2af1c05730303f915604fd38ee207b70a61 languageName: node linkType: hard @@ -11582,10 +11499,10 @@ __metadata: languageName: node linkType: hard -"package-manager-detector@npm:^0.2.0": - version: 0.2.7 - resolution: "package-manager-detector@npm:0.2.7" - checksum: 10c0/0ea19abf11e251c3bffe2698450a4a2a5658528b88151943eff01c5f4b9bdc848abc96588c1fe5f01618887cf1154d6e72eb28edb263e46178397aa6ebd58ff0 +"package-manager-detector@npm:^1.3.0": + version: 1.3.0 + resolution: "package-manager-detector@npm:1.3.0" + checksum: 10c0/b4b54a81a3230edd66564a59ff6a2233086961e36ba91a28a0f6d6932a8dec36618ace50e8efec9c4d8c6aa9828e98814557a39fb6b106c161434ccb44a80e1c languageName: node linkType: hard @@ -11624,7 +11541,7 @@ __metadata: languageName: node linkType: hard -"parse-json@npm:^5.0.0, parse-json@npm:^5.2.0": +"parse-json@npm:^5.2.0": version: 5.2.0 resolution: "parse-json@npm:5.2.0" dependencies: @@ -11686,20 +11603,6 @@ __metadata: languageName: node linkType: hard -"path-exists@npm:^3.0.0": - version: 3.0.0 - resolution: "path-exists@npm:3.0.0" - checksum: 10c0/17d6a5664bc0a11d48e2b2127d28a0e58822c6740bde30403f08013da599182289c56518bec89407e3f31d3c2b6b296a4220bc3f867f0911fee6952208b04167 - languageName: node - linkType: hard - -"path-exists@npm:^4.0.0": - version: 4.0.0 - resolution: "path-exists@npm:4.0.0" - checksum: 10c0/8c0bd3f5238188197dc78dced15207a4716c51cc4e3624c44fc97acf69558f5ebb9a2afff486fe1b4ee148e0c133e96c5e11a9aa5c48a3006e3467da070e5e1b - languageName: node - linkType: hard - "path-exists@npm:^5.0.0": version: 5.0.0 resolution: "path-exists@npm:5.0.0" @@ -11775,10 +11678,10 @@ __metadata: languageName: node linkType: hard -"pathe@npm:^1.1.2": - version: 1.1.2 - resolution: "pathe@npm:1.1.2" - checksum: 10c0/64ee0a4e587fb0f208d9777a6c56e4f9050039268faaaaecd50e959ef01bf847b7872785c36483fa5cdcdbdfdb31fef2ff222684d4fc21c330ab60395c681897 +"pathe@npm:^2.0.1, pathe@npm:^2.0.3": + version: 2.0.3 + resolution: "pathe@npm:2.0.3" + checksum: 10c0/c118dc5a8b5c4166011b2b70608762e260085180bb9e33e80a50dcdb1e78c010b1624f4280c492c92b05fc276715a4c357d1f9edc570f8f1b3d90b6839ebaca1 languageName: node linkType: hard @@ -11800,7 +11703,7 @@ __metadata: languageName: node linkType: hard -"picocolors@npm:^1.1.0": +"picocolors@npm:^1.1.0, picocolors@npm:^1.1.1": version: 1.1.1 resolution: "picocolors@npm:1.1.1" checksum: 10c0/e2e3e8170ab9d7c7421969adaa7e1b31434f789afb9b3f115f6b96d91945041ac3ceb02e9ec6fe6510ff036bcc0bf91e69a1772edc0b707e12b19c0f2d6bcf58 @@ -11823,23 +11726,25 @@ __metadata: languageName: node linkType: hard -"pkg-types@npm:^1.2.1": - version: 1.2.1 - resolution: "pkg-types@npm:1.2.1" +"pkg-types@npm:^1.3.0": + version: 1.3.1 + resolution: "pkg-types@npm:1.3.1" dependencies: confbox: "npm:^0.1.8" - mlly: "npm:^1.7.2" - pathe: "npm:^1.1.2" - checksum: 10c0/4aef765c039e3ec3ca55171bb8ad776cf060d894c45ddf92b9d680b3fdb1817c8d1c428f74ea6aae144493fa1d6a97df6b8caec6dc31e418f1ce1f728d38014e + mlly: "npm:^1.7.4" + pathe: "npm:^2.0.1" + checksum: 10c0/19e6cb8b66dcc66c89f2344aecfa47f2431c988cfa3366bdfdcfb1dd6695f87dcce37fbd90fe9d1605e2f4440b77f391e83c23255347c35cf84e7fd774d7fcea languageName: node linkType: hard -"pkg-up@npm:^3.1.0": - version: 3.1.0 - resolution: "pkg-up@npm:3.1.0" +"pkg-types@npm:^2.0.1": + version: 2.1.0 + resolution: "pkg-types@npm:2.1.0" dependencies: - find-up: "npm:^3.0.0" - checksum: 10c0/ecb60e1f8e1f611c0bdf1a0b6a474d6dfb51185567dc6f29cdef37c8d480ecba5362e006606bb290519bbb6f49526c403fabea93c3090c20368d98bb90c999ab + confbox: "npm:^0.2.1" + exsolve: "npm:^1.0.1" + pathe: "npm:^2.0.3" + checksum: 10c0/7729d0a2367ba0aa2caf0f84a6ff0b73b13f4e9a3d62c229ddfa6d45d1f3898f590acdbaa64d779d56737d4ebea2d085961efd59094b8adf8baa34d829599b75 languageName: node linkType: hard @@ -11894,18 +11799,18 @@ __metadata: languageName: node linkType: hard -"postcss-color-functional-notation@npm:^7.0.6": - version: 7.0.6 - resolution: "postcss-color-functional-notation@npm:7.0.6" +"postcss-color-functional-notation@npm:^7.0.10": + version: 7.0.10 + resolution: "postcss-color-functional-notation@npm:7.0.10" dependencies: - "@csstools/css-color-parser": "npm:^3.0.6" - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" - "@csstools/postcss-progressive-custom-properties": "npm:^4.0.0" + "@csstools/css-color-parser": "npm:^3.0.10" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" + "@csstools/postcss-progressive-custom-properties": "npm:^4.1.0" "@csstools/utilities": "npm:^2.0.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/15f6dfc9a24d6f5186fb054623a92bcf9e804f4eaa35b339551a8048cdb0c7bd2e4655fdbb09a0c9a89f854e9fb1d71e298e8749597660ac034e79bd0d38d7dd + checksum: 10c0/62ee77ef220488cfb4a1c5af4f5203a0c2951c8a0613088ffc946130d48b63ca28ab67b18ed380a288a7ce51c2360a75d8d08d2db389e48f4ebb78a3e52d15b6 languageName: node linkType: hard @@ -11959,46 +11864,46 @@ __metadata: languageName: node linkType: hard -"postcss-custom-media@npm:^11.0.5": - version: 11.0.5 - resolution: "postcss-custom-media@npm:11.0.5" +"postcss-custom-media@npm:^11.0.6": + version: 11.0.6 + resolution: "postcss-custom-media@npm:11.0.6" dependencies: - "@csstools/cascade-layer-name-parser": "npm:^2.0.4" - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" - "@csstools/media-query-list-parser": "npm:^4.0.2" + "@csstools/cascade-layer-name-parser": "npm:^2.0.5" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" + "@csstools/media-query-list-parser": "npm:^4.0.3" peerDependencies: postcss: ^8.4 - checksum: 10c0/5ba1ca0383818e83d5f6f398a2b0c12cfda066b5d552adfc0e030a2c5f8690c2cc6224f9a1832a9c780dae3fd8d00d78c4a5c88eb36b731da1752f0c3917d488 + checksum: 10c0/62dcb2858fd490d90aab32062621d58892a7b2a54948ee63af81a2cd61807a11815d28d4ef6bc800c5e142ac73098f7e56822c7cc63192eb20d5b16071543a73 languageName: node linkType: hard -"postcss-custom-properties@npm:^14.0.4": - version: 14.0.4 - resolution: "postcss-custom-properties@npm:14.0.4" +"postcss-custom-properties@npm:^14.0.6": + version: 14.0.6 + resolution: "postcss-custom-properties@npm:14.0.6" dependencies: - "@csstools/cascade-layer-name-parser": "npm:^2.0.4" - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" + "@csstools/cascade-layer-name-parser": "npm:^2.0.5" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" "@csstools/utilities": "npm:^2.0.0" postcss-value-parser: "npm:^4.2.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/5b101ee71289657cc2e5a16f4912009c10441052e2c54bd9e4f3d4d72b652bab56adb662ddaa96881413e375cf9852e2159b3c778d953442ce86efb781c3b2bf + checksum: 10c0/0eeef77bc713551f5cb8fa5982d24da4e854075f3af020f1c94366c47a23a4cc225ebfecc978bdb17f00ee0bdee9d2c784e0d01adc64a447321e408abbe2c83b languageName: node linkType: hard -"postcss-custom-selectors@npm:^8.0.4": - version: 8.0.4 - resolution: "postcss-custom-selectors@npm:8.0.4" +"postcss-custom-selectors@npm:^8.0.5": + version: 8.0.5 + resolution: "postcss-custom-selectors@npm:8.0.5" dependencies: - "@csstools/cascade-layer-name-parser": "npm:^2.0.4" - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" + "@csstools/cascade-layer-name-parser": "npm:^2.0.5" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" postcss-selector-parser: "npm:^7.0.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/09d494d2580d0a99f57684f79793d03358286c32460b61a84063c33bdde24865771cb1205efe9a8e26a508be24eba4fb93fc7f1e96ba21ca96a5d17fadb24863 + checksum: 10c0/bd8f2f85bbec4bd56ff408cb699d9fe649e2af0db82d5752eee05481ae522f06f5a47950ca22fcb4c8601071c03346df67cf20b0b0bcade32ce58d07ebaf9b32 languageName: node linkType: hard @@ -12060,16 +11965,16 @@ __metadata: languageName: node linkType: hard -"postcss-double-position-gradients@npm:^6.0.0": - version: 6.0.0 - resolution: "postcss-double-position-gradients@npm:6.0.0" +"postcss-double-position-gradients@npm:^6.0.2": + version: 6.0.2 + resolution: "postcss-double-position-gradients@npm:6.0.2" dependencies: - "@csstools/postcss-progressive-custom-properties": "npm:^4.0.0" + "@csstools/postcss-progressive-custom-properties": "npm:^4.1.0" "@csstools/utilities": "npm:^2.0.0" postcss-value-parser: "npm:^4.2.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/7a0e119df1b4af59d169b1a9dfc563275ce29b4ae5e6a6c90be29a7a59272ebc55bf3b2ed05a962f73b03194f7a88f6fe738e65c1659d43351fbdc705cc951ad + checksum: 10c0/7b4759813f99039c6a7c8e70b46ff4c34c27e723a9ff7f0e1044e293d568357e1d39233f94b1bf3b2768b1207348138faea0781086a66b7b8e39e780657da523 languageName: node linkType: hard @@ -12125,22 +12030,22 @@ __metadata: languageName: node linkType: hard -"postcss-lab-function@npm:^7.0.6": - version: 7.0.6 - resolution: "postcss-lab-function@npm:7.0.6" +"postcss-lab-function@npm:^7.0.10": + version: 7.0.10 + resolution: "postcss-lab-function@npm:7.0.10" dependencies: - "@csstools/css-color-parser": "npm:^3.0.6" - "@csstools/css-parser-algorithms": "npm:^3.0.4" - "@csstools/css-tokenizer": "npm:^3.0.3" - "@csstools/postcss-progressive-custom-properties": "npm:^4.0.0" + "@csstools/css-color-parser": "npm:^3.0.10" + "@csstools/css-parser-algorithms": "npm:^3.0.5" + "@csstools/css-tokenizer": "npm:^3.0.4" + "@csstools/postcss-progressive-custom-properties": "npm:^4.1.0" "@csstools/utilities": "npm:^2.0.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/8b8d498dbc939ee79737b29232b39d09cbda26cc92e8926fb74fe56a1bb05af1198e85a67a822f39cc69109ac6757a6ff7b20842ba5ffafce891abc9bc1c3c68 + checksum: 10c0/3e235b52f6c119937a0b41aa351f5f9ef6e17bf1b868e7068c9a04f3d31c247d0296c862388febb7fec5102d81413ccade8a4788904289afd34aa072de71390b languageName: node linkType: hard -"postcss-loader@npm:^7.3.3": +"postcss-loader@npm:^7.3.4": version: 7.3.4 resolution: "postcss-loader@npm:7.3.4" dependencies: @@ -12154,14 +12059,14 @@ __metadata: languageName: node linkType: hard -"postcss-logical@npm:^8.0.0": - version: 8.0.0 - resolution: "postcss-logical@npm:8.0.0" +"postcss-logical@npm:^8.1.0": + version: 8.1.0 + resolution: "postcss-logical@npm:8.1.0" dependencies: postcss-value-parser: "npm:^4.2.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/2caa04e45227ab9dec728416ccde47514e1c347ee72aac58e13ecee3bc7fbc8b53e3fe4f1e2e4396432feb1d54e70a1f06ec5a74d60e84bafff05ab82f196475 + checksum: 10c0/0e2e9e901d8a550db7f682d46b1f7e4f363c1ada061dc8e4548e2b563c5e39f3684a2d7c3f11fe061188782bca37874e34967fc6179fa6d98a49ff66a0076d27 languageName: node linkType: hard @@ -12295,16 +12200,16 @@ __metadata: languageName: node linkType: hard -"postcss-nesting@npm:^13.0.1": - version: 13.0.1 - resolution: "postcss-nesting@npm:13.0.1" +"postcss-nesting@npm:^13.0.2": + version: 13.0.2 + resolution: "postcss-nesting@npm:13.0.2" dependencies: - "@csstools/selector-resolve-nested": "npm:^3.0.0" + "@csstools/selector-resolve-nested": "npm:^3.1.0" "@csstools/selector-specificity": "npm:^5.0.0" postcss-selector-parser: "npm:^7.0.0" peerDependencies: postcss: ^8.4 - checksum: 10c0/549307c272cdd4cb5105d8fbcd582f15a1cb74e5bba240b05b27f77fe0422730be966699a49a9ad15fd9d1bc551c1edbaefb21a69686a9b131b585dbc9d90ebf + checksum: 10c0/bfa0578b3b686c6374f5a7b2f6ef955cb7e13400de95a919975a982ae43c1e25db37385618f210715ff15393dc7ff8c26c7b156f06b8fb3118a426099cf7f1f2 languageName: node linkType: hard @@ -12458,66 +12363,67 @@ __metadata: languageName: node linkType: hard -"postcss-preset-env@npm:^10.1.0": - version: 10.1.1 - resolution: "postcss-preset-env@npm:10.1.1" +"postcss-preset-env@npm:^10.2.1": + version: 10.2.4 + resolution: "postcss-preset-env@npm:10.2.4" dependencies: - "@csstools/postcss-cascade-layers": "npm:^5.0.1" - "@csstools/postcss-color-function": "npm:^4.0.6" - "@csstools/postcss-color-mix-function": "npm:^3.0.6" - "@csstools/postcss-content-alt-text": "npm:^2.0.4" - "@csstools/postcss-exponential-functions": "npm:^2.0.5" + "@csstools/postcss-cascade-layers": "npm:^5.0.2" + "@csstools/postcss-color-function": "npm:^4.0.10" + "@csstools/postcss-color-mix-function": "npm:^3.0.10" + "@csstools/postcss-color-mix-variadic-function-arguments": "npm:^1.0.0" + "@csstools/postcss-content-alt-text": "npm:^2.0.6" + "@csstools/postcss-exponential-functions": "npm:^2.0.9" "@csstools/postcss-font-format-keywords": "npm:^4.0.0" - "@csstools/postcss-gamut-mapping": "npm:^2.0.6" - "@csstools/postcss-gradients-interpolation-method": "npm:^5.0.6" - "@csstools/postcss-hwb-function": "npm:^4.0.6" - "@csstools/postcss-ic-unit": "npm:^4.0.0" - "@csstools/postcss-initial": "npm:^2.0.0" - "@csstools/postcss-is-pseudo-class": "npm:^5.0.1" - "@csstools/postcss-light-dark-function": "npm:^2.0.7" + "@csstools/postcss-gamut-mapping": "npm:^2.0.10" + "@csstools/postcss-gradients-interpolation-method": "npm:^5.0.10" + "@csstools/postcss-hwb-function": "npm:^4.0.10" + "@csstools/postcss-ic-unit": "npm:^4.0.2" + "@csstools/postcss-initial": "npm:^2.0.1" + "@csstools/postcss-is-pseudo-class": "npm:^5.0.3" + "@csstools/postcss-light-dark-function": "npm:^2.0.9" "@csstools/postcss-logical-float-and-clear": "npm:^3.0.0" "@csstools/postcss-logical-overflow": "npm:^2.0.0" "@csstools/postcss-logical-overscroll-behavior": "npm:^2.0.0" "@csstools/postcss-logical-resize": "npm:^3.0.0" - "@csstools/postcss-logical-viewport-units": "npm:^3.0.3" - "@csstools/postcss-media-minmax": "npm:^2.0.5" - "@csstools/postcss-media-queries-aspect-ratio-number-values": "npm:^3.0.4" + "@csstools/postcss-logical-viewport-units": "npm:^3.0.4" + "@csstools/postcss-media-minmax": "npm:^2.0.9" + "@csstools/postcss-media-queries-aspect-ratio-number-values": "npm:^3.0.5" "@csstools/postcss-nested-calc": "npm:^4.0.0" "@csstools/postcss-normalize-display-values": "npm:^4.0.0" - "@csstools/postcss-oklab-function": "npm:^4.0.6" - "@csstools/postcss-progressive-custom-properties": "npm:^4.0.0" - "@csstools/postcss-random-function": "npm:^1.0.1" - "@csstools/postcss-relative-color-syntax": "npm:^3.0.6" + "@csstools/postcss-oklab-function": "npm:^4.0.10" + "@csstools/postcss-progressive-custom-properties": "npm:^4.1.0" + "@csstools/postcss-random-function": "npm:^2.0.1" + "@csstools/postcss-relative-color-syntax": "npm:^3.0.10" "@csstools/postcss-scope-pseudo-class": "npm:^4.0.1" - "@csstools/postcss-sign-functions": "npm:^1.1.0" - "@csstools/postcss-stepped-value-functions": "npm:^4.0.5" - "@csstools/postcss-text-decoration-shorthand": "npm:^4.0.1" - "@csstools/postcss-trigonometric-functions": "npm:^4.0.5" + "@csstools/postcss-sign-functions": "npm:^1.1.4" + "@csstools/postcss-stepped-value-functions": "npm:^4.0.9" + "@csstools/postcss-text-decoration-shorthand": "npm:^4.0.2" + "@csstools/postcss-trigonometric-functions": "npm:^4.0.9" "@csstools/postcss-unset-value": "npm:^4.0.0" - autoprefixer: "npm:^10.4.19" - browserslist: "npm:^4.23.1" + autoprefixer: "npm:^10.4.21" + browserslist: "npm:^4.25.0" css-blank-pseudo: "npm:^7.0.1" - css-has-pseudo: "npm:^7.0.1" + css-has-pseudo: "npm:^7.0.2" css-prefers-color-scheme: "npm:^10.0.0" - cssdb: "npm:^8.2.1" + cssdb: "npm:^8.3.0" postcss-attribute-case-insensitive: "npm:^7.0.1" postcss-clamp: "npm:^4.1.0" - postcss-color-functional-notation: "npm:^7.0.6" + postcss-color-functional-notation: "npm:^7.0.10" postcss-color-hex-alpha: "npm:^10.0.0" postcss-color-rebeccapurple: "npm:^10.0.0" - postcss-custom-media: "npm:^11.0.5" - postcss-custom-properties: "npm:^14.0.4" - postcss-custom-selectors: "npm:^8.0.4" + postcss-custom-media: "npm:^11.0.6" + postcss-custom-properties: "npm:^14.0.6" + postcss-custom-selectors: "npm:^8.0.5" postcss-dir-pseudo-class: "npm:^9.0.1" - postcss-double-position-gradients: "npm:^6.0.0" + postcss-double-position-gradients: "npm:^6.0.2" postcss-focus-visible: "npm:^10.0.1" postcss-focus-within: "npm:^9.0.1" postcss-font-variant: "npm:^5.0.0" postcss-gap-properties: "npm:^6.0.0" postcss-image-set-function: "npm:^7.0.0" - postcss-lab-function: "npm:^7.0.6" - postcss-logical: "npm:^8.0.0" - postcss-nesting: "npm:^13.0.1" + postcss-lab-function: "npm:^7.0.10" + postcss-logical: "npm:^8.1.0" + postcss-nesting: "npm:^13.0.2" postcss-opacity-percentage: "npm:^3.0.0" postcss-overflow-shorthand: "npm:^6.0.0" postcss-page-break: "npm:^3.0.4" @@ -12527,7 +12433,7 @@ __metadata: postcss-selector-not: "npm:^8.0.1" peerDependencies: postcss: ^8.4 - checksum: 10c0/99931117735a66827c7318be023ddb614990457617ccbe7fd2fdc1f10345554652df180d4842768d68d57e14fc0be4d86d0b413c65e77e02db5511e57ed07c4f + checksum: 10c0/d7f8494d355567dc4ea66fe765c86ba9b1e9ce5061ada5c80c51fdf6c98b004b0b7ef17b5f64d197e1bec2e22ef4b6c613b998e1c1bcad0b53f0a3e303ded2fe languageName: node linkType: hard @@ -12666,7 +12572,7 @@ __metadata: languageName: node linkType: hard -"postcss@npm:^8.4.21, postcss@npm:^8.4.24, postcss@npm:^8.4.26, postcss@npm:^8.4.33, postcss@npm:^8.4.38": +"postcss@npm:^8.4.21, postcss@npm:^8.4.24, postcss@npm:^8.4.33": version: 8.4.45 resolution: "postcss@npm:8.4.45" dependencies: @@ -12677,6 +12583,17 @@ __metadata: languageName: node linkType: hard +"postcss@npm:^8.5.4": + version: 8.5.6 + resolution: "postcss@npm:8.5.6" + dependencies: + nanoid: "npm:^3.3.11" + picocolors: "npm:^1.1.1" + source-map-js: "npm:^1.2.1" + checksum: 10c0/5127cc7c91ed7a133a1b7318012d8bfa112da9ef092dddf369ae699a1f10ebbd89b1b9f25f3228795b84585c72aabd5ced5fc11f2ba467eedf7b081a66fad024 + languageName: node + linkType: hard + "pretty-error@npm:^4.0.0": version: 4.0.0 resolution: "pretty-error@npm:4.0.0" @@ -12706,10 +12623,22 @@ __metadata: languageName: node linkType: hard +"prism-react-renderer@npm:^2.4.1": + version: 2.4.1 + resolution: "prism-react-renderer@npm:2.4.1" + dependencies: + "@types/prismjs": "npm:^1.26.0" + clsx: "npm:^2.0.0" + peerDependencies: + react: ">=16.0.0" + checksum: 10c0/ebbe8feb975224344bbdd046b3a937d121592dbe4b8f22ba0be31f5af37b9a8219f441138ef6cab1c5b96f2aa6b529015200959f7e5e85b60ca69c81d35edcd4 + languageName: node + linkType: hard + "prismjs@npm:^1.29.0": - version: 1.29.0 - resolution: "prismjs@npm:1.29.0" - checksum: 10c0/d906c4c4d01b446db549b4f57f72d5d7e6ccaca04ecc670fb85cea4d4b1acc1283e945a9cbc3d81819084a699b382f970e02f9d1378e14af9808d366d9ed7ec6 + version: 1.30.0 + resolution: "prismjs@npm:1.30.0" + checksum: 10c0/f56205bfd58ef71ccfcbcb691fd0eb84adc96c6ff21b0b69fc6fdcf02be42d6ef972ba4aed60466310de3d67733f6a746f89f2fb79c00bf217406d465b3e8f23 languageName: node linkType: hard @@ -12807,6 +12736,13 @@ __metadata: languageName: node linkType: hard +"quansync@npm:^0.2.8": + version: 0.2.10 + resolution: "quansync@npm:0.2.10" + checksum: 10c0/f86f1d644f812a3a7c42de79eb401c47a5a67af82a9adff8a8afb159325e03e00f77cebbf42af6340a0bd47bd0c1fbe999e7caf7e1bbb30d7acb00c8729b7530 + languageName: node + linkType: hard + "queue-microtask@npm:^1.2.2": version: 1.2.3 resolution: "queue-microtask@npm:1.2.3" @@ -12814,15 +12750,6 @@ __metadata: languageName: node linkType: hard -"queue@npm:6.0.2": - version: 6.0.2 - resolution: "queue@npm:6.0.2" - dependencies: - inherits: "npm:~2.0.3" - checksum: 10c0/cf987476cc72e7d3aaabe23ccefaab1cd757a2b5e0c8d80b67c9575a6b5e1198807ffd4f0948a3f118b149d1111d810ee773473530b77a5c606673cac2c9c996 - languageName: node - linkType: hard - "quick-lru@npm:^5.1.1": version: 5.1.1 resolution: "quick-lru@npm:5.1.1" @@ -12879,80 +12806,27 @@ __metadata: languageName: node linkType: hard -"react-dev-utils@npm:^12.0.1": - version: 12.0.1 - resolution: "react-dev-utils@npm:12.0.1" +"react-dom@npm:^19.1.0": + version: 19.1.0 + resolution: "react-dom@npm:19.1.0" dependencies: - "@babel/code-frame": "npm:^7.16.0" - address: "npm:^1.1.2" - browserslist: "npm:^4.18.1" - chalk: "npm:^4.1.2" - cross-spawn: "npm:^7.0.3" - detect-port-alt: "npm:^1.1.6" - escape-string-regexp: "npm:^4.0.0" - filesize: "npm:^8.0.6" - find-up: "npm:^5.0.0" - fork-ts-checker-webpack-plugin: "npm:^6.5.0" - global-modules: "npm:^2.0.0" - globby: "npm:^11.0.4" - gzip-size: "npm:^6.0.0" - immer: "npm:^9.0.7" - is-root: "npm:^2.1.0" - loader-utils: "npm:^3.2.0" - open: "npm:^8.4.0" - pkg-up: "npm:^3.1.0" - prompts: "npm:^2.4.2" - react-error-overlay: "npm:^6.0.11" - recursive-readdir: "npm:^2.2.2" - shell-quote: "npm:^1.7.3" - strip-ansi: "npm:^6.0.1" - text-table: "npm:^0.2.0" - checksum: 10c0/94bc4ee5014290ca47a025e53ab2205c5dc0299670724d46a0b1bacbdd48904827b5ae410842d0a3a92481509097ae032e4a9dc7ca70db437c726eaba6411e82 - languageName: node - linkType: hard - -"react-dom@npm:^18.0.0": - version: 18.3.1 - resolution: "react-dom@npm:18.3.1" - dependencies: - loose-envify: "npm:^1.1.0" - scheduler: "npm:^0.23.2" + scheduler: "npm:^0.26.0" peerDependencies: - react: ^18.3.1 - checksum: 10c0/a752496c1941f958f2e8ac56239172296fcddce1365ce45222d04a1947e0cc5547df3e8447f855a81d6d39f008d7c32eab43db3712077f09e3f67c4874973e85 - languageName: node - linkType: hard - -"react-error-overlay@npm:^6.0.11": - version: 6.0.11 - resolution: "react-error-overlay@npm:6.0.11" - checksum: 10c0/8fc93942976e0c704274aec87dbc8e21f62a2cc78d1c93f9bcfff9f7494b00c60f7a2f0bd48d832bcd3190627c0255a1df907373f61f820371373a65ec4b2d64 + react: ^19.1.0 + checksum: 10c0/3e26e89bb6c67c9a6aa86cb888c7a7f8258f2e347a6d2a15299c17eb16e04c19194e3452bc3255bd34000a61e45e2cb51e46292392340432f133e5a5d2dfb5fc languageName: node linkType: hard -"react-fast-compare@npm:^3.2.0, react-fast-compare@npm:^3.2.2": +"react-fast-compare@npm:^3.2.0": version: 3.2.2 resolution: "react-fast-compare@npm:3.2.2" checksum: 10c0/0bbd2f3eb41ab2ff7380daaa55105db698d965c396df73e6874831dbafec8c4b5b08ba36ff09df01526caa3c61595247e3269558c284e37646241cba2b90a367 languageName: node linkType: hard -"react-helmet-async@npm:*": - version: 2.0.5 - resolution: "react-helmet-async@npm:2.0.5" - dependencies: - invariant: "npm:^2.2.4" - react-fast-compare: "npm:^3.2.2" - shallowequal: "npm:^1.1.0" - peerDependencies: - react: ^16.6.0 || ^17.0.0 || ^18.0.0 - checksum: 10c0/f390ea8bf13c2681850e5f8eb5b73d8613f407c245a5fd23e9db9b2cc14a3700dd1ce992d3966632886d1d613083294c2aeee009193f49dfa7d145d9f13ea2b0 - languageName: node - linkType: hard - -"react-helmet-async@npm:^1.3.0": +"react-helmet-async@npm:@slorber/react-helmet-async@1.3.0": version: 1.3.0 - resolution: "react-helmet-async@npm:1.3.0" + resolution: "@slorber/react-helmet-async@npm:1.3.0" dependencies: "@babel/runtime": "npm:^7.12.5" invariant: "npm:^2.2.4" @@ -12960,9 +12834,9 @@ __metadata: react-fast-compare: "npm:^3.2.0" shallowequal: "npm:^1.1.0" peerDependencies: - react: ^16.6.0 || ^17.0.0 || ^18.0.0 - react-dom: ^16.6.0 || ^17.0.0 || ^18.0.0 - checksum: 10c0/8f3e6d26beff61d2ed18f7b41561df3e4d83a7582914c7196aa65158c7f3cce939276547d7a0b8987952d9d44131406df74efba02d1f8fa8a3940b49e6ced70b + react: ^16.6.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^16.6.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + checksum: 10c0/7a13470a0d27d6305657c7fa6b066443c94acdb22bd0decca772298bc852ce04fdc65f1207f0d546995bf7d4ca09e21c81f96b4954544937c01eda82e2caa142 languageName: node linkType: hard @@ -12973,12 +12847,12 @@ __metadata: languageName: node linkType: hard -"react-json-view-lite@npm:^1.2.0": - version: 1.5.0 - resolution: "react-json-view-lite@npm:1.5.0" +"react-json-view-lite@npm:^2.3.0": + version: 2.4.1 + resolution: "react-json-view-lite@npm:2.4.1" peerDependencies: - react: ^16.13.1 || ^17.0.0 || ^18.0.0 - checksum: 10c0/e707717cb6b9d6cca5b138cdfb066e35ee7e493d1c88d4497e3a3a42b7651c8ff924ff53ad2da142a12b23b11379d39f38d8eee278c98c46cd6bc8844864b285 + react: ^18.0.0 || ^19.0.0 + checksum: 10c0/cc171d8cca04683b97292ffdd8bad4970d77ccb929ed1eff3d40d46893c69e569226742f3330c090be88f894bd8e97352286ff16989c1e765f9fda487ca44ee8 languageName: node linkType: hard @@ -13053,12 +12927,10 @@ __metadata: languageName: node linkType: hard -"react@npm:^18.0.0": - version: 18.3.1 - resolution: "react@npm:18.3.1" - dependencies: - loose-envify: "npm:^1.1.0" - checksum: 10c0/283e8c5efcf37802c9d1ce767f302dd569dd97a70d9bb8c7be79a789b9902451e0d16334b05d73299b20f048cbc3c7d288bbbde10b701fa194e2089c237dbea3 +"react@npm:^19.1.0": + version: 19.1.0 + resolution: "react@npm:19.1.0" + checksum: 10c0/530fb9a62237d54137a13d2cfb67a7db6a2156faed43eecc423f4713d9b20c6f2728b026b45e28fcd72e8eadb9e9ed4b089e99f5e295d2f0ad3134251bdd3698 languageName: node linkType: hard @@ -13097,31 +12969,6 @@ __metadata: languageName: node linkType: hard -"reading-time@npm:^1.5.0": - version: 1.5.0 - resolution: "reading-time@npm:1.5.0" - checksum: 10c0/0f730852fd4fb99e5f78c5b0cf36ab8c3fa15db96f87d9563843f6fd07a47864273ade539ebb184b785b728cde81a70283aa2d9b80cba5ca03b81868be03cabc - languageName: node - linkType: hard - -"rechoir@npm:^0.6.2": - version: 0.6.2 - resolution: "rechoir@npm:0.6.2" - dependencies: - resolve: "npm:^1.1.6" - checksum: 10c0/22c4bb32f4934a9468468b608417194f7e3ceba9a508512125b16082c64f161915a28467562368eeb15dc16058eb5b7c13a20b9eb29ff9927d1ebb3b5aa83e84 - languageName: node - linkType: hard - -"recursive-readdir@npm:^2.2.2": - version: 2.2.3 - resolution: "recursive-readdir@npm:2.2.3" - dependencies: - minimatch: "npm:^3.0.5" - checksum: 10c0/d0238f137b03af9cd645e1e0b40ae78b6cda13846e3ca57f626fcb58a66c79ae018a10e926b13b3a460f1285acc946a4e512ea8daa2e35df4b76a105709930d1 - languageName: node - linkType: hard - "regenerate-unicode-properties@npm:^10.1.0": version: 10.1.1 resolution: "regenerate-unicode-properties@npm:10.1.1" @@ -13415,7 +13262,7 @@ __metadata: languageName: node linkType: hard -"resolve@npm:^1.1.6, resolve@npm:^1.14.2": +"resolve@npm:^1.14.2": version: 1.22.8 resolution: "resolve@npm:1.22.8" dependencies: @@ -13428,7 +13275,7 @@ __metadata: languageName: node linkType: hard -"resolve@patch:resolve@npm%3A^1.1.6#optional!builtin, resolve@patch:resolve@npm%3A^1.14.2#optional!builtin": +"resolve@patch:resolve@npm%3A^1.14.2#optional!builtin": version: 1.22.8 resolution: "resolve@patch:resolve@npm%3A1.22.8#optional!builtin::version=1.22.8&hash=c3c19d" dependencies: @@ -13501,13 +13348,6 @@ __metadata: languageName: node linkType: hard -"rtl-detect@npm:^1.0.4": - version: 1.1.2 - resolution: "rtl-detect@npm:1.1.2" - checksum: 10c0/1b92888aafca1593314f837e83fdf02eb208faae3e713ab87c176804728efd3b1980d53b64f65f1fa593348087e852c5cd729b7b9372950f6e9b7be489afc0ca - languageName: node - linkType: hard - "rtlcss@npm:^4.1.0": version: 4.3.0 resolution: "rtlcss@npm:4.3.0" @@ -13566,23 +13406,17 @@ __metadata: languageName: node linkType: hard -"scheduler@npm:^0.23.2": - version: 0.23.2 - resolution: "scheduler@npm:0.23.2" - dependencies: - loose-envify: "npm:^1.1.0" - checksum: 10c0/26383305e249651d4c58e6705d5f8425f153211aef95f15161c151f7b8de885f24751b377e4a0b3dd42cce09aad3f87a61dab7636859c0d89b7daf1a1e2a5c78 +"scheduler@npm:^0.26.0": + version: 0.26.0 + resolution: "scheduler@npm:0.26.0" + checksum: 10c0/5b8d5bfddaae3513410eda54f2268e98a376a429931921a81b5c3a2873aab7ca4d775a8caac5498f8cbc7d0daeab947cf923dbd8e215d61671f9f4e392d34356 languageName: node linkType: hard -"schema-utils@npm:2.7.0": - version: 2.7.0 - resolution: "schema-utils@npm:2.7.0" - dependencies: - "@types/json-schema": "npm:^7.0.4" - ajv: "npm:^6.12.2" - ajv-keywords: "npm:^3.4.1" - checksum: 10c0/723c3c856a0313a89aa81c5fb2c93d4b11225f5cdd442665fddd55d3c285ae72e079f5286a3a9a1a973affe888f6c33554a2cf47b79b24cd8de2f1f756a6fb1b +"schema-dts@npm:^1.1.2": + version: 1.1.5 + resolution: "schema-dts@npm:1.1.5" + checksum: 10c0/babe23a1577c75c5df79d73acf34af3399e60928eab46f2236a0c4212061f5778d613a31c9e9ec86a2807d20b1ea460673d72d3fe1f64fb7543867460e607f76 languageName: node linkType: hard @@ -13654,7 +13488,7 @@ __metadata: languageName: node linkType: hard -"semver@npm:^7.3.2, semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.5.4": +"semver@npm:^7.3.5, semver@npm:^7.3.7, semver@npm:^7.5.4": version: 7.6.3 resolution: "semver@npm:7.6.3" bin: @@ -13795,26 +13629,13 @@ __metadata: languageName: node linkType: hard -"shell-quote@npm:^1.7.3, shell-quote@npm:^1.8.1": +"shell-quote@npm:^1.8.1": version: 1.8.1 resolution: "shell-quote@npm:1.8.1" checksum: 10c0/8cec6fd827bad74d0a49347057d40dfea1e01f12a6123bf82c4649f3ef152fc2bc6d6176e6376bffcd205d9d0ccb4f1f9acae889384d20baff92186f01ea455a languageName: node linkType: hard -"shelljs@npm:^0.8.5": - version: 0.8.5 - resolution: "shelljs@npm:0.8.5" - dependencies: - glob: "npm:^7.0.0" - interpret: "npm:^1.0.0" - rechoir: "npm:^0.6.2" - bin: - shjs: bin/shjs - checksum: 10c0/feb25289a12e4bcd04c40ddfab51aff98a3729f5c2602d5b1a1b95f6819ec7804ac8147ebd8d9a85dfab69d501bcf92d7acef03247320f51c1552cec8d8e2382 - languageName: node - linkType: hard - "side-channel@npm:^1.0.6": version: 1.0.6 resolution: "side-channel@npm:1.0.6" @@ -13952,7 +13773,7 @@ __metadata: languageName: node linkType: hard -"source-map-js@npm:^1.0.1, source-map-js@npm:^1.2.0": +"source-map-js@npm:^1.0.1, source-map-js@npm:^1.2.0, source-map-js@npm:^1.2.1": version: 1.2.1 resolution: "source-map-js@npm:1.2.1" checksum: 10c0/7bda1fc4c197e3c6ff17de1b8b2c20e60af81b63a52cb32ec5a5d67a20a7d42651e2cb34ebe93833c5a2a084377e17455854fee3e21e7925c64a51b6a52b0faf @@ -14205,10 +14026,10 @@ __metadata: languageName: node linkType: hard -"stylis@npm:^4.3.1": - version: 4.3.4 - resolution: "stylis@npm:4.3.4" - checksum: 10c0/4899c2674cd2538e314257abd1ba7ea3c2176439659ddac6593c78192cfd4a06f814a0a4fc69bc7f8fcc6b997e13d383dd9b578b71074746a0fb86045a83e42d +"stylis@npm:^4.3.6": + version: 4.3.6 + resolution: "stylis@npm:4.3.6" + checksum: 10c0/e736d484983a34f7c65d362c67dc79b7bce388054b261c2b7b23d02eaaf280617033f65d44b1ea341854f4331a5074b885668ac8741f98c13a6cfd6443ae85d0 languageName: node linkType: hard @@ -14270,13 +14091,6 @@ __metadata: languageName: node linkType: hard -"tapable@npm:^1.0.0": - version: 1.1.3 - resolution: "tapable@npm:1.1.3" - checksum: 10c0/c9f0265e55e45821ec672b9b9ee8a35d95bf3ea6b352199f8606a2799018e89cfe4433c554d424b31fc67c4be26b05d4f36dc3c607def416fdb2514cd63dba50 - languageName: node - linkType: hard - "tapable@npm:^2.0.0, tapable@npm:^2.1.1, tapable@npm:^2.2.0, tapable@npm:^2.2.1": version: 2.2.1 resolution: "tapable@npm:2.2.1" @@ -14334,13 +14148,6 @@ __metadata: languageName: node linkType: hard -"text-table@npm:^0.2.0": - version: 0.2.0 - resolution: "text-table@npm:0.2.0" - checksum: 10c0/02805740c12851ea5982686810702e2f14369a5f4c5c40a836821e3eefc65ffeec3131ba324692a37608294b0fd8c1e55a2dd571ffed4909822787668ddbee5c - languageName: node - linkType: hard - "thunky@npm:^1.0.2": version: 1.1.0 resolution: "thunky@npm:1.1.0" @@ -14362,10 +14169,17 @@ __metadata: languageName: node linkType: hard -"tinyexec@npm:^0.3.0": - version: 0.3.1 - resolution: "tinyexec@npm:0.3.1" - checksum: 10c0/11e7a7c5d8b3bddf8b5cbe82a9290d70a6fad84d528421d5d18297f165723cb53d2e737d8f58dcce5ca56f2e4aa2d060f02510b1f8971784f97eb3e9aec28f09 +"tinyexec@npm:^1.0.1": + version: 1.0.1 + resolution: "tinyexec@npm:1.0.1" + checksum: 10c0/e1ec3c8194a0427ce001ba69fd933d0c957e2b8994808189ed8020d3e0c01299aea8ecf0083cc514ecbf90754695895f2b5c0eac07eb2d0c406f7d4fbb8feade + languageName: node + linkType: hard + +"tinypool@npm:^1.0.2": + version: 1.1.0 + resolution: "tinypool@npm:1.1.0" + checksum: 10c0/deb6bde5e3d85d4ba043806c66f43fb5b649716312a47b52761a83668ffc71cd0ea4e24254c1b02a3702e5c27e02605f0189a1460f6284a5930a08bd0c06435c languageName: node linkType: hard @@ -14467,23 +14281,23 @@ __metadata: languageName: node linkType: hard -"typescript@npm:~5.7.2": - version: 5.7.2 - resolution: "typescript@npm:5.7.2" +"typescript@npm:~5.8.3": + version: 5.8.3 + resolution: "typescript@npm:5.8.3" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10c0/a873118b5201b2ef332127ef5c63fb9d9c155e6fdbe211cbd9d8e65877283797cca76546bad742eea36ed7efbe3424a30376818f79c7318512064e8625d61622 + checksum: 10c0/5f8bb01196e542e64d44db3d16ee0e4063ce4f3e3966df6005f2588e86d91c03e1fb131c2581baf0fb65ee79669eea6e161cd448178986587e9f6844446dbb48 languageName: node linkType: hard -"typescript@patch:typescript@npm%3A~5.7.2#optional!builtin": - version: 5.7.2 - resolution: "typescript@patch:typescript@npm%3A5.7.2#optional!builtin::version=5.7.2&hash=8c6c40" +"typescript@patch:typescript@npm%3A~5.8.3#optional!builtin": + version: 5.8.3 + resolution: "typescript@patch:typescript@npm%3A5.8.3#optional!builtin::version=5.8.3&hash=8c6c40" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10c0/c891ccf04008bc1305ba34053db951f8a4584b4a1bf2f68fd972c4a354df3dc5e62c8bfed4f6ac2d12e5b3b1c49af312c83a651048f818cd5b4949d17baacd79 + checksum: 10c0/92ea03509e06598948559ddcdd8a4ae5a7ab475766d5589f1b796f5731b3d631a4c7ddfb86a3bd44d58d10102b132cd4b4994dda9b63e6273c66d77d6a271dbd languageName: node linkType: hard @@ -14680,6 +14494,20 @@ __metadata: languageName: node linkType: hard +"update-browserslist-db@npm:^1.1.3": + version: 1.1.3 + resolution: "update-browserslist-db@npm:1.1.3" + dependencies: + escalade: "npm:^3.2.0" + picocolors: "npm:^1.1.1" + peerDependencies: + browserslist: ">= 4.21.0" + bin: + update-browserslist-db: cli.js + checksum: 10c0/682e8ecbf9de474a626f6462aa85927936cdd256fe584c6df2508b0df9f7362c44c957e9970df55dfe44d3623807d26316ea2c7d26b80bb76a16c56c37233c32 + languageName: node + linkType: hard + "update-notifier@npm:^6.0.2": version: 6.0.2 resolution: "update-notifier@npm:6.0.2" @@ -14756,21 +14584,21 @@ __metadata: languageName: node linkType: hard -"uuid@npm:^8.3.2": - version: 8.3.2 - resolution: "uuid@npm:8.3.2" +"uuid@npm:^11.1.0": + version: 11.1.0 + resolution: "uuid@npm:11.1.0" bin: - uuid: dist/bin/uuid - checksum: 10c0/bcbb807a917d374a49f475fae2e87fdca7da5e5530820ef53f65ba1d12131bd81a92ecf259cc7ce317cbe0f289e7d79fdfebcef9bfa3087c8c8a2fa304c9be54 + uuid: dist/esm/bin/uuid + checksum: 10c0/34aa51b9874ae398c2b799c88a127701408cd581ee89ec3baa53509dd8728cbb25826f2a038f9465f8b7be446f0fbf11558862965b18d21c993684297628d4d3 languageName: node linkType: hard -"uuid@npm:^9.0.1": - version: 9.0.1 - resolution: "uuid@npm:9.0.1" +"uuid@npm:^8.3.2": + version: 8.3.2 + resolution: "uuid@npm:8.3.2" bin: uuid: dist/bin/uuid - checksum: 10c0/1607dd32ac7fc22f2d8f77051e6a64845c9bce5cd3dd8aa0070c074ec73e666a1f63c7b4e0f4bf2bc8b9d59dc85a15e17807446d9d2b17c8485fbc2147b27f9b + checksum: 10c0/bcbb807a917d374a49f475fae2e87fdca7da5e5530820ef53f65ba1d12131bd81a92ecf259cc7ce317cbe0f289e7d79fdfebcef9bfa3087c8c8a2fa304c9be54 languageName: node linkType: hard @@ -15114,17 +14942,6 @@ __metadata: languageName: node linkType: hard -"which@npm:^1.3.1": - version: 1.3.1 - resolution: "which@npm:1.3.1" - dependencies: - isexe: "npm:^2.0.0" - bin: - which: ./bin/which - checksum: 10c0/e945a8b6bbf6821aaaef7f6e0c309d4b615ef35699576d5489b4261da9539f70393c6b2ce700ee4321c18f914ebe5644bc4631b15466ffbaad37d83151f6af59 - languageName: node - linkType: hard - "which@npm:^2.0.1": version: 2.0.2 resolution: "which@npm:2.0.2" @@ -15266,20 +15083,6 @@ __metadata: languageName: node linkType: hard -"yaml@npm:^1.7.2": - version: 1.10.2 - resolution: "yaml@npm:1.10.2" - checksum: 10c0/5c28b9eb7adc46544f28d9a8d20c5b3cb1215a886609a2fd41f51628d8aaa5878ccd628b755dbcd29f6bb4921bd04ffbc6dcc370689bb96e594e2f9813d2605f - languageName: node - linkType: hard - -"yocto-queue@npm:^0.1.0": - version: 0.1.0 - resolution: "yocto-queue@npm:0.1.0" - checksum: 10c0/dceb44c28578b31641e13695d200d34ec4ab3966a5729814d5445b194933c096b7ced71494ce53a0e8820685d1d010df8b2422e5bf2cdea7e469d97ffbea306f - languageName: node - linkType: hard - "yocto-queue@npm:^1.0.0": version: 1.1.1 resolution: "yocto-queue@npm:1.1.1" diff --git a/example/.gitignore b/example/.gitignore index 29a3a501..79c113f9 100644 --- a/example/.gitignore +++ b/example/.gitignore @@ -5,9 +5,11 @@ *.swp .DS_Store .atom/ +.build/ .buildlog/ .history .svn/ +.swiftpm/ migrate_working_dir/ # IntelliJ related diff --git a/example/analysis_options.yaml b/example/analysis_options.yaml index 6819d987..24317715 100644 --- a/example/analysis_options.yaml +++ b/example/analysis_options.yaml @@ -4,4 +4,3 @@ linter: rules: public_member_api_docs: false document_ignores: true - avoid_catches_without_on_clauses: true diff --git a/example/android/.gitignore b/example/android/.gitignore index 6f568019..be3943c9 100644 --- a/example/android/.gitignore +++ b/example/android/.gitignore @@ -5,9 +5,10 @@ gradle-wrapper.jar /gradlew.bat /local.properties GeneratedPluginRegistrant.java +.cxx/ # Remember to never publicly share your keystore. -# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app +# See https://flutter.dev/to/reference-keystore key.properties **/*.keystore **/*.jks diff --git a/example/android/MapLibreAndroid/build.gradle b/example/android/MapLibreAndroid/build.gradle index afc2d10a..bc00e496 100644 --- a/example/android/MapLibreAndroid/build.gradle +++ b/example/android/MapLibreAndroid/build.gradle @@ -1,3 +1,3 @@ configurations.maybeCreate("default") -// https://repo1.maven.org/maven2/org/maplibre/gl/android-sdk/11.7.0/android-sdk-11.7.0.aar -artifacts.add("default", file('android-sdk-11.7.0.aar')) \ No newline at end of file +// https://repo1.maven.org/maven2/org/maplibre/gl/android-sdk/11.10.0/android-sdk-11.10.0.aar +artifacts.add("default", file('android-sdk-11.10.0.aar')) \ No newline at end of file diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle deleted file mode 100644 index bdf8d83a..00000000 --- a/example/android/app/build.gradle +++ /dev/null @@ -1,59 +0,0 @@ -plugins { - id "com.android.application" - id "kotlin-android" - // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. - id "dev.flutter.flutter-gradle-plugin" -} - -def localProperties = new Properties() -def localPropertiesFile = rootProject.file("local.properties") -if (localPropertiesFile.exists()) { - localPropertiesFile.withReader("UTF-8") { reader -> - localProperties.load(reader) - } -} - -def flutterVersionCode = localProperties.getProperty("flutter.versionCode") -if (flutterVersionCode == null) { - flutterVersionCode = "1" -} - -def flutterVersionName = localProperties.getProperty("flutter.versionName") -if (flutterVersionName == null) { - flutterVersionName = "1.0" -} - -android { - namespace = "com.example.maplibre_example" - compileSdk = flutter.compileSdkVersion - ndkVersion = "26.1.10909125" // flutter.ndkVersion - - compileOptions { - sourceCompatibility = JavaVersion.VERSION_21 - targetCompatibility = JavaVersion.VERSION_21 - } - - defaultConfig { - applicationId = "com.github.josxha.maplibre_example" - // minSdk 21 required by maplibre - minSdk = 21 // flutter.minSdkVersion - targetSdk = flutter.targetSdkVersion - versionCode = flutterVersionCode.toInteger() - versionName = flutterVersionName - } - - buildTypes { - release { - // Signing with the debug keys for now, so `flutter run --release` works. - signingConfig = signingConfigs.debug - } - } - - dependencies { -// JNIGEN implementation project(":MapLibreAndroid") - } -} - -flutter { - source = "../.." -} diff --git a/example/android/app/build.gradle.kts b/example/android/app/build.gradle.kts new file mode 100644 index 00000000..ab2d27b8 --- /dev/null +++ b/example/android/app/build.gradle.kts @@ -0,0 +1,46 @@ +plugins { + id("com.android.application") + id("kotlin-android") + // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. + id("dev.flutter.flutter-gradle-plugin") +} + +android { + namespace = "com.github.josxha.maplibre_example" + compileSdk = flutter.compileSdkVersion + ndkVersion = "26.3.11579264" // flutter.ndkVersion + + compileOptions { + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 + } + + kotlinOptions { + jvmTarget = JavaVersion.VERSION_11.toString() + } + + defaultConfig { + applicationId = "com.github.josxha.maplibre_example" + // minSdk 21 required by maplibre + minSdk = 21 // flutter.minSdkVersion + targetSdk = flutter.targetSdkVersion + versionCode = flutter.versionCode + versionName = flutter.versionName + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig = signingConfigs.getByName("debug") + } + } + + dependencies { + // JNIGEN implementation(project(":MapLibreAndroid")) + } +} + +flutter { + source = "../.." +} diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index 11f57b86..3f3698bc 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -1,6 +1,6 @@ ("clean") { + delete(rootProject.layout.buildDirectory) +} + +plugins.apply("org.jlleitschuh.gradle.ktlint") + +configure { + android.set(true) + ignoreFailures.set(false) + + reporters { + reporter(org.jlleitschuh.gradle.ktlint.reporter.ReporterType.PLAIN) + reporter(org.jlleitschuh.gradle.ktlint.reporter.ReporterType.CHECKSTYLE) + } + + filter { + exclude("**/*.g.kt") + } +} diff --git a/example/android/gradle.properties b/example/android/gradle.properties index 5f5d39d0..f018a618 100644 --- a/example/android/gradle.properties +++ b/example/android/gradle.properties @@ -1,6 +1,3 @@ -org.gradle.jvmargs=-Xmx4G -XX:+HeapDumpOnOutOfMemoryError +org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError android.useAndroidX=true android.enableJetifier=true -android.defaults.buildfeatures.buildconfig=true -android.nonTransitiveRClass=false -android.nonFinalResIds=false diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties index 6cb8454c..afa1e8eb 100644 --- a/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/example/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip diff --git a/example/android/settings.gradle b/example/android/settings.gradle deleted file mode 100644 index d9565863..00000000 --- a/example/android/settings.gradle +++ /dev/null @@ -1,28 +0,0 @@ -pluginManagement { - def flutterSdkPath = { - def properties = new Properties() - file("local.properties").withInputStream { properties.load(it) } - def flutterSdkPath = properties.getProperty("flutter.sdk") - assert flutterSdkPath != null, "flutter.sdk not set in local.properties" - return flutterSdkPath - }() - - includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") - - repositories { - google() - mavenCentral() - gradlePluginPortal() - } -} - -plugins { - id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version '8.6.+' apply false - // use a Kotlin version that is compatible with MapLibre - id "org.jetbrains.kotlin.android" version "2.1.+" apply false - id "org.jlleitschuh.gradle.ktlint" version "12.1.+" apply false -} - -include ":app" -// JNIGEN include ':MapLibreAndroid' \ No newline at end of file diff --git a/example/android/settings.gradle.kts b/example/android/settings.gradle.kts new file mode 100644 index 00000000..b2c995aa --- /dev/null +++ b/example/android/settings.gradle.kts @@ -0,0 +1,30 @@ +pluginManagement { + val flutterSdkPath = + run { + val properties = java.util.Properties() + file("local.properties").inputStream().use { properties.load(it) } + val flutterSdkPath = properties.getProperty("flutter.sdk") + require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" } + flutterSdkPath + } + + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") + + repositories { + google() + mavenCentral() + maven("https://plugins.gradle.org/m2/") + gradlePluginPortal() + } +} + +plugins { + id("dev.flutter.flutter-plugin-loader") version "1.0.0" + id("com.android.application") version "8.6.+" apply false + // Use a Kotlin version that is compatible with MapLibre + id("org.jetbrains.kotlin.android") version "2.1.+" apply false + id("org.jlleitschuh.gradle.ktlint") version "12.3.+" apply false +} + +include(":app") +// JNIGEN include(":MapLibreAndroid") diff --git a/example/integration_test/controller_test.dart b/example/integration_test/controller_test.dart index 611990eb..868c74ef 100644 --- a/example/integration_test/controller_test.dart +++ b/example/integration_test/controller_test.dart @@ -190,8 +190,9 @@ void main() { await ctrl.style?.updateGeoJsonSource( id: source.id, data: jsonEncode( - GeometryCollection(geometries: [Point(coordinates: Position(0, 0))]) - .toJson(), + GeometryCollection( + geometries: [Point(coordinates: Position(0, 0))], + ).toJson(), ), ); }); diff --git a/example/integration_test/map_camera_test.dart b/example/integration_test/map_camera_test.dart index 8e96a6dc..4c325342 100644 --- a/example/integration_test/map_camera_test.dart +++ b/example/integration_test/map_camera_test.dart @@ -20,10 +20,7 @@ void main() { ); final completer = Completer(); await tester.pumpWidget( - App( - options: options, - onMapCreated: completer.complete, - ), + App(options: options, onMapCreated: completer.complete), ); await tester.pumpAndSettle(); final ctrl = await completer.future; diff --git a/example/integration_test/map_options_test.dart b/example/integration_test/map_options_test.dart index 2d632fa6..836cc6ae 100644 --- a/example/integration_test/map_options_test.dart +++ b/example/integration_test/map_options_test.dart @@ -20,10 +20,7 @@ void main() { ); final completer = Completer(); await tester.pumpWidget( - App( - options: options, - onMapCreated: completer.complete, - ), + App(options: options, onMapCreated: completer.complete), ); await tester.pumpAndSettle(); final ctrl = await completer.future; diff --git a/example/integration_test/offline_manager_test.dart b/example/integration_test/offline_manager_test.dart index 6d908497..c7a97c2d 100644 --- a/example/integration_test/offline_manager_test.dart +++ b/example/integration_test/offline_manager_test.dart @@ -70,10 +70,7 @@ void main() { await tester.pumpWidget(const App()); await tester.pumpAndSettle(); final manager = await OfflineManager.createInstance(); - expect( - await manager.listOfflineRegions(), - isEmpty, - ); + expect(await manager.listOfflineRegions(), isEmpty); manager.dispose(); }); /*testWidgets('downloadRegion', (tester) async { diff --git a/example/ios/Podfile b/example/ios/Podfile deleted file mode 100644 index d97f17e2..00000000 --- a/example/ios/Podfile +++ /dev/null @@ -1,44 +0,0 @@ -# Uncomment this line to define a global platform for your project -# platform :ios, '12.0' - -# CocoaPods analytics sends network stats synchronously affecting flutter build latency. -ENV['COCOAPODS_DISABLE_STATS'] = 'true' - -project 'Runner', { - 'Debug' => :debug, - 'Profile' => :release, - 'Release' => :release, -} - -def flutter_root - generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) - unless File.exist?(generated_xcode_build_settings_path) - raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" - end - - File.foreach(generated_xcode_build_settings_path) do |line| - matches = line.match(/FLUTTER_ROOT\=(.*)/) - return matches[1].strip if matches - end - raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" -end - -require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) - -flutter_ios_podfile_setup - -target 'Runner' do - use_frameworks! - use_modular_headers! - - flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) - target 'RunnerTests' do - inherit! :search_paths - end -end - -post_install do |installer| - installer.pods_project.targets.each do |target| - flutter_additional_ios_build_settings(target) - end -end diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index 9ea133a6..59e1944d 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -11,6 +11,7 @@ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */ = {isa = PBXBuildFile; productRef = 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */; }; 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; @@ -62,6 +63,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -157,6 +159,9 @@ dependencies = ( ); name = Runner; + packageProductDependencies = ( + 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */, + ); productName = Runner; productReference = 97C146EE1CF9000F007C117D /* Runner.app */; productType = "com.apple.product-type.application"; @@ -190,6 +195,9 @@ Base, ); mainGroup = 97C146E51CF9000F007C117D; + packageReferences = ( + 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */, + ); productRefGroup = 97C146EF1CF9000F007C117D /* Products */; projectDirPath = ""; projectRoot = ""; @@ -362,13 +370,14 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = 67L89FHS75; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.maplibreExample; + PRODUCT_BUNDLE_IDENTIFIER = com.github.josxha.maplibreExample; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; @@ -384,7 +393,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.example.maplibreExample.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.github.josxha.maplibreExample.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -401,7 +410,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.example.maplibreExample.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.github.josxha.maplibreExample.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; @@ -416,7 +425,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.example.maplibreExample.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.github.josxha.maplibreExample.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; @@ -541,13 +550,14 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = 67L89FHS75; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.maplibreExample; + PRODUCT_BUNDLE_IDENTIFIER = com.github.josxha.maplibreExample; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -563,13 +573,14 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = 67L89FHS75; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.maplibreExample; + PRODUCT_BUNDLE_IDENTIFIER = com.github.josxha.maplibreExample; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; @@ -611,6 +622,20 @@ defaultConfigurationName = Release; }; /* End XCConfigurationList section */ + +/* Begin XCLocalSwiftPackageReference section */ + 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */ = { + isa = XCLocalSwiftPackageReference; + relativePath = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage; + }; +/* End XCLocalSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */ = { + isa = XCSwiftPackageProductDependency; + productName = FlutterGeneratedPluginSwiftPackage; + }; +/* End XCSwiftPackageProductDependency section */ }; rootObject = 97C146E61CF9000F007C117D /* Project object */; } diff --git a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 8e3ca5df..d795332e 100644 --- a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -5,6 +5,24 @@ + + + + + + + + + + diff --git a/example/ios/Runner/AppDelegate.swift b/example/ios/Runner/AppDelegate.swift index 9074fee9..62666446 100644 --- a/example/ios/Runner/AppDelegate.swift +++ b/example/ios/Runner/AppDelegate.swift @@ -1,7 +1,7 @@ import Flutter import UIKit -@UIApplicationMain +@main @objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json index d36b1fab..d0d98aa1 100644 --- a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -1,122 +1 @@ -{ - "images" : [ - { - "size" : "20x20", - "idiom" : "iphone", - "filename" : "Icon-App-20x20@2x.png", - "scale" : "2x" - }, - { - "size" : "20x20", - "idiom" : "iphone", - "filename" : "Icon-App-20x20@3x.png", - "scale" : "3x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@1x.png", - "scale" : "1x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@2x.png", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@3x.png", - "scale" : "3x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "Icon-App-40x40@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "Icon-App-40x40@3x.png", - "scale" : "3x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "Icon-App-60x60@2x.png", - "scale" : "2x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "Icon-App-60x60@3x.png", - "scale" : "3x" - }, - { - "size" : "20x20", - "idiom" : "ipad", - "filename" : "Icon-App-20x20@1x.png", - "scale" : "1x" - }, - { - "size" : "20x20", - "idiom" : "ipad", - "filename" : "Icon-App-20x20@2x.png", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "Icon-App-29x29@1x.png", - "scale" : "1x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "Icon-App-29x29@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "Icon-App-40x40@1x.png", - "scale" : "1x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "Icon-App-40x40@2x.png", - "scale" : "2x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "Icon-App-76x76@1x.png", - "scale" : "1x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "Icon-App-76x76@2x.png", - "scale" : "2x" - }, - { - "size" : "83.5x83.5", - "idiom" : "ipad", - "filename" : "Icon-App-83.5x83.5@2x.png", - "scale" : "2x" - }, - { - "size" : "1024x1024", - "idiom" : "ios-marketing", - "filename" : "Icon-App-1024x1024@1x.png", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} +{"images":[{"size":"20x20","idiom":"iphone","filename":"Icon-App-20x20@2x.png","scale":"2x"},{"size":"20x20","idiom":"iphone","filename":"Icon-App-20x20@3x.png","scale":"3x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@1x.png","scale":"1x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@2x.png","scale":"2x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@3x.png","scale":"3x"},{"size":"40x40","idiom":"iphone","filename":"Icon-App-40x40@2x.png","scale":"2x"},{"size":"40x40","idiom":"iphone","filename":"Icon-App-40x40@3x.png","scale":"3x"},{"size":"57x57","idiom":"iphone","filename":"Icon-App-57x57@1x.png","scale":"1x"},{"size":"57x57","idiom":"iphone","filename":"Icon-App-57x57@2x.png","scale":"2x"},{"size":"60x60","idiom":"iphone","filename":"Icon-App-60x60@2x.png","scale":"2x"},{"size":"60x60","idiom":"iphone","filename":"Icon-App-60x60@3x.png","scale":"3x"},{"size":"20x20","idiom":"ipad","filename":"Icon-App-20x20@1x.png","scale":"1x"},{"size":"20x20","idiom":"ipad","filename":"Icon-App-20x20@2x.png","scale":"2x"},{"size":"29x29","idiom":"ipad","filename":"Icon-App-29x29@1x.png","scale":"1x"},{"size":"29x29","idiom":"ipad","filename":"Icon-App-29x29@2x.png","scale":"2x"},{"size":"40x40","idiom":"ipad","filename":"Icon-App-40x40@1x.png","scale":"1x"},{"size":"40x40","idiom":"ipad","filename":"Icon-App-40x40@2x.png","scale":"2x"},{"size":"50x50","idiom":"ipad","filename":"Icon-App-50x50@1x.png","scale":"1x"},{"size":"50x50","idiom":"ipad","filename":"Icon-App-50x50@2x.png","scale":"2x"},{"size":"72x72","idiom":"ipad","filename":"Icon-App-72x72@1x.png","scale":"1x"},{"size":"72x72","idiom":"ipad","filename":"Icon-App-72x72@2x.png","scale":"2x"},{"size":"76x76","idiom":"ipad","filename":"Icon-App-76x76@1x.png","scale":"1x"},{"size":"76x76","idiom":"ipad","filename":"Icon-App-76x76@2x.png","scale":"2x"},{"size":"83.5x83.5","idiom":"ipad","filename":"Icon-App-83.5x83.5@2x.png","scale":"2x"},{"size":"1024x1024","idiom":"ios-marketing","filename":"Icon-App-1024x1024@1x.png","scale":"1x"}],"info":{"version":1,"author":"xcode"}} \ No newline at end of file diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png index dc9ada47..791c8ea0 100644 Binary files a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png index 7353c41e..8d2cd227 100644 Binary files a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png index 797d452e..dc40b2d0 100644 Binary files a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png index 6ed2d933..cae272d3 100644 Binary files a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png index 4cd7b009..d8f1b4c4 100644 Binary files a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png index fe730945..3b108c74 100644 Binary files a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png index 321773cd..639bdf24 100644 Binary files a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png index 797d452e..dc40b2d0 100644 Binary files a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png index 502f463a..802e9654 100644 Binary files a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png index 0ec30343..f0a1251a 100644 Binary files a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png new file mode 100644 index 00000000..6a1d1e9e Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png new file mode 100644 index 00000000..01b1153f Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png new file mode 100644 index 00000000..710decdb Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png new file mode 100644 index 00000000..8428f793 Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png index 0ec30343..f0a1251a 100644 Binary files a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png index e9f5fea2..379230cf 100644 Binary files a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png new file mode 100644 index 00000000..66dfe3e9 Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png new file mode 100644 index 00000000..ac1c5b3a Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png index 84ac32ae..9c1fe81e 100644 Binary files a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png index 8953cba0..aedf47ed 100644 Binary files a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png index 0467bf12..5805f023 100644 Binary files a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/example/ios/Runner/Info.plist b/example/ios/Runner/Info.plist index 82f3dcc7..f6568c25 100644 --- a/example/ios/Runner/Info.plist +++ b/example/ios/Runner/Info.plist @@ -5,7 +5,7 @@ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleDisplayName - Maplibre Example + Maplibre CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier diff --git a/example/ios/RunnerTests/RunnerTests.swift b/example/ios/RunnerTests/RunnerTests.swift index 86a7c3b1..6dc8bf4b 100644 --- a/example/ios/RunnerTests/RunnerTests.swift +++ b/example/ios/RunnerTests/RunnerTests.swift @@ -2,11 +2,28 @@ import Flutter import UIKit import XCTest +// If your plugin has been explicitly set to "type: .dynamic" in the Package.swift, +// you will need to add your plugin as a dependency of RunnerTests within Xcode. + +@testable import maplibre + +// This demonstrates a simple unit test of the Swift portion of this plugin's implementation. +// +// See https://developer.apple.com/documentation/xctest for more information about using XCTest. + class RunnerTests: XCTestCase { - func testExample() { - // If you add code to the Runner application, consider adding tests here. - // See https://developer.apple.com/documentation/xctest for more information about using XCTest. + func testGetPlatformVersion() { + let plugin = MaplibrePlugin() + + let call = FlutterMethodCall(methodName: "getPlatformVersion", arguments: []) + + let resultExpectation = expectation(description: "result block must be called.") + plugin.handle(call) { result in + XCTAssertEqual(result as! String, "iOS " + UIDevice.current.systemVersion) + resultExpectation.fulfill() + } + waitForExpectations(timeout: 1) } } diff --git a/example/lib/controller_page.dart b/example/lib/controller_page.dart index 35e21e1e..0a66a14f 100644 --- a/example/lib/controller_page.dart +++ b/example/lib/controller_page.dart @@ -126,17 +126,15 @@ pitch: ${camera.pitch}'''), onPressed: () async { final camera = _controller.getCamera(); final lat = camera.center.lat.toDouble(); - final meters = - await _controller.getMetersPerPixelAtLatitude(lat); + final meters = await _controller + .getMetersPerPixelAtLatitude(lat); debugPrint('latitude: $lat: $meters m/px'); if (context.mounted) { ScaffoldMessenger.of(context) ..hideCurrentSnackBar() ..showSnackBar( SnackBar( - content: Text( - 'latitude: $lat: $meters m/px', - ), + content: Text('latitude: $lat: $meters m/px'), ), ); } @@ -184,16 +182,15 @@ pitch: ${camera.pitch}'''), ), OutlinedButton( onPressed: () async { - final offset = - await _controller.toScreenLocation(Position(0, 0)); + final offset = await _controller.toScreenLocation( + Position(0, 0), + ); if (context.mounted) { ScaffoldMessenger.of(context) ..hideCurrentSnackBar() ..showSnackBar( SnackBar( - content: Text( - 'Offset(${offset.dx}, ${offset.dy})', - ), + content: Text('Offset(${offset.dx}, ${offset.dy})'), ), ); } @@ -208,8 +205,10 @@ pitch: ${camera.pitch}'''), ), Expanded( child: MapLibreMap( - options: - MapOptions(initCenter: Position(9.17, 47.68), initZoom: 3), + options: MapOptions( + initCenter: Position(9.17, 47.68), + initZoom: 3, + ), onMapCreated: (controller) => _controller = controller, ), ), diff --git a/example/lib/events_page.dart b/example/lib/events_page.dart index 16a4131e..669d7253 100644 --- a/example/lib/events_page.dart +++ b/example/lib/events_page.dart @@ -40,26 +40,30 @@ class _EventsPageState extends State { } void _onEvent(MapEvent event) => switch (event) { - MapEventMapCreated() => _print('map created'), - MapEventStyleLoaded() => _print('style loaded'), - MapEventMoveCamera() => _print( - 'move camera: center ${_formatPosition(event.camera.center)}, ' - 'zoom ${event.camera.zoom.toStringAsFixed(2)}, ' - 'pitch ${event.camera.pitch.toStringAsFixed(2)}, ' - 'bearing ${event.camera.bearing.toStringAsFixed(2)}', - ), - MapEventStartMoveCamera() => - _print('start move camera, reason: ${event.reason.name}'), - MapEventClick() => _print('clicked: ${_formatPosition(event.point)}'), - MapEventDoubleClick() => - _print('double clicked: ${_formatPosition(event.point)}'), - MapEventLongClick() => - _print('long clicked: ${_formatPosition(event.point)}'), - MapEventSecondaryClick() => - _print('secondary clicked: ${_formatPosition(event.point)}'), - MapEventIdle() => _print('idle'), - MapEventCameraIdle() => _print('camera idle'), - }; + MapEventMapCreated() => _print('map created'), + MapEventStyleLoaded() => _print('style loaded'), + MapEventMoveCamera() => _print( + 'move camera: center ${_formatPosition(event.camera.center)}, ' + 'zoom ${event.camera.zoom.toStringAsFixed(2)}, ' + 'pitch ${event.camera.pitch.toStringAsFixed(2)}, ' + 'bearing ${event.camera.bearing.toStringAsFixed(2)}', + ), + MapEventStartMoveCamera() => _print( + 'start move camera, reason: ${event.reason.name}', + ), + MapEventClick() => _print('clicked: ${_formatPosition(event.point)}'), + MapEventDoubleClick() => _print( + 'double clicked: ${_formatPosition(event.point)}', + ), + MapEventLongClick() => _print( + 'long clicked: ${_formatPosition(event.point)}', + ), + MapEventSecondaryClick() => _print( + 'secondary clicked: ${_formatPosition(event.point)}', + ), + MapEventIdle() => _print('idle'), + MapEventCameraIdle() => _print('camera idle'), + }; void _print(String message) { debugPrint('[MapLibreMap] $message'); diff --git a/example/lib/extensions.dart b/example/lib/extensions.dart new file mode 100644 index 00000000..8c5b8acc --- /dev/null +++ b/example/lib/extensions.dart @@ -0,0 +1,10 @@ +import 'package:flutter/material.dart'; + +extension BuildContextExt on BuildContext { + void showSnackBox(String message) { + debugPrint(message); + ScaffoldMessenger.of(this) + ..hideCurrentSnackBar() + ..showSnackBar(SnackBar(content: Text(message))); + } +} diff --git a/example/lib/gestures_page.dart b/example/lib/gestures_page.dart index 7069f6f2..c700d63e 100644 --- a/example/lib/gestures_page.dart +++ b/example/lib/gestures_page.dart @@ -12,7 +12,7 @@ class GesturesPage extends StatefulWidget { } class _GesturesPageState extends State { - final _selections = Map.fromEntries( + final Map _selections = Map.fromEntries( Gestures.values.map((e) => MapEntry(e, false)), ); @@ -60,9 +60,4 @@ class _GesturesPageState extends State { } } -enum Gestures { - rotate, - pan, - zoom, - tilt; -} +enum Gestures { rotate, pan, zoom, tilt } diff --git a/example/lib/layers_marker_page.dart b/example/lib/layers_marker_page.dart index 209cc943..aa4e0f63 100644 --- a/example/lib/layers_marker_page.dart +++ b/example/lib/layers_marker_page.dart @@ -33,8 +33,9 @@ class _LayersMarkerPageState extends State { switch (event) { case MapEventStyleLoaded(): // add marker image to map - final response = - await http.get(Uri.parse(StyleLayersSymbolPage.imageUrl)); + final response = await http.get( + Uri.parse(StyleLayersSymbolPage.imageUrl), + ); final bytes = response.bodyBytes; await event.style.addImage('marker', bytes); setState(() { diff --git a/example/lib/layers_mixed_page.dart b/example/lib/layers_mixed_page.dart index 83bf4848..54931288 100644 --- a/example/lib/layers_mixed_page.dart +++ b/example/lib/layers_mixed_page.dart @@ -40,8 +40,9 @@ class _LayersMixedPageState extends State { OutlinedButton( onPressed: () { setState(() { - _circleColor = - Color(_random.nextInt(0xFFFFFF) + 0x7F000000); + _circleColor = Color( + _random.nextInt(0xFFFFFF) + 0x7F000000, + ); }); }, child: const Text( @@ -79,8 +80,10 @@ class _LayersMixedPageState extends State { ), Expanded( child: MapLibreMap( - options: - MapOptions(initZoom: 7, initCenter: Position(9.17, 47.68)), + options: MapOptions( + initZoom: 7, + initCenter: Position(9.17, 47.68), + ), onEvent: (event) { if (event case MapEventClick()) { setState(() { diff --git a/example/lib/layers_polyline_page.dart b/example/lib/layers_polyline_page.dart index 052d84e3..13498a34 100644 --- a/example/lib/layers_polyline_page.dart +++ b/example/lib/layers_polyline_page.dart @@ -14,11 +14,7 @@ class LayersPolylinePage extends StatefulWidget { class _LayersPolylinePageState extends State { final _polylines = [ LineString( - coordinates: [ - Position(9.17, 47.68), - Position(9.5, 48), - Position(9, 48), - ], + coordinates: [Position(9.17, 47.68), Position(9.5, 48), Position(9, 48)], ), ]; diff --git a/example/lib/main.dart b/example/lib/main.dart index 7c8c4a02..895be2c4 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -23,8 +23,8 @@ import 'package:maplibre_example/style_layers_raster_page.dart'; import 'package:maplibre_example/style_layers_symbol_page.dart'; import 'package:maplibre_example/styled_map_page.dart'; import 'package:maplibre_example/two_maps_page.dart'; -import 'package:maplibre_example/user_interface_page.dart'; import 'package:maplibre_example/user_location_page.dart'; +import 'package:maplibre_example/widget_layer_interactive_page.dart'; import 'package:maplibre_example/widget_layer_page.dart'; void main() { @@ -52,8 +52,9 @@ class MyApp extends StatelessWidget { EventsPage.location: (context) => const EventsPage(), StyledMapPage.location: (context) => const StyledMapPage(), UserLocationPage.location: (context) => const UserLocationPage(), - UserInterfacePage.location: (context) => const UserInterfacePage(), WidgetLayerPage.location: (context) => const WidgetLayerPage(), + WidgetLayerInteractivePage.location: (context) => + const WidgetLayerInteractivePage(), OfflinePage.location: (context) => const OfflinePage(), PermissionsPage.location: (context) => const PermissionsPage(), StyleLayersSymbolPage.location: (context) => diff --git a/example/lib/menu_page.dart b/example/lib/menu_page.dart index 6748fde2..44a238df 100644 --- a/example/lib/menu_page.dart +++ b/example/lib/menu_page.dart @@ -22,8 +22,8 @@ import 'package:maplibre_example/style_layers_raster_page.dart'; import 'package:maplibre_example/style_layers_symbol_page.dart'; import 'package:maplibre_example/styled_map_page.dart'; import 'package:maplibre_example/two_maps_page.dart'; -import 'package:maplibre_example/user_interface_page.dart'; import 'package:maplibre_example/user_location_page.dart'; +import 'package:maplibre_example/widget_layer_interactive_page.dart'; import 'package:maplibre_example/widget_layer_page.dart'; class MenuPage extends StatelessWidget { @@ -83,11 +83,6 @@ class MenuPage extends StatelessWidget { iconData: Icons.gps_fixed, location: UserLocationPage.location, ), - ItemCard( - label: 'User interface', - iconData: Icons.control_camera, - location: UserInterfacePage.location, - ), if (!kIsWeb) ItemCard( label: 'Offline', @@ -117,6 +112,11 @@ class MenuPage extends StatelessWidget { iconData: Icons.location_on, location: WidgetLayerPage.location, ), + ItemCard( + label: 'Interactive Widgets', + iconData: Icons.location_on, + location: WidgetLayerInteractivePage.location, + ), ItemCard( label: 'Circles', iconData: Icons.circle, @@ -212,7 +212,10 @@ class ItemCard extends StatelessWidget { onTap: () => Navigator.of(context).pushNamed(location), child: Column( mainAxisAlignment: MainAxisAlignment.center, - children: [Icon(iconData), Text(label, textAlign: TextAlign.center)], + children: [ + Icon(iconData), + Text(label, textAlign: TextAlign.center), + ], ), ), ); @@ -226,8 +229,6 @@ class SectionTitle extends StatelessWidget { @override Widget build(BuildContext context) { - return ListTile( - title: Text(label, style: const TextStyle(fontSize: 18)), - ); + return ListTile(title: Text(label, style: const TextStyle(fontSize: 18))); } } diff --git a/example/lib/offline_page.dart b/example/lib/offline_page.dart index f0387cde..9805e828 100644 --- a/example/lib/offline_page.dart +++ b/example/lib/offline_page.dart @@ -13,7 +13,8 @@ class OfflinePage extends StatefulWidget { } class _OfflinePageState extends State { - final _futureOfflineManager = OfflineManager.createInstance(); + final Future _futureOfflineManager = + OfflineManager.createInstance(); String? _downloadProgressWorld; String? _downloadProgressBregenz; final _boundsWorld = const LngLatBounds( @@ -74,9 +75,7 @@ class _OfflinePageState extends State { } on Exception catch (error, stacktrace) { _print(error.toString()); debugPrintStack(stackTrace: stacktrace); - setState( - () => _downloadProgressWorld = null, - ); + setState(() => _downloadProgressWorld = null); } }, icon: const Icon(Icons.download), @@ -102,7 +101,7 @@ class _OfflinePageState extends State { : Text(_downloadProgressWorld!), ), ListTile( - title: const Text('Download Bregenz'), + title: const Text('Download Region'), trailing: _downloadProgressBregenz == null ? Row( mainAxisSize: MainAxisSize.min, @@ -169,9 +168,7 @@ class _OfflinePageState extends State { final regions = await manager.mergeOfflineRegions( path: 'region.mbtiles', ); - _print( - 'offline regions merged:\n${regions.join('\n')}', - ); + _print('offline regions merged:\n${regions.join('\n')}'); } on Exception catch (error, stacktrace) { _print(error.toString()); debugPrintStack(stackTrace: stacktrace); @@ -182,8 +179,9 @@ class _OfflinePageState extends State { title: const Text('Get Offline Region'), onTap: () async { try { - final region = - await manager.getOfflineRegion(regionId: 1); + final region = await manager.getOfflineRegion( + regionId: 1, + ); _print('offline region: $region'); } on Exception catch (error, stacktrace) { _print(error.toString()); diff --git a/example/lib/permissions_page.dart b/example/lib/permissions_page.dart index edde31fd..e074717f 100644 --- a/example/lib/permissions_page.dart +++ b/example/lib/permissions_page.dart @@ -1,5 +1,6 @@ import 'package:flutter/material.dart'; import 'package:maplibre/maplibre.dart'; +import 'package:maplibre_example/extensions.dart'; @immutable class PermissionsPage extends StatefulWidget { @@ -29,9 +30,7 @@ class _PermissionsPageState extends State { ), ListTile( title: const Text('locationPermissionsGranted'), - subtitle: const Text( - 'Weather location permissions are granted.', - ), + subtitle: const Text('Weather location permissions are granted.'), trailing: _manager.locationPermissionsGranted.toIcon(), ), ListTile( @@ -44,16 +43,24 @@ class _PermissionsPageState extends State { ), ListTile( title: OutlinedButton( - child: const Text('requestLocationPermissions'), + child: const Text('Request Location Permissions'), onPressed: () async { try { final granted = await _manager.requestLocationPermissions( explanation: 'Show the user location on the map.', ); - debugPrint('requestLocationPermissions granted: $granted'); + if (context.mounted) { + if (granted) { + context.showSnackBox('Permission granted.'); + } else { + context.showSnackBox('Permission not granted.'); + } + } setState(() {}); // refresh the screen - } on Exception catch (error, stacktrace) { - debugPrint(error.toString()); + } catch (error, stacktrace) { + if (context.mounted) { + context.showSnackBox(error.toString()); + } debugPrintStack(stackTrace: stacktrace); } }, @@ -67,7 +74,7 @@ class _PermissionsPageState extends State { extension BoolExt on bool { Widget toIcon() => Icon( - this ? Icons.check_box : Icons.cancel, - color: this ? Colors.green : Colors.red, - ); + this ? Icons.check_box : Icons.cancel, + color: this ? Colors.green : Colors.red, + ); } diff --git a/example/lib/style_layers_circle_page.dart b/example/lib/style_layers_circle_page.dart index e66aa32f..2cb26927 100644 --- a/example/lib/style_layers_circle_page.dart +++ b/example/lib/style_layers_circle_page.dart @@ -58,7 +58,7 @@ const _circleStyleLayer = CircleStyleLayer( 1, 6, 50, - ] + ], ], // Color circle by earthquake magnitude 'circle-color': [ diff --git a/example/lib/style_layers_fill_page.dart b/example/lib/style_layers_fill_page.dart index b921831a..ba8ad62c 100644 --- a/example/lib/style_layers_fill_page.dart +++ b/example/lib/style_layers_fill_page.dart @@ -50,8 +50,9 @@ class _StyleLayersFillPageState extends State { } Future _onStyleLoaded(StyleController style) async { - final geojsonPolygon = - await rootBundle.loadString('assets/geojson/lake-constance.json'); + final geojsonPolygon = await rootBundle.loadString( + 'assets/geojson/lake-constance.json', + ); await style.addSource( GeoJsonSource(id: 'LakeConstance-Source', data: geojsonPolygon), ); diff --git a/example/lib/style_layers_hillshade_page.dart b/example/lib/style_layers_hillshade_page.dart index 449151c5..14405a77 100644 --- a/example/lib/style_layers_hillshade_page.dart +++ b/example/lib/style_layers_hillshade_page.dart @@ -21,8 +21,10 @@ class _StyleLayersHillshadePageState extends State { return Scaffold( appBar: AppBar(title: const Text('Hillshade Style Layer')), body: MapLibreMap( - options: - MapOptions(initCenter: Position(11.39085, 47.27574), initZoom: 10), + options: MapOptions( + initCenter: Position(11.39085, 47.27574), + initZoom: 10, + ), onStyleLoaded: _onStyleLoaded, ), ); diff --git a/example/lib/style_layers_line_page.dart b/example/lib/style_layers_line_page.dart index 9b038922..e7d4f744 100644 --- a/example/lib/style_layers_line_page.dart +++ b/example/lib/style_layers_line_page.dart @@ -26,9 +26,7 @@ class _StyleLayersLinePageState extends State { Future _onStyleLoaded(StyleController style) async { final geojsonLine = await rootBundle.loadString('assets/geojson/path.json'); - await style.addSource( - GeoJsonSource(id: 'Path', data: geojsonLine), - ); + await style.addSource(GeoJsonSource(id: 'Path', data: geojsonLine)); await style.addLayer( const LineStyleLayer( id: 'geojson-line', diff --git a/example/lib/style_layers_raster_page.dart b/example/lib/style_layers_raster_page.dart index 4f98d862..9b7bfcd0 100644 --- a/example/lib/style_layers_raster_page.dart +++ b/example/lib/style_layers_raster_page.dart @@ -45,7 +45,4 @@ class _StyleLayersRasterPageState extends State { } } -const _rasterStyleLayer = RasterStyleLayer( - id: _layerId, - sourceId: _sourceId, -); +const _rasterStyleLayer = RasterStyleLayer(id: _layerId, sourceId: _sourceId); diff --git a/example/lib/style_layers_symbol_page.dart b/example/lib/style_layers_symbol_page.dart index b11c48fb..89b2f900 100644 --- a/example/lib/style_layers_symbol_page.dart +++ b/example/lib/style_layers_symbol_page.dart @@ -23,8 +23,9 @@ class _StyleLayersSymbolPageState extends State { options: MapOptions(initZoom: 3, initCenter: Position(9.17, 47.68)), onStyleLoaded: (style) async { // load the image data - final response = - await http.get(Uri.parse(StyleLayersSymbolPage.imageUrl)); + final response = await http.get( + Uri.parse(StyleLayersSymbolPage.imageUrl), + ); final bytes = response.bodyBytes; // add the image to the map @@ -32,10 +33,7 @@ class _StyleLayersSymbolPageState extends State { // add some points as GeoJSON source to the map await style.addSource( - const GeoJsonSource( - id: 'points', - data: _geoJsonString, - ), + const GeoJsonSource(id: 'points', data: _geoJsonString), ); // display the image on the map diff --git a/example/lib/styled_map_page.dart b/example/lib/styled_map_page.dart index 8e525626..de963322 100644 --- a/example/lib/styled_map_page.dart +++ b/example/lib/styled_map_page.dart @@ -23,7 +23,12 @@ class _StyledMapPageState extends State { initZoom: 2, initStyle: MapStyles.maptilerStreets, ), - children: const [SourceAttribution()], + children: const [ + MapScalebar(), + SourceAttribution(), + MapControlButtons(showTrackLocation: true), + MapCompass(), + ], onStyleLoaded: (style) { style.setProjection(MapProjection.globe); }, diff --git a/example/lib/user_interface_page.dart b/example/lib/user_interface_page.dart deleted file mode 100644 index ffacfe83..00000000 --- a/example/lib/user_interface_page.dart +++ /dev/null @@ -1,39 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:maplibre/maplibre.dart'; -import 'package:maplibre_example/map_styles.dart'; - -@immutable -class UserInterfacePage extends StatefulWidget { - const UserInterfacePage({super.key}); - - static const location = '/ui'; - - @override - State createState() => _UserInterfacePageState(); -} - -class _UserInterfacePageState extends State { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar(title: const Text('User Interface')), - body: MapLibreMap( - options: MapOptions( - initZoom: 3, - initCenter: Position(9.17, 47.68), - initStyle: Theme.of(context).brightness == Brightness.light - ? MapStyles.protomapsLight - : MapStyles.protomapsDark, - ), - children: const [ - MapScalebar(), - SourceAttribution(), - MapControlButtons( - showTrackLocation: true, - ), - MapCompass(), - ], - ), - ); - } -} diff --git a/example/lib/user_location_page.dart b/example/lib/user_location_page.dart index ce787260..c8266cf8 100644 --- a/example/lib/user_location_page.dart +++ b/example/lib/user_location_page.dart @@ -1,5 +1,6 @@ import 'package:flutter/material.dart'; import 'package:maplibre/maplibre.dart'; +import 'package:maplibre_example/extensions.dart'; import 'package:maplibre_example/map_styles.dart'; @immutable @@ -31,11 +32,15 @@ class _UserLocationPageState extends State { children: [ OutlinedButton( onPressed: () async { - final granted = - await _permissionManager.requestLocationPermissions( - explanation: 'Show the user location on the map.', - ); - debugPrint(granted.toString()); + final granted = await _permissionManager + .requestLocationPermissions( + explanation: 'Show the user location on the map.', + ); + if (context.mounted) { + context.showSnackBox( + 'Permission ${granted ? 'granted' : 'not granted'}.', + ); + } }, child: const Text( 'Get permission', @@ -44,7 +49,16 @@ class _UserLocationPageState extends State { ), OutlinedButton( onPressed: () async { - await _controller.enableLocation(); + try { + await _controller.enableLocation(); + if (context.mounted) { + context.showSnackBox('Location enabled.'); + } + } catch (error) { + if (context.mounted) { + context.showSnackBox(error.toString()); + } + } }, child: const Text( 'Enable location', @@ -53,7 +67,16 @@ class _UserLocationPageState extends State { ), OutlinedButton( onPressed: () async { - await _controller.trackLocation(); + try { + await _controller.trackLocation(); + if (context.mounted) { + context.showSnackBox('Tracking location.'); + } + } catch (error) { + if (context.mounted) { + context.showSnackBox(error.toString()); + } + } }, child: const Text( 'Track location', diff --git a/example/lib/widget_layer_interactive_page.dart b/example/lib/widget_layer_interactive_page.dart new file mode 100644 index 00000000..d1b4f552 --- /dev/null +++ b/example/lib/widget_layer_interactive_page.dart @@ -0,0 +1,272 @@ +import 'dart:io'; + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:maplibre/maplibre.dart'; + +@immutable +class WidgetLayerInteractivePage extends StatefulWidget { + const WidgetLayerInteractivePage({super.key}); + static const location = '/widget-layer-interactive'; + + @override + State createState() => _WidgetLayerPageState(); +} + +class _WidgetLayerPageState extends State { + late final MapController _controller; + final GlobalKey _mapKey = GlobalKey(); + + final _markerPositions = [ + Position(-10, 0), + Position(-5, 0), + Position(0, 0), + Position(5, 0), + ]; + + Position? _originalPosition; + MapGestures _mapGestures = const MapGestures.all(); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('Interactive Widget Layer')), + body: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Padding( + padding: EdgeInsets.only(left: 16, bottom: 8), + child: Text( + 'Long tap map: Create marker.\nTap marker: Show dialog.\nLong tap marker: Show popup menu.\nTap+drag marker: Move marker.', + textAlign: TextAlign.left, + ), + ), + Expanded( + child: MapLibreMap( + key: _mapKey, + options: MapOptions( + initZoom: 3, + initCenter: Position(0, 0), + gestures: _mapGestures, + ), + onMapCreated: (controller) => _controller = controller, + onEvent: (event) async { + if (event is MapEventLongClick) { + final position = event.point; + _markerPositions.add(position); + + setState(() {}); + } + }, + children: [ + WidgetLayer( + allowInteraction: true, + markers: List.generate( + _markerPositions.length, + (index) => Marker( + size: const Size.square(50), + point: _markerPositions[index], + child: GestureDetector( + onTap: () => _onTap(index), + onLongPressStart: (details) => + _onLongPress(index, details), + onPanStart: (details) => _onPanStart(details, index), + onPanUpdate: (details) async => + _onPanUpdate(details, index), + onPanEnd: (details) async => _onPanEnd(details, index), + child: const Icon( + Icons.location_on, + color: Colors.red, + size: 50, + ), + ), + alignment: Alignment.bottomCenter, + ), + ), + ), + // display the UI widgets above the widget markers. + const MapScalebar(), + const SourceAttribution(), + const MapControlButtons(), + const MapCompass(), + ], + ), + ), + ], + ), + ); + } + + Future _toLngLat(Offset eventOffset) async { + // Only Android returns screen pixel, other platforms return logical pixels. + final pixelRatio = (!kIsWeb && Platform.isAndroid) + ? MediaQuery.devicePixelRatioOf(context) + : 1.0; + + final mapRenderBox = + _mapKey.currentContext?.findRenderObject() as RenderBox?; + + assert(mapRenderBox != null, 'RenderBox of Map should never be null'); + + final mapOffset = mapRenderBox!.localToGlobal(Offset.zero); + + final offset = Offset( + eventOffset.dx - mapOffset.dx, + eventOffset.dy - mapOffset.dy, + ); + + return _controller.toLngLat(offset.scale(pixelRatio, pixelRatio)); + } + + void _onLongPress(int index, LongPressStartDetails details) { + final offset = details.globalPosition; + + showMenu( + context: context, + position: RelativeRect.fromLTRB( + offset.dx, + offset.dy, + MediaQuery.of(context).size.width - offset.dx, + MediaQuery.of(context).size.height - offset.dy, + ), + items: [ + const PopupMenuItem(child: Text('Edit')), + PopupMenuItem( + onTap: () async { + final isConfirmed = await _showConfirmationDialogDelete(index); + + if (isConfirmed) { + _markerPositions.removeAt(index); + + setState(() {}); + } + }, + child: const Text('Delete'), + ), + ], + ); + } + + Future _onPanEnd(DragEndDetails details, int index) async { + final isAccepted = await _showConfirmationDialogMove(); + + if (!isAccepted) { + _markerPositions[index] = _originalPosition!; + } else { + final newPosition = await _toLngLat(details.globalPosition); + _markerPositions[index] = newPosition; + } + + _originalPosition = null; + + setState(() { + _mapGestures = const MapGestures.all(); + }); + } + + void _onPanStart(DragStartDetails details, int index) { + // Keep original position in case of discarded move + _originalPosition = _markerPositions[index].clone(); + + setState(() { + // Disable camera panning while a marker gets moved. + _mapGestures = const MapGestures.all(pan: false); + }); + } + + Future _onPanUpdate(DragUpdateDetails details, int index) async { + final newPosition = await _toLngLat(details.globalPosition); + _markerPositions[index] = newPosition; + + setState(() {}); + } + + void _onTap(int index) { + _showMarkerDetails(index); + } + + Future _showConfirmationDialogDelete(int index) async { + final isConfirmed = await showDialog( + context: context, + builder: (context) => AlertDialog( + title: Text('Delete marker [$index]?'), + actions: [ + TextButton( + style: TextButton.styleFrom( + textStyle: Theme.of(context).textTheme.labelLarge, + ), + child: const Text('Cancel'), + onPressed: () { + Navigator.of(context).pop(false); + }, + ), + TextButton( + style: TextButton.styleFrom( + textStyle: Theme.of(context).textTheme.labelLarge, + ), + child: const Text('Delete'), + onPressed: () { + Navigator.of(context).pop(true); + }, + ), + ], + ), + ); + + return isConfirmed ?? false; + } + + Future _showConfirmationDialogMove() async { + final isConfirmed = await showDialog( + context: context, + builder: (context) => AlertDialog( + title: const Text('Accept new position?'), + actions: [ + TextButton( + style: TextButton.styleFrom( + textStyle: Theme.of(context).textTheme.labelLarge, + ), + child: const Text('Discard'), + onPressed: () { + Navigator.of(context).pop(false); + }, + ), + TextButton( + style: TextButton.styleFrom( + textStyle: Theme.of(context).textTheme.labelLarge, + ), + child: const Text('Accept'), + onPressed: () { + Navigator.of(context).pop(true); + }, + ), + ], + ), + ); + + return isConfirmed ?? false; + } + + Future _showMarkerDetails(int index) async { + await showDialog( + context: context, + builder: (context) => AlertDialog( + title: Text('Details marker with index: $index'), + content: Text('Show here the details of Marker with index $index'), + actions: [ + TextButton( + style: TextButton.styleFrom( + textStyle: Theme.of(context).textTheme.labelLarge, + ), + child: const Text('Cancel'), + onPressed: () { + Navigator.of(context).pop(); + }, + ), + ], + ), + ); + + return; + } +} diff --git a/example/lib/widget_layer_page.dart b/example/lib/widget_layer_page.dart index c482738e..9747deee 100644 --- a/example/lib/widget_layer_page.dart +++ b/example/lib/widget_layer_page.dart @@ -17,10 +17,7 @@ class _WidgetLayerPageState extends State { return Scaffold( appBar: AppBar(title: const Text('Widget Layer')), body: MapLibreMap( - options: MapOptions( - initZoom: 3, - initCenter: Position(0, 0), - ), + options: MapOptions(initZoom: 3, initCenter: Position(0, 0)), children: [ WidgetLayer( markers: [ @@ -28,31 +25,43 @@ class _WidgetLayerPageState extends State { Marker( size: const Size.square(50), point: Position(-10, 0), - child: - const Icon(Icons.location_on, color: Colors.red, size: 50), + child: const Icon( + Icons.location_on, + color: Colors.red, + size: 50, + ), alignment: Alignment.bottomCenter, ), Marker( size: const Size.square(50), point: Position(-5, 0), - child: - const Icon(Icons.location_on, color: Colors.red, size: 50), + child: const Icon( + Icons.location_on, + color: Colors.red, + size: 50, + ), alignment: Alignment.bottomCenter, rotate: true, ), Marker( size: const Size.square(50), point: Position(0, 0), - child: - const Icon(Icons.location_on, color: Colors.red, size: 50), + child: const Icon( + Icons.location_on, + color: Colors.red, + size: 50, + ), alignment: Alignment.bottomCenter, flat: true, ), Marker( size: const Size.square(50), point: Position(5, 0), - child: - const Icon(Icons.location_on, color: Colors.red, size: 50), + child: const Icon( + Icons.location_on, + color: Colors.red, + size: 50, + ), alignment: Alignment.bottomCenter, flat: true, rotate: true, diff --git a/example/linux/CMakeLists.txt b/example/linux/CMakeLists.txt index 1cd0e255..9a62170c 100644 --- a/example/linux/CMakeLists.txt +++ b/example/linux/CMakeLists.txt @@ -1,5 +1,5 @@ # Project-level configuration. -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.13) project(runner LANGUAGES CXX) # The name of the executable created for the application. Change this to change @@ -7,7 +7,7 @@ project(runner LANGUAGES CXX) set(BINARY_NAME "maplibre_example") # The unique GTK application identifier for this application. See: # https://wiki.gnome.org/HowDoI/ChooseApplicationID -set(APPLICATION_ID "com.example.maplibre_example") +set(APPLICATION_ID "com.github.josxha.maplibre") # Explicitly opt in to modern CMake behaviors to avoid warnings with recent # versions of CMake. @@ -54,25 +54,8 @@ add_subdirectory(${FLUTTER_MANAGED_DIR}) find_package(PkgConfig REQUIRED) pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) -add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}") - -# Define the application target. To change its name, change BINARY_NAME above, -# not the value here, or `flutter run` will no longer work. -# -# Any new source files that you add to the application should be added here. -add_executable(${BINARY_NAME} - "main.cc" - "my_application.cc" - "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" -) - -# Apply the standard set of build settings. This can be removed for applications -# that need different build settings. -apply_standard_settings(${BINARY_NAME}) - -# Add dependency libraries. Add any application-specific dependencies here. -target_link_libraries(${BINARY_NAME} PRIVATE flutter) -target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK) +# Application build; see runner/CMakeLists.txt. +add_subdirectory("runner") # Run the Flutter tool portions of the build. This must not be removed. add_dependencies(${BINARY_NAME} flutter_assemble) @@ -86,6 +69,8 @@ set_target_properties(${BINARY_NAME} RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run" ) +# Enable the test target. +set(include_maplibre_tests TRUE) # Generated plugin build rules, which manage building the plugins and adding # them to the application. diff --git a/example/linux/runner/CMakeLists.txt b/example/linux/runner/CMakeLists.txt new file mode 100644 index 00000000..e97dabc7 --- /dev/null +++ b/example/linux/runner/CMakeLists.txt @@ -0,0 +1,26 @@ +cmake_minimum_required(VERSION 3.13) +project(runner LANGUAGES CXX) + +# Define the application target. To change its name, change BINARY_NAME in the +# top-level CMakeLists.txt, not the value here, or `flutter run` will no longer +# work. +# +# Any new source files that you add to the application should be added here. +add_executable(${BINARY_NAME} + "main.cc" + "my_application.cc" + "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" +) + +# Apply the standard set of build settings. This can be removed for applications +# that need different build settings. +apply_standard_settings(${BINARY_NAME}) + +# Add preprocessor definitions for the application ID. +add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}") + +# Add dependency libraries. Add any application-specific dependencies here. +target_link_libraries(${BINARY_NAME} PRIVATE flutter) +target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK) + +target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") diff --git a/example/linux/main.cc b/example/linux/runner/main.cc similarity index 100% rename from example/linux/main.cc rename to example/linux/runner/main.cc diff --git a/example/linux/my_application.cc b/example/linux/runner/my_application.cc similarity index 93% rename from example/linux/my_application.cc rename to example/linux/runner/my_application.cc index 4236a780..6f25b45e 100644 --- a/example/linux/my_application.cc +++ b/example/linux/runner/my_application.cc @@ -117,6 +117,12 @@ static void my_application_class_init(MyApplicationClass* klass) { static void my_application_init(MyApplication* self) {} MyApplication* my_application_new() { + // Set the program name to the application ID, which helps various systems + // like GTK and desktop environments map this running application to its + // corresponding .desktop file. This ensures better integration by allowing + // the application to be recognized beyond its binary name. + g_set_prgname(APPLICATION_ID); + return MY_APPLICATION(g_object_new(my_application_get_type(), "application-id", APPLICATION_ID, "flags", G_APPLICATION_NON_UNIQUE, diff --git a/example/linux/my_application.h b/example/linux/runner/my_application.h similarity index 100% rename from example/linux/my_application.h rename to example/linux/runner/my_application.h diff --git a/example/macos/Podfile b/example/macos/Podfile deleted file mode 100644 index c795730d..00000000 --- a/example/macos/Podfile +++ /dev/null @@ -1,43 +0,0 @@ -platform :osx, '10.14' - -# CocoaPods analytics sends network stats synchronously affecting flutter build latency. -ENV['COCOAPODS_DISABLE_STATS'] = 'true' - -project 'Runner', { - 'Debug' => :debug, - 'Profile' => :release, - 'Release' => :release, -} - -def flutter_root - generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) - unless File.exist?(generated_xcode_build_settings_path) - raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" - end - - File.foreach(generated_xcode_build_settings_path) do |line| - matches = line.match(/FLUTTER_ROOT\=(.*)/) - return matches[1].strip if matches - end - raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" -end - -require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) - -flutter_macos_podfile_setup - -target 'Runner' do - use_frameworks! - use_modular_headers! - - flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) - target 'RunnerTests' do - inherit! :search_paths - end -end - -post_install do |installer| - installer.pods_project.targets.each do |target| - flutter_additional_macos_build_settings(target) - end -end diff --git a/example/macos/Runner.xcodeproj/project.pbxproj b/example/macos/Runner.xcodeproj/project.pbxproj index 5b7c54a3..4111381c 100644 --- a/example/macos/Runner.xcodeproj/project.pbxproj +++ b/example/macos/Runner.xcodeproj/project.pbxproj @@ -27,6 +27,7 @@ 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; + 78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */ = {isa = PBXBuildFile; productRef = 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -92,6 +93,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -216,6 +218,9 @@ 33CC11202044C79F0003C045 /* PBXTargetDependency */, ); name = Runner; + packageProductDependencies = ( + 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */, + ); productName = Runner; productReference = 33CC10ED2044A3C60003C045 /* maplibre_example.app */; productType = "com.apple.product-type.application"; @@ -260,6 +265,9 @@ Base, ); mainGroup = 33CC10E42044A3C60003C045; + packageReferences = ( + 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */, + ); productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; projectDirPath = ""; projectRoot = ""; @@ -385,7 +393,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.example.maplibreExample.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.github.josxha.maplibreExample.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/maplibre_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/maplibre_example"; @@ -399,7 +407,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.example.maplibreExample.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.github.josxha.maplibreExample.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/maplibre_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/maplibre_example"; @@ -413,7 +421,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.example.maplibreExample.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.github.josxha.maplibreExample.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/maplibre_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/maplibre_example"; @@ -700,6 +708,20 @@ defaultConfigurationName = Release; }; /* End XCConfigurationList section */ + +/* Begin XCLocalSwiftPackageReference section */ + 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */ = { + isa = XCLocalSwiftPackageReference; + relativePath = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage; + }; +/* End XCLocalSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */ = { + isa = XCSwiftPackageProductDependency; + productName = FlutterGeneratedPluginSwiftPackage; + }; +/* End XCSwiftPackageProductDependency section */ }; rootObject = 33CC10E52044A3C60003C045 /* Project object */; } diff --git a/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index f344c149..5f29c403 100644 --- a/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -5,6 +5,24 @@ + + + + + + + + + + diff --git a/example/macos/Runner/AppDelegate.swift b/example/macos/Runner/AppDelegate.swift index d53ef643..b3c17614 100644 --- a/example/macos/Runner/AppDelegate.swift +++ b/example/macos/Runner/AppDelegate.swift @@ -1,9 +1,13 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true } + + override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { + return true + } } diff --git a/example/macos/Runner/Configs/AppInfo.xcconfig b/example/macos/Runner/Configs/AppInfo.xcconfig index 379e47a7..5ea96073 100644 --- a/example/macos/Runner/Configs/AppInfo.xcconfig +++ b/example/macos/Runner/Configs/AppInfo.xcconfig @@ -8,7 +8,7 @@ PRODUCT_NAME = maplibre_example // The application's bundle identifier -PRODUCT_BUNDLE_IDENTIFIER = com.example.maplibreExample +PRODUCT_BUNDLE_IDENTIFIER = com.github.josxha.maplibreExample // The copyright displayed in application information -PRODUCT_COPYRIGHT = Copyright © 2024 com.example. All rights reserved. +PRODUCT_COPYRIGHT = Copyright © 2025 com.github.josxha. All rights reserved. diff --git a/example/macos/RunnerTests/RunnerTests.swift b/example/macos/RunnerTests/RunnerTests.swift index 61f3bd1f..ad3cbcad 100644 --- a/example/macos/RunnerTests/RunnerTests.swift +++ b/example/macos/RunnerTests/RunnerTests.swift @@ -2,11 +2,29 @@ import Cocoa import FlutterMacOS import XCTest +// If your plugin has been explicitly set to "type: .dynamic" in the Package.swift, +// you will need to add your plugin as a dependency of RunnerTests within Xcode. + +@testable import maplibre + +// This demonstrates a simple unit test of the Swift portion of this plugin's implementation. +// +// See https://developer.apple.com/documentation/xctest for more information about using XCTest. + class RunnerTests: XCTestCase { - func testExample() { - // If you add code to the Runner application, consider adding tests here. - // See https://developer.apple.com/documentation/xctest for more information about using XCTest. + func testGetPlatformVersion() { + let plugin = MaplibrePlugin() + + let call = FlutterMethodCall(methodName: "getPlatformVersion", arguments: []) + + let resultExpectation = expectation(description: "result block must be called.") + plugin.handle(call) { result in + XCTAssertEqual(result as! String, + "macOS " + ProcessInfo.processInfo.operatingSystemVersionString) + resultExpectation.fulfill() + } + waitForExpectations(timeout: 1) } } diff --git a/example/pubspec.yaml b/example/pubspec.yaml index fdf71df8..66165bc0 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -4,8 +4,8 @@ publish_to: 'none' version: 1.0.0+1 environment: - sdk: '>=3.6.0 <4.0.0' - flutter: '>=3.27.0' + sdk: '>=3.8.0 <4.0.0' + flutter: '>=3.32.0' dependencies: flutter: @@ -13,20 +13,32 @@ dependencies: flutter_web_plugins: sdk: flutter geotypes: ^0.0.2 - go_router: ^14.2.2 + go_router: ^15.1.2 http: ^1.2.2 maplibre: path: ../ dev_dependencies: + flutter_launcher_icons: ^0.14.3 flutter_test: sdk: flutter integration_test: sdk: flutter mocktail: ^1.0.4 - very_good_analysis: ^7.0.0 + very_good_analysis: ^9.0.0 flutter: uses-material-design: true assets: - - assets/geojson/ \ No newline at end of file + - assets/geojson/ + +flutter_launcher_icons: + android: "ic_launcher" + ios: true + image_path: "../doc/logo.png" + min_sdk_android: 21 + web: + generate: true + image_path: "../doc/logo.png" + background_color: "#285DAA" + theme_color: "#285DAA" \ No newline at end of file diff --git a/example/web/favicon.png b/example/web/favicon.png new file mode 100644 index 00000000..0a11ed30 Binary files /dev/null and b/example/web/favicon.png differ diff --git a/example/web/icons/Icon-192.png b/example/web/icons/Icon-192.png index b749bfef..b816966b 100644 Binary files a/example/web/icons/Icon-192.png and b/example/web/icons/Icon-192.png differ diff --git a/example/web/icons/Icon-512.png b/example/web/icons/Icon-512.png index 88cfd48d..f8929f82 100644 Binary files a/example/web/icons/Icon-512.png and b/example/web/icons/Icon-512.png differ diff --git a/example/web/icons/Icon-maskable-192.png b/example/web/icons/Icon-maskable-192.png index eb9b4d76..b816966b 100644 Binary files a/example/web/icons/Icon-maskable-192.png and b/example/web/icons/Icon-maskable-192.png differ diff --git a/example/web/icons/Icon-maskable-512.png b/example/web/icons/Icon-maskable-512.png index d69c5669..f8929f82 100644 Binary files a/example/web/icons/Icon-maskable-512.png and b/example/web/icons/Icon-maskable-512.png differ diff --git a/example/web/index.html b/example/web/index.html index cc04db5e..32c1b4a2 100644 --- a/example/web/index.html +++ b/example/web/index.html @@ -18,10 +18,10 @@ - + - + @@ -33,7 +33,7 @@ - MapLibre Example + MapLibre diff --git a/example/web/manifest.json b/example/web/manifest.json index 6de0e0a7..a516203d 100644 --- a/example/web/manifest.json +++ b/example/web/manifest.json @@ -3,8 +3,8 @@ "short_name": "maplibre_example", "start_url": ".", "display": "standalone", - "background_color": "#0175C2", - "theme_color": "#0175C2", + "background_color": "#285DAA", + "theme_color": "#285DAA", "description": "A new Flutter project.", "orientation": "portrait-primary", "prefer_related_applications": false, @@ -32,4 +32,4 @@ "purpose": "maskable" } ] -} +} \ No newline at end of file diff --git a/example/windows/CMakeLists.txt b/example/windows/CMakeLists.txt index 6eff0632..f0988fff 100644 --- a/example/windows/CMakeLists.txt +++ b/example/windows/CMakeLists.txt @@ -52,6 +52,8 @@ add_subdirectory(${FLUTTER_MANAGED_DIR}) # Application build; see runner/CMakeLists.txt. add_subdirectory("runner") +# Enable the test target. +set(include_maplibre_tests TRUE) # Generated plugin build rules, which manage building the plugins and adding # them to the application. diff --git a/example/windows/runner/Runner.rc b/example/windows/runner/Runner.rc index ed91daf7..92fa6455 100644 --- a/example/windows/runner/Runner.rc +++ b/example/windows/runner/Runner.rc @@ -89,11 +89,11 @@ BEGIN BEGIN BLOCK "040904e4" BEGIN - VALUE "CompanyName", "com.example" "\0" + VALUE "CompanyName", "com.github.josxha" "\0" VALUE "FileDescription", "maplibre_example" "\0" VALUE "FileVersion", VERSION_AS_STRING "\0" VALUE "InternalName", "maplibre_example" "\0" - VALUE "LegalCopyright", "Copyright (C) 2024 com.example. All rights reserved." "\0" + VALUE "LegalCopyright", "Copyright (C) 2025 com.github.josxha. All rights reserved." "\0" VALUE "OriginalFilename", "maplibre_example.exe" "\0" VALUE "ProductName", "maplibre_example" "\0" VALUE "ProductVersion", VERSION_AS_STRING "\0" diff --git a/example/windows/runner/runner.exe.manifest b/example/windows/runner/runner.exe.manifest index a42ea768..153653e8 100644 --- a/example/windows/runner/runner.exe.manifest +++ b/example/windows/runner/runner.exe.manifest @@ -9,12 +9,6 @@ - - - - - - diff --git a/ios/Resources/PrivacyInfo.xcprivacy b/ios/Resources/PrivacyInfo.xcprivacy new file mode 100644 index 00000000..a34b7e2e --- /dev/null +++ b/ios/Resources/PrivacyInfo.xcprivacy @@ -0,0 +1,14 @@ + + + + + NSPrivacyTrackingDomains + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + NSPrivacyTracking + + + diff --git a/ios/maplibre/Package.swift b/ios/maplibre/Package.swift new file mode 100644 index 00000000..ed2f7f42 --- /dev/null +++ b/ios/maplibre/Package.swift @@ -0,0 +1,32 @@ +// swift-tools-version: 5.9 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "maplibre", + platforms: [ + .iOS("12.0") + ], + products: [ + .library(name: "maplibre", targets: ["maplibre"]) + ], + dependencies: [], + targets: [ + .target( + name: "maplibre", + dependencies: [], + resources: [ + // If your plugin requires a privacy manifest, for example if it uses any required + // reason APIs, update the PrivacyInfo.xcprivacy file to describe your plugin's + // privacy impact, and then uncomment these lines. For more information, see + // https://developer.apple.com/documentation/bundleresources/privacy_manifest_files + // .process("PrivacyInfo.xcprivacy"), + + // If you have other resources that need to be bundled with your plugin, refer to + // the following instructions to add them: + // https://developer.apple.com/documentation/xcode/bundling-resources-with-a-swift-package + ] + ) + ] +) diff --git a/ios/maplibre/Sources/maplibre/MaplibrePlugin.swift b/ios/maplibre/Sources/maplibre/MaplibrePlugin.swift new file mode 100644 index 00000000..15e2b66c --- /dev/null +++ b/ios/maplibre/Sources/maplibre/MaplibrePlugin.swift @@ -0,0 +1,19 @@ +import Flutter +import UIKit + +public class MaplibrePlugin: NSObject, FlutterPlugin { + public static func register(with registrar: FlutterPluginRegistrar) { + let channel = FlutterMethodChannel(name: "maplibre", binaryMessenger: registrar.messenger()) + let instance = MaplibrePlugin() + registrar.addMethodCallDelegate(instance, channel: channel) + } + + public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) { + switch call.method { + case "getPlatformVersion": + result("iOS " + UIDevice.current.systemVersion) + default: + result(FlutterMethodNotImplemented) + } + } +} diff --git a/ios/maplibre/Sources/maplibre/PrivacyInfo.xcprivacy b/ios/maplibre/Sources/maplibre/PrivacyInfo.xcprivacy new file mode 100644 index 00000000..a34b7e2e --- /dev/null +++ b/ios/maplibre/Sources/maplibre/PrivacyInfo.xcprivacy @@ -0,0 +1,14 @@ + + + + + NSPrivacyTrackingDomains + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + NSPrivacyTracking + + + diff --git a/jnigen.yml b/jnigen.yml index f0b60630..3a3723db 100644 --- a/jnigen.yml +++ b/jnigen.yml @@ -3,22 +3,7 @@ maven_downloads: # jar_only_deps: - 'org.maplibre.gl:android-sdk-geojson:6.0.1' preamble: | - // Autogenerated by jnigen. DO NOT EDIT! - - // ignore_for_file: document_ignores - // ignore_for_file: avoid_catches_without_on_clauses - // ignore_for_file: public_member_api_docs - // ignore_for_file: require_trailing_commas - // ignore_for_file: unnecessary_raw_strings - // ignore_for_file: avoid_field_initializers_in_const_classes - // ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes - // ignore_for_file: sort_constructors_first - // ignore_for_file: avoid_positional_boolean_parameters - // ignore_for_file: sort_unnamed_constructors_first - // ignore_for_file: always_use_package_imports - // ignore_for_file: use_late_for_private_fields_and_variables - // ignore_for_file: one_member_abstracts - // ignore_for_file: always_put_required_named_parameters_first + // ignore_for_file: type=lint android_sdk_config: add_gradle_deps: true android_example: 'example/' @@ -48,8 +33,7 @@ classes: - 'org.maplibre.android.location' - 'org.maplibre.android.log' - 'org.maplibre.android.maps' -# error - 'org.maplibre.android.offline' -# - 'org.maplibre.android.offline.OfflineGeometryRegionDefinition' + - 'org.maplibre.android.offline.OfflineGeometryRegionDefinition' - 'org.maplibre.android.offline.OfflineManager' - 'org.maplibre.android.offline.OfflineRegion' - 'org.maplibre.android.offline.OfflineRegionDefinition' diff --git a/lib/src/android_platform_view_mode.dart b/lib/src/android_platform_view_mode.dart index 8daffcfe..d6a0a086 100644 --- a/lib/src/android_platform_view_mode.dart +++ b/lib/src/android_platform_view_mode.dart @@ -19,5 +19,5 @@ enum AndroidPlatformViewMode { hc, /// Always use [Virtual Display](https://github.com/flutter/flutter/blob/master/docs/platforms/android/Virtual-Display.md). - vd; + vd, } diff --git a/lib/src/layer/circle_layer.dart b/lib/src/layer/circle_layer.dart index addee7fb..18dc7f5f 100644 --- a/lib/src/layer/circle_layer.dart +++ b/lib/src/layer/circle_layer.dart @@ -39,22 +39,22 @@ class CircleLayer extends Layer { @override StyleLayer createStyleLayer(int index) => CircleStyleLayer( - id: getLayerId(index), - sourceId: getSourceId(index), - paint: getPaint(), - layout: getLayout(), - ); + id: getLayerId(index), + sourceId: getSourceId(index), + paint: getPaint(), + layout: getLayout(), + ); @override Map getPaint() => { - 'circle-radius': radius, - 'circle-color': color.toHexString(alpha: false), - 'circle-blur': blur, - 'circle-opacity': opacity, - 'circle-stroke-width': strokeWidth, - 'circle-stroke-color': strokeColor.toHexString(alpha: false), - 'circle-stroke-opacity': strokeOpacity, - }; + 'circle-radius': radius, + 'circle-color': color.toHexString(alpha: false), + 'circle-blur': blur, + 'circle-opacity': opacity, + 'circle-stroke-width': strokeWidth, + 'circle-stroke-color': strokeColor.toHexString(alpha: false), + 'circle-stroke-opacity': strokeOpacity, + }; @override Map getLayout() => {}; @@ -73,11 +73,11 @@ class CircleLayer extends Layer { @override int get hashCode => Object.hash( - super.hashCode, - radius, - color, - blur, - strokeWidth, - strokeColor, - ); + super.hashCode, + radius, + color, + blur, + strokeWidth, + strokeColor, + ); } diff --git a/lib/src/layer/layer.dart b/lib/src/layer/layer.dart index 2a2dc48c..c6331556 100644 --- a/lib/src/layer/layer.dart +++ b/lib/src/layer/layer.dart @@ -15,9 +15,7 @@ part 'polyline_layer.dart'; /// {@category Layers} @immutable sealed class Layer> { - const Layer._({ - required this.list, - }); + const Layer._({required this.list}); /// The [List] of layers. final List list; diff --git a/lib/src/layer/marker_layer.dart b/lib/src/layer/marker_layer.dart index 62b6ef2f..a6dc29a3 100644 --- a/lib/src/layer/marker_layer.dart +++ b/lib/src/layer/marker_layer.dart @@ -188,55 +188,55 @@ class MarkerLayer extends Layer { @override Map getPaint() => { - 'icon-opacity': iconOpacity, - 'icon-color': iconColor.toHexString(), - 'icon-halo-color': iconHaloColor.toHexString(alpha: false), - 'icon-halo-width': iconHaloWidth, - 'icon-halo-blur': iconHaloBlur, - 'text-opacity': iconOpacity, - 'text-color': textColor.toHexString(alpha: false), - 'text-halo-color': textHaloColor.toHexString(), - 'text-halo-width': textHaloWidth, - 'text-halo-blur': textHaloBlur, - 'text-translate': textTranslate, - }; + 'icon-opacity': iconOpacity, + 'icon-color': iconColor.toHexString(), + 'icon-halo-color': iconHaloColor.toHexString(alpha: false), + 'icon-halo-width': iconHaloWidth, + 'icon-halo-blur': iconHaloBlur, + 'text-opacity': iconOpacity, + 'text-color': textColor.toHexString(alpha: false), + 'text-halo-color': textHaloColor.toHexString(), + 'text-halo-width': textHaloWidth, + 'text-halo-blur': textHaloBlur, + 'text-translate': textTranslate, + }; @override Map getLayout() => { - 'icon-allow-overlap': iconAllowOverlap, - 'icon-ignore-placement': iconIgnorePlacement, - 'icon-optional': iconOptional, - 'icon-size': iconSize, - if (iconImage case final String image) 'icon-image': image, - 'icon-rotate': iconRotate, - 'icon-padding': iconPadding, - 'icon-keep-upright': iconKeepUpright, - 'icon-offset': iconOffset, - 'icon-anchor': iconAnchor.name, - 'text-field': textField, - 'text-font': textFont, - 'text-size': textSize, - 'text-max-width': textMaxWidth, - 'text-line-height': textLineHeight, - 'text-letter-spacing': textLetterSpacing, - 'text-radial-offset': textRadialOffset, - 'text-max-angle': textMaxAngle, - 'text-rotate': textRotate, - 'text-padding': textPadding, - 'text-keep-upright': textKeepUpright, - 'text-offset': textOffset, - 'text-allow-overlap': textAllowOverlap, - 'text-ignore-placement': textIgnorePlacement, - 'text-optional': textOptional, - }; + 'icon-allow-overlap': iconAllowOverlap, + 'icon-ignore-placement': iconIgnorePlacement, + 'icon-optional': iconOptional, + 'icon-size': iconSize, + if (iconImage case final String image) 'icon-image': image, + 'icon-rotate': iconRotate, + 'icon-padding': iconPadding, + 'icon-keep-upright': iconKeepUpright, + 'icon-offset': iconOffset, + 'icon-anchor': iconAnchor.name, + 'text-field': textField, + 'text-font': textFont, + 'text-size': textSize, + 'text-max-width': textMaxWidth, + 'text-line-height': textLineHeight, + 'text-letter-spacing': textLetterSpacing, + 'text-radial-offset': textRadialOffset, + 'text-max-angle': textMaxAngle, + 'text-rotate': textRotate, + 'text-padding': textPadding, + 'text-keep-upright': textKeepUpright, + 'text-offset': textOffset, + 'text-allow-overlap': textAllowOverlap, + 'text-ignore-placement': textIgnorePlacement, + 'text-optional': textOptional, + }; @override StyleLayer createStyleLayer(int index) => SymbolStyleLayer( - id: getLayerId(index), - sourceId: getSourceId(index), - paint: getPaint(), - layout: getLayout(), - ); + id: getLayerId(index), + sourceId: getSourceId(index), + paint: getPaint(), + layout: getLayout(), + ); @override bool operator ==(Object other) => @@ -284,45 +284,45 @@ class MarkerLayer extends Layer { @override int get hashCode => Object.hashAll([ - super.hashCode, - iconAllowOverlap, - iconIgnorePlacement, - iconOptional, - iconSize, - iconImage, - iconRotate, - iconPadding, - iconKeepUpright, - iconOffset, - textField, - textFont, - textSize, - textMaxWidth, - textLineHeight, - textLetterSpacing, - textRadialOffset, - textMaxAngle, - textRotate, - textPadding, - textKeepUpright, - textOffset, - textAllowOverlap, - textIgnorePlacement, - textOptional, - iconOpacity, - iconColor, - iconHaloColor, - iconHaloWidth, - iconHaloBlur, - iconTranslate, - textOpacity, - textColor, - textHaloColor, - textHaloWidth, - textHaloBlur, - textTranslate, - iconAnchor, - ]); + super.hashCode, + iconAllowOverlap, + iconIgnorePlacement, + iconOptional, + iconSize, + iconImage, + iconRotate, + iconPadding, + iconKeepUpright, + iconOffset, + textField, + textFont, + textSize, + textMaxWidth, + textLineHeight, + textLetterSpacing, + textRadialOffset, + textMaxAngle, + textRotate, + textPadding, + textKeepUpright, + textOffset, + textAllowOverlap, + textIgnorePlacement, + textOptional, + iconOpacity, + iconColor, + iconHaloColor, + iconHaloWidth, + iconHaloBlur, + iconTranslate, + textOpacity, + textColor, + textHaloColor, + textHaloWidth, + textHaloBlur, + textTranslate, + iconAnchor, + ]); } /// Part of the icon placed closest to the anchor. diff --git a/lib/src/layer/polygon_layer.dart b/lib/src/layer/polygon_layer.dart index ddf0bc13..6752b5ae 100644 --- a/lib/src/layer/polygon_layer.dart +++ b/lib/src/layer/polygon_layer.dart @@ -23,21 +23,21 @@ class PolygonLayer extends Layer { @override Map getPaint() => { - 'fill-color': color.toHexString(alpha: false), - 'fill-opacity': opacity, - 'fill-outline-color': outlineColor.toHexString(alpha: false), - }; + 'fill-color': color.toHexString(alpha: false), + 'fill-opacity': opacity, + 'fill-outline-color': outlineColor.toHexString(alpha: false), + }; @override Map getLayout() => {}; @override StyleLayer createStyleLayer(int index) => FillStyleLayer( - id: getLayerId(index), - sourceId: getSourceId(index), - paint: getPaint(), - layout: getLayout(), - ); + id: getLayerId(index), + sourceId: getSourceId(index), + paint: getPaint(), + layout: getLayout(), + ); @override bool operator ==(Object other) => diff --git a/lib/src/layer/polyline_layer.dart b/lib/src/layer/polyline_layer.dart index e2125bdf..aa14d1c3 100644 --- a/lib/src/layer/polyline_layer.dart +++ b/lib/src/layer/polyline_layer.dart @@ -36,24 +36,23 @@ class PolylineLayer extends Layer { @override Map getPaint() => { - 'line-color': color.toHexString(alpha: false), - 'line-opacity': opacity, - 'line-width': width, - 'line-gap-width': gapWidth, - if (dashArray case final List dashArray) - 'line-dasharray': dashArray, - }; + 'line-color': color.toHexString(alpha: false), + 'line-opacity': opacity, + 'line-width': width, + 'line-gap-width': gapWidth, + if (dashArray case final List dashArray) 'line-dasharray': dashArray, + }; @override Map getLayout() => {}; @override StyleLayer createStyleLayer(int index) => LineStyleLayer( - id: getLayerId(index), - sourceId: getSourceId(index), - paint: getPaint(), - layout: getLayout(), - ); + id: getLayerId(index), + sourceId: getSourceId(index), + paint: getPaint(), + layout: getLayout(), + ); @override bool operator ==(Object other) => diff --git a/lib/src/lng_lat_bounds.dart b/lib/src/lng_lat_bounds.dart index 50936cf0..c3db3c62 100644 --- a/lib/src/lng_lat_bounds.dart +++ b/lib/src/lng_lat_bounds.dart @@ -1,4 +1,5 @@ import 'package:flutter/foundation.dart'; +import 'package:geotypes/geotypes.dart'; /// LatLng bounds class. /// @@ -13,6 +14,48 @@ class LngLatBounds { required this.latitudeNorth, }); + /// Create a new [LngLatBounds] from a list of [Position] points. This + /// calculates the bounding box of the provided points. + factory LngLatBounds.fromPoints(List points) { + assert( + points.isNotEmpty, + 'LngLatBounds cannot be created with an empty List', + ); + + // Initialize bounds with max values. + var minX = maxLongitude; + var maxX = minLongitude; + var minY = maxLatitude; + var maxY = minLatitude; + + // Find the largest and smallest latitude and longitude + for (final point in points) { + if (point.lng < minX) minX = point.lng.toDouble(); + if (point.lng > maxX) maxX = point.lng.toDouble(); + if (point.lat < minY) minY = point.lat.toDouble(); + if (point.lat > maxY) maxY = point.lat.toDouble(); + } + + return LngLatBounds( + latitudeNorth: maxY, + latitudeSouth: minY, + longitudeEast: maxX, + longitudeWest: minX, + ); + } + + /// Minimum latitude value, south + static const double minLatitude = -90; + + /// Maximum latitude value, north + static const double maxLatitude = 90; + + /// Minimum longitude value, west + static const double minLongitude = -180; + + /// Maximum longitude value, east + static const double maxLongitude = 180; + /// The minimum longitude, most west final double longitudeWest; @@ -26,7 +69,8 @@ class LngLatBounds { final double latitudeNorth; @override - String toString() => 'LngLatBounds(' + String toString() => + 'LngLatBounds(' 'longitudeWest: $longitudeWest, ' 'longitudeEast: $longitudeEast, ' 'latitudeSouth: $latitudeSouth, ' @@ -38,13 +82,12 @@ class LngLatBounds { double? longitudeEast, double? latitudeSouth, double? latitudeNorth, - }) => - LngLatBounds( - longitudeWest: longitudeWest ?? this.longitudeWest, - longitudeEast: longitudeEast ?? this.longitudeEast, - latitudeSouth: latitudeSouth ?? this.latitudeSouth, - latitudeNorth: latitudeNorth ?? this.latitudeNorth, - ); + }) => LngLatBounds( + longitudeWest: longitudeWest ?? this.longitudeWest, + longitudeEast: longitudeEast ?? this.longitudeEast, + latitudeSouth: latitudeSouth ?? this.latitudeSouth, + latitudeNorth: latitudeNorth ?? this.latitudeNorth, + ); @override bool operator ==(Object other) => diff --git a/lib/src/map.dart b/lib/src/map.dart index 6e60845f..705a54b1 100644 --- a/lib/src/map.dart +++ b/lib/src/map.dart @@ -27,6 +27,12 @@ class MapLibreMap extends StatefulWidget { /// Flutter widgets that get displayed on top on the map and are within the /// [MapLibreMap] context. + /// + /// You can use the following included UI elements: + /// - [MapCompass] + /// - [MapControlButtons] + /// - [MapScalebar] + /// - [SourceAttribution]. final List children; /// Which gestures should be consumed by the map. diff --git a/lib/src/map_camera.dart b/lib/src/map_camera.dart index 8dec2c8d..fc2eb704 100644 --- a/lib/src/map_camera.dart +++ b/lib/src/map_camera.dart @@ -39,7 +39,8 @@ class MapCamera { (throw StateError('Unable to find an instance of MapCamera')); @override - String toString() => 'MapCamera(' + String toString() => + 'MapCamera(' 'center: Position(lng: ${center.lng}, lat: ${center.lat}), ' 'zoom: $zoom, bearing: $bearing, pitch: $pitch)'; diff --git a/lib/src/map_controller.dart b/lib/src/map_controller.dart index c836a0be..6b5571e6 100644 --- a/lib/src/map_controller.dart +++ b/lib/src/map_controller.dart @@ -42,23 +42,15 @@ abstract interface class MapController { Future> toLngLats(List screenLocations); /// Convert a latitude/longitude coordinate to a screen location. - /// - /// Only supported on web. Offset toScreenLocationSync(Position lngLat); /// Get the latitude/longitude coordinate for a screen location. - /// - /// Only supported on web. Position toLngLatSync(Offset screenLocation); /// Convert a latitude/longitude coordinate to a screen location. - /// - /// Only supported on web. List toScreenLocationsSync(List lngLats); /// Get the latitude/longitude coordinate for a screen location. - /// - /// Only supported on web. List toLngLatsSync(List screenLocations); /// Instantly move the map camera to a new location. @@ -119,13 +111,9 @@ abstract interface class MapController { /// The distance between pixels decreases as the latitude approaches the /// poles. This relationship parallels the relationship between longitudinal /// coordinates at different latitudes. - /// - /// Only supported on web. double getMetersPerPixelAtLatitudeSync(double latitude); /// The smallest bounding box that includes the visible region. - /// - /// Only supported on web. LngLatBounds getVisibleRegionSync(); /// Queries the map for rendered features. @@ -166,7 +154,7 @@ enum BearingTrackMode { compass, /// Use the bearing provided by the GPS location (normalized). - gps; + gps, } /// The mode how render the location on the map. @@ -181,5 +169,5 @@ enum BearingRenderMode { compass, /// Use the GPS location data to render the bearing. - gps; + gps, } diff --git a/lib/src/map_events.dart b/lib/src/map_events.dart index 51e63d44..67784e3c 100644 --- a/lib/src/map_events.dart +++ b/lib/src/map_events.dart @@ -63,7 +63,7 @@ enum CameraChangeReason { apiAnimation, /// The user caused the camera change by a gesture input. - apiGesture; + apiGesture, } /// Emitted when the user interacts with the map in any way. Use this class if diff --git a/lib/src/offline/download_progress.dart b/lib/src/offline/download_progress.dart index 5fd56a0b..a2ca1e98 100644 --- a/lib/src/offline/download_progress.dart +++ b/lib/src/offline/download_progress.dart @@ -64,16 +64,17 @@ class DownloadProgress { @override int get hashCode => Object.hash( - loadedBytes, - loadedTiles, - totalTiles, - totalTilesEstimated, - region, - downloadCompleted, - ); + loadedBytes, + loadedTiles, + totalTiles, + totalTilesEstimated, + region, + downloadCompleted, + ); @override - String toString() => 'DownloadProgress(' + String toString() => + 'DownloadProgress(' 'loadedBytes: $loadedBytes, ' 'loadedTiles: $loadedTiles, ' 'totalTiles: $totalTiles, ' diff --git a/lib/src/offline/offline_region.dart b/lib/src/offline/offline_region.dart index 69bc77b4..6da5dbc3 100644 --- a/lib/src/offline/offline_region.dart +++ b/lib/src/offline/offline_region.dart @@ -51,7 +51,8 @@ class OfflineRegion { Object.hash(id, bounds, minZoom, maxZoom, pixelRatio, styleUrl); @override - String toString() => 'OfflineRegion(id: $id, bounds: $bounds, ' + String toString() => + 'OfflineRegion(id: $id, bounds: $bounds, ' 'minZoom: $minZoom, maxZoom: $maxZoom, pixelRatio: $pixelRatio, ' 'styleUrl: $styleUrl)'; } diff --git a/lib/src/platform/android/extensions.dart b/lib/src/platform/android/extensions.dart index e23f4a9c..21691e33 100644 --- a/lib/src/platform/android/extensions.dart +++ b/lib/src/platform/android/extensions.dart @@ -1,15 +1,14 @@ import 'package:flutter/rendering.dart'; +import 'package:jni/jni.dart'; import 'package:maplibre/maplibre.dart'; -import 'package:maplibre/src/platform/android/jni/jni.dart' as jni; +import 'package:maplibre/src/platform/android/jni.dart' as jni; import 'package:maplibre/src/platform/pigeon.g.dart' as pigeon; /// Extension methods for the [Position] class. Not exported publicly. extension PositionExt on Position { /// Convert a [Position] to an internal [pigeon.LngLat]. - pigeon.LngLat toLngLat() => pigeon.LngLat( - lng: lng.toDouble(), - lat: lat.toDouble(), - ); + pigeon.LngLat toLngLat() => + pigeon.LngLat(lng: lng.toDouble(), lat: lat.toDouble()); /// Convert a [Position] to an [jni.LatLng]. jni.LatLng toLatLng() => jni.LatLng.new$1(lat.toDouble(), lng.toDouble()); @@ -54,19 +53,19 @@ extension OffsetExt on Offset { extension LngLatBoundsExt on LngLatBounds { /// Convert an [LngLatBounds] to an internal [pigeon.LngLatBounds]. pigeon.LngLatBounds toLngLatBounds() => pigeon.LngLatBounds( - longitudeEast: longitudeEast, - longitudeWest: longitudeWest, - latitudeNorth: latitudeNorth, - latitudeSouth: latitudeSouth, - ); + longitudeEast: longitudeEast, + longitudeWest: longitudeWest, + latitudeNorth: latitudeNorth, + latitudeSouth: latitudeSouth, + ); /// Convert an [LngLatBounds] to an internal [jni.LatLngBounds]. jni.LatLngBounds toLatLngBounds() => jni.LatLngBounds.from( - latitudeNorth, - longitudeEast, - latitudeSouth, - longitudeWest, - )!; + latitudeNorth, + longitudeEast, + latitudeSouth, + longitudeWest, + ); } /// Extension methods for the [jni.LatLngBounds] class. Not exported publicly. @@ -88,11 +87,11 @@ extension LatLngBounds on jni.LatLngBounds { extension EdgeInsetsExt on EdgeInsets { /// Convert an [EdgeInsets] to an internal [pigeon.Padding]. pigeon.Padding toPadding() => pigeon.Padding( - top: top.toInt(), - bottom: bottom.toInt(), - left: left.toInt(), - right: right.toInt(), - ); + top: top.toInt(), + bottom: bottom.toInt(), + left: left.toInt(), + right: right.toInt(), + ); } /// Extension methods for the [EdgeInsets] class. Not exported publicly. @@ -113,3 +112,22 @@ extension OfflineRegionExt on jni.OfflineRegion { return region; } } + +/// Extension methods on [Object]. +extension ObjectExt on Object { + /// Convert a [Object] to a [JObject]. + JObject toJObject(Arena arena) { + return switch (this) { + final List value => JArray.of( + JObject.nullableType, + value.map((e) => e?.toJObject(arena)).toList(growable: false), + )..releasedBy(arena), + final String value => value.toJString()..releasedBy(arena), + final double value => value.toJDouble()..releasedBy(arena), + // a dart int equals a java long + final int value => value.toJLong()..releasedBy(arena), + final bool value => value.toJBoolean()..releasedBy(arena), + _ => throw Exception('Unsupported property type: $runtimeType, $this'), + }; + } +} diff --git a/lib/src/platform/android/jni.dart b/lib/src/platform/android/jni.dart new file mode 100644 index 00000000..df9febe0 --- /dev/null +++ b/lib/src/platform/android/jni.dart @@ -0,0 +1,28 @@ +export 'jni/android/graphics/_package.dart'; +export 'jni/android/location/_package.dart'; +export 'jni/com/github/josxha/maplibre/_package.dart'; +// export 'jni/io/flutter/embedding/engine/plugins/activity/_package.dart'; +// export 'jni/io/flutter/plugin/common/_package.dart'; +export 'jni/java/net/_package.dart'; +export 'jni/org/maplibre/android/_package.dart'; +export 'jni/org/maplibre/android/attribution/_package.dart'; +export 'jni/org/maplibre/android/camera/_package.dart'; +export 'jni/org/maplibre/android/constants/_package.dart'; +export 'jni/org/maplibre/android/exceptions/_package.dart'; +export 'jni/org/maplibre/android/geometry/_package.dart'; +export 'jni/org/maplibre/android/http/_package.dart'; +export 'jni/org/maplibre/android/location/_package.dart'; +export 'jni/org/maplibre/android/location/engine/_package.dart'; +export 'jni/org/maplibre/android/location/modes/_package.dart'; +export 'jni/org/maplibre/android/location/permissions/_package.dart'; +export 'jni/org/maplibre/android/log/_package.dart'; +export 'jni/org/maplibre/android/maps/_package.dart'; +export 'jni/org/maplibre/android/offline/_package.dart'; +export 'jni/org/maplibre/android/storage/_package.dart'; +export 'jni/org/maplibre/android/style/layers/_package.dart'; +export 'jni/org/maplibre/android/style/light/_package.dart'; +export 'jni/org/maplibre/android/style/sources/_package.dart'; +export 'jni/org/maplibre/android/style/types/_package.dart'; +export 'jni/org/maplibre/android/text/_package.dart'; +export 'jni/org/maplibre/android/util/_package.dart'; +export 'jni/org/maplibre/android/utils/_package.dart'; diff --git a/lib/src/platform/android/jni/android/graphics/PointF.dart b/lib/src/platform/android/jni/android/graphics/PointF.dart index b011954d..09f3a195 100644 --- a/lib/src/platform/android/jni/android/graphics/PointF.dart +++ b/lib/src/platform/android/jni/android/graphics/PointF.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,10 +45,9 @@ class PointF extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - PointF.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + PointF.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'android/graphics/PointF'); @@ -72,15 +59,12 @@ class PointF extends jni$_.JObject { r'Landroid/os/Parcelable$Creator;', ); - /// from: `static public final android.os.Parcelable$Creator CREATOR` + /// 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()); - static final _id_x = _class.instanceFieldId( - r'x', - r'F', - ); + static final _id_x = _class.instanceFieldId(r'x', r'F'); /// from: `public float x` double get x => _id_x.get(this, const jni$_.jfloatType()); @@ -88,10 +72,7 @@ class PointF extends jni$_.JObject { /// from: `public float x` set x(double value) => _id_x.set(this, const jni$_.jfloatType(), value); - static final _id_y = _class.instanceFieldId( - r'y', - r'F', - ); + static final _id_y = _class.instanceFieldId(r'y', r'F'); /// from: `public float y` double get y => _id_y.get(this, const jni$_.jfloatType()); @@ -99,129 +80,157 @@ class PointF extends jni$_.JObject { /// from: `public float y` set y(double value) => _id_y.set(this, const jni$_.jfloatType(), value); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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, - )>(); + ) + > + >('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 PointF() { return PointF.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } - static final _id_new$1 = _class.constructorId( - r'(FF)V', - ); + 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)>(); + 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 PointF.new$1( - double f, - double f1, - ) { + factory PointF.new$1(double f, double f1) { return PointF.fromReference( - _new$1(_class.reference.pointer, _id_new$1 as jni$_.JMethodIDPtr, f, f1) - .reference); + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + f, + f1, + ).reference, + ); } - static final _id_new$2 = _class.constructorId( - r'(Landroid/graphics/Point;)V', - ); + static final _id_new$2 = _class.constructorId(r'(Landroid/graphics/Point;)V'); - static final _new$2 = 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)>(); + static final _new$2 = + 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: `public void (android.graphics.Point point)` /// The returned object must be released after use, by calling the [release] method. - factory PointF.new$2( - jni$_.JObject? point, - ) { + factory PointF.new$2(jni$_.JObject? point) { final _$point = point?.reference ?? jni$_.jNullReference; - return PointF.fromReference(_new$2(_class.reference.pointer, - _id_new$2 as jni$_.JMethodIDPtr, _$point.pointer) - .reference); + return PointF.fromReference( + _new$2( + _class.reference.pointer, + _id_new$2 as jni$_.JMethodIDPtr, + _$point.pointer, + ).reference, + ); } static final _id_new$3 = _class.constructorId( r'(Landroid/graphics/PointF;)V', ); - static final _new$3 = 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)>(); + static final _new$3 = + 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: `public void (android.graphics.PointF pointF)` /// The returned object must be released after use, by calling the [release] method. - factory PointF.new$3( - PointF? pointF, - ) { + factory PointF.new$3(PointF? pointF) { final _$pointF = pointF?.reference ?? jni$_.jNullReference; - return PointF.fromReference(_new$3(_class.reference.pointer, - _id_new$3 as jni$_.JMethodIDPtr, _$pointF.pointer) - .reference); + return PointF.fromReference( + _new$3( + _class.reference.pointer, + _id_new$3 as jni$_.JMethodIDPtr, + _$pointF.pointer, + ).reference, + ); } - static final _id_set = _class.instanceMethodId( - r'set', - r'(FF)V', - ); + static final _id_set = _class.instanceMethodId(r'set', r'(FF)V'); - static final _set = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double, jni$_.Double)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double, double)>(); + static final _set = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double, jni$_.Double)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + double, + ) + >(); /// from: `public final void set(float f, float f1)` - void set( - double f, - double f1, - ) { + void set(double f, double f1) { _set(reference.pointer, _id_set as jni$_.JMethodIDPtr, f, f1).check(); } @@ -230,95 +239,112 @@ class PointF extends jni$_.JObject { r'(Landroid/graphics/PointF;)V', ); - static final _set$1 = 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$1 = + 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 final void set(android.graphics.PointF pointF)` - void set$1( - PointF? pointF, - ) { + void set$1(PointF? pointF) { final _$pointF = pointF?.reference ?? jni$_.jNullReference; - _set$1(reference.pointer, _id_set$1 as jni$_.JMethodIDPtr, _$pointF.pointer) - .check(); + _set$1( + reference.pointer, + _id_set$1 as jni$_.JMethodIDPtr, + _$pointF.pointer, + ).check(); } - static final _id_negate = _class.instanceMethodId( - r'negate', - r'()V', - ); + static final _id_negate = _class.instanceMethodId(r'negate', r'()V'); - static final _negate = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _negate = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final void negate()` void negate() { _negate(reference.pointer, _id_negate as jni$_.JMethodIDPtr).check(); } - static final _id_offset = _class.instanceMethodId( - r'offset', - r'(FF)V', - ); + static final _id_offset = _class.instanceMethodId(r'offset', r'(FF)V'); - static final _offset = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double, jni$_.Double)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double, double)>(); + static final _offset = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double, jni$_.Double)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + double, + ) + >(); /// from: `public final void offset(float f, float f1)` - void offset( - double f, - double f1, - ) { + void offset(double f, double f1) { _offset(reference.pointer, _id_offset as jni$_.JMethodIDPtr, f, f1).check(); } - static final _id_equals = _class.instanceMethodId( - r'equals', - r'(FF)Z', - ); + static final _id_equals = _class.instanceMethodId(r'equals', r'(FF)Z'); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double, jni$_.Double)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double, double)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double, jni$_.Double)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + double, + ) + >(); /// from: `public final boolean equals(float f, float f1)` - bool equals( - double f, - double f1, - ) { - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, f, f1) - .boolean; + bool equals(double f, double f1) { + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + f, + f1, + ).boolean; } static final _id_equals$1 = _class.instanceMethodId( @@ -326,48 +352,58 @@ class PointF extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals$1( - jni$_.JObject? object, - ) { + bool equals$1(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals$1(reference.pointer, _id_equals$1 as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals$1( + reference.pointer, + _id_equals$1 as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } static final _id_toString$1 = _class.instanceMethodId( @@ -375,71 +411,83 @@ class PointF extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + 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 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 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } - static final _id_length = _class.instanceMethodId( - r'length', - r'()F', - ); + static final _id_length = _class.instanceMethodId(r'length', r'()F'); - static final _length = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _length = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final float length()` double length() { return _length(reference.pointer, _id_length as jni$_.JMethodIDPtr).float; } - static final _id_length$1 = _class.staticMethodId( - r'length', - r'(FF)F', - ); + static final _id_length$1 = _class.staticMethodId(r'length', r'(FF)F'); - static final _length$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double, jni$_.Double)>)>>( - 'globalEnv_CallStaticFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double, double)>(); + static final _length$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double, jni$_.Double)>, + ) + > + >('globalEnv_CallStaticFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + double, + ) + >(); /// from: `static public float length(float f, float f1)` - static double length$1( - double f, - double f1, - ) { + static double length$1(double f, double f1) { return _length$1( - _class.reference.pointer, _id_length$1 as jni$_.JMethodIDPtr, f, f1) - .float; + _class.reference.pointer, + _id_length$1 as jni$_.JMethodIDPtr, + f, + f1, + ).float; } static final _id_describeContents = _class.instanceMethodId( @@ -447,23 +495,28 @@ class PointF extends jni$_.JObject { r'()I', ); - static final _describeContents = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _describeContents = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int describeContents()` int describeContents() { return _describeContents( - reference.pointer, _id_describeContents as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_describeContents as jni$_.JMethodIDPtr, + ).integer; } static final _id_writeToParcel = _class.instanceMethodId( @@ -471,27 +524,34 @@ class PointF extends jni$_.JObject { r'(Landroid/os/Parcel;I)V', ); - static final _writeToParcel = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _writeToParcel = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public void writeToParcel(android.os.Parcel parcel, int i)` - void writeToParcel( - jni$_.JObject? parcel, - int i, - ) { + void writeToParcel(jni$_.JObject? parcel, int i) { final _$parcel = parcel?.reference ?? jni$_.jNullReference; - _writeToParcel(reference.pointer, _id_writeToParcel as jni$_.JMethodIDPtr, - _$parcel.pointer, i) - .check(); + _writeToParcel( + reference.pointer, + _id_writeToParcel as jni$_.JMethodIDPtr, + _$parcel.pointer, + i, + ).check(); } static final _id_readFromParcel = _class.instanceMethodId( @@ -499,25 +559,32 @@ class PointF extends jni$_.JObject { r'(Landroid/os/Parcel;)V', ); - static final _readFromParcel = 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 _readFromParcel = + 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 readFromParcel(android.os.Parcel parcel)` - void readFromParcel( - jni$_.JObject? parcel, - ) { + void readFromParcel(jni$_.JObject? parcel) { final _$parcel = parcel?.reference ?? jni$_.jNullReference; - _readFromParcel(reference.pointer, _id_readFromParcel as jni$_.JMethodIDPtr, - _$parcel.pointer) - .check(); + _readFromParcel( + reference.pointer, + _id_readFromParcel as jni$_.JMethodIDPtr, + _$parcel.pointer, + ).check(); } } @@ -531,11 +598,8 @@ final class $PointF$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - PointF? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : PointF.fromReference( - reference, - ); + PointF? fromReference(jni$_.JReference reference) => + reference.isNull ? null : PointF.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -568,9 +632,8 @@ final class $PointF$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - PointF fromReference(jni$_.JReference reference) => PointF.fromReference( - reference, - ); + PointF fromReference(jni$_.JReference reference) => + PointF.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/android/graphics/_package.dart b/lib/src/platform/android/jni/android/graphics/_package.dart index 28e696ee..80c87430 100644 --- a/lib/src/platform/android/jni/android/graphics/_package.dart +++ b/lib/src/platform/android/jni/android/graphics/_package.dart @@ -1 +1,2 @@ +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! export 'PointF.dart'; diff --git a/lib/src/platform/android/jni/android/location/Location.dart b/lib/src/platform/android/jni/android/location/Location.dart index 2d2e8935..759f7083 100644 --- a/lib/src/platform/android/jni/android/location/Location.dart +++ b/lib/src/platform/android/jni/android/location/Location.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,10 +45,9 @@ class Location extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Location.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Location.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'android/location/Location'); @@ -72,7 +59,7 @@ class Location extends jni$_.JObject { r'Landroid/os/Parcelable$Creator;', ); - /// from: `static public final android.os.Parcelable$Creator CREATOR` + /// 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()); @@ -85,56 +72,72 @@ class Location extends jni$_.JObject { /// from: `static public final int FORMAT_SECONDS` static const FORMAT_SECONDS = 2; - static final _id_new$ = _class.constructorId( - r'(Ljava/lang/String;)V', - ); + static final _id_new$ = _class.constructorId(r'(Ljava/lang/String;)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)>(); + 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: `public void (java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - factory Location( - jni$_.JString? string, - ) { + factory Location(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return Location.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$string.pointer) - .reference); + return Location.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$string.pointer, + ).reference, + ); } static final _id_new$1 = _class.constructorId( r'(Landroid/location/Location;)V', ); - static final _new$1 = 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)>(); + static final _new$1 = + 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: `public void (android.location.Location location)` /// The returned object must be released after use, by calling the [release] method. - factory Location.new$1( - Location? location, - ) { + factory Location.new$1(Location? location) { final _$location = location?.reference ?? jni$_.jNullReference; - return Location.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$location.pointer) - .reference); + return Location.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$location.pointer, + ).reference, + ); } static final _id_set = _class.instanceMethodId( @@ -142,42 +145,51 @@ class Location extends jni$_.JObject { r'(Landroid/location/Location;)V', ); - static final _set = 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 = + 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 set(android.location.Location location)` - void set( - Location? location, - ) { + void set(Location? location) { final _$location = location?.reference ?? jni$_.jNullReference; - _set(reference.pointer, _id_set as jni$_.JMethodIDPtr, _$location.pointer) - .check(); + _set( + reference.pointer, + _id_set as jni$_.JMethodIDPtr, + _$location.pointer, + ).check(); } - static final _id_reset = _class.instanceMethodId( - r'reset', - r'()V', - ); + static final _id_reset = _class.instanceMethodId(r'reset', r'()V'); - static final _reset = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _reset = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void reset()` void reset() { @@ -189,25 +201,32 @@ class Location extends jni$_.JObject { r'(Landroid/location/Location;)F', ); - static final _distanceTo = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _distanceTo = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public float distanceTo(android.location.Location location)` - double distanceTo( - Location? location, - ) { + double distanceTo(Location? location) { final _$location = location?.reference ?? jni$_.jNullReference; - return _distanceTo(reference.pointer, _id_distanceTo as jni$_.JMethodIDPtr, - _$location.pointer) - .float; + return _distanceTo( + reference.pointer, + _id_distanceTo as jni$_.JMethodIDPtr, + _$location.pointer, + ).float; } static final _id_bearingTo = _class.instanceMethodId( @@ -215,25 +234,32 @@ class Location extends jni$_.JObject { r'(Landroid/location/Location;)F', ); - static final _bearingTo = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _bearingTo = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public float bearingTo(android.location.Location location)` - double bearingTo( - Location? location, - ) { + double bearingTo(Location? location) { final _$location = location?.reference ?? jni$_.jNullReference; - return _bearingTo(reference.pointer, _id_bearingTo as jni$_.JMethodIDPtr, - _$location.pointer) - .float; + return _bearingTo( + reference.pointer, + _id_bearingTo as jni$_.JMethodIDPtr, + _$location.pointer, + ).float; } static final _id_getProvider = _class.instanceMethodId( @@ -241,24 +267,29 @@ class Location extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getProvider = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getProvider = + 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 getProvider()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getProvider() { return _getProvider( - reference.pointer, _id_getProvider as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getProvider as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_setProvider = _class.instanceMethodId( @@ -266,68 +297,79 @@ class Location extends jni$_.JObject { r'(Ljava/lang/String;)V', ); - static final _setProvider = 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 _setProvider = + 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 setProvider(java.lang.String string)` - void setProvider( - jni$_.JString? string, - ) { + void setProvider(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setProvider(reference.pointer, _id_setProvider as jni$_.JMethodIDPtr, - _$string.pointer) - .check(); + _setProvider( + reference.pointer, + _id_setProvider as jni$_.JMethodIDPtr, + _$string.pointer, + ).check(); } - static final _id_getTime = _class.instanceMethodId( - r'getTime', - r'()J', - ); + static final _id_getTime = _class.instanceMethodId(r'getTime', r'()J'); - static final _getTime = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getTime = + 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 getTime()` int getTime() { return _getTime(reference.pointer, _id_getTime as jni$_.JMethodIDPtr).long; } - static final _id_setTime = _class.instanceMethodId( - r'setTime', - r'(J)V', - ); + static final _id_setTime = _class.instanceMethodId(r'setTime', r'(J)V'); - static final _setTime = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setTime = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void setTime(long j)` - void setTime( - int j, - ) { + void setTime(int j) { _setTime(reference.pointer, _id_setTime as jni$_.JMethodIDPtr, j).check(); } @@ -336,23 +378,28 @@ class Location extends jni$_.JObject { r'()J', ); - static final _getElapsedRealtimeNanos = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getElapsedRealtimeNanos = + 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 getElapsedRealtimeNanos()` int getElapsedRealtimeNanos() { - return _getElapsedRealtimeNanos(reference.pointer, - _id_getElapsedRealtimeNanos as jni$_.JMethodIDPtr) - .long; + return _getElapsedRealtimeNanos( + reference.pointer, + _id_getElapsedRealtimeNanos as jni$_.JMethodIDPtr, + ).long; } static final _id_getElapsedRealtimeMillis = _class.instanceMethodId( @@ -360,23 +407,28 @@ class Location extends jni$_.JObject { r'()J', ); - static final _getElapsedRealtimeMillis = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getElapsedRealtimeMillis = + 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 getElapsedRealtimeMillis()` int getElapsedRealtimeMillis() { - return _getElapsedRealtimeMillis(reference.pointer, - _id_getElapsedRealtimeMillis as jni$_.JMethodIDPtr) - .long; + return _getElapsedRealtimeMillis( + reference.pointer, + _id_getElapsedRealtimeMillis as jni$_.JMethodIDPtr, + ).long; } static final _id_getElapsedRealtimeAgeMillis = _class.instanceMethodId( @@ -386,22 +438,26 @@ class Location extends jni$_.JObject { static final _getElapsedRealtimeAgeMillis = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public long getElapsedRealtimeAgeMillis()` int getElapsedRealtimeAgeMillis() { - return _getElapsedRealtimeAgeMillis(reference.pointer, - _id_getElapsedRealtimeAgeMillis as jni$_.JMethodIDPtr) - .long; + return _getElapsedRealtimeAgeMillis( + reference.pointer, + _id_getElapsedRealtimeAgeMillis as jni$_.JMethodIDPtr, + ).long; } static final _id_getElapsedRealtimeAgeMillis$1 = _class.instanceMethodId( @@ -411,21 +467,29 @@ class Location extends jni$_.JObject { static final _getElapsedRealtimeAgeMillis$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int64,)>)>>( - 'globalEnv_CallLongMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public long getElapsedRealtimeAgeMillis(long j)` - int getElapsedRealtimeAgeMillis$1( - int j, - ) { - return _getElapsedRealtimeAgeMillis$1(reference.pointer, - _id_getElapsedRealtimeAgeMillis$1 as jni$_.JMethodIDPtr, j) - .long; + int getElapsedRealtimeAgeMillis$1(int j) { + return _getElapsedRealtimeAgeMillis$1( + reference.pointer, + _id_getElapsedRealtimeAgeMillis$1 as jni$_.JMethodIDPtr, + j, + ).long; } static final _id_setElapsedRealtimeNanos = _class.instanceMethodId( @@ -433,23 +497,31 @@ class Location extends jni$_.JObject { r'(J)V', ); - static final _setElapsedRealtimeNanos = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setElapsedRealtimeNanos = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void setElapsedRealtimeNanos(long j)` - void setElapsedRealtimeNanos( - int j, - ) { - _setElapsedRealtimeNanos(reference.pointer, - _id_setElapsedRealtimeNanos as jni$_.JMethodIDPtr, j) - .check(); + void setElapsedRealtimeNanos(int j) { + _setElapsedRealtimeNanos( + reference.pointer, + _id_setElapsedRealtimeNanos as jni$_.JMethodIDPtr, + j, + ).check(); } static final _id_getElapsedRealtimeUncertaintyNanos = _class.instanceMethodId( @@ -459,22 +531,26 @@ class Location extends jni$_.JObject { static final _getElapsedRealtimeUncertaintyNanos = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public double getElapsedRealtimeUncertaintyNanos()` double getElapsedRealtimeUncertaintyNanos() { - return _getElapsedRealtimeUncertaintyNanos(reference.pointer, - _id_getElapsedRealtimeUncertaintyNanos as jni$_.JMethodIDPtr) - .doubleFloat; + return _getElapsedRealtimeUncertaintyNanos( + reference.pointer, + _id_getElapsedRealtimeUncertaintyNanos as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_setElapsedRealtimeUncertaintyNanos = _class.instanceMethodId( @@ -484,21 +560,29 @@ class Location extends jni$_.JObject { static final _setElapsedRealtimeUncertaintyNanos = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Double,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public void setElapsedRealtimeUncertaintyNanos(double d)` - void setElapsedRealtimeUncertaintyNanos( - double d, - ) { - _setElapsedRealtimeUncertaintyNanos(reference.pointer, - _id_setElapsedRealtimeUncertaintyNanos as jni$_.JMethodIDPtr, d) - .check(); + void setElapsedRealtimeUncertaintyNanos(double d) { + _setElapsedRealtimeUncertaintyNanos( + reference.pointer, + _id_setElapsedRealtimeUncertaintyNanos as jni$_.JMethodIDPtr, + d, + ).check(); } static final _id_hasElapsedRealtimeUncertaintyNanos = _class.instanceMethodId( @@ -508,48 +592,53 @@ class Location extends jni$_.JObject { static final _hasElapsedRealtimeUncertaintyNanos = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public boolean hasElapsedRealtimeUncertaintyNanos()` bool hasElapsedRealtimeUncertaintyNanos() { - return _hasElapsedRealtimeUncertaintyNanos(reference.pointer, - _id_hasElapsedRealtimeUncertaintyNanos as jni$_.JMethodIDPtr) - .boolean; + return _hasElapsedRealtimeUncertaintyNanos( + reference.pointer, + _id_hasElapsedRealtimeUncertaintyNanos as jni$_.JMethodIDPtr, + ).boolean; } - static final _id_removeElapsedRealtimeUncertaintyNanos = - _class.instanceMethodId( - r'removeElapsedRealtimeUncertaintyNanos', - r'()V', - ); + static final _id_removeElapsedRealtimeUncertaintyNanos = _class + .instanceMethodId(r'removeElapsedRealtimeUncertaintyNanos', r'()V'); static final _removeElapsedRealtimeUncertaintyNanos = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void removeElapsedRealtimeUncertaintyNanos()` void removeElapsedRealtimeUncertaintyNanos() { - _removeElapsedRealtimeUncertaintyNanos(reference.pointer, - _id_removeElapsedRealtimeUncertaintyNanos as jni$_.JMethodIDPtr) - .check(); + _removeElapsedRealtimeUncertaintyNanos( + reference.pointer, + _id_removeElapsedRealtimeUncertaintyNanos as jni$_.JMethodIDPtr, + ).check(); } static final _id_getLatitude = _class.instanceMethodId( @@ -557,23 +646,28 @@ class Location extends jni$_.JObject { r'()D', ); - static final _getLatitude = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLatitude = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public double getLatitude()` double getLatitude() { return _getLatitude( - reference.pointer, _id_getLatitude as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getLatitude as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_setLatitude = _class.instanceMethodId( @@ -581,22 +675,31 @@ class Location extends jni$_.JObject { r'(D)V', ); - static final _setLatitude = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setLatitude = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public void setLatitude(double d)` - void setLatitude( - double d, - ) { - _setLatitude(reference.pointer, _id_setLatitude as jni$_.JMethodIDPtr, d) - .check(); + void setLatitude(double d) { + _setLatitude( + reference.pointer, + _id_setLatitude as jni$_.JMethodIDPtr, + d, + ).check(); } static final _id_getLongitude = _class.instanceMethodId( @@ -604,23 +707,28 @@ class Location extends jni$_.JObject { r'()D', ); - static final _getLongitude = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLongitude = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public double getLongitude()` double getLongitude() { return _getLongitude( - reference.pointer, _id_getLongitude as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getLongitude as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_setLongitude = _class.instanceMethodId( @@ -628,22 +736,31 @@ class Location extends jni$_.JObject { r'(D)V', ); - static final _setLongitude = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setLongitude = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public void setLongitude(double d)` - void setLongitude( - double d, - ) { - _setLongitude(reference.pointer, _id_setLongitude as jni$_.JMethodIDPtr, d) - .check(); + void setLongitude(double d) { + _setLongitude( + reference.pointer, + _id_setLongitude as jni$_.JMethodIDPtr, + d, + ).check(); } static final _id_getAccuracy = _class.instanceMethodId( @@ -651,23 +768,28 @@ class Location extends jni$_.JObject { r'()F', ); - static final _getAccuracy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAccuracy = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float getAccuracy()` double getAccuracy() { return _getAccuracy( - reference.pointer, _id_getAccuracy as jni$_.JMethodIDPtr) - .float; + reference.pointer, + _id_getAccuracy as jni$_.JMethodIDPtr, + ).float; } static final _id_setAccuracy = _class.instanceMethodId( @@ -675,22 +797,31 @@ class Location extends jni$_.JObject { r'(F)V', ); - static final _setAccuracy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setAccuracy = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public void setAccuracy(float f)` - void setAccuracy( - double f, - ) { - _setAccuracy(reference.pointer, _id_setAccuracy as jni$_.JMethodIDPtr, f) - .check(); + void setAccuracy(double f) { + _setAccuracy( + reference.pointer, + _id_setAccuracy as jni$_.JMethodIDPtr, + f, + ).check(); } static final _id_hasAccuracy = _class.instanceMethodId( @@ -698,23 +829,28 @@ class Location extends jni$_.JObject { r'()Z', ); - static final _hasAccuracy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hasAccuracy = + 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 hasAccuracy()` bool hasAccuracy() { return _hasAccuracy( - reference.pointer, _id_hasAccuracy as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_hasAccuracy as jni$_.JMethodIDPtr, + ).boolean; } static final _id_removeAccuracy = _class.instanceMethodId( @@ -722,22 +858,28 @@ class Location extends jni$_.JObject { r'()V', ); - static final _removeAccuracy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _removeAccuracy = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void removeAccuracy()` void removeAccuracy() { - _removeAccuracy(reference.pointer, _id_removeAccuracy as jni$_.JMethodIDPtr) - .check(); + _removeAccuracy( + reference.pointer, + _id_removeAccuracy as jni$_.JMethodIDPtr, + ).check(); } static final _id_getAltitude = _class.instanceMethodId( @@ -745,23 +887,28 @@ class Location extends jni$_.JObject { r'()D', ); - static final _getAltitude = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAltitude = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public double getAltitude()` double getAltitude() { return _getAltitude( - reference.pointer, _id_getAltitude as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getAltitude as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_setAltitude = _class.instanceMethodId( @@ -769,22 +916,31 @@ class Location extends jni$_.JObject { r'(D)V', ); - static final _setAltitude = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setAltitude = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public void setAltitude(double d)` - void setAltitude( - double d, - ) { - _setAltitude(reference.pointer, _id_setAltitude as jni$_.JMethodIDPtr, d) - .check(); + void setAltitude(double d) { + _setAltitude( + reference.pointer, + _id_setAltitude as jni$_.JMethodIDPtr, + d, + ).check(); } static final _id_hasAltitude = _class.instanceMethodId( @@ -792,23 +948,28 @@ class Location extends jni$_.JObject { r'()Z', ); - static final _hasAltitude = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hasAltitude = + 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 hasAltitude()` bool hasAltitude() { return _hasAltitude( - reference.pointer, _id_hasAltitude as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_hasAltitude as jni$_.JMethodIDPtr, + ).boolean; } static final _id_removeAltitude = _class.instanceMethodId( @@ -816,22 +977,28 @@ class Location extends jni$_.JObject { r'()V', ); - static final _removeAltitude = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _removeAltitude = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void removeAltitude()` void removeAltitude() { - _removeAltitude(reference.pointer, _id_removeAltitude as jni$_.JMethodIDPtr) - .check(); + _removeAltitude( + reference.pointer, + _id_removeAltitude as jni$_.JMethodIDPtr, + ).check(); } static final _id_getVerticalAccuracyMeters = _class.instanceMethodId( @@ -839,23 +1006,28 @@ class Location extends jni$_.JObject { r'()F', ); - static final _getVerticalAccuracyMeters = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getVerticalAccuracyMeters = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float getVerticalAccuracyMeters()` double getVerticalAccuracyMeters() { - return _getVerticalAccuracyMeters(reference.pointer, - _id_getVerticalAccuracyMeters as jni$_.JMethodIDPtr) - .float; + return _getVerticalAccuracyMeters( + reference.pointer, + _id_getVerticalAccuracyMeters as jni$_.JMethodIDPtr, + ).float; } static final _id_setVerticalAccuracyMeters = _class.instanceMethodId( @@ -863,23 +1035,31 @@ class Location extends jni$_.JObject { r'(F)V', ); - static final _setVerticalAccuracyMeters = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setVerticalAccuracyMeters = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public void setVerticalAccuracyMeters(float f)` - void setVerticalAccuracyMeters( - double f, - ) { - _setVerticalAccuracyMeters(reference.pointer, - _id_setVerticalAccuracyMeters as jni$_.JMethodIDPtr, f) - .check(); + void setVerticalAccuracyMeters(double f) { + _setVerticalAccuracyMeters( + reference.pointer, + _id_setVerticalAccuracyMeters as jni$_.JMethodIDPtr, + f, + ).check(); } static final _id_hasVerticalAccuracy = _class.instanceMethodId( @@ -887,23 +1067,28 @@ class Location extends jni$_.JObject { r'()Z', ); - static final _hasVerticalAccuracy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hasVerticalAccuracy = + 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 hasVerticalAccuracy()` bool hasVerticalAccuracy() { return _hasVerticalAccuracy( - reference.pointer, _id_hasVerticalAccuracy as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_hasVerticalAccuracy as jni$_.JMethodIDPtr, + ).boolean; } static final _id_removeVerticalAccuracy = _class.instanceMethodId( @@ -911,91 +1096,105 @@ class Location extends jni$_.JObject { r'()V', ); - static final _removeVerticalAccuracy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _removeVerticalAccuracy = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void removeVerticalAccuracy()` void removeVerticalAccuracy() { _removeVerticalAccuracy( - reference.pointer, _id_removeVerticalAccuracy as jni$_.JMethodIDPtr) - .check(); + reference.pointer, + _id_removeVerticalAccuracy as jni$_.JMethodIDPtr, + ).check(); } - static final _id_getSpeed = _class.instanceMethodId( - r'getSpeed', - r'()F', - ); + static final _id_getSpeed = _class.instanceMethodId(r'getSpeed', r'()F'); - static final _getSpeed = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getSpeed = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float getSpeed()` double getSpeed() { - return _getSpeed(reference.pointer, _id_getSpeed as jni$_.JMethodIDPtr) - .float; + return _getSpeed( + reference.pointer, + _id_getSpeed as jni$_.JMethodIDPtr, + ).float; } - static final _id_setSpeed = _class.instanceMethodId( - r'setSpeed', - r'(F)V', - ); + static final _id_setSpeed = _class.instanceMethodId(r'setSpeed', r'(F)V'); - static final _setSpeed = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setSpeed = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public void setSpeed(float f)` - void setSpeed( - double f, - ) { + void setSpeed(double f) { _setSpeed(reference.pointer, _id_setSpeed as jni$_.JMethodIDPtr, f).check(); } - static final _id_hasSpeed = _class.instanceMethodId( - r'hasSpeed', - r'()Z', - ); + static final _id_hasSpeed = _class.instanceMethodId(r'hasSpeed', r'()Z'); - static final _hasSpeed = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hasSpeed = + 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 hasSpeed()` bool hasSpeed() { - return _hasSpeed(reference.pointer, _id_hasSpeed as jni$_.JMethodIDPtr) - .boolean; + return _hasSpeed( + reference.pointer, + _id_hasSpeed as jni$_.JMethodIDPtr, + ).boolean; } static final _id_removeSpeed = _class.instanceMethodId( @@ -1003,22 +1202,28 @@ class Location extends jni$_.JObject { r'()V', ); - static final _removeSpeed = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _removeSpeed = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void removeSpeed()` void removeSpeed() { - _removeSpeed(reference.pointer, _id_removeSpeed as jni$_.JMethodIDPtr) - .check(); + _removeSpeed( + reference.pointer, + _id_removeSpeed as jni$_.JMethodIDPtr, + ).check(); } static final _id_getSpeedAccuracyMetersPerSecond = _class.instanceMethodId( @@ -1028,22 +1233,26 @@ class Location extends jni$_.JObject { static final _getSpeedAccuracyMetersPerSecond = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float getSpeedAccuracyMetersPerSecond()` double getSpeedAccuracyMetersPerSecond() { - return _getSpeedAccuracyMetersPerSecond(reference.pointer, - _id_getSpeedAccuracyMetersPerSecond as jni$_.JMethodIDPtr) - .float; + return _getSpeedAccuracyMetersPerSecond( + reference.pointer, + _id_getSpeedAccuracyMetersPerSecond as jni$_.JMethodIDPtr, + ).float; } static final _id_setSpeedAccuracyMetersPerSecond = _class.instanceMethodId( @@ -1053,21 +1262,29 @@ class Location extends jni$_.JObject { static final _setSpeedAccuracyMetersPerSecond = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Double,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public void setSpeedAccuracyMetersPerSecond(float f)` - void setSpeedAccuracyMetersPerSecond( - double f, - ) { - _setSpeedAccuracyMetersPerSecond(reference.pointer, - _id_setSpeedAccuracyMetersPerSecond as jni$_.JMethodIDPtr, f) - .check(); + void setSpeedAccuracyMetersPerSecond(double f) { + _setSpeedAccuracyMetersPerSecond( + reference.pointer, + _id_setSpeedAccuracyMetersPerSecond as jni$_.JMethodIDPtr, + f, + ).check(); } static final _id_hasSpeedAccuracy = _class.instanceMethodId( @@ -1075,23 +1292,28 @@ class Location extends jni$_.JObject { r'()Z', ); - static final _hasSpeedAccuracy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hasSpeedAccuracy = + 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 hasSpeedAccuracy()` bool hasSpeedAccuracy() { return _hasSpeedAccuracy( - reference.pointer, _id_hasSpeedAccuracy as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_hasSpeedAccuracy as jni$_.JMethodIDPtr, + ).boolean; } static final _id_removeSpeedAccuracy = _class.instanceMethodId( @@ -1099,92 +1321,109 @@ class Location extends jni$_.JObject { r'()V', ); - static final _removeSpeedAccuracy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _removeSpeedAccuracy = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void removeSpeedAccuracy()` void removeSpeedAccuracy() { _removeSpeedAccuracy( - reference.pointer, _id_removeSpeedAccuracy as jni$_.JMethodIDPtr) - .check(); + reference.pointer, + _id_removeSpeedAccuracy as jni$_.JMethodIDPtr, + ).check(); } - static final _id_getBearing = _class.instanceMethodId( - r'getBearing', - r'()F', - ); + static final _id_getBearing = _class.instanceMethodId(r'getBearing', r'()F'); - static final _getBearing = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getBearing = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float getBearing()` double getBearing() { - return _getBearing(reference.pointer, _id_getBearing as jni$_.JMethodIDPtr) - .float; + return _getBearing( + reference.pointer, + _id_getBearing as jni$_.JMethodIDPtr, + ).float; } - static final _id_setBearing = _class.instanceMethodId( - r'setBearing', - r'(F)V', - ); + static final _id_setBearing = _class.instanceMethodId(r'setBearing', r'(F)V'); - static final _setBearing = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setBearing = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public void setBearing(float f)` - void setBearing( - double f, - ) { - _setBearing(reference.pointer, _id_setBearing as jni$_.JMethodIDPtr, f) - .check(); + void setBearing(double f) { + _setBearing( + reference.pointer, + _id_setBearing as jni$_.JMethodIDPtr, + f, + ).check(); } - static final _id_hasBearing = _class.instanceMethodId( - r'hasBearing', - r'()Z', - ); + static final _id_hasBearing = _class.instanceMethodId(r'hasBearing', r'()Z'); - static final _hasBearing = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hasBearing = + 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 hasBearing()` bool hasBearing() { - return _hasBearing(reference.pointer, _id_hasBearing as jni$_.JMethodIDPtr) - .boolean; + return _hasBearing( + reference.pointer, + _id_hasBearing as jni$_.JMethodIDPtr, + ).boolean; } static final _id_removeBearing = _class.instanceMethodId( @@ -1192,22 +1431,28 @@ class Location extends jni$_.JObject { r'()V', ); - static final _removeBearing = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _removeBearing = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void removeBearing()` void removeBearing() { - _removeBearing(reference.pointer, _id_removeBearing as jni$_.JMethodIDPtr) - .check(); + _removeBearing( + reference.pointer, + _id_removeBearing as jni$_.JMethodIDPtr, + ).check(); } static final _id_getBearingAccuracyDegrees = _class.instanceMethodId( @@ -1215,23 +1460,28 @@ class Location extends jni$_.JObject { r'()F', ); - static final _getBearingAccuracyDegrees = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getBearingAccuracyDegrees = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float getBearingAccuracyDegrees()` double getBearingAccuracyDegrees() { - return _getBearingAccuracyDegrees(reference.pointer, - _id_getBearingAccuracyDegrees as jni$_.JMethodIDPtr) - .float; + return _getBearingAccuracyDegrees( + reference.pointer, + _id_getBearingAccuracyDegrees as jni$_.JMethodIDPtr, + ).float; } static final _id_setBearingAccuracyDegrees = _class.instanceMethodId( @@ -1239,23 +1489,31 @@ class Location extends jni$_.JObject { r'(F)V', ); - static final _setBearingAccuracyDegrees = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setBearingAccuracyDegrees = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public void setBearingAccuracyDegrees(float f)` - void setBearingAccuracyDegrees( - double f, - ) { - _setBearingAccuracyDegrees(reference.pointer, - _id_setBearingAccuracyDegrees as jni$_.JMethodIDPtr, f) - .check(); + void setBearingAccuracyDegrees(double f) { + _setBearingAccuracyDegrees( + reference.pointer, + _id_setBearingAccuracyDegrees as jni$_.JMethodIDPtr, + f, + ).check(); } static final _id_hasBearingAccuracy = _class.instanceMethodId( @@ -1263,23 +1521,28 @@ class Location extends jni$_.JObject { r'()Z', ); - static final _hasBearingAccuracy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hasBearingAccuracy = + 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 hasBearingAccuracy()` bool hasBearingAccuracy() { return _hasBearingAccuracy( - reference.pointer, _id_hasBearingAccuracy as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_hasBearingAccuracy as jni$_.JMethodIDPtr, + ).boolean; } static final _id_removeBearingAccuracy = _class.instanceMethodId( @@ -1287,23 +1550,28 @@ class Location extends jni$_.JObject { r'()V', ); - static final _removeBearingAccuracy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _removeBearingAccuracy = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void removeBearingAccuracy()` void removeBearingAccuracy() { _removeBearingAccuracy( - reference.pointer, _id_removeBearingAccuracy as jni$_.JMethodIDPtr) - .check(); + reference.pointer, + _id_removeBearingAccuracy as jni$_.JMethodIDPtr, + ).check(); } static final _id_getMslAltitudeMeters = _class.instanceMethodId( @@ -1311,23 +1579,28 @@ class Location extends jni$_.JObject { r'()D', ); - static final _getMslAltitudeMeters = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getMslAltitudeMeters = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public double getMslAltitudeMeters()` double getMslAltitudeMeters() { return _getMslAltitudeMeters( - reference.pointer, _id_getMslAltitudeMeters as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getMslAltitudeMeters as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_setMslAltitudeMeters = _class.instanceMethodId( @@ -1335,23 +1608,31 @@ class Location extends jni$_.JObject { r'(D)V', ); - static final _setMslAltitudeMeters = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setMslAltitudeMeters = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public void setMslAltitudeMeters(double d)` - void setMslAltitudeMeters( - double d, - ) { - _setMslAltitudeMeters(reference.pointer, - _id_setMslAltitudeMeters as jni$_.JMethodIDPtr, d) - .check(); + void setMslAltitudeMeters(double d) { + _setMslAltitudeMeters( + reference.pointer, + _id_setMslAltitudeMeters as jni$_.JMethodIDPtr, + d, + ).check(); } static final _id_hasMslAltitude = _class.instanceMethodId( @@ -1359,23 +1640,28 @@ class Location extends jni$_.JObject { r'()Z', ); - static final _hasMslAltitude = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hasMslAltitude = + 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 hasMslAltitude()` bool hasMslAltitude() { return _hasMslAltitude( - reference.pointer, _id_hasMslAltitude as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_hasMslAltitude as jni$_.JMethodIDPtr, + ).boolean; } static final _id_removeMslAltitude = _class.instanceMethodId( @@ -1383,23 +1669,28 @@ class Location extends jni$_.JObject { r'()V', ); - static final _removeMslAltitude = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _removeMslAltitude = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void removeMslAltitude()` void removeMslAltitude() { _removeMslAltitude( - reference.pointer, _id_removeMslAltitude as jni$_.JMethodIDPtr) - .check(); + reference.pointer, + _id_removeMslAltitude as jni$_.JMethodIDPtr, + ).check(); } static final _id_getMslAltitudeAccuracyMeters = _class.instanceMethodId( @@ -1409,22 +1700,26 @@ class Location extends jni$_.JObject { static final _getMslAltitudeAccuracyMeters = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float getMslAltitudeAccuracyMeters()` double getMslAltitudeAccuracyMeters() { - return _getMslAltitudeAccuracyMeters(reference.pointer, - _id_getMslAltitudeAccuracyMeters as jni$_.JMethodIDPtr) - .float; + return _getMslAltitudeAccuracyMeters( + reference.pointer, + _id_getMslAltitudeAccuracyMeters as jni$_.JMethodIDPtr, + ).float; } static final _id_setMslAltitudeAccuracyMeters = _class.instanceMethodId( @@ -1434,21 +1729,29 @@ class Location extends jni$_.JObject { static final _setMslAltitudeAccuracyMeters = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Double,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public void setMslAltitudeAccuracyMeters(float f)` - void setMslAltitudeAccuracyMeters( - double f, - ) { - _setMslAltitudeAccuracyMeters(reference.pointer, - _id_setMslAltitudeAccuracyMeters as jni$_.JMethodIDPtr, f) - .check(); + void setMslAltitudeAccuracyMeters(double f) { + _setMslAltitudeAccuracyMeters( + reference.pointer, + _id_setMslAltitudeAccuracyMeters as jni$_.JMethodIDPtr, + f, + ).check(); } static final _id_hasMslAltitudeAccuracy = _class.instanceMethodId( @@ -1456,23 +1759,28 @@ class Location extends jni$_.JObject { r'()Z', ); - static final _hasMslAltitudeAccuracy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hasMslAltitudeAccuracy = + 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 hasMslAltitudeAccuracy()` bool hasMslAltitudeAccuracy() { return _hasMslAltitudeAccuracy( - reference.pointer, _id_hasMslAltitudeAccuracy as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_hasMslAltitudeAccuracy as jni$_.JMethodIDPtr, + ).boolean; } static final _id_removeMslAltitudeAccuracy = _class.instanceMethodId( @@ -1480,23 +1788,28 @@ class Location extends jni$_.JObject { r'()V', ); - static final _removeMslAltitudeAccuracy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _removeMslAltitudeAccuracy = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void removeMslAltitudeAccuracy()` void removeMslAltitudeAccuracy() { - _removeMslAltitudeAccuracy(reference.pointer, - _id_removeMslAltitudeAccuracy as jni$_.JMethodIDPtr) - .check(); + _removeMslAltitudeAccuracy( + reference.pointer, + _id_removeMslAltitudeAccuracy as jni$_.JMethodIDPtr, + ).check(); } static final _id_isFromMockProvider = _class.instanceMethodId( @@ -1504,68 +1817,80 @@ class Location extends jni$_.JObject { r'()Z', ); - static final _isFromMockProvider = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isFromMockProvider = + 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 isFromMockProvider()` bool isFromMockProvider() { return _isFromMockProvider( - reference.pointer, _id_isFromMockProvider as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_isFromMockProvider as jni$_.JMethodIDPtr, + ).boolean; } - static final _id_isMock = _class.instanceMethodId( - r'isMock', - r'()Z', - ); + static final _id_isMock = _class.instanceMethodId(r'isMock', r'()Z'); - static final _isMock = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isMock = + 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 isMock()` bool isMock() { return _isMock(reference.pointer, _id_isMock as jni$_.JMethodIDPtr).boolean; } - static final _id_setMock = _class.instanceMethodId( - r'setMock', - r'(Z)V', - ); + static final _id_setMock = _class.instanceMethodId(r'setMock', r'(Z)V'); - static final _setMock = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setMock = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void setMock(boolean z)` - void setMock( - bool z, - ) { - _setMock(reference.pointer, _id_setMock as jni$_.JMethodIDPtr, z ? 1 : 0) - .check(); + void setMock(bool z) { + _setMock( + reference.pointer, + _id_setMock as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).check(); } static final _id_getExtras = _class.instanceMethodId( @@ -1573,23 +1898,29 @@ class Location extends jni$_.JObject { r'()Landroid/os/Bundle;', ); - static final _getExtras = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getExtras = + 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 android.os.Bundle getExtras()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getExtras() { - return _getExtras(reference.pointer, _id_getExtras as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _getExtras( + reference.pointer, + _id_getExtras as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_setExtras = _class.instanceMethodId( @@ -1597,48 +1928,58 @@ class Location extends jni$_.JObject { r'(Landroid/os/Bundle;)V', ); - static final _setExtras = 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 _setExtras = + 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 setExtras(android.os.Bundle bundle)` - void setExtras( - jni$_.JObject? bundle, - ) { + void setExtras(jni$_.JObject? bundle) { final _$bundle = bundle?.reference ?? jni$_.jNullReference; - _setExtras(reference.pointer, _id_setExtras as jni$_.JMethodIDPtr, - _$bundle.pointer) - .check(); + _setExtras( + reference.pointer, + _id_setExtras as jni$_.JMethodIDPtr, + _$bundle.pointer, + ).check(); } - static final _id_isComplete = _class.instanceMethodId( - r'isComplete', - r'()Z', - ); + static final _id_isComplete = _class.instanceMethodId(r'isComplete', r'()Z'); - static final _isComplete = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isComplete = + 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 isComplete()` bool isComplete() { - return _isComplete(reference.pointer, _id_isComplete as jni$_.JMethodIDPtr) - .boolean; + return _isComplete( + reference.pointer, + _id_isComplete as jni$_.JMethodIDPtr, + ).boolean; } static final _id_equals = _class.instanceMethodId( @@ -1646,48 +1987,58 @@ class Location extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } static final _id_toString$1 = _class.instanceMethodId( @@ -1695,23 +2046,29 @@ class Location extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + 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 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 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_dump = _class.instanceMethodId( @@ -1719,33 +2076,37 @@ class Location extends jni$_.JObject { r'(Landroid/util/Printer;Ljava/lang/String;)V', ); - static final _dump = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _dump = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void dump(android.util.Printer printer, java.lang.String string)` - void dump( - jni$_.JObject? printer, - jni$_.JString? string, - ) { + void dump(jni$_.JObject? printer, jni$_.JString? string) { final _$printer = printer?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; - _dump(reference.pointer, _id_dump as jni$_.JMethodIDPtr, _$printer.pointer, - _$string.pointer) - .check(); + _dump( + reference.pointer, + _id_dump as jni$_.JMethodIDPtr, + _$printer.pointer, + _$string.pointer, + ).check(); } static final _id_describeContents = _class.instanceMethodId( @@ -1753,23 +2114,28 @@ class Location extends jni$_.JObject { r'()I', ); - static final _describeContents = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _describeContents = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int describeContents()` int describeContents() { return _describeContents( - reference.pointer, _id_describeContents as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_describeContents as jni$_.JMethodIDPtr, + ).integer; } static final _id_writeToParcel = _class.instanceMethodId( @@ -1777,27 +2143,34 @@ class Location extends jni$_.JObject { r'(Landroid/os/Parcel;I)V', ); - static final _writeToParcel = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _writeToParcel = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public void writeToParcel(android.os.Parcel parcel, int i)` - void writeToParcel( - jni$_.JObject? parcel, - int i, - ) { + void writeToParcel(jni$_.JObject? parcel, int i) { final _$parcel = parcel?.reference ?? jni$_.jNullReference; - _writeToParcel(reference.pointer, _id_writeToParcel as jni$_.JMethodIDPtr, - _$parcel.pointer, i) - .check(); + _writeToParcel( + reference.pointer, + _id_writeToParcel as jni$_.JMethodIDPtr, + _$parcel.pointer, + i, + ).check(); } static final _id_convert = _class.staticMethodId( @@ -1805,26 +2178,34 @@ class Location extends jni$_.JObject { r'(DI)Ljava/lang/String;', ); - static final _convert = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double, int)>(); + static final _convert = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + int, + ) + >(); /// from: `static public java.lang.String convert(double d, int i)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? convert( - double d, - int i, - ) { + static jni$_.JString? convert(double d, int i) { return _convert( - _class.reference.pointer, _id_convert as jni$_.JMethodIDPtr, d, i) - .object(const jni$_.JStringNullableType()); + _class.reference.pointer, + _id_convert as jni$_.JMethodIDPtr, + d, + i, + ).object(const jni$_.JStringNullableType()); } static final _id_convert$1 = _class.staticMethodId( @@ -1832,25 +2213,32 @@ class Location extends jni$_.JObject { r'(Ljava/lang/String;)D', ); - static final _convert$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticDoubleMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _convert$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public double convert(java.lang.String string)` - static double convert$1( - jni$_.JString? string, - ) { + static double convert$1(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _convert$1(_class.reference.pointer, - _id_convert$1 as jni$_.JMethodIDPtr, _$string.pointer) - .doubleFloat; + return _convert$1( + _class.reference.pointer, + _id_convert$1 as jni$_.JMethodIDPtr, + _$string.pointer, + ).doubleFloat; } static final _id_distanceBetween = _class.staticMethodId( @@ -1858,28 +2246,35 @@ class Location extends jni$_.JObject { r'(DDDD[F)V', ); - static final _distanceBetween = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _distanceBetween = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Double, - jni$_.Double, - jni$_.Double, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Double, + jni$_.Double, + jni$_.Double, + jni$_.Double, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, double, double, double, double, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void distanceBetween(double d, double d1, double d2, double d3, float[] fs)` static void distanceBetween( @@ -1891,14 +2286,14 @@ class Location extends jni$_.JObject { ) { final _$fs = fs?.reference ?? jni$_.jNullReference; _distanceBetween( - _class.reference.pointer, - _id_distanceBetween as jni$_.JMethodIDPtr, - d, - d1, - d2, - d3, - _$fs.pointer) - .check(); + _class.reference.pointer, + _id_distanceBetween as jni$_.JMethodIDPtr, + d, + d1, + d2, + d3, + _$fs.pointer, + ).check(); } } @@ -1912,11 +2307,8 @@ final class $Location$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - Location? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Location.fromReference( - reference, - ); + Location? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Location.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1949,9 +2341,8 @@ final class $Location$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - Location fromReference(jni$_.JReference reference) => Location.fromReference( - reference, - ); + Location fromReference(jni$_.JReference reference) => + Location.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/android/location/_package.dart b/lib/src/platform/android/jni/android/location/_package.dart index 387d62bd..81863489 100644 --- a/lib/src/platform/android/jni/android/location/_package.dart +++ b/lib/src/platform/android/jni/android/location/_package.dart @@ -1 +1,2 @@ +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! export 'Location.dart'; diff --git a/lib/src/platform/android/jni/com/github/josxha/maplibre/Helpers.dart b/lib/src/platform/android/jni/com/github/josxha/maplibre/Helpers.dart index 43bb0b50..f933a1ae 100644 --- a/lib/src/platform/android/jni/com/github/josxha/maplibre/Helpers.dart +++ b/lib/src/platform/android/jni/com/github/josxha/maplibre/Helpers.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -60,13 +48,13 @@ class Helpers extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Helpers.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Helpers.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'com/github/josxha/maplibre/Helpers'); + static final _class = jni$_.JClass.forName( + r'com/github/josxha/maplibre/Helpers', + ); /// The type which includes information such as the signature of this class. static const nullableType = $Helpers$NullableType(); @@ -78,59 +66,65 @@ class Helpers extends jni$_.JObject { /// from: `static public final com.github.josxha.maplibre.Helpers INSTANCE` /// The returned object must be released after use, by calling the [release] method. - static Helpers? get INSTANCE => - _id_INSTANCE.get(_class, const $Helpers$NullableType()); + static Helpers get INSTANCE => + _id_INSTANCE.get(_class, const $Helpers$Type()); - static final _id_createOfflineTilePyramidRegionDefinition = - _class.instanceMethodId( - r'createOfflineTilePyramidRegionDefinition', - r'(Ljava/lang/String;Lorg/maplibre/android/geometry/LatLngBounds;DDF)Lorg/maplibre/android/offline/OfflineTilePyramidRegionDefinition;', - ); + static final _id_createOfflineTilePyramidRegionDefinition = _class + .instanceMethodId( + r'createOfflineTilePyramidRegionDefinition', + r'(Ljava/lang/String;Lorg/maplibre/android/geometry/LatLngBounds;DDF)Lorg/maplibre/android/offline/OfflineTilePyramidRegionDefinition;', + ); static final _createOfflineTilePyramidRegionDefinition = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Double, - jni$_.Double, - jni$_.Double - )>)>>('globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer, - double, - double, - double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Double, + jni$_.Double, + jni$_.Double, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + double, + double, + double, + ) + >(); /// from: `public final org.maplibre.android.offline.OfflineTilePyramidRegionDefinition createOfflineTilePyramidRegionDefinition(java.lang.String string, org.maplibre.android.geometry.LatLngBounds latLngBounds, double d, double d1, float f)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? createOfflineTilePyramidRegionDefinition( + jni$_.JObject createOfflineTilePyramidRegionDefinition( jni$_.JString? string, - latlngbounds$_.LatLngBounds? latLngBounds, + latlngbounds$_.LatLngBounds latLngBounds, double d, double d1, double f, ) { final _$string = string?.reference ?? jni$_.jNullReference; - final _$latLngBounds = latLngBounds?.reference ?? jni$_.jNullReference; + final _$latLngBounds = latLngBounds.reference; return _createOfflineTilePyramidRegionDefinition( - reference.pointer, - _id_createOfflineTilePyramidRegionDefinition as jni$_.JMethodIDPtr, - _$string.pointer, - _$latLngBounds.pointer, - d, - d1, - f) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_createOfflineTilePyramidRegionDefinition as jni$_.JMethodIDPtr, + _$string.pointer, + _$latLngBounds.pointer, + d, + d1, + f, + ).object(const jni$_.JObjectType()); } } @@ -144,14 +138,11 @@ final class $Helpers$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - Helpers? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Helpers.fromReference( - reference, - ); + Helpers? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Helpers.fromReference(reference); @jni$_.internal @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + jni$_.JObjType get superType => const jni$_.JObjectType(); @jni$_.internal @core$_.override @@ -181,12 +172,11 @@ final class $Helpers$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - Helpers fromReference(jni$_.JReference reference) => Helpers.fromReference( - reference, - ); + Helpers fromReference(jni$_.JReference reference) => + Helpers.fromReference(reference); @jni$_.internal @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + jni$_.JObjType get superType => const jni$_.JObjectType(); @jni$_.internal @core$_.override diff --git a/lib/src/platform/android/jni/com/github/josxha/maplibre/MapLibreRegistry.dart b/lib/src/platform/android/jni/com/github/josxha/maplibre/MapLibreRegistry.dart index 44078e70..51129eb3 100644 --- a/lib/src/platform/android/jni/com/github/josxha/maplibre/MapLibreRegistry.dart +++ b/lib/src/platform/android/jni/com/github/josxha/maplibre/MapLibreRegistry.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -60,13 +48,13 @@ class MapLibreRegistry extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreRegistry.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreRegistry.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'com/github/josxha/maplibre/MapLibreRegistry'); + static final _class = jni$_.JClass.forName( + r'com/github/josxha/maplibre/MapLibreRegistry', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibreRegistry$NullableType(); @@ -78,32 +66,42 @@ class MapLibreRegistry extends jni$_.JObject { /// from: `static public final com.github.josxha.maplibre.MapLibreRegistry INSTANCE` /// The returned object must be released after use, by calling the [release] method. - static MapLibreRegistry? get INSTANCE => - _id_INSTANCE.get(_class, const $MapLibreRegistry$NullableType()); + static MapLibreRegistry get INSTANCE => + _id_INSTANCE.get(_class, const $MapLibreRegistry$Type()); static final _id_getMap = _class.instanceMethodId( r'getMap', r'(I)Lorg/maplibre/android/maps/MapLibreMap;', ); - static final _getMap = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getMap = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public final org.maplibre.android.maps.MapLibreMap getMap(int i)` /// The returned object must be released after use, by calling the [release] method. - maplibremap$_.MapLibreMap? getMap( - int i, - ) { - return _getMap(reference.pointer, _id_getMap as jni$_.JMethodIDPtr, i) - .object( - const maplibremap$_.$MapLibreMap$NullableType()); + maplibremap$_.MapLibreMap? getMap(int i) { + return _getMap( + reference.pointer, + _id_getMap as jni$_.JMethodIDPtr, + i, + ).object( + const maplibremap$_.$MapLibreMap$NullableType(), + ); } static final _id_addMap = _class.instanceMethodId( @@ -111,27 +109,34 @@ class MapLibreRegistry extends jni$_.JObject { r'(ILorg/maplibre/android/maps/MapLibreMap;)V', ); - static final _addMap = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int32, jni$_.Pointer)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + static final _addMap = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32, jni$_.Pointer)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + ) + >(); /// from: `public final void addMap(int i, org.maplibre.android.maps.MapLibreMap mapLibreMap)` - void addMap( - int i, - maplibremap$_.MapLibreMap? mapLibreMap, - ) { - final _$mapLibreMap = mapLibreMap?.reference ?? jni$_.jNullReference; - _addMap(reference.pointer, _id_addMap as jni$_.JMethodIDPtr, i, - _$mapLibreMap.pointer) - .check(); + void addMap(int i, maplibremap$_.MapLibreMap mapLibreMap) { + final _$mapLibreMap = mapLibreMap.reference; + _addMap( + reference.pointer, + _id_addMap as jni$_.JMethodIDPtr, + i, + _$mapLibreMap.pointer, + ).check(); } static final _id_getActivity = _class.instanceMethodId( @@ -139,24 +144,29 @@ class MapLibreRegistry extends jni$_.JObject { r'()Landroid/app/Activity;', ); - static final _getActivity = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getActivity = + 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 android.app.Activity getActivity()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getActivity() { return _getActivity( - reference.pointer, _id_getActivity as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getActivity as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_setActivity = _class.instanceMethodId( @@ -164,25 +174,32 @@ class MapLibreRegistry extends jni$_.JObject { r'(Landroid/app/Activity;)V', ); - static final _setActivity = 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 _setActivity = + 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 final void setActivity(android.app.Activity activity)` - void setActivity( - jni$_.JObject? activity, - ) { + void setActivity(jni$_.JObject? activity) { final _$activity = activity?.reference ?? jni$_.jNullReference; - _setActivity(reference.pointer, _id_setActivity as jni$_.JMethodIDPtr, - _$activity.pointer) - .check(); + _setActivity( + reference.pointer, + _id_setActivity as jni$_.JMethodIDPtr, + _$activity.pointer, + ).check(); } static final _id_getContext = _class.instanceMethodId( @@ -190,23 +207,29 @@ class MapLibreRegistry extends jni$_.JObject { r'()Landroid/content/Context;', ); - static final _getContext = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getContext = + 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 android.content.Context getContext()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getContext() { - return _getContext(reference.pointer, _id_getContext as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _getContext( + reference.pointer, + _id_getContext as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_setContext = _class.instanceMethodId( @@ -214,25 +237,32 @@ class MapLibreRegistry extends jni$_.JObject { r'(Landroid/content/Context;)V', ); - static final _setContext = 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 _setContext = + 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 final void setContext(android.content.Context context)` - void setContext( - jni$_.JObject? context, - ) { + void setContext(jni$_.JObject? context) { final _$context = context?.reference ?? jni$_.jNullReference; - _setContext(reference.pointer, _id_setContext as jni$_.JMethodIDPtr, - _$context.pointer) - .check(); + _setContext( + reference.pointer, + _id_setContext as jni$_.JMethodIDPtr, + _$context.pointer, + ).check(); } } @@ -248,14 +278,10 @@ final class $MapLibreRegistry$NullableType @jni$_.internal @core$_.override MapLibreRegistry? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : MapLibreRegistry.fromReference( - reference, - ); + reference.isNull ? null : MapLibreRegistry.fromReference(reference); @jni$_.internal @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + jni$_.JObjType get superType => const jni$_.JObjectType(); @jni$_.internal @core$_.override @@ -286,12 +312,10 @@ final class $MapLibreRegistry$Type extends jni$_.JObjType { @jni$_.internal @core$_.override MapLibreRegistry fromReference(jni$_.JReference reference) => - MapLibreRegistry.fromReference( - reference, - ); + MapLibreRegistry.fromReference(reference); @jni$_.internal @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + jni$_.JObjType get superType => const jni$_.JObjectType(); @jni$_.internal @core$_.override diff --git a/lib/src/platform/android/jni/com/github/josxha/maplibre/_package.dart b/lib/src/platform/android/jni/com/github/josxha/maplibre/_package.dart index cb6788e2..c788bd21 100644 --- a/lib/src/platform/android/jni/com/github/josxha/maplibre/_package.dart +++ b/lib/src/platform/android/jni/com/github/josxha/maplibre/_package.dart @@ -1,2 +1,3 @@ +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! export 'Helpers.dart'; export 'MapLibreRegistry.dart'; diff --git a/lib/src/platform/android/jni/io/flutter/embedding/engine/plugins/activity/ActivityPluginBinding.dart b/lib/src/platform/android/jni/io/flutter/embedding/engine/plugins/activity/ActivityPluginBinding.dart index f44503e3..00639512 100644 --- a/lib/src/platform/android/jni/io/flutter/embedding/engine/plugins/activity/ActivityPluginBinding.dart +++ b/lib/src/platform/android/jni/io/flutter/embedding/engine/plugins/activity/ActivityPluginBinding.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -61,11 +49,12 @@ class ActivityPluginBinding$OnSaveInstanceStateListener extends jni$_.JObject { @jni$_.internal ActivityPluginBinding$OnSaveInstanceStateListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'io/flutter/embedding/engine/plugins/activity/ActivityPluginBinding$OnSaveInstanceStateListener'); + r'io/flutter/embedding/engine/plugins/activity/ActivityPluginBinding$OnSaveInstanceStateListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -76,25 +65,32 @@ class ActivityPluginBinding$OnSaveInstanceStateListener extends jni$_.JObject { r'(Landroid/os/Bundle;)V', ); - static final _onSaveInstanceState = 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 _onSaveInstanceState = + 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 onSaveInstanceState(android.os.Bundle bundle)` - void onSaveInstanceState( - jni$_.JObject? bundle, - ) { - final _$bundle = bundle?.reference ?? jni$_.jNullReference; - _onSaveInstanceState(reference.pointer, - _id_onSaveInstanceState as jni$_.JMethodIDPtr, _$bundle.pointer) - .check(); + void onSaveInstanceState(jni$_.JObject bundle) { + final _$bundle = bundle.reference; + _onSaveInstanceState( + reference.pointer, + _id_onSaveInstanceState as jni$_.JMethodIDPtr, + _$bundle.pointer, + ).check(); } static final _id_onRestoreInstanceState = _class.instanceMethodId( @@ -102,31 +98,40 @@ class ActivityPluginBinding$OnSaveInstanceStateListener extends jni$_.JObject { r'(Landroid/os/Bundle;)V', ); - static final _onRestoreInstanceState = 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 _onRestoreInstanceState = + 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 onRestoreInstanceState(android.os.Bundle bundle)` - void onRestoreInstanceState( - jni$_.JObject? bundle, - ) { + void onRestoreInstanceState(jni$_.JObject? bundle) { final _$bundle = bundle?.reference ?? jni$_.jNullReference; - _onRestoreInstanceState(reference.pointer, - _id_onRestoreInstanceState as jni$_.JMethodIDPtr, _$bundle.pointer) - .check(); + _onRestoreInstanceState( + reference.pointer, + _id_onRestoreInstanceState as jni$_.JMethodIDPtr, + _$bundle.pointer, + ).check(); } /// Maps a specific port to the implemented interface. - static final core$_ - .Map - _$impls = {}; + static final core$_.Map< + int, + $ActivityPluginBinding$OnSaveInstanceStateListener + > + _$impls = {}; static jni$_.JObjectPtr _$invoke( int port, jni$_.JObjectPtr descriptor, @@ -134,19 +139,16 @@ class ActivityPluginBinding$OnSaveInstanceStateListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -157,7 +159,7 @@ class ActivityPluginBinding$OnSaveInstanceStateListener extends jni$_.JObject { final $a = $i.args; if ($d == r'onSaveInstanceState(Landroid/os/Bundle;)V') { _$impls[$p]!.onSaveInstanceState( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; } @@ -216,13 +218,13 @@ class ActivityPluginBinding$OnSaveInstanceStateListener extends jni$_.JObject { abstract base mixin class $ActivityPluginBinding$OnSaveInstanceStateListener { factory $ActivityPluginBinding$OnSaveInstanceStateListener({ - required void Function(jni$_.JObject? bundle) onSaveInstanceState, + required void Function(jni$_.JObject bundle) onSaveInstanceState, bool onSaveInstanceState$async, required void Function(jni$_.JObject? bundle) onRestoreInstanceState, bool onRestoreInstanceState$async, }) = _$ActivityPluginBinding$OnSaveInstanceStateListener; - void onSaveInstanceState(jni$_.JObject? bundle); + void onSaveInstanceState(jni$_.JObject bundle); bool get onSaveInstanceState$async => false; void onRestoreInstanceState(jni$_.JObject? bundle); bool get onRestoreInstanceState$async => false; @@ -231,19 +233,19 @@ abstract base mixin class $ActivityPluginBinding$OnSaveInstanceStateListener { final class _$ActivityPluginBinding$OnSaveInstanceStateListener with $ActivityPluginBinding$OnSaveInstanceStateListener { _$ActivityPluginBinding$OnSaveInstanceStateListener({ - required void Function(jni$_.JObject? bundle) onSaveInstanceState, + required void Function(jni$_.JObject bundle) onSaveInstanceState, this.onSaveInstanceState$async = false, required void Function(jni$_.JObject? bundle) onRestoreInstanceState, this.onRestoreInstanceState$async = false, - }) : _onSaveInstanceState = onSaveInstanceState, - _onRestoreInstanceState = onRestoreInstanceState; + }) : _onSaveInstanceState = onSaveInstanceState, + _onRestoreInstanceState = onRestoreInstanceState; - final void Function(jni$_.JObject? bundle) _onSaveInstanceState; + final void Function(jni$_.JObject bundle) _onSaveInstanceState; final bool onSaveInstanceState$async; final void Function(jni$_.JObject? bundle) _onRestoreInstanceState; final bool onRestoreInstanceState$async; - void onSaveInstanceState(jni$_.JObject? bundle) { + void onSaveInstanceState(jni$_.JObject bundle) { return _onSaveInstanceState(bundle); } @@ -265,12 +267,12 @@ final class $ActivityPluginBinding$OnSaveInstanceStateListener$NullableType @jni$_.internal @core$_.override ActivityPluginBinding$OnSaveInstanceStateListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : ActivityPluginBinding$OnSaveInstanceStateListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : ActivityPluginBinding$OnSaveInstanceStateListener.fromReference( + reference, + ); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -278,7 +280,7 @@ final class $ActivityPluginBinding$OnSaveInstanceStateListener$NullableType @jni$_.internal @core$_.override jni$_.JObjType - get nullableType => this; + get nullableType => this; @jni$_.internal @core$_.override @@ -311,10 +313,10 @@ final class $ActivityPluginBinding$OnSaveInstanceStateListener$Type @jni$_.internal @core$_.override ActivityPluginBinding$OnSaveInstanceStateListener fromReference( - jni$_.JReference reference) => - ActivityPluginBinding$OnSaveInstanceStateListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => ActivityPluginBinding$OnSaveInstanceStateListener.fromReference( + reference, + ); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -322,8 +324,8 @@ final class $ActivityPluginBinding$OnSaveInstanceStateListener$Type @jni$_.internal @core$_.override jni$_.JObjType - get nullableType => - const $ActivityPluginBinding$OnSaveInstanceStateListener$NullableType(); + get nullableType => + const $ActivityPluginBinding$OnSaveInstanceStateListener$NullableType(); @jni$_.internal @core$_.override @@ -348,13 +350,13 @@ class ActivityPluginBinding extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - ActivityPluginBinding.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ActivityPluginBinding.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'io/flutter/embedding/engine/plugins/activity/ActivityPluginBinding'); + r'io/flutter/embedding/engine/plugins/activity/ActivityPluginBinding', + ); /// The type which includes information such as the signature of this class. static const nullableType = $ActivityPluginBinding$NullableType(); @@ -364,24 +366,29 @@ class ActivityPluginBinding extends jni$_.JObject { r'()Landroid/app/Activity;', ); - static final _getActivity = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getActivity = + 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 abstract android.app.Activity getActivity()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getActivity() { + jni$_.JObject getActivity() { return _getActivity( - reference.pointer, _id_getActivity as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getActivity as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } static final _id_getLifecycle = _class.instanceMethodId( @@ -389,88 +396,103 @@ class ActivityPluginBinding extends jni$_.JObject { r'()Ljava/lang/Object;', ); - static final _getLifecycle = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLifecycle = + 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 abstract java.lang.Object getLifecycle()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getLifecycle() { + jni$_.JObject getLifecycle() { return _getLifecycle( - reference.pointer, _id_getLifecycle as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getLifecycle as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } - static final _id_addRequestPermissionsResultListener = - _class.instanceMethodId( + static final _id_addRequestPermissionsResultListener = _class.instanceMethodId( r'addRequestPermissionsResultListener', r'(Lio/flutter/plugin/common/PluginRegistry$RequestPermissionsResultListener;)V', ); static final _addRequestPermissionsResultListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract void addRequestPermissionsResultListener(io.flutter.plugin.common.PluginRegistry$RequestPermissionsResultListener requestPermissionsResultListener)` void addRequestPermissionsResultListener( - pluginregistry$_.PluginRegistry$RequestPermissionsResultListener? - requestPermissionsResultListener, + pluginregistry$_.PluginRegistry$RequestPermissionsResultListener + requestPermissionsResultListener, ) { final _$requestPermissionsResultListener = - requestPermissionsResultListener?.reference ?? jni$_.jNullReference; + requestPermissionsResultListener.reference; _addRequestPermissionsResultListener( - reference.pointer, - _id_addRequestPermissionsResultListener as jni$_.JMethodIDPtr, - _$requestPermissionsResultListener.pointer) - .check(); + reference.pointer, + _id_addRequestPermissionsResultListener as jni$_.JMethodIDPtr, + _$requestPermissionsResultListener.pointer, + ).check(); } - static final _id_removeRequestPermissionsResultListener = - _class.instanceMethodId( + static final _id_removeRequestPermissionsResultListener = _class.instanceMethodId( r'removeRequestPermissionsResultListener', r'(Lio/flutter/plugin/common/PluginRegistry$RequestPermissionsResultListener;)V', ); static final _removeRequestPermissionsResultListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract void removeRequestPermissionsResultListener(io.flutter.plugin.common.PluginRegistry$RequestPermissionsResultListener requestPermissionsResultListener)` void removeRequestPermissionsResultListener( - pluginregistry$_.PluginRegistry$RequestPermissionsResultListener? - requestPermissionsResultListener, + pluginregistry$_.PluginRegistry$RequestPermissionsResultListener + requestPermissionsResultListener, ) { final _$requestPermissionsResultListener = - requestPermissionsResultListener?.reference ?? jni$_.jNullReference; + requestPermissionsResultListener.reference; _removeRequestPermissionsResultListener( - reference.pointer, - _id_removeRequestPermissionsResultListener as jni$_.JMethodIDPtr, - _$requestPermissionsResultListener.pointer) - .check(); + reference.pointer, + _id_removeRequestPermissionsResultListener as jni$_.JMethodIDPtr, + _$requestPermissionsResultListener.pointer, + ).check(); } static final _id_addActivityResultListener = _class.instanceMethodId( @@ -478,29 +500,35 @@ class ActivityPluginBinding extends jni$_.JObject { r'(Lio/flutter/plugin/common/PluginRegistry$ActivityResultListener;)V', ); - static final _addActivityResultListener = 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 _addActivityResultListener = + 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 addActivityResultListener(io.flutter.plugin.common.PluginRegistry$ActivityResultListener activityResultListener)` void addActivityResultListener( - pluginregistry$_.PluginRegistry$ActivityResultListener? - activityResultListener, + pluginregistry$_.PluginRegistry$ActivityResultListener + activityResultListener, ) { - final _$activityResultListener = - activityResultListener?.reference ?? jni$_.jNullReference; + final _$activityResultListener = activityResultListener.reference; _addActivityResultListener( - reference.pointer, - _id_addActivityResultListener as jni$_.JMethodIDPtr, - _$activityResultListener.pointer) - .check(); + reference.pointer, + _id_addActivityResultListener as jni$_.JMethodIDPtr, + _$activityResultListener.pointer, + ).check(); } static final _id_removeActivityResultListener = _class.instanceMethodId( @@ -510,28 +538,33 @@ class ActivityPluginBinding extends jni$_.JObject { static final _removeActivityResultListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract void removeActivityResultListener(io.flutter.plugin.common.PluginRegistry$ActivityResultListener activityResultListener)` void removeActivityResultListener( - pluginregistry$_.PluginRegistry$ActivityResultListener? - activityResultListener, + pluginregistry$_.PluginRegistry$ActivityResultListener + activityResultListener, ) { - final _$activityResultListener = - activityResultListener?.reference ?? jni$_.jNullReference; + final _$activityResultListener = activityResultListener.reference; _removeActivityResultListener( - reference.pointer, - _id_removeActivityResultListener as jni$_.JMethodIDPtr, - _$activityResultListener.pointer) - .check(); + reference.pointer, + _id_removeActivityResultListener as jni$_.JMethodIDPtr, + _$activityResultListener.pointer, + ).check(); } static final _id_addOnNewIntentListener = _class.instanceMethodId( @@ -539,28 +572,34 @@ class ActivityPluginBinding extends jni$_.JObject { r'(Lio/flutter/plugin/common/PluginRegistry$NewIntentListener;)V', ); - static final _addOnNewIntentListener = 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 _addOnNewIntentListener = + 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 addOnNewIntentListener(io.flutter.plugin.common.PluginRegistry$NewIntentListener newIntentListener)` void addOnNewIntentListener( - pluginregistry$_.PluginRegistry$NewIntentListener? newIntentListener, + pluginregistry$_.PluginRegistry$NewIntentListener newIntentListener, ) { - final _$newIntentListener = - newIntentListener?.reference ?? jni$_.jNullReference; + final _$newIntentListener = newIntentListener.reference; _addOnNewIntentListener( - reference.pointer, - _id_addOnNewIntentListener as jni$_.JMethodIDPtr, - _$newIntentListener.pointer) - .check(); + reference.pointer, + _id_addOnNewIntentListener as jni$_.JMethodIDPtr, + _$newIntentListener.pointer, + ).check(); } static final _id_removeOnNewIntentListener = _class.instanceMethodId( @@ -568,28 +607,34 @@ class ActivityPluginBinding extends jni$_.JObject { r'(Lio/flutter/plugin/common/PluginRegistry$NewIntentListener;)V', ); - static final _removeOnNewIntentListener = 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 _removeOnNewIntentListener = + 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 removeOnNewIntentListener(io.flutter.plugin.common.PluginRegistry$NewIntentListener newIntentListener)` void removeOnNewIntentListener( - pluginregistry$_.PluginRegistry$NewIntentListener? newIntentListener, + pluginregistry$_.PluginRegistry$NewIntentListener newIntentListener, ) { - final _$newIntentListener = - newIntentListener?.reference ?? jni$_.jNullReference; + final _$newIntentListener = newIntentListener.reference; _removeOnNewIntentListener( - reference.pointer, - _id_removeOnNewIntentListener as jni$_.JMethodIDPtr, - _$newIntentListener.pointer) - .check(); + reference.pointer, + _id_removeOnNewIntentListener as jni$_.JMethodIDPtr, + _$newIntentListener.pointer, + ).check(); } static final _id_addOnUserLeaveHintListener = _class.instanceMethodId( @@ -599,28 +644,32 @@ class ActivityPluginBinding extends jni$_.JObject { static final _addOnUserLeaveHintListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract void addOnUserLeaveHintListener(io.flutter.plugin.common.PluginRegistry$UserLeaveHintListener userLeaveHintListener)` void addOnUserLeaveHintListener( - pluginregistry$_.PluginRegistry$UserLeaveHintListener? - userLeaveHintListener, + pluginregistry$_.PluginRegistry$UserLeaveHintListener userLeaveHintListener, ) { - final _$userLeaveHintListener = - userLeaveHintListener?.reference ?? jni$_.jNullReference; + final _$userLeaveHintListener = userLeaveHintListener.reference; _addOnUserLeaveHintListener( - reference.pointer, - _id_addOnUserLeaveHintListener as jni$_.JMethodIDPtr, - _$userLeaveHintListener.pointer) - .check(); + reference.pointer, + _id_addOnUserLeaveHintListener as jni$_.JMethodIDPtr, + _$userLeaveHintListener.pointer, + ).check(); } static final _id_removeOnUserLeaveHintListener = _class.instanceMethodId( @@ -630,28 +679,32 @@ class ActivityPluginBinding extends jni$_.JObject { static final _removeOnUserLeaveHintListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract void removeOnUserLeaveHintListener(io.flutter.plugin.common.PluginRegistry$UserLeaveHintListener userLeaveHintListener)` void removeOnUserLeaveHintListener( - pluginregistry$_.PluginRegistry$UserLeaveHintListener? - userLeaveHintListener, + pluginregistry$_.PluginRegistry$UserLeaveHintListener userLeaveHintListener, ) { - final _$userLeaveHintListener = - userLeaveHintListener?.reference ?? jni$_.jNullReference; + final _$userLeaveHintListener = userLeaveHintListener.reference; _removeOnUserLeaveHintListener( - reference.pointer, - _id_removeOnUserLeaveHintListener as jni$_.JMethodIDPtr, - _$userLeaveHintListener.pointer) - .check(); + reference.pointer, + _id_removeOnUserLeaveHintListener as jni$_.JMethodIDPtr, + _$userLeaveHintListener.pointer, + ).check(); } static final _id_addOnWindowFocusChangedListener = _class.instanceMethodId( @@ -661,28 +714,33 @@ class ActivityPluginBinding extends jni$_.JObject { static final _addOnWindowFocusChangedListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract void addOnWindowFocusChangedListener(io.flutter.plugin.common.PluginRegistry$WindowFocusChangedListener windowFocusChangedListener)` void addOnWindowFocusChangedListener( - pluginregistry$_.PluginRegistry$WindowFocusChangedListener? - windowFocusChangedListener, + pluginregistry$_.PluginRegistry$WindowFocusChangedListener + windowFocusChangedListener, ) { - final _$windowFocusChangedListener = - windowFocusChangedListener?.reference ?? jni$_.jNullReference; + final _$windowFocusChangedListener = windowFocusChangedListener.reference; _addOnWindowFocusChangedListener( - reference.pointer, - _id_addOnWindowFocusChangedListener as jni$_.JMethodIDPtr, - _$windowFocusChangedListener.pointer) - .check(); + reference.pointer, + _id_addOnWindowFocusChangedListener as jni$_.JMethodIDPtr, + _$windowFocusChangedListener.pointer, + ).check(); } static final _id_removeOnWindowFocusChangedListener = _class.instanceMethodId( @@ -692,28 +750,33 @@ class ActivityPluginBinding extends jni$_.JObject { static final _removeOnWindowFocusChangedListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract void removeOnWindowFocusChangedListener(io.flutter.plugin.common.PluginRegistry$WindowFocusChangedListener windowFocusChangedListener)` void removeOnWindowFocusChangedListener( - pluginregistry$_.PluginRegistry$WindowFocusChangedListener? - windowFocusChangedListener, + pluginregistry$_.PluginRegistry$WindowFocusChangedListener + windowFocusChangedListener, ) { - final _$windowFocusChangedListener = - windowFocusChangedListener?.reference ?? jni$_.jNullReference; + final _$windowFocusChangedListener = windowFocusChangedListener.reference; _removeOnWindowFocusChangedListener( - reference.pointer, - _id_removeOnWindowFocusChangedListener as jni$_.JMethodIDPtr, - _$windowFocusChangedListener.pointer) - .check(); + reference.pointer, + _id_removeOnWindowFocusChangedListener as jni$_.JMethodIDPtr, + _$windowFocusChangedListener.pointer, + ).check(); } static final _id_addOnSaveStateListener = _class.instanceMethodId( @@ -721,29 +784,35 @@ class ActivityPluginBinding extends jni$_.JObject { r'(Lio/flutter/embedding/engine/plugins/activity/ActivityPluginBinding$OnSaveInstanceStateListener;)V', ); - static final _addOnSaveStateListener = 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 _addOnSaveStateListener = + 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 addOnSaveStateListener(io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding$OnSaveInstanceStateListener onSaveInstanceStateListener)` void addOnSaveStateListener( - ActivityPluginBinding$OnSaveInstanceStateListener? - onSaveInstanceStateListener, + ActivityPluginBinding$OnSaveInstanceStateListener + onSaveInstanceStateListener, ) { - final _$onSaveInstanceStateListener = - onSaveInstanceStateListener?.reference ?? jni$_.jNullReference; + final _$onSaveInstanceStateListener = onSaveInstanceStateListener.reference; _addOnSaveStateListener( - reference.pointer, - _id_addOnSaveStateListener as jni$_.JMethodIDPtr, - _$onSaveInstanceStateListener.pointer) - .check(); + reference.pointer, + _id_addOnSaveStateListener as jni$_.JMethodIDPtr, + _$onSaveInstanceStateListener.pointer, + ).check(); } static final _id_removeOnSaveStateListener = _class.instanceMethodId( @@ -751,29 +820,35 @@ class ActivityPluginBinding extends jni$_.JObject { r'(Lio/flutter/embedding/engine/plugins/activity/ActivityPluginBinding$OnSaveInstanceStateListener;)V', ); - static final _removeOnSaveStateListener = 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 _removeOnSaveStateListener = + 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 removeOnSaveStateListener(io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding$OnSaveInstanceStateListener onSaveInstanceStateListener)` void removeOnSaveStateListener( - ActivityPluginBinding$OnSaveInstanceStateListener? - onSaveInstanceStateListener, + ActivityPluginBinding$OnSaveInstanceStateListener + onSaveInstanceStateListener, ) { - final _$onSaveInstanceStateListener = - onSaveInstanceStateListener?.reference ?? jni$_.jNullReference; + final _$onSaveInstanceStateListener = onSaveInstanceStateListener.reference; _removeOnSaveStateListener( - reference.pointer, - _id_removeOnSaveStateListener as jni$_.JMethodIDPtr, - _$onSaveInstanceStateListener.pointer) - .check(); + reference.pointer, + _id_removeOnSaveStateListener as jni$_.JMethodIDPtr, + _$onSaveInstanceStateListener.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -785,19 +860,16 @@ class ActivityPluginBinding extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -825,116 +897,120 @@ class ActivityPluginBinding extends jni$_.JObject { if ($d == r'addRequestPermissionsResultListener(Lio/flutter/plugin/common/PluginRegistry$RequestPermissionsResultListener;)V') { _$impls[$p]!.addRequestPermissionsResultListener( - $a![0]?.as( - const pluginregistry$_ - .$PluginRegistry$RequestPermissionsResultListener$Type(), - releaseOriginal: true), + $a![0]!.as( + const pluginregistry$_.$PluginRegistry$RequestPermissionsResultListener$Type(), + releaseOriginal: true, + ), ); return jni$_.nullptr; } if ($d == r'removeRequestPermissionsResultListener(Lio/flutter/plugin/common/PluginRegistry$RequestPermissionsResultListener;)V') { _$impls[$p]!.removeRequestPermissionsResultListener( - $a![0]?.as( - const pluginregistry$_ - .$PluginRegistry$RequestPermissionsResultListener$Type(), - releaseOriginal: true), + $a![0]!.as( + const pluginregistry$_.$PluginRegistry$RequestPermissionsResultListener$Type(), + releaseOriginal: true, + ), ); return jni$_.nullptr; } if ($d == r'addActivityResultListener(Lio/flutter/plugin/common/PluginRegistry$ActivityResultListener;)V') { _$impls[$p]!.addActivityResultListener( - $a![0]?.as( - const pluginregistry$_ - .$PluginRegistry$ActivityResultListener$Type(), - releaseOriginal: true), + $a![0]!.as( + const pluginregistry$_.$PluginRegistry$ActivityResultListener$Type(), + releaseOriginal: true, + ), ); return jni$_.nullptr; } if ($d == r'removeActivityResultListener(Lio/flutter/plugin/common/PluginRegistry$ActivityResultListener;)V') { _$impls[$p]!.removeActivityResultListener( - $a![0]?.as( - const pluginregistry$_ - .$PluginRegistry$ActivityResultListener$Type(), - releaseOriginal: true), + $a![0]!.as( + const pluginregistry$_.$PluginRegistry$ActivityResultListener$Type(), + releaseOriginal: true, + ), ); return jni$_.nullptr; } if ($d == r'addOnNewIntentListener(Lio/flutter/plugin/common/PluginRegistry$NewIntentListener;)V') { _$impls[$p]!.addOnNewIntentListener( - $a![0]?.as( - const pluginregistry$_.$PluginRegistry$NewIntentListener$Type(), - releaseOriginal: true), + $a![0]!.as( + const pluginregistry$_.$PluginRegistry$NewIntentListener$Type(), + releaseOriginal: true, + ), ); return jni$_.nullptr; } if ($d == r'removeOnNewIntentListener(Lio/flutter/plugin/common/PluginRegistry$NewIntentListener;)V') { _$impls[$p]!.removeOnNewIntentListener( - $a![0]?.as( - const pluginregistry$_.$PluginRegistry$NewIntentListener$Type(), - releaseOriginal: true), + $a![0]!.as( + const pluginregistry$_.$PluginRegistry$NewIntentListener$Type(), + releaseOriginal: true, + ), ); return jni$_.nullptr; } if ($d == r'addOnUserLeaveHintListener(Lio/flutter/plugin/common/PluginRegistry$UserLeaveHintListener;)V') { _$impls[$p]!.addOnUserLeaveHintListener( - $a![0]?.as( - const pluginregistry$_ - .$PluginRegistry$UserLeaveHintListener$Type(), - releaseOriginal: true), + $a![0]!.as( + const pluginregistry$_.$PluginRegistry$UserLeaveHintListener$Type(), + releaseOriginal: true, + ), ); return jni$_.nullptr; } if ($d == r'removeOnUserLeaveHintListener(Lio/flutter/plugin/common/PluginRegistry$UserLeaveHintListener;)V') { _$impls[$p]!.removeOnUserLeaveHintListener( - $a![0]?.as( - const pluginregistry$_ - .$PluginRegistry$UserLeaveHintListener$Type(), - releaseOriginal: true), + $a![0]!.as( + const pluginregistry$_.$PluginRegistry$UserLeaveHintListener$Type(), + releaseOriginal: true, + ), ); return jni$_.nullptr; } if ($d == r'addOnWindowFocusChangedListener(Lio/flutter/plugin/common/PluginRegistry$WindowFocusChangedListener;)V') { _$impls[$p]!.addOnWindowFocusChangedListener( - $a![0]?.as( - const pluginregistry$_ - .$PluginRegistry$WindowFocusChangedListener$Type(), - releaseOriginal: true), + $a![0]!.as( + const pluginregistry$_.$PluginRegistry$WindowFocusChangedListener$Type(), + releaseOriginal: true, + ), ); return jni$_.nullptr; } if ($d == r'removeOnWindowFocusChangedListener(Lio/flutter/plugin/common/PluginRegistry$WindowFocusChangedListener;)V') { _$impls[$p]!.removeOnWindowFocusChangedListener( - $a![0]?.as( - const pluginregistry$_ - .$PluginRegistry$WindowFocusChangedListener$Type(), - releaseOriginal: true), + $a![0]!.as( + const pluginregistry$_.$PluginRegistry$WindowFocusChangedListener$Type(), + releaseOriginal: true, + ), ); return jni$_.nullptr; } if ($d == r'addOnSaveStateListener(Lio/flutter/embedding/engine/plugins/activity/ActivityPluginBinding$OnSaveInstanceStateListener;)V') { _$impls[$p]!.addOnSaveStateListener( - $a![0]?.as( - const $ActivityPluginBinding$OnSaveInstanceStateListener$Type(), - releaseOriginal: true), + $a![0]!.as( + const $ActivityPluginBinding$OnSaveInstanceStateListener$Type(), + releaseOriginal: true, + ), ); return jni$_.nullptr; } if ($d == r'removeOnSaveStateListener(Lio/flutter/embedding/engine/plugins/activity/ActivityPluginBinding$OnSaveInstanceStateListener;)V') { _$impls[$p]!.removeOnSaveStateListener( - $a![0]?.as( - const $ActivityPluginBinding$OnSaveInstanceStateListener$Type(), - releaseOriginal: true), + $a![0]!.as( + const $ActivityPluginBinding$OnSaveInstanceStateListener$Type(), + releaseOriginal: true, + ), ); return jni$_.nullptr; } @@ -994,345 +1070,400 @@ class ActivityPluginBinding extends jni$_.JObject { _$impls[$a] = $impl; } - factory ActivityPluginBinding.implement( - $ActivityPluginBinding $impl, - ) { + factory ActivityPluginBinding.implement($ActivityPluginBinding $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return ActivityPluginBinding.fromReference( - $i.implementReference(), - ); + return ActivityPluginBinding.fromReference($i.implementReference()); } } abstract base mixin class $ActivityPluginBinding { factory $ActivityPluginBinding({ - required jni$_.JObject? Function() getActivity, - required jni$_.JObject? Function() getLifecycle, + required jni$_.JObject Function() getActivity, + required jni$_.JObject Function() getLifecycle, required void Function( - pluginregistry$_.PluginRegistry$RequestPermissionsResultListener? - requestPermissionsResultListener) - addRequestPermissionsResultListener, + pluginregistry$_.PluginRegistry$RequestPermissionsResultListener + requestPermissionsResultListener, + ) + addRequestPermissionsResultListener, bool addRequestPermissionsResultListener$async, required void Function( - pluginregistry$_.PluginRegistry$RequestPermissionsResultListener? - requestPermissionsResultListener) - removeRequestPermissionsResultListener, + pluginregistry$_.PluginRegistry$RequestPermissionsResultListener + requestPermissionsResultListener, + ) + removeRequestPermissionsResultListener, bool removeRequestPermissionsResultListener$async, required void Function( - pluginregistry$_.PluginRegistry$ActivityResultListener? - activityResultListener) - addActivityResultListener, + pluginregistry$_.PluginRegistry$ActivityResultListener + activityResultListener, + ) + addActivityResultListener, bool addActivityResultListener$async, required void Function( - pluginregistry$_.PluginRegistry$ActivityResultListener? - activityResultListener) - removeActivityResultListener, + pluginregistry$_.PluginRegistry$ActivityResultListener + activityResultListener, + ) + removeActivityResultListener, bool removeActivityResultListener$async, required void Function( - pluginregistry$_.PluginRegistry$NewIntentListener? - newIntentListener) - addOnNewIntentListener, + pluginregistry$_.PluginRegistry$NewIntentListener newIntentListener, + ) + addOnNewIntentListener, bool addOnNewIntentListener$async, required void Function( - pluginregistry$_.PluginRegistry$NewIntentListener? - newIntentListener) - removeOnNewIntentListener, + pluginregistry$_.PluginRegistry$NewIntentListener newIntentListener, + ) + removeOnNewIntentListener, bool removeOnNewIntentListener$async, required void Function( - pluginregistry$_.PluginRegistry$UserLeaveHintListener? - userLeaveHintListener) - addOnUserLeaveHintListener, + pluginregistry$_.PluginRegistry$UserLeaveHintListener + userLeaveHintListener, + ) + addOnUserLeaveHintListener, bool addOnUserLeaveHintListener$async, required void Function( - pluginregistry$_.PluginRegistry$UserLeaveHintListener? - userLeaveHintListener) - removeOnUserLeaveHintListener, + pluginregistry$_.PluginRegistry$UserLeaveHintListener + userLeaveHintListener, + ) + removeOnUserLeaveHintListener, bool removeOnUserLeaveHintListener$async, required void Function( - pluginregistry$_.PluginRegistry$WindowFocusChangedListener? - windowFocusChangedListener) - addOnWindowFocusChangedListener, + pluginregistry$_.PluginRegistry$WindowFocusChangedListener + windowFocusChangedListener, + ) + addOnWindowFocusChangedListener, bool addOnWindowFocusChangedListener$async, required void Function( - pluginregistry$_.PluginRegistry$WindowFocusChangedListener? - windowFocusChangedListener) - removeOnWindowFocusChangedListener, + pluginregistry$_.PluginRegistry$WindowFocusChangedListener + windowFocusChangedListener, + ) + removeOnWindowFocusChangedListener, bool removeOnWindowFocusChangedListener$async, required void Function( - ActivityPluginBinding$OnSaveInstanceStateListener? - onSaveInstanceStateListener) - addOnSaveStateListener, + ActivityPluginBinding$OnSaveInstanceStateListener + onSaveInstanceStateListener, + ) + addOnSaveStateListener, bool addOnSaveStateListener$async, required void Function( - ActivityPluginBinding$OnSaveInstanceStateListener? - onSaveInstanceStateListener) - removeOnSaveStateListener, + ActivityPluginBinding$OnSaveInstanceStateListener + onSaveInstanceStateListener, + ) + removeOnSaveStateListener, bool removeOnSaveStateListener$async, }) = _$ActivityPluginBinding; - jni$_.JObject? getActivity(); - jni$_.JObject? getLifecycle(); + jni$_.JObject getActivity(); + jni$_.JObject getLifecycle(); void addRequestPermissionsResultListener( - pluginregistry$_.PluginRegistry$RequestPermissionsResultListener? - requestPermissionsResultListener); + pluginregistry$_.PluginRegistry$RequestPermissionsResultListener + requestPermissionsResultListener, + ); bool get addRequestPermissionsResultListener$async => false; void removeRequestPermissionsResultListener( - pluginregistry$_.PluginRegistry$RequestPermissionsResultListener? - requestPermissionsResultListener); + pluginregistry$_.PluginRegistry$RequestPermissionsResultListener + requestPermissionsResultListener, + ); bool get removeRequestPermissionsResultListener$async => false; void addActivityResultListener( - pluginregistry$_.PluginRegistry$ActivityResultListener? - activityResultListener); + pluginregistry$_.PluginRegistry$ActivityResultListener + activityResultListener, + ); bool get addActivityResultListener$async => false; void removeActivityResultListener( - pluginregistry$_.PluginRegistry$ActivityResultListener? - activityResultListener); + pluginregistry$_.PluginRegistry$ActivityResultListener + activityResultListener, + ); bool get removeActivityResultListener$async => false; void addOnNewIntentListener( - pluginregistry$_.PluginRegistry$NewIntentListener? newIntentListener); + pluginregistry$_.PluginRegistry$NewIntentListener newIntentListener, + ); bool get addOnNewIntentListener$async => false; void removeOnNewIntentListener( - pluginregistry$_.PluginRegistry$NewIntentListener? newIntentListener); + pluginregistry$_.PluginRegistry$NewIntentListener newIntentListener, + ); bool get removeOnNewIntentListener$async => false; void addOnUserLeaveHintListener( - pluginregistry$_.PluginRegistry$UserLeaveHintListener? - userLeaveHintListener); + pluginregistry$_.PluginRegistry$UserLeaveHintListener userLeaveHintListener, + ); bool get addOnUserLeaveHintListener$async => false; void removeOnUserLeaveHintListener( - pluginregistry$_.PluginRegistry$UserLeaveHintListener? - userLeaveHintListener); + pluginregistry$_.PluginRegistry$UserLeaveHintListener userLeaveHintListener, + ); bool get removeOnUserLeaveHintListener$async => false; void addOnWindowFocusChangedListener( - pluginregistry$_.PluginRegistry$WindowFocusChangedListener? - windowFocusChangedListener); + pluginregistry$_.PluginRegistry$WindowFocusChangedListener + windowFocusChangedListener, + ); bool get addOnWindowFocusChangedListener$async => false; void removeOnWindowFocusChangedListener( - pluginregistry$_.PluginRegistry$WindowFocusChangedListener? - windowFocusChangedListener); + pluginregistry$_.PluginRegistry$WindowFocusChangedListener + windowFocusChangedListener, + ); bool get removeOnWindowFocusChangedListener$async => false; void addOnSaveStateListener( - ActivityPluginBinding$OnSaveInstanceStateListener? - onSaveInstanceStateListener); + ActivityPluginBinding$OnSaveInstanceStateListener + onSaveInstanceStateListener, + ); bool get addOnSaveStateListener$async => false; void removeOnSaveStateListener( - ActivityPluginBinding$OnSaveInstanceStateListener? - onSaveInstanceStateListener); + ActivityPluginBinding$OnSaveInstanceStateListener + onSaveInstanceStateListener, + ); bool get removeOnSaveStateListener$async => false; } final class _$ActivityPluginBinding with $ActivityPluginBinding { _$ActivityPluginBinding({ - required jni$_.JObject? Function() getActivity, - required jni$_.JObject? Function() getLifecycle, + required jni$_.JObject Function() getActivity, + required jni$_.JObject Function() getLifecycle, required void Function( - pluginregistry$_.PluginRegistry$RequestPermissionsResultListener? - requestPermissionsResultListener) - addRequestPermissionsResultListener, + pluginregistry$_.PluginRegistry$RequestPermissionsResultListener + requestPermissionsResultListener, + ) + addRequestPermissionsResultListener, this.addRequestPermissionsResultListener$async = false, required void Function( - pluginregistry$_.PluginRegistry$RequestPermissionsResultListener? - requestPermissionsResultListener) - removeRequestPermissionsResultListener, + pluginregistry$_.PluginRegistry$RequestPermissionsResultListener + requestPermissionsResultListener, + ) + removeRequestPermissionsResultListener, this.removeRequestPermissionsResultListener$async = false, required void Function( - pluginregistry$_.PluginRegistry$ActivityResultListener? - activityResultListener) - addActivityResultListener, + pluginregistry$_.PluginRegistry$ActivityResultListener + activityResultListener, + ) + addActivityResultListener, this.addActivityResultListener$async = false, required void Function( - pluginregistry$_.PluginRegistry$ActivityResultListener? - activityResultListener) - removeActivityResultListener, + pluginregistry$_.PluginRegistry$ActivityResultListener + activityResultListener, + ) + removeActivityResultListener, this.removeActivityResultListener$async = false, required void Function( - pluginregistry$_.PluginRegistry$NewIntentListener? - newIntentListener) - addOnNewIntentListener, + pluginregistry$_.PluginRegistry$NewIntentListener newIntentListener, + ) + addOnNewIntentListener, this.addOnNewIntentListener$async = false, required void Function( - pluginregistry$_.PluginRegistry$NewIntentListener? - newIntentListener) - removeOnNewIntentListener, + pluginregistry$_.PluginRegistry$NewIntentListener newIntentListener, + ) + removeOnNewIntentListener, this.removeOnNewIntentListener$async = false, required void Function( - pluginregistry$_.PluginRegistry$UserLeaveHintListener? - userLeaveHintListener) - addOnUserLeaveHintListener, + pluginregistry$_.PluginRegistry$UserLeaveHintListener + userLeaveHintListener, + ) + addOnUserLeaveHintListener, this.addOnUserLeaveHintListener$async = false, required void Function( - pluginregistry$_.PluginRegistry$UserLeaveHintListener? - userLeaveHintListener) - removeOnUserLeaveHintListener, + pluginregistry$_.PluginRegistry$UserLeaveHintListener + userLeaveHintListener, + ) + removeOnUserLeaveHintListener, this.removeOnUserLeaveHintListener$async = false, required void Function( - pluginregistry$_.PluginRegistry$WindowFocusChangedListener? - windowFocusChangedListener) - addOnWindowFocusChangedListener, + pluginregistry$_.PluginRegistry$WindowFocusChangedListener + windowFocusChangedListener, + ) + addOnWindowFocusChangedListener, this.addOnWindowFocusChangedListener$async = false, required void Function( - pluginregistry$_.PluginRegistry$WindowFocusChangedListener? - windowFocusChangedListener) - removeOnWindowFocusChangedListener, + pluginregistry$_.PluginRegistry$WindowFocusChangedListener + windowFocusChangedListener, + ) + removeOnWindowFocusChangedListener, this.removeOnWindowFocusChangedListener$async = false, required void Function( - ActivityPluginBinding$OnSaveInstanceStateListener? - onSaveInstanceStateListener) - addOnSaveStateListener, + ActivityPluginBinding$OnSaveInstanceStateListener + onSaveInstanceStateListener, + ) + addOnSaveStateListener, this.addOnSaveStateListener$async = false, required void Function( - ActivityPluginBinding$OnSaveInstanceStateListener? - onSaveInstanceStateListener) - removeOnSaveStateListener, + ActivityPluginBinding$OnSaveInstanceStateListener + onSaveInstanceStateListener, + ) + removeOnSaveStateListener, this.removeOnSaveStateListener$async = false, - }) : _getActivity = getActivity, - _getLifecycle = getLifecycle, - _addRequestPermissionsResultListener = - addRequestPermissionsResultListener, - _removeRequestPermissionsResultListener = - removeRequestPermissionsResultListener, - _addActivityResultListener = addActivityResultListener, - _removeActivityResultListener = removeActivityResultListener, - _addOnNewIntentListener = addOnNewIntentListener, - _removeOnNewIntentListener = removeOnNewIntentListener, - _addOnUserLeaveHintListener = addOnUserLeaveHintListener, - _removeOnUserLeaveHintListener = removeOnUserLeaveHintListener, - _addOnWindowFocusChangedListener = addOnWindowFocusChangedListener, - _removeOnWindowFocusChangedListener = - removeOnWindowFocusChangedListener, - _addOnSaveStateListener = addOnSaveStateListener, - _removeOnSaveStateListener = removeOnSaveStateListener; - - final jni$_.JObject? Function() _getActivity; - final jni$_.JObject? Function() _getLifecycle; + }) : _getActivity = getActivity, + _getLifecycle = getLifecycle, + _addRequestPermissionsResultListener = + addRequestPermissionsResultListener, + _removeRequestPermissionsResultListener = + removeRequestPermissionsResultListener, + _addActivityResultListener = addActivityResultListener, + _removeActivityResultListener = removeActivityResultListener, + _addOnNewIntentListener = addOnNewIntentListener, + _removeOnNewIntentListener = removeOnNewIntentListener, + _addOnUserLeaveHintListener = addOnUserLeaveHintListener, + _removeOnUserLeaveHintListener = removeOnUserLeaveHintListener, + _addOnWindowFocusChangedListener = addOnWindowFocusChangedListener, + _removeOnWindowFocusChangedListener = removeOnWindowFocusChangedListener, + _addOnSaveStateListener = addOnSaveStateListener, + _removeOnSaveStateListener = removeOnSaveStateListener; + + final jni$_.JObject Function() _getActivity; + final jni$_.JObject Function() _getLifecycle; final void Function( - pluginregistry$_.PluginRegistry$RequestPermissionsResultListener? - requestPermissionsResultListener) - _addRequestPermissionsResultListener; + pluginregistry$_.PluginRegistry$RequestPermissionsResultListener + requestPermissionsResultListener, + ) + _addRequestPermissionsResultListener; final bool addRequestPermissionsResultListener$async; final void Function( - pluginregistry$_.PluginRegistry$RequestPermissionsResultListener? - requestPermissionsResultListener) - _removeRequestPermissionsResultListener; + pluginregistry$_.PluginRegistry$RequestPermissionsResultListener + requestPermissionsResultListener, + ) + _removeRequestPermissionsResultListener; final bool removeRequestPermissionsResultListener$async; final void Function( - pluginregistry$_.PluginRegistry$ActivityResultListener? - activityResultListener) _addActivityResultListener; + pluginregistry$_.PluginRegistry$ActivityResultListener + activityResultListener, + ) + _addActivityResultListener; final bool addActivityResultListener$async; final void Function( - pluginregistry$_.PluginRegistry$ActivityResultListener? - activityResultListener) _removeActivityResultListener; + pluginregistry$_.PluginRegistry$ActivityResultListener + activityResultListener, + ) + _removeActivityResultListener; final bool removeActivityResultListener$async; final void Function( - pluginregistry$_.PluginRegistry$NewIntentListener? newIntentListener) - _addOnNewIntentListener; + pluginregistry$_.PluginRegistry$NewIntentListener newIntentListener, + ) + _addOnNewIntentListener; final bool addOnNewIntentListener$async; final void Function( - pluginregistry$_.PluginRegistry$NewIntentListener? newIntentListener) - _removeOnNewIntentListener; + pluginregistry$_.PluginRegistry$NewIntentListener newIntentListener, + ) + _removeOnNewIntentListener; final bool removeOnNewIntentListener$async; final void Function( - pluginregistry$_.PluginRegistry$UserLeaveHintListener? - userLeaveHintListener) _addOnUserLeaveHintListener; + pluginregistry$_.PluginRegistry$UserLeaveHintListener userLeaveHintListener, + ) + _addOnUserLeaveHintListener; final bool addOnUserLeaveHintListener$async; final void Function( - pluginregistry$_.PluginRegistry$UserLeaveHintListener? - userLeaveHintListener) _removeOnUserLeaveHintListener; + pluginregistry$_.PluginRegistry$UserLeaveHintListener userLeaveHintListener, + ) + _removeOnUserLeaveHintListener; final bool removeOnUserLeaveHintListener$async; final void Function( - pluginregistry$_.PluginRegistry$WindowFocusChangedListener? - windowFocusChangedListener) _addOnWindowFocusChangedListener; + pluginregistry$_.PluginRegistry$WindowFocusChangedListener + windowFocusChangedListener, + ) + _addOnWindowFocusChangedListener; final bool addOnWindowFocusChangedListener$async; final void Function( - pluginregistry$_.PluginRegistry$WindowFocusChangedListener? - windowFocusChangedListener) _removeOnWindowFocusChangedListener; + pluginregistry$_.PluginRegistry$WindowFocusChangedListener + windowFocusChangedListener, + ) + _removeOnWindowFocusChangedListener; final bool removeOnWindowFocusChangedListener$async; final void Function( - ActivityPluginBinding$OnSaveInstanceStateListener? - onSaveInstanceStateListener) _addOnSaveStateListener; + ActivityPluginBinding$OnSaveInstanceStateListener + onSaveInstanceStateListener, + ) + _addOnSaveStateListener; final bool addOnSaveStateListener$async; final void Function( - ActivityPluginBinding$OnSaveInstanceStateListener? - onSaveInstanceStateListener) _removeOnSaveStateListener; + ActivityPluginBinding$OnSaveInstanceStateListener + onSaveInstanceStateListener, + ) + _removeOnSaveStateListener; final bool removeOnSaveStateListener$async; - jni$_.JObject? getActivity() { + jni$_.JObject getActivity() { return _getActivity(); } - jni$_.JObject? getLifecycle() { + jni$_.JObject getLifecycle() { return _getLifecycle(); } void addRequestPermissionsResultListener( - pluginregistry$_.PluginRegistry$RequestPermissionsResultListener? - requestPermissionsResultListener) { + pluginregistry$_.PluginRegistry$RequestPermissionsResultListener + requestPermissionsResultListener, + ) { return _addRequestPermissionsResultListener( - requestPermissionsResultListener); + requestPermissionsResultListener, + ); } void removeRequestPermissionsResultListener( - pluginregistry$_.PluginRegistry$RequestPermissionsResultListener? - requestPermissionsResultListener) { + pluginregistry$_.PluginRegistry$RequestPermissionsResultListener + requestPermissionsResultListener, + ) { return _removeRequestPermissionsResultListener( - requestPermissionsResultListener); + requestPermissionsResultListener, + ); } void addActivityResultListener( - pluginregistry$_.PluginRegistry$ActivityResultListener? - activityResultListener) { + pluginregistry$_.PluginRegistry$ActivityResultListener + activityResultListener, + ) { return _addActivityResultListener(activityResultListener); } void removeActivityResultListener( - pluginregistry$_.PluginRegistry$ActivityResultListener? - activityResultListener) { + pluginregistry$_.PluginRegistry$ActivityResultListener + activityResultListener, + ) { return _removeActivityResultListener(activityResultListener); } void addOnNewIntentListener( - pluginregistry$_.PluginRegistry$NewIntentListener? newIntentListener) { + pluginregistry$_.PluginRegistry$NewIntentListener newIntentListener, + ) { return _addOnNewIntentListener(newIntentListener); } void removeOnNewIntentListener( - pluginregistry$_.PluginRegistry$NewIntentListener? newIntentListener) { + pluginregistry$_.PluginRegistry$NewIntentListener newIntentListener, + ) { return _removeOnNewIntentListener(newIntentListener); } void addOnUserLeaveHintListener( - pluginregistry$_.PluginRegistry$UserLeaveHintListener? - userLeaveHintListener) { + pluginregistry$_.PluginRegistry$UserLeaveHintListener userLeaveHintListener, + ) { return _addOnUserLeaveHintListener(userLeaveHintListener); } void removeOnUserLeaveHintListener( - pluginregistry$_.PluginRegistry$UserLeaveHintListener? - userLeaveHintListener) { + pluginregistry$_.PluginRegistry$UserLeaveHintListener userLeaveHintListener, + ) { return _removeOnUserLeaveHintListener(userLeaveHintListener); } void addOnWindowFocusChangedListener( - pluginregistry$_.PluginRegistry$WindowFocusChangedListener? - windowFocusChangedListener) { + pluginregistry$_.PluginRegistry$WindowFocusChangedListener + windowFocusChangedListener, + ) { return _addOnWindowFocusChangedListener(windowFocusChangedListener); } void removeOnWindowFocusChangedListener( - pluginregistry$_.PluginRegistry$WindowFocusChangedListener? - windowFocusChangedListener) { + pluginregistry$_.PluginRegistry$WindowFocusChangedListener + windowFocusChangedListener, + ) { return _removeOnWindowFocusChangedListener(windowFocusChangedListener); } void addOnSaveStateListener( - ActivityPluginBinding$OnSaveInstanceStateListener? - onSaveInstanceStateListener) { + ActivityPluginBinding$OnSaveInstanceStateListener + onSaveInstanceStateListener, + ) { return _addOnSaveStateListener(onSaveInstanceStateListener); } void removeOnSaveStateListener( - ActivityPluginBinding$OnSaveInstanceStateListener? - onSaveInstanceStateListener) { + ActivityPluginBinding$OnSaveInstanceStateListener + onSaveInstanceStateListener, + ) { return _removeOnSaveStateListener(onSaveInstanceStateListener); } } @@ -1350,11 +1481,7 @@ final class $ActivityPluginBinding$NullableType @jni$_.internal @core$_.override ActivityPluginBinding? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : ActivityPluginBinding.fromReference( - reference, - ); + reference.isNull ? null : ActivityPluginBinding.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1390,9 +1517,7 @@ final class $ActivityPluginBinding$Type @jni$_.internal @core$_.override ActivityPluginBinding fromReference(jni$_.JReference reference) => - ActivityPluginBinding.fromReference( - reference, - ); + ActivityPluginBinding.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/io/flutter/embedding/engine/plugins/activity/_package.dart b/lib/src/platform/android/jni/io/flutter/embedding/engine/plugins/activity/_package.dart index c324e169..7b7d7101 100644 --- a/lib/src/platform/android/jni/io/flutter/embedding/engine/plugins/activity/_package.dart +++ b/lib/src/platform/android/jni/io/flutter/embedding/engine/plugins/activity/_package.dart @@ -1 +1,2 @@ +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! export 'ActivityPluginBinding.dart'; diff --git a/lib/src/platform/android/jni/io/flutter/plugin/common/PluginRegistry.dart b/lib/src/platform/android/jni/io/flutter/plugin/common/PluginRegistry.dart index a7ff79ad..3d8e3191 100644 --- a/lib/src/platform/android/jni/io/flutter/plugin/common/PluginRegistry.dart +++ b/lib/src/platform/android/jni/io/flutter/plugin/common/PluginRegistry.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -59,11 +47,12 @@ class PluginRegistry$ActivityResultListener extends jni$_.JObject { @jni$_.internal PluginRegistry$ActivityResultListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'io/flutter/plugin/common/PluginRegistry$ActivityResultListener'); + r'io/flutter/plugin/common/PluginRegistry$ActivityResultListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -74,31 +63,38 @@ class PluginRegistry$ActivityResultListener extends jni$_.JObject { r'(IILandroid/content/Intent;)Z', ); - static final _onActivityResult = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onActivityResult = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, int, jni$_.Pointer)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Int32, jni$_.Int32, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + int, + jni$_.Pointer, + ) + >(); /// from: `public abstract boolean onActivityResult(int i, int i1, android.content.Intent intent)` - bool onActivityResult( - int i, - int i1, - jni$_.JObject? intent, - ) { + bool onActivityResult(int i, int i1, jni$_.JObject? intent) { final _$intent = intent?.reference ?? jni$_.jNullReference; - return _onActivityResult(reference.pointer, - _id_onActivityResult as jni$_.JMethodIDPtr, i, i1, _$intent.pointer) - .boolean; + return _onActivityResult( + reference.pointer, + _id_onActivityResult as jni$_.JMethodIDPtr, + i, + i1, + _$intent.pointer, + ).boolean; } /// Maps a specific port to the implemented interface. @@ -111,19 +107,16 @@ class PluginRegistry$ActivityResultListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -189,7 +182,7 @@ class PluginRegistry$ActivityResultListener extends jni$_.JObject { abstract base mixin class $PluginRegistry$ActivityResultListener { factory $PluginRegistry$ActivityResultListener({ required bool Function(int i, int i1, jni$_.JObject? intent) - onActivityResult, + onActivityResult, }) = _$PluginRegistry$ActivityResultListener; bool onActivityResult(int i, int i1, jni$_.JObject? intent); @@ -199,7 +192,7 @@ final class _$PluginRegistry$ActivityResultListener with $PluginRegistry$ActivityResultListener { _$PluginRegistry$ActivityResultListener({ required bool Function(int i, int i1, jni$_.JObject? intent) - onActivityResult, + onActivityResult, }) : _onActivityResult = onActivityResult; final bool Function(int i, int i1, jni$_.JObject? intent) _onActivityResult; @@ -222,12 +215,10 @@ final class $PluginRegistry$ActivityResultListener$NullableType @jni$_.internal @core$_.override PluginRegistry$ActivityResultListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : PluginRegistry$ActivityResultListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : PluginRegistry$ActivityResultListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -266,10 +257,8 @@ final class $PluginRegistry$ActivityResultListener$Type @jni$_.internal @core$_.override PluginRegistry$ActivityResultListener fromReference( - jni$_.JReference reference) => - PluginRegistry$ActivityResultListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => PluginRegistry$ActivityResultListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -300,13 +289,13 @@ class PluginRegistry$NewIntentListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - PluginRegistry$NewIntentListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + PluginRegistry$NewIntentListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'io/flutter/plugin/common/PluginRegistry$NewIntentListener'); + r'io/flutter/plugin/common/PluginRegistry$NewIntentListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $PluginRegistry$NewIntentListener$NullableType(); @@ -316,25 +305,32 @@ class PluginRegistry$NewIntentListener extends jni$_.JObject { r'(Landroid/content/Intent;)Z', ); - static final _onNewIntent = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _onNewIntent = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract boolean onNewIntent(android.content.Intent intent)` - bool onNewIntent( - jni$_.JObject? intent, - ) { - final _$intent = intent?.reference ?? jni$_.jNullReference; - return _onNewIntent(reference.pointer, - _id_onNewIntent as jni$_.JMethodIDPtr, _$intent.pointer) - .boolean; + bool onNewIntent(jni$_.JObject intent) { + final _$intent = intent.reference; + return _onNewIntent( + reference.pointer, + _id_onNewIntent as jni$_.JMethodIDPtr, + _$intent.pointer, + ).boolean; } /// Maps a specific port to the implemented interface. @@ -346,19 +342,16 @@ class PluginRegistry$NewIntentListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -369,7 +362,7 @@ class PluginRegistry$NewIntentListener extends jni$_.JObject { final $a = $i.args; if ($d == r'onNewIntent(Landroid/content/Intent;)Z') { final $r = _$impls[$p]!.onNewIntent( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.JBoolean($r).reference.toPointer(); } @@ -408,1352 +401,107 @@ class PluginRegistry$NewIntentListener extends jni$_.JObject { $PluginRegistry$NewIntentListener $impl, ) { final $i = jni$_.JImplementer(); - implementIn($i, $impl); - return PluginRegistry$NewIntentListener.fromReference( - $i.implementReference(), - ); - } -} - -abstract base mixin class $PluginRegistry$NewIntentListener { - factory $PluginRegistry$NewIntentListener({ - required bool Function(jni$_.JObject? intent) onNewIntent, - }) = _$PluginRegistry$NewIntentListener; - - bool onNewIntent(jni$_.JObject? intent); -} - -final class _$PluginRegistry$NewIntentListener - with $PluginRegistry$NewIntentListener { - _$PluginRegistry$NewIntentListener({ - required bool Function(jni$_.JObject? intent) onNewIntent, - }) : _onNewIntent = onNewIntent; - - final bool Function(jni$_.JObject? intent) _onNewIntent; - - bool onNewIntent(jni$_.JObject? intent) { - return _onNewIntent(intent); - } -} - -final class $PluginRegistry$NewIntentListener$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $PluginRegistry$NewIntentListener$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lio/flutter/plugin/common/PluginRegistry$NewIntentListener;'; - - @jni$_.internal - @core$_.override - PluginRegistry$NewIntentListener? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : PluginRegistry$NewIntentListener.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 => ($PluginRegistry$NewIntentListener$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($PluginRegistry$NewIntentListener$NullableType) && - other is $PluginRegistry$NewIntentListener$NullableType; - } -} - -final class $PluginRegistry$NewIntentListener$Type - extends jni$_.JObjType { - @jni$_.internal - const $PluginRegistry$NewIntentListener$Type(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lio/flutter/plugin/common/PluginRegistry$NewIntentListener;'; - - @jni$_.internal - @core$_.override - PluginRegistry$NewIntentListener fromReference(jni$_.JReference reference) => - PluginRegistry$NewIntentListener.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $PluginRegistry$NewIntentListener$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($PluginRegistry$NewIntentListener$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($PluginRegistry$NewIntentListener$Type) && - other is $PluginRegistry$NewIntentListener$Type; - } -} - -/// from: `io.flutter.plugin.common.PluginRegistry$PluginRegistrantCallback` -class PluginRegistry$PluginRegistrantCallback extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - PluginRegistry$PluginRegistrantCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = jni$_.JClass.forName( - r'io/flutter/plugin/common/PluginRegistry$PluginRegistrantCallback'); - - /// The type which includes information such as the signature of this class. - static const nullableType = - $PluginRegistry$PluginRegistrantCallback$NullableType(); - static const type = $PluginRegistry$PluginRegistrantCallback$Type(); - static final _id_registerWith = _class.instanceMethodId( - r'registerWith', - r'(Lio/flutter/plugin/common/PluginRegistry;)V', - ); - - static final _registerWith = 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 registerWith(io.flutter.plugin.common.PluginRegistry pluginRegistry)` - void registerWith( - PluginRegistry? pluginRegistry, - ) { - final _$pluginRegistry = pluginRegistry?.reference ?? jni$_.jNullReference; - _registerWith(reference.pointer, _id_registerWith as jni$_.JMethodIDPtr, - _$pluginRegistry.pointer) - .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'registerWith(Lio/flutter/plugin/common/PluginRegistry;)V') { - _$impls[$p]!.registerWith( - $a![0]?.as(const $PluginRegistry$Type(), releaseOriginal: true), - ); - return jni$_.nullptr; - } - } catch (e) { - return jni$_.ProtectedJniExtensions.newDartException(e); - } - return jni$_.nullptr; - } - - static void implementIn( - jni$_.JImplementer implementer, - $PluginRegistry$PluginRegistrantCallback $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.flutter.plugin.common.PluginRegistry$PluginRegistrantCallback', - $p, - _$invokePointer, - [ - if ($impl.registerWith$async) - r'registerWith(Lio/flutter/plugin/common/PluginRegistry;)V', - ], - ); - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - } - - factory PluginRegistry$PluginRegistrantCallback.implement( - $PluginRegistry$PluginRegistrantCallback $impl, - ) { - final $i = jni$_.JImplementer(); - implementIn($i, $impl); - return PluginRegistry$PluginRegistrantCallback.fromReference( - $i.implementReference(), - ); - } -} - -abstract base mixin class $PluginRegistry$PluginRegistrantCallback { - factory $PluginRegistry$PluginRegistrantCallback({ - required void Function(PluginRegistry? pluginRegistry) registerWith, - bool registerWith$async, - }) = _$PluginRegistry$PluginRegistrantCallback; - - void registerWith(PluginRegistry? pluginRegistry); - bool get registerWith$async => false; -} - -final class _$PluginRegistry$PluginRegistrantCallback - with $PluginRegistry$PluginRegistrantCallback { - _$PluginRegistry$PluginRegistrantCallback({ - required void Function(PluginRegistry? pluginRegistry) registerWith, - this.registerWith$async = false, - }) : _registerWith = registerWith; - - final void Function(PluginRegistry? pluginRegistry) _registerWith; - final bool registerWith$async; - - void registerWith(PluginRegistry? pluginRegistry) { - return _registerWith(pluginRegistry); - } -} - -final class $PluginRegistry$PluginRegistrantCallback$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $PluginRegistry$PluginRegistrantCallback$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lio/flutter/plugin/common/PluginRegistry$PluginRegistrantCallback;'; - - @jni$_.internal - @core$_.override - PluginRegistry$PluginRegistrantCallback? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : PluginRegistry$PluginRegistrantCallback.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 => - ($PluginRegistry$PluginRegistrantCallback$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($PluginRegistry$PluginRegistrantCallback$NullableType) && - other is $PluginRegistry$PluginRegistrantCallback$NullableType; - } -} - -final class $PluginRegistry$PluginRegistrantCallback$Type - extends jni$_.JObjType { - @jni$_.internal - const $PluginRegistry$PluginRegistrantCallback$Type(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lio/flutter/plugin/common/PluginRegistry$PluginRegistrantCallback;'; - - @jni$_.internal - @core$_.override - PluginRegistry$PluginRegistrantCallback fromReference( - jni$_.JReference reference) => - PluginRegistry$PluginRegistrantCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $PluginRegistry$PluginRegistrantCallback$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($PluginRegistry$PluginRegistrantCallback$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($PluginRegistry$PluginRegistrantCallback$Type) && - other is $PluginRegistry$PluginRegistrantCallback$Type; - } -} - -/// from: `io.flutter.plugin.common.PluginRegistry$Registrar` -class PluginRegistry$Registrar extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - PluginRegistry$Registrar.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = jni$_.JClass.forName( - r'io/flutter/plugin/common/PluginRegistry$Registrar'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $PluginRegistry$Registrar$NullableType(); - static const type = $PluginRegistry$Registrar$Type(); - static final _id_activity = _class.instanceMethodId( - r'activity', - r'()Landroid/app/Activity;', - ); - - static final _activity = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public abstract android.app.Activity activity()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? activity() { - return _activity(reference.pointer, _id_activity as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); - } - - static final _id_context = _class.instanceMethodId( - r'context', - r'()Landroid/content/Context;', - ); - - static final _context = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public abstract android.content.Context context()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? context() { - return _context(reference.pointer, _id_context as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); - } - - static final _id_activeContext = _class.instanceMethodId( - r'activeContext', - r'()Landroid/content/Context;', - ); - - static final _activeContext = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public abstract android.content.Context activeContext()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? activeContext() { - return _activeContext( - reference.pointer, _id_activeContext as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); - } - - static final _id_messenger = _class.instanceMethodId( - r'messenger', - r'()Lio/flutter/plugin/common/BinaryMessenger;', - ); - - static final _messenger = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public abstract io.flutter.plugin.common.BinaryMessenger messenger()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? messenger() { - return _messenger(reference.pointer, _id_messenger as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); - } - - static final _id_textures = _class.instanceMethodId( - r'textures', - r'()Lio/flutter/view/TextureRegistry;', - ); - - static final _textures = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public abstract io.flutter.view.TextureRegistry textures()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? textures() { - return _textures(reference.pointer, _id_textures as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); - } - - static final _id_platformViewRegistry = _class.instanceMethodId( - r'platformViewRegistry', - r'()Lio/flutter/plugin/platform/PlatformViewRegistry;', - ); - - static final _platformViewRegistry = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public abstract io.flutter.plugin.platform.PlatformViewRegistry platformViewRegistry()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? platformViewRegistry() { - return _platformViewRegistry( - reference.pointer, _id_platformViewRegistry as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); - } - - static final _id_view = _class.instanceMethodId( - r'view', - r'()Lio/flutter/view/FlutterView;', - ); - - static final _view = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public abstract io.flutter.view.FlutterView view()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? view() { - return _view(reference.pointer, _id_view as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); - } - - static final _id_lookupKeyForAsset = _class.instanceMethodId( - r'lookupKeyForAsset', - r'(Ljava/lang/String;)Ljava/lang/String;', - ); - - static final _lookupKeyForAsset = 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.String lookupKeyForAsset(java.lang.String string)` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? lookupKeyForAsset( - jni$_.JString? string, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; - return _lookupKeyForAsset(reference.pointer, - _id_lookupKeyForAsset as jni$_.JMethodIDPtr, _$string.pointer) - .object(const jni$_.JStringNullableType()); - } - - static final _id_lookupKeyForAsset$1 = _class.instanceMethodId( - r'lookupKeyForAsset', - r'(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;', - ); - - static final _lookupKeyForAsset$1 = 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 java.lang.String lookupKeyForAsset(java.lang.String string, java.lang.String string1)` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? lookupKeyForAsset$1( - jni$_.JString? string, - jni$_.JString? string1, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; - final _$string1 = string1?.reference ?? jni$_.jNullReference; - return _lookupKeyForAsset$1( - reference.pointer, - _id_lookupKeyForAsset$1 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer) - .object(const jni$_.JStringNullableType()); - } - - static final _id_publish = _class.instanceMethodId( - r'publish', - r'(Ljava/lang/Object;)Lio/flutter/plugin/common/PluginRegistry$Registrar;', - ); - - static final _publish = 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.flutter.plugin.common.PluginRegistry$Registrar publish(java.lang.Object object)` - /// The returned object must be released after use, by calling the [release] method. - PluginRegistry$Registrar? publish( - jni$_.JObject? object, - ) { - final _$object = object?.reference ?? jni$_.jNullReference; - return _publish(reference.pointer, _id_publish as jni$_.JMethodIDPtr, - _$object.pointer) - .object( - const $PluginRegistry$Registrar$NullableType()); - } - - static final _id_addRequestPermissionsResultListener = - _class.instanceMethodId( - r'addRequestPermissionsResultListener', - r'(Lio/flutter/plugin/common/PluginRegistry$RequestPermissionsResultListener;)Lio/flutter/plugin/common/PluginRegistry$Registrar;', - ); - - static final _addRequestPermissionsResultListener = - 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.flutter.plugin.common.PluginRegistry$Registrar addRequestPermissionsResultListener(io.flutter.plugin.common.PluginRegistry$RequestPermissionsResultListener requestPermissionsResultListener)` - /// The returned object must be released after use, by calling the [release] method. - PluginRegistry$Registrar? addRequestPermissionsResultListener( - PluginRegistry$RequestPermissionsResultListener? - requestPermissionsResultListener, - ) { - final _$requestPermissionsResultListener = - requestPermissionsResultListener?.reference ?? jni$_.jNullReference; - return _addRequestPermissionsResultListener( - reference.pointer, - _id_addRequestPermissionsResultListener as jni$_.JMethodIDPtr, - _$requestPermissionsResultListener.pointer) - .object( - const $PluginRegistry$Registrar$NullableType()); - } - - static final _id_addActivityResultListener = _class.instanceMethodId( - r'addActivityResultListener', - r'(Lio/flutter/plugin/common/PluginRegistry$ActivityResultListener;)Lio/flutter/plugin/common/PluginRegistry$Registrar;', - ); - - static final _addActivityResultListener = 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.flutter.plugin.common.PluginRegistry$Registrar addActivityResultListener(io.flutter.plugin.common.PluginRegistry$ActivityResultListener activityResultListener)` - /// The returned object must be released after use, by calling the [release] method. - PluginRegistry$Registrar? addActivityResultListener( - PluginRegistry$ActivityResultListener? activityResultListener, - ) { - final _$activityResultListener = - activityResultListener?.reference ?? jni$_.jNullReference; - return _addActivityResultListener( - reference.pointer, - _id_addActivityResultListener as jni$_.JMethodIDPtr, - _$activityResultListener.pointer) - .object( - const $PluginRegistry$Registrar$NullableType()); - } - - static final _id_addNewIntentListener = _class.instanceMethodId( - r'addNewIntentListener', - r'(Lio/flutter/plugin/common/PluginRegistry$NewIntentListener;)Lio/flutter/plugin/common/PluginRegistry$Registrar;', - ); - - static final _addNewIntentListener = 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.flutter.plugin.common.PluginRegistry$Registrar addNewIntentListener(io.flutter.plugin.common.PluginRegistry$NewIntentListener newIntentListener)` - /// The returned object must be released after use, by calling the [release] method. - PluginRegistry$Registrar? addNewIntentListener( - PluginRegistry$NewIntentListener? newIntentListener, - ) { - final _$newIntentListener = - newIntentListener?.reference ?? jni$_.jNullReference; - return _addNewIntentListener( - reference.pointer, - _id_addNewIntentListener as jni$_.JMethodIDPtr, - _$newIntentListener.pointer) - .object( - const $PluginRegistry$Registrar$NullableType()); - } - - static final _id_addUserLeaveHintListener = _class.instanceMethodId( - r'addUserLeaveHintListener', - r'(Lio/flutter/plugin/common/PluginRegistry$UserLeaveHintListener;)Lio/flutter/plugin/common/PluginRegistry$Registrar;', - ); - - static final _addUserLeaveHintListener = 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.flutter.plugin.common.PluginRegistry$Registrar addUserLeaveHintListener(io.flutter.plugin.common.PluginRegistry$UserLeaveHintListener userLeaveHintListener)` - /// The returned object must be released after use, by calling the [release] method. - PluginRegistry$Registrar? addUserLeaveHintListener( - PluginRegistry$UserLeaveHintListener? userLeaveHintListener, - ) { - final _$userLeaveHintListener = - userLeaveHintListener?.reference ?? jni$_.jNullReference; - return _addUserLeaveHintListener( - reference.pointer, - _id_addUserLeaveHintListener as jni$_.JMethodIDPtr, - _$userLeaveHintListener.pointer) - .object( - const $PluginRegistry$Registrar$NullableType()); - } - - static final _id_addWindowFocusChangedListener = _class.instanceMethodId( - r'addWindowFocusChangedListener', - r'(Lio/flutter/plugin/common/PluginRegistry$WindowFocusChangedListener;)Lio/flutter/plugin/common/PluginRegistry$Registrar;', - ); - - static final _addWindowFocusChangedListener = - 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.flutter.plugin.common.PluginRegistry$Registrar addWindowFocusChangedListener(io.flutter.plugin.common.PluginRegistry$WindowFocusChangedListener windowFocusChangedListener)` - /// The returned object must be released after use, by calling the [release] method. - PluginRegistry$Registrar? addWindowFocusChangedListener( - PluginRegistry$WindowFocusChangedListener? windowFocusChangedListener, - ) { - final _$windowFocusChangedListener = - windowFocusChangedListener?.reference ?? jni$_.jNullReference; - return _addWindowFocusChangedListener( - reference.pointer, - _id_addWindowFocusChangedListener as jni$_.JMethodIDPtr, - _$windowFocusChangedListener.pointer) - .object( - const $PluginRegistry$Registrar$NullableType()); - } - - static final _id_addViewDestroyListener = _class.instanceMethodId( - r'addViewDestroyListener', - r'(Lio/flutter/plugin/common/PluginRegistry$ViewDestroyListener;)Lio/flutter/plugin/common/PluginRegistry$Registrar;', - ); - - static final _addViewDestroyListener = 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.flutter.plugin.common.PluginRegistry$Registrar addViewDestroyListener(io.flutter.plugin.common.PluginRegistry$ViewDestroyListener viewDestroyListener)` - /// The returned object must be released after use, by calling the [release] method. - PluginRegistry$Registrar? addViewDestroyListener( - PluginRegistry$ViewDestroyListener? viewDestroyListener, - ) { - final _$viewDestroyListener = - viewDestroyListener?.reference ?? jni$_.jNullReference; - return _addViewDestroyListener( - reference.pointer, - _id_addViewDestroyListener as jni$_.JMethodIDPtr, - _$viewDestroyListener.pointer) - .object( - const $PluginRegistry$Registrar$NullableType()); - } - - /// 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'activity()Landroid/app/Activity;') { - final $r = _$impls[$p]!.activity(); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == r'context()Landroid/content/Context;') { - final $r = _$impls[$p]!.context(); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == r'activeContext()Landroid/content/Context;') { - final $r = _$impls[$p]!.activeContext(); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == r'messenger()Lio/flutter/plugin/common/BinaryMessenger;') { - final $r = _$impls[$p]!.messenger(); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == r'textures()Lio/flutter/view/TextureRegistry;') { - final $r = _$impls[$p]!.textures(); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == - r'platformViewRegistry()Lio/flutter/plugin/platform/PlatformViewRegistry;') { - final $r = _$impls[$p]!.platformViewRegistry(); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == r'view()Lio/flutter/view/FlutterView;') { - final $r = _$impls[$p]!.view(); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == r'lookupKeyForAsset(Ljava/lang/String;)Ljava/lang/String;') { - final $r = _$impls[$p]!.lookupKeyForAsset( - $a![0]?.as(const jni$_.JStringType(), releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == - r'lookupKeyForAsset(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;') { - final $r = _$impls[$p]!.lookupKeyForAsset$1( - $a![0]?.as(const jni$_.JStringType(), releaseOriginal: true), - $a![1]?.as(const jni$_.JStringType(), releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == - r'publish(Ljava/lang/Object;)Lio/flutter/plugin/common/PluginRegistry$Registrar;') { - final $r = _$impls[$p]!.publish( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == - r'addRequestPermissionsResultListener(Lio/flutter/plugin/common/PluginRegistry$RequestPermissionsResultListener;)Lio/flutter/plugin/common/PluginRegistry$Registrar;') { - final $r = _$impls[$p]!.addRequestPermissionsResultListener( - $a![0]?.as( - const $PluginRegistry$RequestPermissionsResultListener$Type(), - releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == - r'addActivityResultListener(Lio/flutter/plugin/common/PluginRegistry$ActivityResultListener;)Lio/flutter/plugin/common/PluginRegistry$Registrar;') { - final $r = _$impls[$p]!.addActivityResultListener( - $a![0]?.as(const $PluginRegistry$ActivityResultListener$Type(), - releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == - r'addNewIntentListener(Lio/flutter/plugin/common/PluginRegistry$NewIntentListener;)Lio/flutter/plugin/common/PluginRegistry$Registrar;') { - final $r = _$impls[$p]!.addNewIntentListener( - $a![0]?.as(const $PluginRegistry$NewIntentListener$Type(), - releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == - r'addUserLeaveHintListener(Lio/flutter/plugin/common/PluginRegistry$UserLeaveHintListener;)Lio/flutter/plugin/common/PluginRegistry$Registrar;') { - final $r = _$impls[$p]!.addUserLeaveHintListener( - $a![0]?.as(const $PluginRegistry$UserLeaveHintListener$Type(), - releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == - r'addWindowFocusChangedListener(Lio/flutter/plugin/common/PluginRegistry$WindowFocusChangedListener;)Lio/flutter/plugin/common/PluginRegistry$Registrar;') { - final $r = _$impls[$p]!.addWindowFocusChangedListener( - $a![0]?.as(const $PluginRegistry$WindowFocusChangedListener$Type(), - releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == - r'addViewDestroyListener(Lio/flutter/plugin/common/PluginRegistry$ViewDestroyListener;)Lio/flutter/plugin/common/PluginRegistry$Registrar;') { - final $r = _$impls[$p]!.addViewDestroyListener( - $a![0]?.as(const $PluginRegistry$ViewDestroyListener$Type(), - 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, - $PluginRegistry$Registrar $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.flutter.plugin.common.PluginRegistry$Registrar', - $p, - _$invokePointer, - [], - ); - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - } - - factory PluginRegistry$Registrar.implement( - $PluginRegistry$Registrar $impl, - ) { - final $i = jni$_.JImplementer(); - implementIn($i, $impl); - return PluginRegistry$Registrar.fromReference( - $i.implementReference(), - ); - } -} - -abstract base mixin class $PluginRegistry$Registrar { - factory $PluginRegistry$Registrar({ - required jni$_.JObject? Function() activity, - required jni$_.JObject? Function() context, - required jni$_.JObject? Function() activeContext, - required jni$_.JObject? Function() messenger, - required jni$_.JObject? Function() textures, - required jni$_.JObject? Function() platformViewRegistry, - required jni$_.JObject? Function() view, - required jni$_.JString? Function(jni$_.JString? string) lookupKeyForAsset, - required jni$_.JString? Function( - jni$_.JString? string, jni$_.JString? string1) - lookupKeyForAsset$1, - required PluginRegistry$Registrar? Function(jni$_.JObject? object) publish, - required PluginRegistry$Registrar? Function( - PluginRegistry$RequestPermissionsResultListener? - requestPermissionsResultListener) - addRequestPermissionsResultListener, - required PluginRegistry$Registrar? Function( - PluginRegistry$ActivityResultListener? activityResultListener) - addActivityResultListener, - required PluginRegistry$Registrar? Function( - PluginRegistry$NewIntentListener? newIntentListener) - addNewIntentListener, - required PluginRegistry$Registrar? Function( - PluginRegistry$UserLeaveHintListener? userLeaveHintListener) - addUserLeaveHintListener, - required PluginRegistry$Registrar? Function( - PluginRegistry$WindowFocusChangedListener? - windowFocusChangedListener) - addWindowFocusChangedListener, - required PluginRegistry$Registrar? Function( - PluginRegistry$ViewDestroyListener? viewDestroyListener) - addViewDestroyListener, - }) = _$PluginRegistry$Registrar; - - jni$_.JObject? activity(); - jni$_.JObject? context(); - jni$_.JObject? activeContext(); - jni$_.JObject? messenger(); - jni$_.JObject? textures(); - jni$_.JObject? platformViewRegistry(); - jni$_.JObject? view(); - jni$_.JString? lookupKeyForAsset(jni$_.JString? string); - jni$_.JString? lookupKeyForAsset$1( - jni$_.JString? string, jni$_.JString? string1); - PluginRegistry$Registrar? publish(jni$_.JObject? object); - PluginRegistry$Registrar? addRequestPermissionsResultListener( - PluginRegistry$RequestPermissionsResultListener? - requestPermissionsResultListener); - PluginRegistry$Registrar? addActivityResultListener( - PluginRegistry$ActivityResultListener? activityResultListener); - PluginRegistry$Registrar? addNewIntentListener( - PluginRegistry$NewIntentListener? newIntentListener); - PluginRegistry$Registrar? addUserLeaveHintListener( - PluginRegistry$UserLeaveHintListener? userLeaveHintListener); - PluginRegistry$Registrar? addWindowFocusChangedListener( - PluginRegistry$WindowFocusChangedListener? windowFocusChangedListener); - PluginRegistry$Registrar? addViewDestroyListener( - PluginRegistry$ViewDestroyListener? viewDestroyListener); -} - -final class _$PluginRegistry$Registrar with $PluginRegistry$Registrar { - _$PluginRegistry$Registrar({ - required jni$_.JObject? Function() activity, - required jni$_.JObject? Function() context, - required jni$_.JObject? Function() activeContext, - required jni$_.JObject? Function() messenger, - required jni$_.JObject? Function() textures, - required jni$_.JObject? Function() platformViewRegistry, - required jni$_.JObject? Function() view, - required jni$_.JString? Function(jni$_.JString? string) lookupKeyForAsset, - required jni$_.JString? Function( - jni$_.JString? string, jni$_.JString? string1) - lookupKeyForAsset$1, - required PluginRegistry$Registrar? Function(jni$_.JObject? object) publish, - required PluginRegistry$Registrar? Function( - PluginRegistry$RequestPermissionsResultListener? - requestPermissionsResultListener) - addRequestPermissionsResultListener, - required PluginRegistry$Registrar? Function( - PluginRegistry$ActivityResultListener? activityResultListener) - addActivityResultListener, - required PluginRegistry$Registrar? Function( - PluginRegistry$NewIntentListener? newIntentListener) - addNewIntentListener, - required PluginRegistry$Registrar? Function( - PluginRegistry$UserLeaveHintListener? userLeaveHintListener) - addUserLeaveHintListener, - required PluginRegistry$Registrar? Function( - PluginRegistry$WindowFocusChangedListener? - windowFocusChangedListener) - addWindowFocusChangedListener, - required PluginRegistry$Registrar? Function( - PluginRegistry$ViewDestroyListener? viewDestroyListener) - addViewDestroyListener, - }) : _activity = activity, - _context = context, - _activeContext = activeContext, - _messenger = messenger, - _textures = textures, - _platformViewRegistry = platformViewRegistry, - _view = view, - _lookupKeyForAsset = lookupKeyForAsset, - _lookupKeyForAsset$1 = lookupKeyForAsset$1, - _publish = publish, - _addRequestPermissionsResultListener = - addRequestPermissionsResultListener, - _addActivityResultListener = addActivityResultListener, - _addNewIntentListener = addNewIntentListener, - _addUserLeaveHintListener = addUserLeaveHintListener, - _addWindowFocusChangedListener = addWindowFocusChangedListener, - _addViewDestroyListener = addViewDestroyListener; - - final jni$_.JObject? Function() _activity; - final jni$_.JObject? Function() _context; - final jni$_.JObject? Function() _activeContext; - final jni$_.JObject? Function() _messenger; - final jni$_.JObject? Function() _textures; - final jni$_.JObject? Function() _platformViewRegistry; - final jni$_.JObject? Function() _view; - final jni$_.JString? Function(jni$_.JString? string) _lookupKeyForAsset; - final jni$_.JString? Function(jni$_.JString? string, jni$_.JString? string1) - _lookupKeyForAsset$1; - final PluginRegistry$Registrar? Function(jni$_.JObject? object) _publish; - final PluginRegistry$Registrar? Function( - PluginRegistry$RequestPermissionsResultListener? - requestPermissionsResultListener) - _addRequestPermissionsResultListener; - final PluginRegistry$Registrar? Function( - PluginRegistry$ActivityResultListener? activityResultListener) - _addActivityResultListener; - final PluginRegistry$Registrar? Function( - PluginRegistry$NewIntentListener? newIntentListener) - _addNewIntentListener; - final PluginRegistry$Registrar? Function( - PluginRegistry$UserLeaveHintListener? userLeaveHintListener) - _addUserLeaveHintListener; - final PluginRegistry$Registrar? Function( - PluginRegistry$WindowFocusChangedListener? windowFocusChangedListener) - _addWindowFocusChangedListener; - final PluginRegistry$Registrar? Function( - PluginRegistry$ViewDestroyListener? viewDestroyListener) - _addViewDestroyListener; - - jni$_.JObject? activity() { - return _activity(); - } - - jni$_.JObject? context() { - return _context(); - } - - jni$_.JObject? activeContext() { - return _activeContext(); - } - - jni$_.JObject? messenger() { - return _messenger(); - } - - jni$_.JObject? textures() { - return _textures(); - } - - jni$_.JObject? platformViewRegistry() { - return _platformViewRegistry(); - } - - jni$_.JObject? view() { - return _view(); - } - - jni$_.JString? lookupKeyForAsset(jni$_.JString? string) { - return _lookupKeyForAsset(string); - } - - jni$_.JString? lookupKeyForAsset$1( - jni$_.JString? string, jni$_.JString? string1) { - return _lookupKeyForAsset$1(string, string1); - } - - PluginRegistry$Registrar? publish(jni$_.JObject? object) { - return _publish(object); - } - - PluginRegistry$Registrar? addRequestPermissionsResultListener( - PluginRegistry$RequestPermissionsResultListener? - requestPermissionsResultListener) { - return _addRequestPermissionsResultListener( - requestPermissionsResultListener); + implementIn($i, $impl); + return PluginRegistry$NewIntentListener.fromReference( + $i.implementReference(), + ); } +} - PluginRegistry$Registrar? addActivityResultListener( - PluginRegistry$ActivityResultListener? activityResultListener) { - return _addActivityResultListener(activityResultListener); - } +abstract base mixin class $PluginRegistry$NewIntentListener { + factory $PluginRegistry$NewIntentListener({ + required bool Function(jni$_.JObject intent) onNewIntent, + }) = _$PluginRegistry$NewIntentListener; - PluginRegistry$Registrar? addNewIntentListener( - PluginRegistry$NewIntentListener? newIntentListener) { - return _addNewIntentListener(newIntentListener); - } + bool onNewIntent(jni$_.JObject intent); +} - PluginRegistry$Registrar? addUserLeaveHintListener( - PluginRegistry$UserLeaveHintListener? userLeaveHintListener) { - return _addUserLeaveHintListener(userLeaveHintListener); - } +final class _$PluginRegistry$NewIntentListener + with $PluginRegistry$NewIntentListener { + _$PluginRegistry$NewIntentListener({ + required bool Function(jni$_.JObject intent) onNewIntent, + }) : _onNewIntent = onNewIntent; - PluginRegistry$Registrar? addWindowFocusChangedListener( - PluginRegistry$WindowFocusChangedListener? windowFocusChangedListener) { - return _addWindowFocusChangedListener(windowFocusChangedListener); - } + final bool Function(jni$_.JObject intent) _onNewIntent; - PluginRegistry$Registrar? addViewDestroyListener( - PluginRegistry$ViewDestroyListener? viewDestroyListener) { - return _addViewDestroyListener(viewDestroyListener); + bool onNewIntent(jni$_.JObject intent) { + return _onNewIntent(intent); } } -final class $PluginRegistry$Registrar$NullableType - extends jni$_.JObjType { +final class $PluginRegistry$NewIntentListener$NullableType + extends jni$_.JObjType { @jni$_.internal - const $PluginRegistry$Registrar$NullableType(); + const $PluginRegistry$NewIntentListener$NullableType(); @jni$_.internal @core$_.override String get signature => - r'Lio/flutter/plugin/common/PluginRegistry$Registrar;'; + r'Lio/flutter/plugin/common/PluginRegistry$NewIntentListener;'; @jni$_.internal @core$_.override - PluginRegistry$Registrar? fromReference(jni$_.JReference reference) => + PluginRegistry$NewIntentListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : PluginRegistry$Registrar.fromReference( - reference, - ); + ? null + : PluginRegistry$NewIntentListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @jni$_.internal @core$_.override - jni$_.JObjType get nullableType => this; + jni$_.JObjType get nullableType => this; @jni$_.internal @core$_.override final superCount = 1; @core$_.override - int get hashCode => ($PluginRegistry$Registrar$NullableType).hashCode; + int get hashCode => ($PluginRegistry$NewIntentListener$NullableType).hashCode; @core$_.override bool operator ==(Object other) { - return other.runtimeType == ($PluginRegistry$Registrar$NullableType) && - other is $PluginRegistry$Registrar$NullableType; + return other.runtimeType == + ($PluginRegistry$NewIntentListener$NullableType) && + other is $PluginRegistry$NewIntentListener$NullableType; } } -final class $PluginRegistry$Registrar$Type - extends jni$_.JObjType { +final class $PluginRegistry$NewIntentListener$Type + extends jni$_.JObjType { @jni$_.internal - const $PluginRegistry$Registrar$Type(); + const $PluginRegistry$NewIntentListener$Type(); @jni$_.internal @core$_.override String get signature => - r'Lio/flutter/plugin/common/PluginRegistry$Registrar;'; + r'Lio/flutter/plugin/common/PluginRegistry$NewIntentListener;'; @jni$_.internal @core$_.override - PluginRegistry$Registrar fromReference(jni$_.JReference reference) => - PluginRegistry$Registrar.fromReference( - reference, - ); + PluginRegistry$NewIntentListener fromReference(jni$_.JReference reference) => + PluginRegistry$NewIntentListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @jni$_.internal @core$_.override - jni$_.JObjType get nullableType => - const $PluginRegistry$Registrar$NullableType(); + jni$_.JObjType get nullableType => + const $PluginRegistry$NewIntentListener$NullableType(); @jni$_.internal @core$_.override final superCount = 1; @core$_.override - int get hashCode => ($PluginRegistry$Registrar$Type).hashCode; + int get hashCode => ($PluginRegistry$NewIntentListener$Type).hashCode; @core$_.override bool operator ==(Object other) { - return other.runtimeType == ($PluginRegistry$Registrar$Type) && - other is $PluginRegistry$Registrar$Type; + return other.runtimeType == ($PluginRegistry$NewIntentListener$Type) && + other is $PluginRegistry$NewIntentListener$Type; } } @@ -1766,11 +514,12 @@ class PluginRegistry$RequestPermissionsResultListener extends jni$_.JObject { @jni$_.internal PluginRegistry$RequestPermissionsResultListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'io/flutter/plugin/common/PluginRegistry$RequestPermissionsResultListener'); + r'io/flutter/plugin/common/PluginRegistry$RequestPermissionsResultListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -1783,44 +532,50 @@ class PluginRegistry$RequestPermissionsResultListener extends jni$_.JObject { static final _onRequestPermissionsResult = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Int32, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallBooleanMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - int, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Int32, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + jni$_.Pointer, + ) + >(); /// from: `public abstract boolean onRequestPermissionsResult(int i, java.lang.String[] strings, int[] is)` bool onRequestPermissionsResult( int i, - jni$_.JArray? strings, - jni$_.JIntArray? is$, + jni$_.JArray strings, + jni$_.JIntArray is$, ) { - final _$strings = strings?.reference ?? jni$_.jNullReference; - final _$is$ = is$?.reference ?? jni$_.jNullReference; + final _$strings = strings.reference; + final _$is$ = is$.reference; return _onRequestPermissionsResult( - reference.pointer, - _id_onRequestPermissionsResult as jni$_.JMethodIDPtr, - i, - _$strings.pointer, - _$is$.pointer) - .boolean; + reference.pointer, + _id_onRequestPermissionsResult as jni$_.JMethodIDPtr, + i, + _$strings.pointer, + _$is$.pointer, + ).boolean; } /// Maps a specific port to the implemented interface. static final core$_.Map - _$impls = {}; + _$impls = {}; static jni$_.JObjectPtr _$invoke( int port, jni$_.JObjectPtr descriptor, @@ -1828,19 +583,16 @@ class PluginRegistry$RequestPermissionsResultListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -1854,11 +606,11 @@ class PluginRegistry$RequestPermissionsResultListener extends jni$_.JObject { $a![0]! .as(const jni$_.JIntegerType(), releaseOriginal: true) .intValue(releaseOriginal: true), - $a![1]?.as( - const jni$_.JArrayType( - jni$_.JStringNullableType()), - releaseOriginal: true), - $a![2]?.as(const jni$_.JIntArrayType(), releaseOriginal: true), + $a![1]!.as( + const jni$_.JArrayType(jni$_.JStringNullableType()), + releaseOriginal: true, + ), + $a![2]!.as(const jni$_.JIntArrayType(), releaseOriginal: true), ); return jni$_.JBoolean($r).reference.toPointer(); } @@ -1907,28 +659,43 @@ class PluginRegistry$RequestPermissionsResultListener extends jni$_.JObject { abstract base mixin class $PluginRegistry$RequestPermissionsResultListener { factory $PluginRegistry$RequestPermissionsResultListener({ required bool Function( - int i, jni$_.JArray? strings, jni$_.JIntArray? is$) - onRequestPermissionsResult, + int i, + jni$_.JArray strings, + jni$_.JIntArray is$, + ) + onRequestPermissionsResult, }) = _$PluginRegistry$RequestPermissionsResultListener; bool onRequestPermissionsResult( - int i, jni$_.JArray? strings, jni$_.JIntArray? is$); + int i, + jni$_.JArray strings, + jni$_.JIntArray is$, + ); } final class _$PluginRegistry$RequestPermissionsResultListener with $PluginRegistry$RequestPermissionsResultListener { _$PluginRegistry$RequestPermissionsResultListener({ required bool Function( - int i, jni$_.JArray? strings, jni$_.JIntArray? is$) - onRequestPermissionsResult, + int i, + jni$_.JArray strings, + jni$_.JIntArray is$, + ) + onRequestPermissionsResult, }) : _onRequestPermissionsResult = onRequestPermissionsResult; final bool Function( - int i, jni$_.JArray? strings, jni$_.JIntArray? is$) - _onRequestPermissionsResult; + int i, + jni$_.JArray strings, + jni$_.JIntArray is$, + ) + _onRequestPermissionsResult; bool onRequestPermissionsResult( - int i, jni$_.JArray? strings, jni$_.JIntArray? is$) { + int i, + jni$_.JArray strings, + jni$_.JIntArray is$, + ) { return _onRequestPermissionsResult(i, strings, is$); } } @@ -1946,12 +713,12 @@ final class $PluginRegistry$RequestPermissionsResultListener$NullableType @jni$_.internal @core$_.override PluginRegistry$RequestPermissionsResultListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : PluginRegistry$RequestPermissionsResultListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : PluginRegistry$RequestPermissionsResultListener.fromReference( + reference, + ); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1959,7 +726,7 @@ final class $PluginRegistry$RequestPermissionsResultListener$NullableType @jni$_.internal @core$_.override jni$_.JObjType - get nullableType => this; + get nullableType => this; @jni$_.internal @core$_.override @@ -1990,10 +757,8 @@ final class $PluginRegistry$RequestPermissionsResultListener$Type @jni$_.internal @core$_.override PluginRegistry$RequestPermissionsResultListener fromReference( - jni$_.JReference reference) => - PluginRegistry$RequestPermissionsResultListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => PluginRegistry$RequestPermissionsResultListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2001,8 +766,8 @@ final class $PluginRegistry$RequestPermissionsResultListener$Type @jni$_.internal @core$_.override jni$_.JObjType - get nullableType => - const $PluginRegistry$RequestPermissionsResultListener$NullableType(); + get nullableType => + const $PluginRegistry$RequestPermissionsResultListener$NullableType(); @jni$_.internal @core$_.override @@ -2027,13 +792,13 @@ class PluginRegistry$UserLeaveHintListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - PluginRegistry$UserLeaveHintListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + PluginRegistry$UserLeaveHintListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'io/flutter/plugin/common/PluginRegistry$UserLeaveHintListener'); + r'io/flutter/plugin/common/PluginRegistry$UserLeaveHintListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -2044,23 +809,28 @@ class PluginRegistry$UserLeaveHintListener extends jni$_.JObject { r'()V', ); - static final _onUserLeaveHint = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onUserLeaveHint = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onUserLeaveHint()` void onUserLeaveHint() { _onUserLeaveHint( - reference.pointer, _id_onUserLeaveHint as jni$_.JMethodIDPtr) - .check(); + reference.pointer, + _id_onUserLeaveHint as jni$_.JMethodIDPtr, + ).check(); } /// Maps a specific port to the implemented interface. @@ -2073,19 +843,16 @@ class PluginRegistry$UserLeaveHintListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -2123,9 +890,7 @@ class PluginRegistry$UserLeaveHintListener extends jni$_.JObject { r'io.flutter.plugin.common.PluginRegistry$UserLeaveHintListener', $p, _$invokePointer, - [ - if ($impl.onUserLeaveHint$async) r'onUserLeaveHint()V', - ], + [if ($impl.onUserLeaveHint$async) r'onUserLeaveHint()V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; @@ -2180,12 +945,10 @@ final class $PluginRegistry$UserLeaveHintListener$NullableType @jni$_.internal @core$_.override PluginRegistry$UserLeaveHintListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : PluginRegistry$UserLeaveHintListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : PluginRegistry$UserLeaveHintListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2224,10 +987,8 @@ final class $PluginRegistry$UserLeaveHintListener$Type @jni$_.internal @core$_.override PluginRegistry$UserLeaveHintListener fromReference( - jni$_.JReference reference) => - PluginRegistry$UserLeaveHintListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => PluginRegistry$UserLeaveHintListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2251,237 +1012,6 @@ final class $PluginRegistry$UserLeaveHintListener$Type } } -/// from: `io.flutter.plugin.common.PluginRegistry$ViewDestroyListener` -class PluginRegistry$ViewDestroyListener extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - PluginRegistry$ViewDestroyListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = jni$_.JClass.forName( - r'io/flutter/plugin/common/PluginRegistry$ViewDestroyListener'); - - /// The type which includes information such as the signature of this class. - static const nullableType = - $PluginRegistry$ViewDestroyListener$NullableType(); - static const type = $PluginRegistry$ViewDestroyListener$Type(); - static final _id_onViewDestroy = _class.instanceMethodId( - r'onViewDestroy', - r'(Lio/flutter/view/FlutterNativeView;)Z', - ); - - static final _onViewDestroy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public abstract boolean onViewDestroy(io.flutter.view.FlutterNativeView flutterNativeView)` - bool onViewDestroy( - jni$_.JObject? flutterNativeView, - ) { - final _$flutterNativeView = - flutterNativeView?.reference ?? jni$_.jNullReference; - return _onViewDestroy( - reference.pointer, - _id_onViewDestroy as jni$_.JMethodIDPtr, - _$flutterNativeView.pointer) - .boolean; - } - - /// 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'onViewDestroy(Lio/flutter/view/FlutterNativeView;)Z') { - final $r = _$impls[$p]!.onViewDestroy( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), - ); - return jni$_.JBoolean($r).reference.toPointer(); - } - } catch (e) { - return jni$_.ProtectedJniExtensions.newDartException(e); - } - return jni$_.nullptr; - } - - static void implementIn( - jni$_.JImplementer implementer, - $PluginRegistry$ViewDestroyListener $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.flutter.plugin.common.PluginRegistry$ViewDestroyListener', - $p, - _$invokePointer, - [], - ); - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - } - - factory PluginRegistry$ViewDestroyListener.implement( - $PluginRegistry$ViewDestroyListener $impl, - ) { - final $i = jni$_.JImplementer(); - implementIn($i, $impl); - return PluginRegistry$ViewDestroyListener.fromReference( - $i.implementReference(), - ); - } -} - -abstract base mixin class $PluginRegistry$ViewDestroyListener { - factory $PluginRegistry$ViewDestroyListener({ - required bool Function(jni$_.JObject? flutterNativeView) onViewDestroy, - }) = _$PluginRegistry$ViewDestroyListener; - - bool onViewDestroy(jni$_.JObject? flutterNativeView); -} - -final class _$PluginRegistry$ViewDestroyListener - with $PluginRegistry$ViewDestroyListener { - _$PluginRegistry$ViewDestroyListener({ - required bool Function(jni$_.JObject? flutterNativeView) onViewDestroy, - }) : _onViewDestroy = onViewDestroy; - - final bool Function(jni$_.JObject? flutterNativeView) _onViewDestroy; - - bool onViewDestroy(jni$_.JObject? flutterNativeView) { - return _onViewDestroy(flutterNativeView); - } -} - -final class $PluginRegistry$ViewDestroyListener$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $PluginRegistry$ViewDestroyListener$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lio/flutter/plugin/common/PluginRegistry$ViewDestroyListener;'; - - @jni$_.internal - @core$_.override - PluginRegistry$ViewDestroyListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : PluginRegistry$ViewDestroyListener.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 => - ($PluginRegistry$ViewDestroyListener$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($PluginRegistry$ViewDestroyListener$NullableType) && - other is $PluginRegistry$ViewDestroyListener$NullableType; - } -} - -final class $PluginRegistry$ViewDestroyListener$Type - extends jni$_.JObjType { - @jni$_.internal - const $PluginRegistry$ViewDestroyListener$Type(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lio/flutter/plugin/common/PluginRegistry$ViewDestroyListener;'; - - @jni$_.internal - @core$_.override - PluginRegistry$ViewDestroyListener fromReference( - jni$_.JReference reference) => - PluginRegistry$ViewDestroyListener.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $PluginRegistry$ViewDestroyListener$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($PluginRegistry$ViewDestroyListener$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($PluginRegistry$ViewDestroyListener$Type) && - other is $PluginRegistry$ViewDestroyListener$Type; - } -} - /// from: `io.flutter.plugin.common.PluginRegistry$WindowFocusChangedListener` class PluginRegistry$WindowFocusChangedListener extends jni$_.JObject { @jni$_.internal @@ -2491,11 +1021,12 @@ class PluginRegistry$WindowFocusChangedListener extends jni$_.JObject { @jni$_.internal PluginRegistry$WindowFocusChangedListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'io/flutter/plugin/common/PluginRegistry$WindowFocusChangedListener'); + r'io/flutter/plugin/common/PluginRegistry$WindowFocusChangedListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -2506,28 +1037,36 @@ class PluginRegistry$WindowFocusChangedListener extends jni$_.JObject { r'(Z)V', ); - static final _onWindowFocusChanged = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onWindowFocusChanged = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public abstract void onWindowFocusChanged(boolean z)` - void onWindowFocusChanged( - bool z, - ) { - _onWindowFocusChanged(reference.pointer, - _id_onWindowFocusChanged as jni$_.JMethodIDPtr, z ? 1 : 0) - .check(); + void onWindowFocusChanged(bool z) { + _onWindowFocusChanged( + reference.pointer, + _id_onWindowFocusChanged as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).check(); } /// Maps a specific port to the implemented interface. static final core$_.Map - _$impls = {}; + _$impls = {}; static jni$_.JObjectPtr _$invoke( int port, jni$_.JObjectPtr descriptor, @@ -2535,19 +1074,16 @@ class PluginRegistry$WindowFocusChangedListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -2589,9 +1125,7 @@ class PluginRegistry$WindowFocusChangedListener extends jni$_.JObject { r'io.flutter.plugin.common.PluginRegistry$WindowFocusChangedListener', $p, _$invokePointer, - [ - if ($impl.onWindowFocusChanged$async) r'onWindowFocusChanged(Z)V', - ], + [if ($impl.onWindowFocusChanged$async) r'onWindowFocusChanged(Z)V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; @@ -2646,12 +1180,10 @@ final class $PluginRegistry$WindowFocusChangedListener$NullableType @jni$_.internal @core$_.override PluginRegistry$WindowFocusChangedListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : PluginRegistry$WindowFocusChangedListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : PluginRegistry$WindowFocusChangedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2690,10 +1222,8 @@ final class $PluginRegistry$WindowFocusChangedListener$Type @jni$_.internal @core$_.override PluginRegistry$WindowFocusChangedListener fromReference( - jni$_.JReference reference) => - PluginRegistry$WindowFocusChangedListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => PluginRegistry$WindowFocusChangedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2726,98 +1256,17 @@ class PluginRegistry extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - PluginRegistry.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + PluginRegistry.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'io/flutter/plugin/common/PluginRegistry'); + static final _class = jni$_.JClass.forName( + r'io/flutter/plugin/common/PluginRegistry', + ); /// The type which includes information such as the signature of this class. static const nullableType = $PluginRegistry$NullableType(); static const type = $PluginRegistry$Type(); - static final _id_registrarFor = _class.instanceMethodId( - r'registrarFor', - r'(Ljava/lang/String;)Lio/flutter/plugin/common/PluginRegistry$Registrar;', - ); - - static final _registrarFor = 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.flutter.plugin.common.PluginRegistry$Registrar registrarFor(java.lang.String string)` - /// The returned object must be released after use, by calling the [release] method. - PluginRegistry$Registrar? registrarFor( - jni$_.JString? string, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; - return _registrarFor(reference.pointer, - _id_registrarFor as jni$_.JMethodIDPtr, _$string.pointer) - .object( - const $PluginRegistry$Registrar$NullableType()); - } - - static final _id_hasPlugin = _class.instanceMethodId( - r'hasPlugin', - r'(Ljava/lang/String;)Z', - ); - - static final _hasPlugin = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public abstract boolean hasPlugin(java.lang.String string)` - bool hasPlugin( - jni$_.JString? string, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; - return _hasPlugin(reference.pointer, _id_hasPlugin as jni$_.JMethodIDPtr, - _$string.pointer) - .boolean; - } - - static final _id_valuePublishedByPlugin = _class.instanceMethodId( - r'valuePublishedByPlugin', - r'(Ljava/lang/String;)Ljava/lang/Object;', - ); - - static final _valuePublishedByPlugin = 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 T valuePublishedByPlugin(java.lang.String string)` - /// The returned object must be released after use, by calling the [release] method. - $T? valuePublishedByPlugin<$T extends jni$_.JObject?>( - jni$_.JString? string, { - required jni$_.JObjType<$T> T, - }) { - final _$string = string?.reference ?? jni$_.jNullReference; - return _valuePublishedByPlugin(reference.pointer, - _id_valuePublishedByPlugin as jni$_.JMethodIDPtr, _$string.pointer) - .object<$T?>(T.nullableType); - } /// Maps a specific port to the implemented interface. static final core$_.Map _$impls = {}; @@ -2828,19 +1277,16 @@ class PluginRegistry extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -2849,34 +1295,6 @@ class PluginRegistry extends jni$_.JObject { try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; - if ($d == - r'registrarFor(Ljava/lang/String;)Lio/flutter/plugin/common/PluginRegistry$Registrar;') { - final $r = _$impls[$p]!.registrarFor( - $a![0]?.as(const jni$_.JStringType(), releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == r'hasPlugin(Ljava/lang/String;)Z') { - final $r = _$impls[$p]!.hasPlugin( - $a![0]?.as(const jni$_.JStringType(), releaseOriginal: true), - ); - return jni$_.JBoolean($r).reference.toPointer(); - } - if ($d == - r'valuePublishedByPlugin(Ljava/lang/String;)Ljava/lang/Object;') { - final $r = _$impls[$p]!.valuePublishedByPlugin( - $a![0]?.as(const jni$_.JStringType(), releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } } catch (e) { return jni$_.ProtectedJniExtensions.newDartException(e); } @@ -2908,57 +1326,19 @@ class PluginRegistry extends jni$_.JObject { _$impls[$a] = $impl; } - factory PluginRegistry.implement( - $PluginRegistry $impl, - ) { + factory PluginRegistry.implement($PluginRegistry $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return PluginRegistry.fromReference( - $i.implementReference(), - ); + return PluginRegistry.fromReference($i.implementReference()); } } abstract base mixin class $PluginRegistry { - factory $PluginRegistry({ - required PluginRegistry$Registrar? Function(jni$_.JString? string) - registrarFor, - required bool Function(jni$_.JString? string) hasPlugin, - required jni$_.JObject? Function(jni$_.JString? string) - valuePublishedByPlugin, - }) = _$PluginRegistry; - - PluginRegistry$Registrar? registrarFor(jni$_.JString? string); - bool hasPlugin(jni$_.JString? string); - jni$_.JObject? valuePublishedByPlugin(jni$_.JString? string); + factory $PluginRegistry() = _$PluginRegistry; } final class _$PluginRegistry with $PluginRegistry { - _$PluginRegistry({ - required PluginRegistry$Registrar? Function(jni$_.JString? string) - registrarFor, - required bool Function(jni$_.JString? string) hasPlugin, - required jni$_.JObject? Function(jni$_.JString? string) - valuePublishedByPlugin, - }) : _registrarFor = registrarFor, - _hasPlugin = hasPlugin, - _valuePublishedByPlugin = valuePublishedByPlugin; - - final PluginRegistry$Registrar? Function(jni$_.JString? string) _registrarFor; - final bool Function(jni$_.JString? string) _hasPlugin; - final jni$_.JObject? Function(jni$_.JString? string) _valuePublishedByPlugin; - - PluginRegistry$Registrar? registrarFor(jni$_.JString? string) { - return _registrarFor(string); - } - - bool hasPlugin(jni$_.JString? string) { - return _hasPlugin(string); - } - - jni$_.JObject? valuePublishedByPlugin(jni$_.JString? string) { - return _valuePublishedByPlugin(string); - } + _$PluginRegistry(); } final class $PluginRegistry$NullableType @@ -2972,11 +1352,8 @@ final class $PluginRegistry$NullableType @jni$_.internal @core$_.override - PluginRegistry? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : PluginRegistry.fromReference( - reference, - ); + PluginRegistry? fromReference(jni$_.JReference reference) => + reference.isNull ? null : PluginRegistry.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -3010,9 +1387,7 @@ final class $PluginRegistry$Type extends jni$_.JObjType { @jni$_.internal @core$_.override PluginRegistry fromReference(jni$_.JReference reference) => - PluginRegistry.fromReference( - reference, - ); + PluginRegistry.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/io/flutter/plugin/common/_package.dart b/lib/src/platform/android/jni/io/flutter/plugin/common/_package.dart index 3a5bb42f..986f90e3 100644 --- a/lib/src/platform/android/jni/io/flutter/plugin/common/_package.dart +++ b/lib/src/platform/android/jni/io/flutter/plugin/common/_package.dart @@ -1 +1,2 @@ +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! export 'PluginRegistry.dart'; diff --git a/lib/src/platform/android/jni/java/net/URI.dart b/lib/src/platform/android/jni/java/net/URI.dart index 59630667..3b9d7987 100644 --- a/lib/src/platform/android/jni/java/net/URI.dart +++ b/lib/src/platform/android/jni/java/net/URI.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -59,63 +47,74 @@ class URI extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - URI.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + URI.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'java/net/URI'); /// The type which includes information such as the signature of this class. static const nullableType = $URI$NullableType(); static const type = $URI$Type(); - static final _id_new$ = _class.constructorId( - r'(Ljava/lang/String;)V', - ); + static final _id_new$ = _class.constructorId(r'(Ljava/lang/String;)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)>(); + 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: `public void (java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - factory URI( - jni$_.JString? string, - ) { + factory URI(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return URI.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$string.pointer) - .reference); + return URI.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$string.pointer, + ).reference, + ); } static final _id_new$1 = _class.constructorId( r'(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V', ); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -124,7 +123,9 @@ class URI extends jni$_.JObject { int, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (java.lang.String string, java.lang.String string1, java.lang.String string2, int i, java.lang.String string3, java.lang.String string4, java.lang.String string5)` /// The returned object must be released after use, by calling the [release] method. @@ -143,45 +144,54 @@ class URI extends jni$_.JObject { final _$string3 = string3?.reference ?? jni$_.jNullReference; final _$string4 = string4?.reference ?? jni$_.jNullReference; final _$string5 = string5?.reference ?? jni$_.jNullReference; - return URI.fromReference(_new$1( - _class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer, - _$string2.pointer, - i, - _$string3.pointer, - _$string4.pointer, - _$string5.pointer) - .reference); + return URI.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + _$string2.pointer, + i, + _$string3.pointer, + _$string4.pointer, + _$string5.pointer, + ).reference, + ); } static final _id_new$2 = _class.constructorId( r'(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V', ); - static final _new$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (java.lang.String string, java.lang.String string1, java.lang.String string2, java.lang.String string3, java.lang.String string4)` /// The returned object must be released after use, by calling the [release] method. @@ -197,41 +207,50 @@ class URI extends jni$_.JObject { final _$string2 = string2?.reference ?? jni$_.jNullReference; final _$string3 = string3?.reference ?? jni$_.jNullReference; final _$string4 = string4?.reference ?? jni$_.jNullReference; - return URI.fromReference(_new$2( - _class.reference.pointer, - _id_new$2 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer, - _$string2.pointer, - _$string3.pointer, - _$string4.pointer) - .reference); + return URI.fromReference( + _new$2( + _class.reference.pointer, + _id_new$2 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + _$string2.pointer, + _$string3.pointer, + _$string4.pointer, + ).reference, + ); } static final _id_new$3 = _class.constructorId( r'(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V', ); - static final _new$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (java.lang.String string, java.lang.String string1, java.lang.String string2, java.lang.String string3)` /// The returned object must be released after use, by calling the [release] method. @@ -245,38 +264,47 @@ class URI extends jni$_.JObject { final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$string2 = string2?.reference ?? jni$_.jNullReference; final _$string3 = string3?.reference ?? jni$_.jNullReference; - return URI.fromReference(_new$3( - _class.reference.pointer, - _id_new$3 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer, - _$string2.pointer, - _$string3.pointer) - .reference); + return URI.fromReference( + _new$3( + _class.reference.pointer, + _id_new$3 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + _$string2.pointer, + _$string3.pointer, + ).reference, + ); } static final _id_new$4 = _class.constructorId( r'(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V', ); - static final _new$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (java.lang.String string, java.lang.String string1, java.lang.String string2)` /// The returned object must be released after use, by calling the [release] method. @@ -288,13 +316,15 @@ class URI extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$string2 = string2?.reference ?? jni$_.jNullReference; - return URI.fromReference(_new$4( - _class.reference.pointer, - _id_new$4 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer, - _$string2.pointer) - .reference); + return URI.fromReference( + _new$4( + _class.reference.pointer, + _id_new$4 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + _$string2.pointer, + ).reference, + ); } static final _id_create = _class.staticMethodId( @@ -302,26 +332,33 @@ class URI extends jni$_.JObject { r'(Ljava/lang/String;)Ljava/net/URI;', ); - static final _create = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _create = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.net.URI create(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - static URI? create( - jni$_.JString? string, - ) { + static URI? create(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _create(_class.reference.pointer, _id_create as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $URI$NullableType()); + return _create( + _class.reference.pointer, + _id_create as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $URI$NullableType()); } static final _id_parseServerAuthority = _class.instanceMethodId( @@ -329,24 +366,29 @@ class URI extends jni$_.JObject { r'()Ljava/net/URI;', ); - static final _parseServerAuthority = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parseServerAuthority = + 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.net.URI parseServerAuthority()` /// The returned object must be released after use, by calling the [release] method. URI? parseServerAuthority() { return _parseServerAuthority( - reference.pointer, _id_parseServerAuthority as jni$_.JMethodIDPtr) - .object(const $URI$NullableType()); + reference.pointer, + _id_parseServerAuthority as jni$_.JMethodIDPtr, + ).object(const $URI$NullableType()); } static final _id_normalize = _class.instanceMethodId( @@ -354,23 +396,29 @@ class URI extends jni$_.JObject { r'()Ljava/net/URI;', ); - static final _normalize = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _normalize = + 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.net.URI normalize()` /// The returned object must be released after use, by calling the [release] method. URI? normalize() { - return _normalize(reference.pointer, _id_normalize as jni$_.JMethodIDPtr) - .object(const $URI$NullableType()); + return _normalize( + reference.pointer, + _id_normalize as jni$_.JMethodIDPtr, + ).object(const $URI$NullableType()); } static final _id_resolve = _class.instanceMethodId( @@ -378,26 +426,33 @@ class URI extends jni$_.JObject { r'(Ljava/net/URI;)Ljava/net/URI;', ); - static final _resolve = 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)>(); + static final _resolve = + 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 java.net.URI resolve(java.net.URI uRI)` /// The returned object must be released after use, by calling the [release] method. - URI? resolve( - URI? uRI, - ) { + URI? resolve(URI? uRI) { final _$uRI = uRI?.reference ?? jni$_.jNullReference; return _resolve( - reference.pointer, _id_resolve as jni$_.JMethodIDPtr, _$uRI.pointer) - .object(const $URI$NullableType()); + reference.pointer, + _id_resolve as jni$_.JMethodIDPtr, + _$uRI.pointer, + ).object(const $URI$NullableType()); } static final _id_resolve$1 = _class.instanceMethodId( @@ -405,26 +460,33 @@ class URI extends jni$_.JObject { r'(Ljava/lang/String;)Ljava/net/URI;', ); - static final _resolve$1 = 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)>(); + static final _resolve$1 = + 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 java.net.URI resolve(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - URI? resolve$1( - jni$_.JString? string, - ) { + URI? resolve$1(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _resolve$1(reference.pointer, _id_resolve$1 as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $URI$NullableType()); + return _resolve$1( + reference.pointer, + _id_resolve$1 as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $URI$NullableType()); } static final _id_relativize = _class.instanceMethodId( @@ -432,26 +494,33 @@ class URI extends jni$_.JObject { r'(Ljava/net/URI;)Ljava/net/URI;', ); - static final _relativize = 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)>(); + static final _relativize = + 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 java.net.URI relativize(java.net.URI uRI)` /// The returned object must be released after use, by calling the [release] method. - URI? relativize( - URI? uRI, - ) { + URI? relativize(URI? uRI) { final _$uRI = uRI?.reference ?? jni$_.jNullReference; - return _relativize(reference.pointer, _id_relativize as jni$_.JMethodIDPtr, - _$uRI.pointer) - .object(const $URI$NullableType()); + return _relativize( + reference.pointer, + _id_relativize as jni$_.JMethodIDPtr, + _$uRI.pointer, + ).object(const $URI$NullableType()); } static final _id_toURL = _class.instanceMethodId( @@ -459,23 +528,29 @@ class URI extends jni$_.JObject { r'()Ljava/net/URL;', ); - static final _toURL = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toURL = + 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.net.URL toURL()` /// The returned object must be released after use, by calling the [release] method. url$_.URL? toURL() { - return _toURL(reference.pointer, _id_toURL as jni$_.JMethodIDPtr) - .object(const url$_.$URL$NullableType()); + return _toURL( + reference.pointer, + _id_toURL as jni$_.JMethodIDPtr, + ).object(const url$_.$URL$NullableType()); } static final _id_getScheme = _class.instanceMethodId( @@ -483,69 +558,81 @@ class URI extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getScheme = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getScheme = + 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 getScheme()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getScheme() { - return _getScheme(reference.pointer, _id_getScheme as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getScheme( + reference.pointer, + _id_getScheme as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } - static final _id_isAbsolute = _class.instanceMethodId( - r'isAbsolute', - r'()Z', - ); + static final _id_isAbsolute = _class.instanceMethodId(r'isAbsolute', r'()Z'); - static final _isAbsolute = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isAbsolute = + 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 isAbsolute()` bool isAbsolute() { - return _isAbsolute(reference.pointer, _id_isAbsolute as jni$_.JMethodIDPtr) - .boolean; + return _isAbsolute( + reference.pointer, + _id_isAbsolute as jni$_.JMethodIDPtr, + ).boolean; } - static final _id_isOpaque = _class.instanceMethodId( - r'isOpaque', - r'()Z', - ); + static final _id_isOpaque = _class.instanceMethodId(r'isOpaque', r'()Z'); - static final _isOpaque = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isOpaque = + 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 isOpaque()` bool isOpaque() { - return _isOpaque(reference.pointer, _id_isOpaque as jni$_.JMethodIDPtr) - .boolean; + return _isOpaque( + reference.pointer, + _id_isOpaque as jni$_.JMethodIDPtr, + ).boolean; } static final _id_getRawSchemeSpecificPart = _class.instanceMethodId( @@ -553,24 +640,29 @@ class URI extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getRawSchemeSpecificPart = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getRawSchemeSpecificPart = + 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 getRawSchemeSpecificPart()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getRawSchemeSpecificPart() { - return _getRawSchemeSpecificPart(reference.pointer, - _id_getRawSchemeSpecificPart as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getRawSchemeSpecificPart( + reference.pointer, + _id_getRawSchemeSpecificPart as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getSchemeSpecificPart = _class.instanceMethodId( @@ -578,24 +670,29 @@ class URI extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getSchemeSpecificPart = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getSchemeSpecificPart = + 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 getSchemeSpecificPart()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getSchemeSpecificPart() { return _getSchemeSpecificPart( - reference.pointer, _id_getSchemeSpecificPart as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getSchemeSpecificPart as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getRawAuthority = _class.instanceMethodId( @@ -603,24 +700,29 @@ class URI extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getRawAuthority = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getRawAuthority = + 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 getRawAuthority()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getRawAuthority() { return _getRawAuthority( - reference.pointer, _id_getRawAuthority as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getRawAuthority as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getAuthority = _class.instanceMethodId( @@ -628,24 +730,29 @@ class URI extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getAuthority = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAuthority = + 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 getAuthority()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getAuthority() { return _getAuthority( - reference.pointer, _id_getAuthority as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getAuthority as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getRawUserInfo = _class.instanceMethodId( @@ -653,24 +760,29 @@ class URI extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getRawUserInfo = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getRawUserInfo = + 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 getRawUserInfo()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getRawUserInfo() { return _getRawUserInfo( - reference.pointer, _id_getRawUserInfo as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getRawUserInfo as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getUserInfo = _class.instanceMethodId( @@ -678,24 +790,29 @@ class URI extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getUserInfo = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getUserInfo = + 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 getUserInfo()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getUserInfo() { return _getUserInfo( - reference.pointer, _id_getUserInfo as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getUserInfo as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getHost = _class.instanceMethodId( @@ -703,46 +820,55 @@ class URI extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getHost = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getHost = + 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 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()); + return _getHost( + reference.pointer, + _id_getHost as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } - static final _id_getPort = _class.instanceMethodId( - r'getPort', - r'()I', - ); + static final _id_getPort = _class.instanceMethodId(r'getPort', r'()I'); - static final _getPort = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPort = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int getPort()` int getPort() { - return _getPort(reference.pointer, _id_getPort as jni$_.JMethodIDPtr) - .integer; + return _getPort( + reference.pointer, + _id_getPort as jni$_.JMethodIDPtr, + ).integer; } static final _id_getRawPath = _class.instanceMethodId( @@ -750,23 +876,29 @@ class URI extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getRawPath = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getRawPath = + 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 getRawPath()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getRawPath() { - return _getRawPath(reference.pointer, _id_getRawPath as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getRawPath( + reference.pointer, + _id_getRawPath as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getPath = _class.instanceMethodId( @@ -774,23 +906,29 @@ class URI extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getPath = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPath = + 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 getPath()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getPath() { - return _getPath(reference.pointer, _id_getPath as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getPath( + reference.pointer, + _id_getPath as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getRawQuery = _class.instanceMethodId( @@ -798,24 +936,29 @@ class URI extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getRawQuery = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getRawQuery = + 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 getRawQuery()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getRawQuery() { return _getRawQuery( - reference.pointer, _id_getRawQuery as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getRawQuery as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getQuery = _class.instanceMethodId( @@ -823,23 +966,29 @@ class URI extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getQuery = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getQuery = + 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 getQuery()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getQuery() { - return _getQuery(reference.pointer, _id_getQuery as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getQuery( + reference.pointer, + _id_getQuery as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getRawFragment = _class.instanceMethodId( @@ -847,24 +996,29 @@ class URI extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getRawFragment = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getRawFragment = + 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 getRawFragment()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getRawFragment() { return _getRawFragment( - reference.pointer, _id_getRawFragment as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getRawFragment as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getFragment = _class.instanceMethodId( @@ -872,24 +1026,29 @@ class URI extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getFragment = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getFragment = + 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 getFragment()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getFragment() { return _getFragment( - reference.pointer, _id_getFragment as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getFragment as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_equals = _class.instanceMethodId( @@ -897,48 +1056,58 @@ class URI extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } static final _id_compareTo = _class.instanceMethodId( @@ -946,25 +1115,32 @@ class URI extends jni$_.JObject { r'(Ljava/net/URI;)I', ); - static final _compareTo = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _compareTo = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public int compareTo(java.net.URI uRI)` - int compareTo( - URI? uRI, - ) { + int compareTo(URI? uRI) { final _$uRI = uRI?.reference ?? jni$_.jNullReference; - return _compareTo(reference.pointer, _id_compareTo as jni$_.JMethodIDPtr, - _$uRI.pointer) - .integer; + return _compareTo( + reference.pointer, + _id_compareTo as jni$_.JMethodIDPtr, + _$uRI.pointer, + ).integer; } static final _id_toString$1 = _class.instanceMethodId( @@ -972,23 +1148,29 @@ class URI extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + 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 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 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_toASCIIString = _class.instanceMethodId( @@ -996,24 +1178,45 @@ class URI extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toASCIIString = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toASCIIString = + 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 toASCIIString()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? toASCIIString() { return _toASCIIString( - reference.pointer, _id_toASCIIString as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_toASCIIString as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); + } + + bool operator <(URI? uRI) { + return compareTo(uRI) < 0; + } + + bool operator <=(URI? uRI) { + return compareTo(uRI) <= 0; + } + + bool operator >(URI? uRI) { + return compareTo(uRI) > 0; + } + + bool operator >=(URI? uRI) { + return compareTo(uRI) >= 0; } } @@ -1027,11 +1230,8 @@ final class $URI$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - URI? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : URI.fromReference( - reference, - ); + URI? fromReference(jni$_.JReference reference) => + reference.isNull ? null : URI.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1064,9 +1264,7 @@ final class $URI$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - URI fromReference(jni$_.JReference reference) => URI.fromReference( - reference, - ); + URI fromReference(jni$_.JReference reference) => URI.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/java/net/URL.dart b/lib/src/platform/android/jni/java/net/URL.dart index 011107c2..b1436665 100644 --- a/lib/src/platform/android/jni/java/net/URL.dart +++ b/lib/src/platform/android/jni/java/net/URL.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -59,10 +47,9 @@ class URL extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - URL.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + URL.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'java/net/URL'); @@ -73,26 +60,33 @@ class URL extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (java.lang.String string, java.lang.String string1, int i, java.lang.String string2)` /// The returned object must be released after use, by calling the [release] method. @@ -105,38 +99,47 @@ class URL extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$string2 = string2?.reference ?? jni$_.jNullReference; - return URL.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer, - i, - _$string2.pointer) - .reference); + return URL.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + i, + _$string2.pointer, + ).reference, + ); } static final _id_new$1 = _class.constructorId( r'(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V', ); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (java.lang.String string, java.lang.String string1, java.lang.String string2)` /// The returned object must be released after use, by calling the [release] method. @@ -148,41 +151,50 @@ class URL extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$string2 = string2?.reference ?? jni$_.jNullReference; - return URL.fromReference(_new$1( - _class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer, - _$string2.pointer) - .reference); + return URL.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + _$string2.pointer, + ).reference, + ); } static final _id_new$2 = _class.constructorId( r'(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/net/URLStreamHandler;)V', ); - static final _new$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, int, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (java.lang.String string, java.lang.String string1, int i, java.lang.String string2, java.net.URLStreamHandler uRLStreamHandler)` /// The returned object must be released after use, by calling the [release] method. @@ -198,99 +210,121 @@ class URL extends jni$_.JObject { final _$string2 = string2?.reference ?? jni$_.jNullReference; final _$uRLStreamHandler = uRLStreamHandler?.reference ?? jni$_.jNullReference; - return URL.fromReference(_new$2( - _class.reference.pointer, - _id_new$2 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer, - i, - _$string2.pointer, - _$uRLStreamHandler.pointer) - .reference); + return URL.fromReference( + _new$2( + _class.reference.pointer, + _id_new$2 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + i, + _$string2.pointer, + _$uRLStreamHandler.pointer, + ).reference, + ); } - static final _id_new$3 = _class.constructorId( - r'(Ljava/lang/String;)V', - ); + static final _id_new$3 = _class.constructorId(r'(Ljava/lang/String;)V'); - static final _new$3 = 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)>(); + static final _new$3 = + 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: `public void (java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - factory URL.new$3( - jni$_.JString? string, - ) { + factory URL.new$3(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return URL.fromReference(_new$3(_class.reference.pointer, - _id_new$3 as jni$_.JMethodIDPtr, _$string.pointer) - .reference); + return URL.fromReference( + _new$3( + _class.reference.pointer, + _id_new$3 as jni$_.JMethodIDPtr, + _$string.pointer, + ).reference, + ); } static final _id_new$4 = _class.constructorId( r'(Ljava/net/URL;Ljava/lang/String;)V', ); - static final _new$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (java.net.URL uRL, java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - factory URL.new$4( - URL? uRL, - jni$_.JString? string, - ) { + factory URL.new$4(URL? uRL, jni$_.JString? string) { final _$uRL = uRL?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; - return URL.fromReference(_new$4(_class.reference.pointer, - _id_new$4 as jni$_.JMethodIDPtr, _$uRL.pointer, _$string.pointer) - .reference); + return URL.fromReference( + _new$4( + _class.reference.pointer, + _id_new$4 as jni$_.JMethodIDPtr, + _$uRL.pointer, + _$string.pointer, + ).reference, + ); } static final _id_new$5 = _class.constructorId( r'(Ljava/net/URL;Ljava/lang/String;Ljava/net/URLStreamHandler;)V', ); - static final _new$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (java.net.URL uRL, java.lang.String string, java.net.URLStreamHandler uRLStreamHandler)` /// The returned object must be released after use, by calling the [release] method. @@ -303,13 +337,15 @@ class URL extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$uRLStreamHandler = uRLStreamHandler?.reference ?? jni$_.jNullReference; - return URL.fromReference(_new$5( - _class.reference.pointer, - _id_new$5 as jni$_.JMethodIDPtr, - _$uRL.pointer, - _$string.pointer, - _$uRLStreamHandler.pointer) - .reference); + return URL.fromReference( + _new$5( + _class.reference.pointer, + _id_new$5 as jni$_.JMethodIDPtr, + _$uRL.pointer, + _$string.pointer, + _$uRLStreamHandler.pointer, + ).reference, + ); } static final _id_getQuery = _class.instanceMethodId( @@ -317,23 +353,29 @@ class URL extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getQuery = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getQuery = + 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 getQuery()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getQuery() { - return _getQuery(reference.pointer, _id_getQuery as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getQuery( + reference.pointer, + _id_getQuery as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getPath = _class.instanceMethodId( @@ -341,23 +383,29 @@ class URL extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getPath = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPath = + 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 getPath()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getPath() { - return _getPath(reference.pointer, _id_getPath as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getPath( + reference.pointer, + _id_getPath as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getUserInfo = _class.instanceMethodId( @@ -365,24 +413,29 @@ class URL extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getUserInfo = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getUserInfo = + 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 getUserInfo()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getUserInfo() { return _getUserInfo( - reference.pointer, _id_getUserInfo as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getUserInfo as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getAuthority = _class.instanceMethodId( @@ -390,47 +443,55 @@ class URL extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getAuthority = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAuthority = + 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 getAuthority()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getAuthority() { return _getAuthority( - reference.pointer, _id_getAuthority as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getAuthority as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } - static final _id_getPort = _class.instanceMethodId( - r'getPort', - r'()I', - ); + static final _id_getPort = _class.instanceMethodId(r'getPort', r'()I'); - static final _getPort = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPort = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int getPort()` int getPort() { - return _getPort(reference.pointer, _id_getPort as jni$_.JMethodIDPtr) - .integer; + return _getPort( + reference.pointer, + _id_getPort as jni$_.JMethodIDPtr, + ).integer; } static final _id_getDefaultPort = _class.instanceMethodId( @@ -438,23 +499,28 @@ class URL extends jni$_.JObject { r'()I', ); - static final _getDefaultPort = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getDefaultPort = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int getDefaultPort()` int getDefaultPort() { return _getDefaultPort( - reference.pointer, _id_getDefaultPort as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_getDefaultPort as jni$_.JMethodIDPtr, + ).integer; } static final _id_getProtocol = _class.instanceMethodId( @@ -462,24 +528,29 @@ class URL extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getProtocol = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getProtocol = + 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 getProtocol()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getProtocol() { return _getProtocol( - reference.pointer, _id_getProtocol as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getProtocol as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getHost = _class.instanceMethodId( @@ -487,23 +558,29 @@ class URL extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getHost = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getHost = + 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 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()); + return _getHost( + reference.pointer, + _id_getHost as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getFile = _class.instanceMethodId( @@ -511,23 +588,29 @@ class URL extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getFile = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getFile = + 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 getFile()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getFile() { - return _getFile(reference.pointer, _id_getFile as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getFile( + reference.pointer, + _id_getFile as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getRef = _class.instanceMethodId( @@ -535,23 +618,29 @@ class URL extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getRef = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getRef = + 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 getRef()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getRef() { - return _getRef(reference.pointer, _id_getRef as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getRef( + reference.pointer, + _id_getRef as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_equals = _class.instanceMethodId( @@ -559,48 +648,58 @@ class URL extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } static final _id_sameFile = _class.instanceMethodId( @@ -608,25 +707,32 @@ class URL extends jni$_.JObject { r'(Ljava/net/URL;)Z', ); - static final _sameFile = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _sameFile = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean sameFile(java.net.URL uRL)` - bool sameFile( - URL? uRL, - ) { + bool sameFile(URL? uRL) { final _$uRL = uRL?.reference ?? jni$_.jNullReference; - return _sameFile(reference.pointer, _id_sameFile as jni$_.JMethodIDPtr, - _$uRL.pointer) - .boolean; + return _sameFile( + reference.pointer, + _id_sameFile as jni$_.JMethodIDPtr, + _$uRL.pointer, + ).boolean; } static final _id_toString$1 = _class.instanceMethodId( @@ -634,23 +740,29 @@ class URL extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + 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 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 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_toExternalForm = _class.instanceMethodId( @@ -658,24 +770,29 @@ class URL extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toExternalForm = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toExternalForm = + 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 toExternalForm()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? toExternalForm() { return _toExternalForm( - reference.pointer, _id_toExternalForm as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_toExternalForm as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_toURI = _class.instanceMethodId( @@ -683,23 +800,29 @@ class URL extends jni$_.JObject { r'()Ljava/net/URI;', ); - static final _toURI = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toURI = + 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.net.URI toURI()` /// The returned object must be released after use, by calling the [release] method. uri$_.URI? toURI() { - return _toURI(reference.pointer, _id_toURI as jni$_.JMethodIDPtr) - .object(const uri$_.$URI$NullableType()); + return _toURI( + reference.pointer, + _id_toURI as jni$_.JMethodIDPtr, + ).object(const uri$_.$URI$NullableType()); } static final _id_openConnection = _class.instanceMethodId( @@ -707,24 +830,29 @@ class URL extends jni$_.JObject { r'()Ljava/net/URLConnection;', ); - static final _openConnection = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _openConnection = + 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.net.URLConnection openConnection()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? openConnection() { return _openConnection( - reference.pointer, _id_openConnection as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_openConnection as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_openConnection$1 = _class.instanceMethodId( @@ -732,26 +860,33 @@ class URL extends jni$_.JObject { r'(Ljava/net/Proxy;)Ljava/net/URLConnection;', ); - static final _openConnection$1 = 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)>(); + static final _openConnection$1 = + 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 java.net.URLConnection openConnection(java.net.Proxy proxy)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? openConnection$1( - jni$_.JObject? proxy, - ) { + jni$_.JObject? openConnection$1(jni$_.JObject? proxy) { final _$proxy = proxy?.reference ?? jni$_.jNullReference; - return _openConnection$1(reference.pointer, - _id_openConnection$1 as jni$_.JMethodIDPtr, _$proxy.pointer) - .object(const jni$_.JObjectNullableType()); + return _openConnection$1( + reference.pointer, + _id_openConnection$1 as jni$_.JMethodIDPtr, + _$proxy.pointer, + ).object(const jni$_.JObjectNullableType()); } static final _id_openStream = _class.instanceMethodId( @@ -759,23 +894,29 @@ class URL extends jni$_.JObject { r'()Ljava/io/InputStream;', ); - static final _openStream = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _openStream = + 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.io.InputStream openStream()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? openStream() { - return _openStream(reference.pointer, _id_openStream as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _openStream( + reference.pointer, + _id_openStream as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_getContent = _class.instanceMethodId( @@ -783,23 +924,29 @@ class URL extends jni$_.JObject { r'()Ljava/lang/Object;', ); - static final _getContent = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getContent = + 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.Object getContent()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getContent() { - return _getContent(reference.pointer, _id_getContent as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _getContent( + reference.pointer, + _id_getContent as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_getContent$1 = _class.instanceMethodId( @@ -807,26 +954,33 @@ class URL extends jni$_.JObject { r'([Ljava/lang/Class;)Ljava/lang/Object;', ); - static final _getContent$1 = 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)>(); + static final _getContent$1 = + 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 java.lang.Object getContent(java.lang.Class[] classs)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getContent$1( - jni$_.JArray? classs, - ) { + jni$_.JObject? getContent$1(jni$_.JArray? classs) { final _$classs = classs?.reference ?? jni$_.jNullReference; - return _getContent$1(reference.pointer, - _id_getContent$1 as jni$_.JMethodIDPtr, _$classs.pointer) - .object(const jni$_.JObjectNullableType()); + return _getContent$1( + reference.pointer, + _id_getContent$1 as jni$_.JMethodIDPtr, + _$classs.pointer, + ).object(const jni$_.JObjectNullableType()); } static final _id_setURLStreamHandlerFactory = _class.staticMethodId( @@ -836,15 +990,21 @@ class URL extends jni$_.JObject { static final _setURLStreamHandlerFactory = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory uRLStreamHandlerFactory)` static void setURLStreamHandlerFactory( @@ -853,10 +1013,10 @@ class URL extends jni$_.JObject { final _$uRLStreamHandlerFactory = uRLStreamHandlerFactory?.reference ?? jni$_.jNullReference; _setURLStreamHandlerFactory( - _class.reference.pointer, - _id_setURLStreamHandlerFactory as jni$_.JMethodIDPtr, - _$uRLStreamHandlerFactory.pointer) - .check(); + _class.reference.pointer, + _id_setURLStreamHandlerFactory as jni$_.JMethodIDPtr, + _$uRLStreamHandlerFactory.pointer, + ).check(); } } @@ -870,11 +1030,8 @@ final class $URL$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - URL? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : URL.fromReference( - reference, - ); + URL? fromReference(jni$_.JReference reference) => + reference.isNull ? null : URL.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -907,9 +1064,7 @@ final class $URL$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - URL fromReference(jni$_.JReference reference) => URL.fromReference( - reference, - ); + URL fromReference(jni$_.JReference reference) => URL.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/java/net/_package.dart b/lib/src/platform/android/jni/java/net/_package.dart index 7ffe01a0..59b00d34 100644 --- a/lib/src/platform/android/jni/java/net/_package.dart +++ b/lib/src/platform/android/jni/java/net/_package.dart @@ -1,2 +1,3 @@ +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! export 'URI.dart'; export 'URL.dart'; diff --git a/lib/src/platform/android/jni/jni.dart b/lib/src/platform/android/jni/jni.dart deleted file mode 100644 index edac85a3..00000000 --- a/lib/src/platform/android/jni/jni.dart +++ /dev/null @@ -1,28 +0,0 @@ -export 'android/graphics/_package.dart'; -export 'android/location/_package.dart'; -export 'com/github/josxha/maplibre/_package.dart'; -// export 'io/flutter/embedding/engine/plugins/activity/_package.dart'; -// export 'io/flutter/plugin/common/_package.dart'; -export 'java/net/_package.dart'; -export 'org/maplibre/android/_package.dart'; -export 'org/maplibre/android/attribution/_package.dart'; -export 'org/maplibre/android/camera/_package.dart'; -export 'org/maplibre/android/constants/_package.dart'; -export 'org/maplibre/android/exceptions/_package.dart'; -export 'org/maplibre/android/geometry/_package.dart'; -export 'org/maplibre/android/http/_package.dart'; -export 'org/maplibre/android/location/_package.dart'; -export 'org/maplibre/android/location/engine/_package.dart'; -export 'org/maplibre/android/location/modes/_package.dart'; -export 'org/maplibre/android/location/permissions/_package.dart'; -export 'org/maplibre/android/log/_package.dart'; -export 'org/maplibre/android/maps/_package.dart'; -export 'org/maplibre/android/offline/_package.dart'; -export 'org/maplibre/android/storage/_package.dart'; -export 'org/maplibre/android/style/layers/_package.dart'; -export 'org/maplibre/android/style/light/_package.dart'; -export 'org/maplibre/android/style/sources/_package.dart'; -export 'org/maplibre/android/style/types/_package.dart'; -export 'org/maplibre/android/text/_package.dart'; -export 'org/maplibre/android/util/_package.dart'; -export 'org/maplibre/android/utils/_package.dart'; diff --git a/lib/src/platform/android/jni/org/maplibre/android/MapLibre.dart b/lib/src/platform/android/jni/org/maplibre/android/MapLibre.dart index 4a76f8dd..fb151d39 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/MapLibre.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/MapLibre.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -61,10 +49,9 @@ class MapLibre extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibre.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibre.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'org/maplibre/android/MapLibre'); @@ -76,26 +63,33 @@ class MapLibre extends jni$_.JObject { r'(Landroid/content/Context;)Lorg/maplibre/android/MapLibre;', ); - static final _getInstance = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _getInstance = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public org.maplibre.android.MapLibre getInstance(android.content.Context context)` /// The returned object must be released after use, by calling the [release] method. - static MapLibre? getInstance( - jni$_.JObject? context, - ) { - final _$context = context?.reference ?? jni$_.jNullReference; - return _getInstance(_class.reference.pointer, - _id_getInstance as jni$_.JMethodIDPtr, _$context.pointer) - .object(const $MapLibre$NullableType()); + static MapLibre getInstance(jni$_.JObject context) { + final _$context = context.reference; + return _getInstance( + _class.reference.pointer, + _id_getInstance as jni$_.JMethodIDPtr, + _$context.pointer, + ).object(const $MapLibre$Type()); } static final _id_getInstance$1 = _class.staticMethodId( @@ -103,43 +97,50 @@ class MapLibre extends jni$_.JObject { r'(Landroid/content/Context;Ljava/lang/String;Lorg/maplibre/android/WellKnownTileServer;)Lorg/maplibre/android/MapLibre;', ); - static final _getInstance$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInstance$1 = + 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$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public org.maplibre.android.MapLibre getInstance(android.content.Context context, java.lang.String string, org.maplibre.android.WellKnownTileServer wellKnownTileServer)` /// The returned object must be released after use, by calling the [release] method. - static MapLibre? getInstance$1( - jni$_.JObject? context, + static MapLibre getInstance$1( + jni$_.JObject context, jni$_.JString? string, jni$_.JObject? wellKnownTileServer, ) { - final _$context = context?.reference ?? jni$_.jNullReference; + final _$context = context.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$wellKnownTileServer = wellKnownTileServer?.reference ?? jni$_.jNullReference; return _getInstance$1( - _class.reference.pointer, - _id_getInstance$1 as jni$_.JMethodIDPtr, - _$context.pointer, - _$string.pointer, - _$wellKnownTileServer.pointer) - .object(const $MapLibre$NullableType()); + _class.reference.pointer, + _id_getInstance$1 as jni$_.JMethodIDPtr, + _$context.pointer, + _$string.pointer, + _$wellKnownTileServer.pointer, + ).object(const $MapLibre$Type()); } static final _id_getApiKey = _class.staticMethodId( @@ -147,24 +148,29 @@ class MapLibre extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getApiKey = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getApiKey = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public java.lang.String getApiKey()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? getApiKey() { return _getApiKey( - _class.reference.pointer, _id_getApiKey as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + _class.reference.pointer, + _id_getApiKey as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_setApiKey = _class.staticMethodId( @@ -172,25 +178,32 @@ class MapLibre extends jni$_.JObject { r'(Ljava/lang/String;)V', ); - static final _setApiKey = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _setApiKey = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void setApiKey(java.lang.String string)` - static void setApiKey( - jni$_.JString? string, - ) { + static void setApiKey(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setApiKey(_class.reference.pointer, _id_setApiKey as jni$_.JMethodIDPtr, - _$string.pointer) - .check(); + _setApiKey( + _class.reference.pointer, + _id_setApiKey as jni$_.JMethodIDPtr, + _$string.pointer, + ).check(); } static final _id_getTileServerOptions = _class.staticMethodId( @@ -198,25 +211,31 @@ class MapLibre extends jni$_.JObject { r'()Lorg/maplibre/android/util/TileServerOptions;', ); - static final _getTileServerOptions = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getTileServerOptions = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public org.maplibre.android.util.TileServerOptions getTileServerOptions()` /// The returned object must be released after use, by calling the [release] method. static tileserveroptions$_.TileServerOptions? getTileServerOptions() { - return _getTileServerOptions(_class.reference.pointer, - _id_getTileServerOptions as jni$_.JMethodIDPtr) - .object( - const tileserveroptions$_.$TileServerOptions$NullableType()); + return _getTileServerOptions( + _class.reference.pointer, + _id_getTileServerOptions as jni$_.JMethodIDPtr, + ).object( + const tileserveroptions$_.$TileServerOptions$NullableType(), + ); } static final _id_getPredefinedStyles = _class.staticMethodId( @@ -224,26 +243,33 @@ class MapLibre extends jni$_.JObject { r'()[Lorg/maplibre/android/util/DefaultStyle;', ); - static final _getPredefinedStyles = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPredefinedStyles = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public org.maplibre.android.util.DefaultStyle[] getPredefinedStyles()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JArray? getPredefinedStyles() { - return _getPredefinedStyles(_class.reference.pointer, - _id_getPredefinedStyles as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - defaultstyle$_.$DefaultStyle$NullableType())); + return _getPredefinedStyles( + _class.reference.pointer, + _id_getPredefinedStyles as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JArrayNullableType( + defaultstyle$_.$DefaultStyle$NullableType(), + ), + ); } static final _id_getPredefinedStyle = _class.staticMethodId( @@ -251,16 +277,23 @@ class MapLibre extends jni$_.JObject { r'(Ljava/lang/String;)Lorg/maplibre/android/util/DefaultStyle;', ); - static final _getPredefinedStyle = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _getPredefinedStyle = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public org.maplibre.android.util.DefaultStyle getPredefinedStyle(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. @@ -268,10 +301,13 @@ class MapLibre extends jni$_.JObject { jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - return _getPredefinedStyle(_class.reference.pointer, - _id_getPredefinedStyle as jni$_.JMethodIDPtr, _$string.pointer) - .object( - const defaultstyle$_.$DefaultStyle$NullableType()); + return _getPredefinedStyle( + _class.reference.pointer, + _id_getPredefinedStyle as jni$_.JMethodIDPtr, + _$string.pointer, + ).object( + const defaultstyle$_.$DefaultStyle$NullableType(), + ); } static final _id_getApplicationContext = _class.staticMethodId( @@ -279,24 +315,29 @@ class MapLibre extends jni$_.JObject { r'()Landroid/content/Context;', ); - static final _getApplicationContext = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getApplicationContext = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public android.content.Context getApplicationContext()` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? getApplicationContext() { - return _getApplicationContext(_class.reference.pointer, - _id_getApplicationContext as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + static jni$_.JObject getApplicationContext() { + return _getApplicationContext( + _class.reference.pointer, + _id_getApplicationContext as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } static final _id_setConnected = _class.staticMethodId( @@ -304,25 +345,32 @@ class MapLibre extends jni$_.JObject { r'(Ljava/lang/Boolean;)V', ); - static final _setConnected = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _setConnected = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void setConnected(java.lang.Boolean boolean)` - static void setConnected( - jni$_.JBoolean? boolean, - ) { + static void setConnected(jni$_.JBoolean? boolean) { final _$boolean = boolean?.reference ?? jni$_.jNullReference; - _setConnected(_class.reference.pointer, - _id_setConnected as jni$_.JMethodIDPtr, _$boolean.pointer) - .check(); + _setConnected( + _class.reference.pointer, + _id_setConnected as jni$_.JMethodIDPtr, + _$boolean.pointer, + ).check(); } static final _id_isConnected = _class.staticMethodId( @@ -330,24 +378,29 @@ class MapLibre extends jni$_.JObject { r'()Ljava/lang/Boolean;', ); - static final _isConnected = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isConnected = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public java.lang.Boolean isConnected()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JBoolean? isConnected() { return _isConnected( - _class.reference.pointer, _id_isConnected as jni$_.JMethodIDPtr) - .object(const jni$_.JBooleanNullableType()); + _class.reference.pointer, + _id_isConnected as jni$_.JMethodIDPtr, + ).object(const jni$_.JBooleanNullableType()); } static final _id_getModuleProvider = _class.staticMethodId( @@ -355,24 +408,29 @@ class MapLibre extends jni$_.JObject { r'()Lorg/maplibre/android/ModuleProvider;', ); - static final _getModuleProvider = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getModuleProvider = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public org.maplibre.android.ModuleProvider getModuleProvider()` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? getModuleProvider() { - return _getModuleProvider(_class.reference.pointer, - _id_getModuleProvider as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + static jni$_.JObject getModuleProvider() { + return _getModuleProvider( + _class.reference.pointer, + _id_getModuleProvider as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } static final _id_setModuleProvider = _class.staticMethodId( @@ -380,27 +438,32 @@ class MapLibre extends jni$_.JObject { r'(Lorg/maplibre/android/ModuleProvider;)V', ); - static final _setModuleProvider = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _setModuleProvider = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void setModuleProvider(org.maplibre.android.ModuleProvider moduleProvider)` - static void setModuleProvider( - jni$_.JObject? moduleProvider, - ) { + static void setModuleProvider(jni$_.JObject? moduleProvider) { final _$moduleProvider = moduleProvider?.reference ?? jni$_.jNullReference; _setModuleProvider( - _class.reference.pointer, - _id_setModuleProvider as jni$_.JMethodIDPtr, - _$moduleProvider.pointer) - .check(); + _class.reference.pointer, + _id_setModuleProvider as jni$_.JMethodIDPtr, + _$moduleProvider.pointer, + ).check(); } static final _id_throwIfApiKeyInvalid = _class.staticMethodId( @@ -408,49 +471,58 @@ class MapLibre extends jni$_.JObject { r'(Ljava/lang/String;)V', ); - static final _throwIfApiKeyInvalid = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _throwIfApiKeyInvalid = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void throwIfApiKeyInvalid(java.lang.String string)` - static void throwIfApiKeyInvalid( - jni$_.JString? string, - ) { + static void throwIfApiKeyInvalid(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _throwIfApiKeyInvalid(_class.reference.pointer, - _id_throwIfApiKeyInvalid as jni$_.JMethodIDPtr, _$string.pointer) - .check(); + _throwIfApiKeyInvalid( + _class.reference.pointer, + _id_throwIfApiKeyInvalid as jni$_.JMethodIDPtr, + _$string.pointer, + ).check(); } - static final _id_hasInstance = _class.staticMethodId( - r'hasInstance', - r'()Z', - ); + static final _id_hasInstance = _class.staticMethodId(r'hasInstance', r'()Z'); - static final _hasInstance = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hasInstance = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public boolean hasInstance()` static bool hasInstance() { return _hasInstance( - _class.reference.pointer, _id_hasInstance as jni$_.JMethodIDPtr) - .boolean; + _class.reference.pointer, + _id_hasInstance as jni$_.JMethodIDPtr, + ).boolean; } } @@ -464,11 +536,8 @@ final class $MapLibre$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - MapLibre? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapLibre.fromReference( - reference, - ); + MapLibre? fromReference(jni$_.JReference reference) => + reference.isNull ? null : MapLibre.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -501,9 +570,8 @@ final class $MapLibre$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - MapLibre fromReference(jni$_.JReference reference) => MapLibre.fromReference( - reference, - ); + MapLibre fromReference(jni$_.JReference reference) => + MapLibre.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/_package.dart b/lib/src/platform/android/jni/org/maplibre/android/_package.dart index 9b8c3a88..c832def1 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/_package.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/_package.dart @@ -1 +1,2 @@ +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! export 'MapLibre.dart'; diff --git a/lib/src/platform/android/jni/org/maplibre/android/attribution/Attribution.dart b/lib/src/platform/android/jni/org/maplibre/android/attribution/Attribution.dart index 42709f56..dbeb8693 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/attribution/Attribution.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/attribution/Attribution.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class Attribution extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Attribution.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Attribution.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/attribution/Attribution'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/attribution/Attribution', + ); /// The type which includes information such as the signature of this class. static const nullableType = $Attribution$NullableType(); @@ -73,23 +61,29 @@ class Attribution extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getTitle = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getTitle = + 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 getTitle()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getTitle() { - return _getTitle(reference.pointer, _id_getTitle as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getTitle( + reference.pointer, + _id_getTitle as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getTitleAbbreviated = _class.instanceMethodId( @@ -97,24 +91,29 @@ class Attribution extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getTitleAbbreviated = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getTitleAbbreviated = + 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 getTitleAbbreviated()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getTitleAbbreviated() { return _getTitleAbbreviated( - reference.pointer, _id_getTitleAbbreviated as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getTitleAbbreviated as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getUrl = _class.instanceMethodId( @@ -122,23 +121,29 @@ class Attribution extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getUrl = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getUrl = + 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 getUrl()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getUrl() { - return _getUrl(reference.pointer, _id_getUrl as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getUrl( + reference.pointer, + _id_getUrl as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_equals = _class.instanceMethodId( @@ -146,48 +151,58 @@ class Attribution extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } } @@ -201,11 +216,8 @@ final class $Attribution$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - Attribution? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Attribution.fromReference( - reference, - ); + Attribution? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Attribution.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -239,9 +251,7 @@ final class $Attribution$Type extends jni$_.JObjType { @jni$_.internal @core$_.override Attribution fromReference(jni$_.JReference reference) => - Attribution.fromReference( - reference, - ); + Attribution.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/attribution/AttributionLayout.dart b/lib/src/platform/android/jni/org/maplibre/android/attribution/AttributionLayout.dart index f4650305..994ce3e7 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/attribution/AttributionLayout.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/attribution/AttributionLayout.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -59,13 +47,13 @@ class AttributionLayout extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - AttributionLayout.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + AttributionLayout.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/attribution/AttributionLayout'); + r'org/maplibre/android/attribution/AttributionLayout', + ); /// The type which includes information such as the signature of this class. static const nullableType = $AttributionLayout$NullableType(); @@ -74,24 +62,31 @@ class AttributionLayout extends jni$_.JObject { r'(Landroid/graphics/Bitmap;Landroid/graphics/PointF;Z)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32 - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + int, + ) + >(); /// from: `public void (android.graphics.Bitmap bitmap, android.graphics.PointF pointF, boolean z)` /// The returned object must be released after use, by calling the [release] method. @@ -102,13 +97,15 @@ class AttributionLayout extends jni$_.JObject { ) { final _$bitmap = bitmap?.reference ?? jni$_.jNullReference; final _$pointF = pointF?.reference ?? jni$_.jNullReference; - return AttributionLayout.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$bitmap.pointer, - _$pointF.pointer, - z ? 1 : 0) - .reference); + return AttributionLayout.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$bitmap.pointer, + _$pointF.pointer, + z ? 1 : 0, + ).reference, + ); } static final _id_getLogo = _class.instanceMethodId( @@ -116,23 +113,29 @@ class AttributionLayout extends jni$_.JObject { r'()Landroid/graphics/Bitmap;', ); - static final _getLogo = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLogo = + 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 android.graphics.Bitmap getLogo()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getLogo() { - return _getLogo(reference.pointer, _id_getLogo as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _getLogo( + reference.pointer, + _id_getLogo as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_getAnchorPoint = _class.instanceMethodId( @@ -140,24 +143,29 @@ class AttributionLayout extends jni$_.JObject { r'()Landroid/graphics/PointF;', ); - static final _getAnchorPoint = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAnchorPoint = + 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 android.graphics.PointF getAnchorPoint()` /// The returned object must be released after use, by calling the [release] method. pointf$_.PointF? getAnchorPoint() { return _getAnchorPoint( - reference.pointer, _id_getAnchorPoint as jni$_.JMethodIDPtr) - .object(const pointf$_.$PointF$NullableType()); + reference.pointer, + _id_getAnchorPoint as jni$_.JMethodIDPtr, + ).object(const pointf$_.$PointF$NullableType()); } static final _id_isShortText = _class.instanceMethodId( @@ -165,23 +173,28 @@ class AttributionLayout extends jni$_.JObject { r'()Z', ); - static final _isShortText = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isShortText = + 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 isShortText()` bool isShortText() { return _isShortText( - reference.pointer, _id_isShortText as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_isShortText as jni$_.JMethodIDPtr, + ).boolean; } static final _id_equals = _class.instanceMethodId( @@ -189,48 +202,58 @@ class AttributionLayout extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } static final _id_toString$1 = _class.instanceMethodId( @@ -238,23 +261,29 @@ class AttributionLayout extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + 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 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()); + jni$_.JString toString$1() { + return _toString$1( + reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } } @@ -271,11 +300,7 @@ final class $AttributionLayout$NullableType @jni$_.internal @core$_.override AttributionLayout? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : AttributionLayout.fromReference( - reference, - ); + reference.isNull ? null : AttributionLayout.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -310,9 +335,7 @@ final class $AttributionLayout$Type extends jni$_.JObjType { @jni$_.internal @core$_.override AttributionLayout fromReference(jni$_.JReference reference) => - AttributionLayout.fromReference( - reference, - ); + AttributionLayout.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/attribution/AttributionMeasure.dart b/lib/src/platform/android/jni/org/maplibre/android/attribution/AttributionMeasure.dart index b567800d..acab38a0 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/attribution/AttributionMeasure.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/attribution/AttributionMeasure.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -59,39 +47,41 @@ class AttributionMeasure$Builder extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - AttributionMeasure$Builder.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + AttributionMeasure$Builder.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/attribution/AttributionMeasure$Builder'); + r'org/maplibre/android/attribution/AttributionMeasure$Builder', + ); /// The type which includes information such as the signature of this class. static const nullableType = $AttributionMeasure$Builder$NullableType(); static const type = $AttributionMeasure$Builder$Type(); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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, - )>(); + ) + > + >('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 AttributionMeasure$Builder() { return AttributionMeasure$Builder.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } static final _id_setSnapshot = _class.instanceMethodId( @@ -99,27 +89,35 @@ class AttributionMeasure$Builder extends jni$_.JObject { r'(Landroid/graphics/Bitmap;)Lorg/maplibre/android/attribution/AttributionMeasure$Builder;', ); - static final _setSnapshot = 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)>(); + static final _setSnapshot = + 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 org.maplibre.android.attribution.AttributionMeasure$Builder setSnapshot(android.graphics.Bitmap bitmap)` /// The returned object must be released after use, by calling the [release] method. - AttributionMeasure$Builder? setSnapshot( - jni$_.JObject? bitmap, - ) { + AttributionMeasure$Builder setSnapshot(jni$_.JObject? bitmap) { final _$bitmap = bitmap?.reference ?? jni$_.jNullReference; - return _setSnapshot(reference.pointer, - _id_setSnapshot as jni$_.JMethodIDPtr, _$bitmap.pointer) - .object( - const $AttributionMeasure$Builder$NullableType()); + return _setSnapshot( + reference.pointer, + _id_setSnapshot as jni$_.JMethodIDPtr, + _$bitmap.pointer, + ).object( + const $AttributionMeasure$Builder$Type(), + ); } static final _id_setLogo = _class.instanceMethodId( @@ -127,27 +125,35 @@ class AttributionMeasure$Builder extends jni$_.JObject { r'(Landroid/graphics/Bitmap;)Lorg/maplibre/android/attribution/AttributionMeasure$Builder;', ); - static final _setLogo = 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)>(); + static final _setLogo = + 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 org.maplibre.android.attribution.AttributionMeasure$Builder setLogo(android.graphics.Bitmap bitmap)` /// The returned object must be released after use, by calling the [release] method. - AttributionMeasure$Builder? setLogo( - jni$_.JObject? bitmap, - ) { + AttributionMeasure$Builder setLogo(jni$_.JObject? bitmap) { final _$bitmap = bitmap?.reference ?? jni$_.jNullReference; - return _setLogo(reference.pointer, _id_setLogo as jni$_.JMethodIDPtr, - _$bitmap.pointer) - .object( - const $AttributionMeasure$Builder$NullableType()); + return _setLogo( + reference.pointer, + _id_setLogo as jni$_.JMethodIDPtr, + _$bitmap.pointer, + ).object( + const $AttributionMeasure$Builder$Type(), + ); } static final _id_setLogoSmall = _class.instanceMethodId( @@ -155,27 +161,35 @@ class AttributionMeasure$Builder extends jni$_.JObject { r'(Landroid/graphics/Bitmap;)Lorg/maplibre/android/attribution/AttributionMeasure$Builder;', ); - static final _setLogoSmall = 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)>(); + static final _setLogoSmall = + 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 org.maplibre.android.attribution.AttributionMeasure$Builder setLogoSmall(android.graphics.Bitmap bitmap)` /// The returned object must be released after use, by calling the [release] method. - AttributionMeasure$Builder? setLogoSmall( - jni$_.JObject? bitmap, - ) { + AttributionMeasure$Builder setLogoSmall(jni$_.JObject? bitmap) { final _$bitmap = bitmap?.reference ?? jni$_.jNullReference; - return _setLogoSmall(reference.pointer, - _id_setLogoSmall as jni$_.JMethodIDPtr, _$bitmap.pointer) - .object( - const $AttributionMeasure$Builder$NullableType()); + return _setLogoSmall( + reference.pointer, + _id_setLogoSmall as jni$_.JMethodIDPtr, + _$bitmap.pointer, + ).object( + const $AttributionMeasure$Builder$Type(), + ); } static final _id_setTextView = _class.instanceMethodId( @@ -183,27 +197,35 @@ class AttributionMeasure$Builder extends jni$_.JObject { r'(Landroid/widget/TextView;)Lorg/maplibre/android/attribution/AttributionMeasure$Builder;', ); - static final _setTextView = 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)>(); + static final _setTextView = + 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 org.maplibre.android.attribution.AttributionMeasure$Builder setTextView(android.widget.TextView textView)` /// The returned object must be released after use, by calling the [release] method. - AttributionMeasure$Builder? setTextView( - jni$_.JObject? textView, - ) { + AttributionMeasure$Builder setTextView(jni$_.JObject? textView) { final _$textView = textView?.reference ?? jni$_.jNullReference; - return _setTextView(reference.pointer, - _id_setTextView as jni$_.JMethodIDPtr, _$textView.pointer) - .object( - const $AttributionMeasure$Builder$NullableType()); + return _setTextView( + reference.pointer, + _id_setTextView as jni$_.JMethodIDPtr, + _$textView.pointer, + ).object( + const $AttributionMeasure$Builder$Type(), + ); } static final _id_setTextViewShort = _class.instanceMethodId( @@ -211,27 +233,35 @@ class AttributionMeasure$Builder extends jni$_.JObject { r'(Landroid/widget/TextView;)Lorg/maplibre/android/attribution/AttributionMeasure$Builder;', ); - static final _setTextViewShort = 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)>(); + static final _setTextViewShort = + 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 org.maplibre.android.attribution.AttributionMeasure$Builder setTextViewShort(android.widget.TextView textView)` /// The returned object must be released after use, by calling the [release] method. - AttributionMeasure$Builder? setTextViewShort( - jni$_.JObject? textView, - ) { + AttributionMeasure$Builder setTextViewShort(jni$_.JObject? textView) { final _$textView = textView?.reference ?? jni$_.jNullReference; - return _setTextViewShort(reference.pointer, - _id_setTextViewShort as jni$_.JMethodIDPtr, _$textView.pointer) - .object( - const $AttributionMeasure$Builder$NullableType()); + return _setTextViewShort( + reference.pointer, + _id_setTextViewShort as jni$_.JMethodIDPtr, + _$textView.pointer, + ).object( + const $AttributionMeasure$Builder$Type(), + ); } static final _id_setMarginPadding = _class.instanceMethodId( @@ -239,26 +269,34 @@ class AttributionMeasure$Builder extends jni$_.JObject { r'(F)Lorg/maplibre/android/attribution/AttributionMeasure$Builder;', ); - static final _setMarginPadding = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setMarginPadding = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Double,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public org.maplibre.android.attribution.AttributionMeasure$Builder setMarginPadding(float f)` /// The returned object must be released after use, by calling the [release] method. - AttributionMeasure$Builder? setMarginPadding( - double f, - ) { + AttributionMeasure$Builder setMarginPadding(double f) { return _setMarginPadding( - reference.pointer, _id_setMarginPadding as jni$_.JMethodIDPtr, f) - .object( - const $AttributionMeasure$Builder$NullableType()); + reference.pointer, + _id_setMarginPadding as jni$_.JMethodIDPtr, + f, + ).object( + const $AttributionMeasure$Builder$Type(), + ); } static final _id_build = _class.instanceMethodId( @@ -266,23 +304,29 @@ class AttributionMeasure$Builder extends jni$_.JObject { r'()Lorg/maplibre/android/attribution/AttributionMeasure;', ); - static final _build = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _build = + 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 org.maplibre.android.attribution.AttributionMeasure build()` /// The returned object must be released after use, by calling the [release] method. - AttributionMeasure? build() { - return _build(reference.pointer, _id_build as jni$_.JMethodIDPtr) - .object(const $AttributionMeasure$NullableType()); + AttributionMeasure build() { + return _build( + reference.pointer, + _id_build as jni$_.JMethodIDPtr, + ).object(const $AttributionMeasure$Type()); } } @@ -300,10 +344,8 @@ final class $AttributionMeasure$Builder$NullableType @core$_.override AttributionMeasure$Builder? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : AttributionMeasure$Builder.fromReference( - reference, - ); + ? null + : AttributionMeasure$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -339,9 +381,7 @@ final class $AttributionMeasure$Builder$Type @jni$_.internal @core$_.override AttributionMeasure$Builder fromReference(jni$_.JReference reference) => - AttributionMeasure$Builder.fromReference( - reference, - ); + AttributionMeasure$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -372,13 +412,13 @@ class AttributionMeasure$Command extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - AttributionMeasure$Command.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + AttributionMeasure$Command.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/attribution/AttributionMeasure$Command'); + r'org/maplibre/android/attribution/AttributionMeasure$Command', + ); /// The type which includes information such as the signature of this class. static const nullableType = $AttributionMeasure$Command$NullableType(); @@ -388,16 +428,23 @@ class AttributionMeasure$Command extends jni$_.JObject { r'(Lorg/maplibre/android/attribution/AttributionMeasure;)Lorg/maplibre/android/attribution/AttributionLayout;', ); - 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)>(); + 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 org.maplibre.android.attribution.AttributionLayout execute(org.maplibre.android.attribution.AttributionMeasure attributionMeasure)` /// The returned object must be released after use, by calling the [release] method. @@ -406,10 +453,13 @@ class AttributionMeasure$Command extends jni$_.JObject { ) { final _$attributionMeasure = attributionMeasure?.reference ?? jni$_.jNullReference; - return _execute(reference.pointer, _id_execute as jni$_.JMethodIDPtr, - _$attributionMeasure.pointer) - .object( - const attributionlayout$_.$AttributionLayout$NullableType()); + return _execute( + reference.pointer, + _id_execute as jni$_.JMethodIDPtr, + _$attributionMeasure.pointer, + ).object( + const attributionlayout$_.$AttributionLayout$NullableType(), + ); } /// Maps a specific port to the implemented interface. @@ -421,19 +471,16 @@ class AttributionMeasure$Command extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -489,35 +536,39 @@ class AttributionMeasure$Command extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return AttributionMeasure$Command.fromReference( - $i.implementReference(), - ); + return AttributionMeasure$Command.fromReference($i.implementReference()); } } abstract base mixin class $AttributionMeasure$Command { factory $AttributionMeasure$Command({ required attributionlayout$_.AttributionLayout? Function( - AttributionMeasure? attributionMeasure) - execute, + AttributionMeasure? attributionMeasure, + ) + execute, }) = _$AttributionMeasure$Command; attributionlayout$_.AttributionLayout? execute( - AttributionMeasure? attributionMeasure); + AttributionMeasure? attributionMeasure, + ); } final class _$AttributionMeasure$Command with $AttributionMeasure$Command { _$AttributionMeasure$Command({ required attributionlayout$_.AttributionLayout? Function( - AttributionMeasure? attributionMeasure) - execute, + AttributionMeasure? attributionMeasure, + ) + execute, }) : _execute = execute; final attributionlayout$_.AttributionLayout? Function( - AttributionMeasure? attributionMeasure) _execute; + AttributionMeasure? attributionMeasure, + ) + _execute; attributionlayout$_.AttributionLayout? execute( - AttributionMeasure? attributionMeasure) { + AttributionMeasure? attributionMeasure, + ) { return _execute(attributionMeasure); } } @@ -536,10 +587,8 @@ final class $AttributionMeasure$Command$NullableType @core$_.override AttributionMeasure$Command? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : AttributionMeasure$Command.fromReference( - reference, - ); + ? null + : AttributionMeasure$Command.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -575,9 +624,7 @@ final class $AttributionMeasure$Command$Type @jni$_.internal @core$_.override AttributionMeasure$Command fromReference(jni$_.JReference reference) => - AttributionMeasure$Command.fromReference( - reference, - ); + AttributionMeasure$Command.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -608,13 +655,13 @@ class AttributionMeasure extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - AttributionMeasure.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + AttributionMeasure.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/attribution/AttributionMeasure'); + r'org/maplibre/android/attribution/AttributionMeasure', + ); /// The type which includes information such as the signature of this class. static const nullableType = $AttributionMeasure$NullableType(); @@ -624,24 +671,31 @@ class AttributionMeasure extends jni$_.JObject { r'()Lorg/maplibre/android/attribution/AttributionLayout;', ); - static final _measure = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _measure = + 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 org.maplibre.android.attribution.AttributionLayout measure()` /// The returned object must be released after use, by calling the [release] method. attributionlayout$_.AttributionLayout? measure() { - return _measure(reference.pointer, _id_measure as jni$_.JMethodIDPtr) - .object( - const attributionlayout$_.$AttributionLayout$NullableType()); + return _measure( + reference.pointer, + _id_measure as jni$_.JMethodIDPtr, + ).object( + const attributionlayout$_.$AttributionLayout$NullableType(), + ); } static final _id_getTextView = _class.instanceMethodId( @@ -649,24 +703,29 @@ class AttributionMeasure extends jni$_.JObject { r'()Landroid/widget/TextView;', ); - static final _getTextView = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getTextView = + 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 android.widget.TextView getTextView()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getTextView() { return _getTextView( - reference.pointer, _id_getTextView as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getTextView as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } } @@ -683,11 +742,7 @@ final class $AttributionMeasure$NullableType @jni$_.internal @core$_.override AttributionMeasure? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : AttributionMeasure.fromReference( - reference, - ); + reference.isNull ? null : AttributionMeasure.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -723,9 +778,7 @@ final class $AttributionMeasure$Type @jni$_.internal @core$_.override AttributionMeasure fromReference(jni$_.JReference reference) => - AttributionMeasure.fromReference( - reference, - ); + AttributionMeasure.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/attribution/AttributionParser.dart b/lib/src/platform/android/jni/org/maplibre/android/attribution/AttributionParser.dart index 339d2e11..976fb068 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/attribution/AttributionParser.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/attribution/AttributionParser.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -59,43 +47,48 @@ class AttributionParser$Options extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - AttributionParser$Options.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + AttributionParser$Options.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/attribution/AttributionParser$Options'); + r'org/maplibre/android/attribution/AttributionParser$Options', + ); /// The type which includes information such as the signature of this class. static const nullableType = $AttributionParser$Options$NullableType(); static const type = $AttributionParser$Options$Type(); - static final _id_new$ = _class.constructorId( - r'(Landroid/content/Context;)V', - ); + static final _id_new$ = _class.constructorId(r'(Landroid/content/Context;)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)>(); + 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: `public void (android.content.Context context)` /// The returned object must be released after use, by calling the [release] method. - factory AttributionParser$Options( - jni$_.JObject? context, - ) { - final _$context = context?.reference ?? jni$_.jNullReference; - return AttributionParser$Options.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$context.pointer) - .reference); + factory AttributionParser$Options(jni$_.JObject context) { + final _$context = context.reference; + return AttributionParser$Options.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$context.pointer, + ).reference, + ); } static final _id_withAttributionData = _class.instanceMethodId( @@ -103,27 +96,37 @@ class AttributionParser$Options extends jni$_.JObject { r'([Ljava/lang/String;)Lorg/maplibre/android/attribution/AttributionParser$Options;', ); - static final _withAttributionData = 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)>(); + static final _withAttributionData = + 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 org.maplibre.android.attribution.AttributionParser$Options withAttributionData(java.lang.String[] strings)` /// The returned object must be released after use, by calling the [release] method. - AttributionParser$Options? withAttributionData( + AttributionParser$Options withAttributionData( jni$_.JArray? strings, ) { final _$strings = strings?.reference ?? jni$_.jNullReference; - return _withAttributionData(reference.pointer, - _id_withAttributionData as jni$_.JMethodIDPtr, _$strings.pointer) - .object( - const $AttributionParser$Options$NullableType()); + return _withAttributionData( + reference.pointer, + _id_withAttributionData as jni$_.JMethodIDPtr, + _$strings.pointer, + ).object( + const $AttributionParser$Options$Type(), + ); } static final _id_withImproveMap = _class.instanceMethodId( @@ -131,25 +134,34 @@ class AttributionParser$Options extends jni$_.JObject { r'(Z)Lorg/maplibre/android/attribution/AttributionParser$Options;', ); - static final _withImproveMap = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _withImproveMap = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.attribution.AttributionParser$Options withImproveMap(boolean z)` /// The returned object must be released after use, by calling the [release] method. - AttributionParser$Options? withImproveMap( - bool z, - ) { - return _withImproveMap(reference.pointer, - _id_withImproveMap as jni$_.JMethodIDPtr, z ? 1 : 0) - .object( - const $AttributionParser$Options$NullableType()); + AttributionParser$Options withImproveMap(bool z) { + return _withImproveMap( + reference.pointer, + _id_withImproveMap as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object( + const $AttributionParser$Options$Type(), + ); } static final _id_withCopyrightSign = _class.instanceMethodId( @@ -157,25 +169,34 @@ class AttributionParser$Options extends jni$_.JObject { r'(Z)Lorg/maplibre/android/attribution/AttributionParser$Options;', ); - static final _withCopyrightSign = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _withCopyrightSign = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.attribution.AttributionParser$Options withCopyrightSign(boolean z)` /// The returned object must be released after use, by calling the [release] method. - AttributionParser$Options? withCopyrightSign( - bool z, - ) { - return _withCopyrightSign(reference.pointer, - _id_withCopyrightSign as jni$_.JMethodIDPtr, z ? 1 : 0) - .object( - const $AttributionParser$Options$NullableType()); + AttributionParser$Options withCopyrightSign(bool z) { + return _withCopyrightSign( + reference.pointer, + _id_withCopyrightSign as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object( + const $AttributionParser$Options$Type(), + ); } static final _id_withMapboxAttribution = _class.instanceMethodId( @@ -183,25 +204,34 @@ class AttributionParser$Options extends jni$_.JObject { r'(Z)Lorg/maplibre/android/attribution/AttributionParser$Options;', ); - static final _withMapboxAttribution = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _withMapboxAttribution = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.attribution.AttributionParser$Options withMapboxAttribution(boolean z)` /// The returned object must be released after use, by calling the [release] method. - AttributionParser$Options? withMapboxAttribution( - bool z, - ) { - return _withMapboxAttribution(reference.pointer, - _id_withMapboxAttribution as jni$_.JMethodIDPtr, z ? 1 : 0) - .object( - const $AttributionParser$Options$NullableType()); + AttributionParser$Options withMapboxAttribution(bool z) { + return _withMapboxAttribution( + reference.pointer, + _id_withMapboxAttribution as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object( + const $AttributionParser$Options$Type(), + ); } static final _id_build = _class.instanceMethodId( @@ -209,23 +239,29 @@ class AttributionParser$Options extends jni$_.JObject { r'()Lorg/maplibre/android/attribution/AttributionParser;', ); - static final _build = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _build = + 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 org.maplibre.android.attribution.AttributionParser build()` /// The returned object must be released after use, by calling the [release] method. - AttributionParser? build() { - return _build(reference.pointer, _id_build as jni$_.JMethodIDPtr) - .object(const $AttributionParser$NullableType()); + AttributionParser build() { + return _build( + reference.pointer, + _id_build as jni$_.JMethodIDPtr, + ).object(const $AttributionParser$Type()); } } @@ -243,10 +279,8 @@ final class $AttributionParser$Options$NullableType @core$_.override AttributionParser$Options? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : AttributionParser$Options.fromReference( - reference, - ); + ? null + : AttributionParser$Options.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -282,9 +316,7 @@ final class $AttributionParser$Options$Type @jni$_.internal @core$_.override AttributionParser$Options fromReference(jni$_.JReference reference) => - AttributionParser$Options.fromReference( - reference, - ); + AttributionParser$Options.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -315,13 +347,13 @@ class AttributionParser extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - AttributionParser.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + AttributionParser.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/attribution/AttributionParser'); + r'org/maplibre/android/attribution/AttributionParser', + ); /// The type which includes information such as the signature of this class. static const nullableType = $AttributionParser$NullableType(); @@ -331,26 +363,33 @@ class AttributionParser extends jni$_.JObject { r'()Ljava/util/Set;', ); - static final _getAttributions = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAttributions = + 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.Set getAttributions()` + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public java.util.Set getAttributions()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JSet? getAttributions() { + jni$_.JSet getAttributions() { return _getAttributions( - reference.pointer, _id_getAttributions as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JSetNullableType( - attribution$_.$Attribution$NullableType())); + reference.pointer, + _id_getAttributions as jni$_.JMethodIDPtr, + ).object>( + const jni$_.JSetType( + attribution$_.$Attribution$NullableType(), + ), + ); } static final _id_createAttributionString = _class.instanceMethodId( @@ -358,24 +397,29 @@ class AttributionParser extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _createAttributionString = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _createAttributionString = + 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 createAttributionString()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? createAttributionString() { - return _createAttributionString(reference.pointer, - _id_createAttributionString as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString createAttributionString() { + return _createAttributionString( + reference.pointer, + _id_createAttributionString as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } static final _id_createAttributionString$1 = _class.instanceMethodId( @@ -383,24 +427,32 @@ class AttributionParser extends jni$_.JObject { r'(Z)Ljava/lang/String;', ); - static final _createAttributionString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _createAttributionString$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public java.lang.String createAttributionString(boolean z)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? createAttributionString$1( - bool z, - ) { - return _createAttributionString$1(reference.pointer, - _id_createAttributionString$1 as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const jni$_.JStringNullableType()); + jni$_.JString createAttributionString$1(bool z) { + return _createAttributionString$1( + reference.pointer, + _id_createAttributionString$1 as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const jni$_.JStringType()); } } @@ -417,11 +469,7 @@ final class $AttributionParser$NullableType @jni$_.internal @core$_.override AttributionParser? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : AttributionParser.fromReference( - reference, - ); + reference.isNull ? null : AttributionParser.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -456,9 +504,7 @@ final class $AttributionParser$Type extends jni$_.JObjType { @jni$_.internal @core$_.override AttributionParser fromReference(jni$_.JReference reference) => - AttributionParser.fromReference( - reference, - ); + AttributionParser.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/attribution/_package.dart b/lib/src/platform/android/jni/org/maplibre/android/attribution/_package.dart index 356db11a..0973a8e6 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/attribution/_package.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/attribution/_package.dart @@ -1,3 +1,4 @@ +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! export 'Attribution.dart'; export 'AttributionLayout.dart'; export 'AttributionMeasure.dart'; diff --git a/lib/src/platform/android/jni/org/maplibre/android/camera/CameraPosition.dart b/lib/src/platform/android/jni/org/maplibre/android/camera/CameraPosition.dart index 95826646..8683c390 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/camera/CameraPosition.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/camera/CameraPosition.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -61,135 +49,173 @@ class CameraPosition$Builder extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - CameraPosition$Builder.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + CameraPosition$Builder.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/camera/CameraPosition$Builder'); + r'org/maplibre/android/camera/CameraPosition$Builder', + ); /// The type which includes information such as the signature of this class. static const nullableType = $CameraPosition$Builder$NullableType(); static const type = $CameraPosition$Builder$Type(); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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, - )>(); + ) + > + >('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 CameraPosition$Builder() { return CameraPosition$Builder.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } static final _id_new$1 = _class.constructorId( r'(Lorg/maplibre/android/camera/CameraPosition;)V', ); - static final _new$1 = 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)>(); + static final _new$1 = + 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: `public void (org.maplibre.android.camera.CameraPosition cameraPosition)` /// The returned object must be released after use, by calling the [release] method. - factory CameraPosition$Builder.new$1( - CameraPosition? cameraPosition, - ) { + factory CameraPosition$Builder.new$1(CameraPosition? cameraPosition) { final _$cameraPosition = cameraPosition?.reference ?? jni$_.jNullReference; - return CameraPosition$Builder.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$cameraPosition.pointer) - .reference); + return CameraPosition$Builder.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$cameraPosition.pointer, + ).reference, + ); } static final _id_new$2 = _class.constructorId( r'(Landroid/content/res/TypedArray;)V', ); - static final _new$2 = 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)>(); + static final _new$2 = + 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: `public void (android.content.res.TypedArray typedArray)` /// The returned object must be released after use, by calling the [release] method. - factory CameraPosition$Builder.new$2( - jni$_.JObject? typedArray, - ) { + factory CameraPosition$Builder.new$2(jni$_.JObject? typedArray) { final _$typedArray = typedArray?.reference ?? jni$_.jNullReference; - return CameraPosition$Builder.fromReference(_new$2(_class.reference.pointer, - _id_new$2 as jni$_.JMethodIDPtr, _$typedArray.pointer) - .reference); + return CameraPosition$Builder.fromReference( + _new$2( + _class.reference.pointer, + _id_new$2 as jni$_.JMethodIDPtr, + _$typedArray.pointer, + ).reference, + ); } static final _id_new$3 = _class.constructorId( r'(Lorg/maplibre/android/camera/CameraUpdateFactory$CameraPositionUpdate;)V', ); - static final _new$3 = 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)>(); + static final _new$3 = + 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: `public void (org.maplibre.android.camera.CameraUpdateFactory$CameraPositionUpdate cameraPositionUpdate)` /// The returned object must be released after use, by calling the [release] method. factory CameraPosition$Builder.new$3( cameraupdatefactory$_.CameraUpdateFactory$CameraPositionUpdate? - cameraPositionUpdate, + cameraPositionUpdate, ) { final _$cameraPositionUpdate = cameraPositionUpdate?.reference ?? jni$_.jNullReference; - return CameraPosition$Builder.fromReference(_new$3(_class.reference.pointer, - _id_new$3 as jni$_.JMethodIDPtr, _$cameraPositionUpdate.pointer) - .reference); + return CameraPosition$Builder.fromReference( + _new$3( + _class.reference.pointer, + _id_new$3 as jni$_.JMethodIDPtr, + _$cameraPositionUpdate.pointer, + ).reference, + ); } static final _id_new$4 = _class.constructorId( r'(Lorg/maplibre/android/camera/CameraUpdateFactory$ZoomUpdate;)V', ); - static final _new$4 = 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)>(); + static final _new$4 = + 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: `public void (org.maplibre.android.camera.CameraUpdateFactory$ZoomUpdate zoomUpdate)` /// The returned object must be released after use, by calling the [release] method. @@ -197,9 +223,13 @@ class CameraPosition$Builder extends jni$_.JObject { cameraupdatefactory$_.CameraUpdateFactory$ZoomUpdate? zoomUpdate, ) { final _$zoomUpdate = zoomUpdate?.reference ?? jni$_.jNullReference; - return CameraPosition$Builder.fromReference(_new$4(_class.reference.pointer, - _id_new$4 as jni$_.JMethodIDPtr, _$zoomUpdate.pointer) - .reference); + return CameraPosition$Builder.fromReference( + _new$4( + _class.reference.pointer, + _id_new$4 as jni$_.JMethodIDPtr, + _$zoomUpdate.pointer, + ).reference, + ); } static final _id_bearing = _class.instanceMethodId( @@ -207,24 +237,32 @@ class CameraPosition$Builder extends jni$_.JObject { r'(D)Lorg/maplibre/android/camera/CameraPosition$Builder;', ); - static final _bearing = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _bearing = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Double,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public final org.maplibre.android.camera.CameraPosition$Builder bearing(double d)` /// The returned object must be released after use, by calling the [release] method. - CameraPosition$Builder bearing( - double d, - ) { - return _bearing(reference.pointer, _id_bearing as jni$_.JMethodIDPtr, d) - .object(const $CameraPosition$Builder$Type()); + CameraPosition$Builder bearing(double d) { + return _bearing( + reference.pointer, + _id_bearing as jni$_.JMethodIDPtr, + d, + ).object(const $CameraPosition$Builder$Type()); } static final _id_target = _class.instanceMethodId( @@ -232,26 +270,33 @@ class CameraPosition$Builder extends jni$_.JObject { r'(Lorg/maplibre/android/geometry/LatLng;)Lorg/maplibre/android/camera/CameraPosition$Builder;', ); - static final _target = 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)>(); + static final _target = + 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 final org.maplibre.android.camera.CameraPosition$Builder target(org.maplibre.android.geometry.LatLng latLng)` /// The returned object must be released after use, by calling the [release] method. - CameraPosition$Builder target( - latlng$_.LatLng? latLng, - ) { + CameraPosition$Builder target(latlng$_.LatLng? latLng) { final _$latLng = latLng?.reference ?? jni$_.jNullReference; - return _target(reference.pointer, _id_target as jni$_.JMethodIDPtr, - _$latLng.pointer) - .object(const $CameraPosition$Builder$Type()); + return _target( + reference.pointer, + _id_target as jni$_.JMethodIDPtr, + _$latLng.pointer, + ).object(const $CameraPosition$Builder$Type()); } static final _id_tilt = _class.instanceMethodId( @@ -259,24 +304,32 @@ class CameraPosition$Builder extends jni$_.JObject { r'(D)Lorg/maplibre/android/camera/CameraPosition$Builder;', ); - static final _tilt = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _tilt = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Double,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public final org.maplibre.android.camera.CameraPosition$Builder tilt(double d)` /// The returned object must be released after use, by calling the [release] method. - CameraPosition$Builder tilt( - double d, - ) { - return _tilt(reference.pointer, _id_tilt as jni$_.JMethodIDPtr, d) - .object(const $CameraPosition$Builder$Type()); + CameraPosition$Builder tilt(double d) { + return _tilt( + reference.pointer, + _id_tilt as jni$_.JMethodIDPtr, + d, + ).object(const $CameraPosition$Builder$Type()); } static final _id_zoom = _class.instanceMethodId( @@ -284,24 +337,32 @@ class CameraPosition$Builder extends jni$_.JObject { r'(D)Lorg/maplibre/android/camera/CameraPosition$Builder;', ); - static final _zoom = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _zoom = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Double,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public final org.maplibre.android.camera.CameraPosition$Builder zoom(double d)` /// The returned object must be released after use, by calling the [release] method. - CameraPosition$Builder zoom( - double d, - ) { - return _zoom(reference.pointer, _id_zoom as jni$_.JMethodIDPtr, d) - .object(const $CameraPosition$Builder$Type()); + CameraPosition$Builder zoom(double d) { + return _zoom( + reference.pointer, + _id_zoom as jni$_.JMethodIDPtr, + d, + ).object(const $CameraPosition$Builder$Type()); } static final _id_padding = _class.instanceMethodId( @@ -309,26 +370,33 @@ class CameraPosition$Builder extends jni$_.JObject { r'([D)Lorg/maplibre/android/camera/CameraPosition$Builder;', ); - static final _padding = 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)>(); + static final _padding = + 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 final org.maplibre.android.camera.CameraPosition$Builder padding(double[] ds)` /// The returned object must be released after use, by calling the [release] method. - CameraPosition$Builder padding( - jni$_.JDoubleArray? ds, - ) { + CameraPosition$Builder padding(jni$_.JDoubleArray? ds) { final _$ds = ds?.reference ?? jni$_.jNullReference; return _padding( - reference.pointer, _id_padding as jni$_.JMethodIDPtr, _$ds.pointer) - .object(const $CameraPosition$Builder$Type()); + reference.pointer, + _id_padding as jni$_.JMethodIDPtr, + _$ds.pointer, + ).object(const $CameraPosition$Builder$Type()); } static final _id_padding$1 = _class.instanceMethodId( @@ -336,33 +404,40 @@ class CameraPosition$Builder extends jni$_.JObject { r'(DDDD)Lorg/maplibre/android/camera/CameraPosition$Builder;', ); - static final _padding$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _padding$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Double, - jni$_.Double, - jni$_.Double - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, double, double, double, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Double, jni$_.Double, jni$_.Double, jni$_.Double) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + double, + double, + double, + ) + >(); /// from: `public final org.maplibre.android.camera.CameraPosition$Builder padding(double d, double d1, double d2, double d3)` /// The returned object must be released after use, by calling the [release] method. - CameraPosition$Builder padding$1( - double d, - double d1, - double d2, - double d3, - ) { - return _padding$1(reference.pointer, _id_padding$1 as jni$_.JMethodIDPtr, d, - d1, d2, d3) - .object(const $CameraPosition$Builder$Type()); + CameraPosition$Builder padding$1(double d, double d1, double d2, double d3) { + return _padding$1( + reference.pointer, + _id_padding$1 as jni$_.JMethodIDPtr, + d, + d1, + d2, + d3, + ).object(const $CameraPosition$Builder$Type()); } static final _id_build = _class.instanceMethodId( @@ -370,23 +445,29 @@ class CameraPosition$Builder extends jni$_.JObject { r'()Lorg/maplibre/android/camera/CameraPosition;', ); - static final _build = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _build = + 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 org.maplibre.android.camera.CameraPosition build()` /// The returned object must be released after use, by calling the [release] method. CameraPosition build() { - return _build(reference.pointer, _id_build as jni$_.JMethodIDPtr) - .object(const $CameraPosition$Type()); + return _build( + reference.pointer, + _id_build as jni$_.JMethodIDPtr, + ).object(const $CameraPosition$Type()); } } @@ -403,11 +484,7 @@ final class $CameraPosition$Builder$NullableType @jni$_.internal @core$_.override CameraPosition$Builder? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : CameraPosition$Builder.fromReference( - reference, - ); + reference.isNull ? null : CameraPosition$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -443,9 +520,7 @@ final class $CameraPosition$Builder$Type @jni$_.internal @core$_.override CameraPosition$Builder fromReference(jni$_.JReference reference) => - CameraPosition$Builder.fromReference( - reference, - ); + CameraPosition$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -476,13 +551,13 @@ class CameraPosition$Companion extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - CameraPosition$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + CameraPosition$Companion.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/camera/CameraPosition$Companion'); + r'org/maplibre/android/camera/CameraPosition$Companion', + ); /// The type which includes information such as the signature of this class. static const nullableType = $CameraPosition$Companion$NullableType(); @@ -491,29 +566,36 @@ class CameraPosition$Companion extends jni$_.JObject { 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)>(); + 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 CameraPosition$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { + factory CameraPosition$Companion(jni$_.JObject? defaultConstructorMarker) { final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return CameraPosition$Companion.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$defaultConstructorMarker.pointer) - .reference); + return CameraPosition$Companion.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -531,10 +613,8 @@ final class $CameraPosition$Companion$NullableType @core$_.override CameraPosition$Companion? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : CameraPosition$Companion.fromReference( - reference, - ); + ? null + : CameraPosition$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -570,9 +650,7 @@ final class $CameraPosition$Companion$Type @jni$_.internal @core$_.override CameraPosition$Companion fromReference(jni$_.JReference reference) => - CameraPosition$Companion.fromReference( - reference, - ); + CameraPosition$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -603,13 +681,13 @@ class CameraPosition extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - CameraPosition.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + CameraPosition.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/camera/CameraPosition'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/camera/CameraPosition', + ); /// The type which includes information such as the signature of this class. static const nullableType = $CameraPosition$NullableType(); @@ -621,8 +699,8 @@ class CameraPosition extends jni$_.JObject { /// from: `static public final org.maplibre.android.camera.CameraPosition$Companion Companion` /// The returned object must be released after use, by calling the [release] method. - static CameraPosition$Companion? get Companion => - _id_Companion.get(_class, const $CameraPosition$Companion$NullableType()); + static CameraPosition$Companion get Companion => + _id_Companion.get(_class, const $CameraPosition$Companion$Type()); static final _id_target = _class.instanceFieldId( r'target', @@ -634,34 +712,22 @@ class CameraPosition extends jni$_.JObject { latlng$_.LatLng? get target => _id_target.get(this, const latlng$_.$LatLng$NullableType()); - static final _id_zoom = _class.instanceFieldId( - r'zoom', - r'D', - ); + static final _id_zoom = _class.instanceFieldId(r'zoom', r'D'); /// from: `public final double zoom` double get zoom => _id_zoom.get(this, const jni$_.jdoubleType()); - static final _id_tilt = _class.instanceFieldId( - r'tilt', - r'D', - ); + static final _id_tilt = _class.instanceFieldId(r'tilt', r'D'); /// from: `public final double tilt` double get tilt => _id_tilt.get(this, const jni$_.jdoubleType()); - static final _id_bearing = _class.instanceFieldId( - r'bearing', - r'D', - ); + static final _id_bearing = _class.instanceFieldId(r'bearing', r'D'); /// from: `public final double bearing` double get bearing => _id_bearing.get(this, const jni$_.jdoubleType()); - static final _id_padding = _class.instanceFieldId( - r'padding', - r'[D', - ); + static final _id_padding = _class.instanceFieldId(r'padding', r'[D'); /// from: `public final double[] padding` /// The returned object must be released after use, by calling the [release] method. @@ -675,45 +741,52 @@ class CameraPosition extends jni$_.JObject { /// from: `static public final org.maplibre.android.camera.CameraPosition DEFAULT` /// The returned object must be released after use, by calling the [release] method. - static CameraPosition? get DEFAULT => - _id_DEFAULT.get(_class, const $CameraPosition$NullableType()); + static CameraPosition get DEFAULT => + _id_DEFAULT.get(_class, const $CameraPosition$Type()); static final _id_CREATOR = _class.staticFieldId( r'CREATOR', r'Landroid/os/Parcelable$Creator;', ); - /// from: `static public final android.os.Parcelable$Creator CREATOR` + /// 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()); + static jni$_.JObject get CREATOR => + _id_CREATOR.get(_class, const jni$_.JObjectType()); static final _id_new$ = _class.constructorId( r'(Lorg/maplibre/android/geometry/LatLng;DDD[D)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Double, - jni$_.Double, - jni$_.Double, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Double, + jni$_.Double, + jni$_.Double, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, double, double, double, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (org.maplibre.android.geometry.LatLng latLng, double d, double d1, double d2, double[] ds)` /// The returned object must be released after use, by calling the [release] method. @@ -726,41 +799,50 @@ class CameraPosition extends jni$_.JObject { ) { final _$latLng = latLng?.reference ?? jni$_.jNullReference; final _$ds = ds?.reference ?? jni$_.jNullReference; - return CameraPosition.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$latLng.pointer, - d, - d1, - d2, - _$ds.pointer) - .reference); + return CameraPosition.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$latLng.pointer, + d, + d1, + d2, + _$ds.pointer, + ).reference, + ); } static final _id_new$1 = _class.constructorId( r'(Lorg/maplibre/android/geometry/LatLng;DDD)V', ); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Double, - jni$_.Double, - jni$_.Double - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Double, + jni$_.Double, + jni$_.Double, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, double, double, - double)>(); + double, + ) + >(); /// from: `public void (org.maplibre.android.geometry.LatLng latLng, double d, double d1, double d2)` /// The returned object must be released after use, by calling the [release] method. @@ -771,9 +853,16 @@ class CameraPosition extends jni$_.JObject { double d2, ) { final _$latLng = latLng?.reference ?? jni$_.jNullReference; - return CameraPosition.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$latLng.pointer, d, d1, d2) - .reference); + return CameraPosition.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$latLng.pointer, + d, + d1, + d2, + ).reference, + ); } static final _id_describeContents = _class.instanceMethodId( @@ -781,23 +870,28 @@ class CameraPosition extends jni$_.JObject { r'()I', ); - static final _describeContents = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _describeContents = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int describeContents()` int describeContents() { return _describeContents( - reference.pointer, _id_describeContents as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_describeContents as jni$_.JMethodIDPtr, + ).integer; } static final _id_writeToParcel = _class.instanceMethodId( @@ -805,27 +899,34 @@ class CameraPosition extends jni$_.JObject { r'(Landroid/os/Parcel;I)V', ); - static final _writeToParcel = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _writeToParcel = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public void writeToParcel(android.os.Parcel parcel, int i)` - void writeToParcel( - jni$_.JObject parcel, - int i, - ) { + void writeToParcel(jni$_.JObject parcel, int i) { final _$parcel = parcel.reference; - _writeToParcel(reference.pointer, _id_writeToParcel as jni$_.JMethodIDPtr, - _$parcel.pointer, i) - .check(); + _writeToParcel( + reference.pointer, + _id_writeToParcel as jni$_.JMethodIDPtr, + _$parcel.pointer, + i, + ).check(); } static final _id_toString$1 = _class.instanceMethodId( @@ -833,23 +934,29 @@ class CameraPosition extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + 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 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$_.JStringType()); + return _toString$1( + reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } static final _id_equals = _class.instanceMethodId( @@ -857,48 +964,58 @@ class CameraPosition extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } } @@ -913,11 +1030,8 @@ final class $CameraPosition$NullableType @jni$_.internal @core$_.override - CameraPosition? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : CameraPosition.fromReference( - reference, - ); + CameraPosition? fromReference(jni$_.JReference reference) => + reference.isNull ? null : CameraPosition.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -951,9 +1065,7 @@ final class $CameraPosition$Type extends jni$_.JObjType { @jni$_.internal @core$_.override CameraPosition fromReference(jni$_.JReference reference) => - CameraPosition.fromReference( - reference, - ); + CameraPosition.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/camera/CameraUpdate.dart b/lib/src/platform/android/jni/org/maplibre/android/camera/CameraUpdate.dart index 06fde75f..34558097 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/camera/CameraUpdate.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/camera/CameraUpdate.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -61,13 +49,13 @@ class CameraUpdate extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - CameraUpdate.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + CameraUpdate.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/camera/CameraUpdate'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/camera/CameraUpdate', + ); /// The type which includes information such as the signature of this class. static const nullableType = $CameraUpdate$NullableType(); @@ -77,16 +65,23 @@ class CameraUpdate extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap;)Lorg/maplibre/android/camera/CameraPosition;', ); - static final _getCameraPosition = 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)>(); + static final _getCameraPosition = + 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 org.maplibre.android.camera.CameraPosition getCameraPosition(org.maplibre.android.maps.MapLibreMap mapLibreMap)` /// The returned object must be released after use, by calling the [release] method. @@ -94,10 +89,13 @@ class CameraUpdate extends jni$_.JObject { maplibremap$_.MapLibreMap mapLibreMap, ) { final _$mapLibreMap = mapLibreMap.reference; - return _getCameraPosition(reference.pointer, - _id_getCameraPosition as jni$_.JMethodIDPtr, _$mapLibreMap.pointer) - .object( - const cameraposition$_.$CameraPosition$NullableType()); + return _getCameraPosition( + reference.pointer, + _id_getCameraPosition as jni$_.JMethodIDPtr, + _$mapLibreMap.pointer, + ).object( + const cameraposition$_.$CameraPosition$NullableType(), + ); } /// Maps a specific port to the implemented interface. @@ -109,19 +107,16 @@ class CameraUpdate extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -133,8 +128,10 @@ class CameraUpdate extends jni$_.JObject { if ($d == r'getCameraPosition(Lorg/maplibre/android/maps/MapLibreMap;)Lorg/maplibre/android/camera/CameraPosition;') { final $r = _$impls[$p]!.getCameraPosition( - $a![0]!.as(const maplibremap$_.$MapLibreMap$Type(), - releaseOriginal: true), + $a![0]!.as( + const maplibremap$_.$MapLibreMap$Type(), + releaseOriginal: true, + ), ); return ($r as jni$_.JObject?) ?.as(const jni$_.JObjectType()) @@ -148,10 +145,7 @@ class CameraUpdate extends jni$_.JObject { return jni$_.nullptr; } - static void implementIn( - jni$_.JImplementer implementer, - $CameraUpdate $impl, - ) { + static void implementIn(jni$_.JImplementer implementer, $CameraUpdate $impl) { late final jni$_.RawReceivePort $p; $p = jni$_.RawReceivePort(($m) { if ($m == null) { @@ -173,40 +167,42 @@ class CameraUpdate extends jni$_.JObject { _$impls[$a] = $impl; } - factory CameraUpdate.implement( - $CameraUpdate $impl, - ) { + factory CameraUpdate.implement($CameraUpdate $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return CameraUpdate.fromReference( - $i.implementReference(), - ); + return CameraUpdate.fromReference($i.implementReference()); } } abstract base mixin class $CameraUpdate { factory $CameraUpdate({ required cameraposition$_.CameraPosition? Function( - maplibremap$_.MapLibreMap mapLibreMap) - getCameraPosition, + maplibremap$_.MapLibreMap mapLibreMap, + ) + getCameraPosition, }) = _$CameraUpdate; cameraposition$_.CameraPosition? getCameraPosition( - maplibremap$_.MapLibreMap mapLibreMap); + maplibremap$_.MapLibreMap mapLibreMap, + ); } final class _$CameraUpdate with $CameraUpdate { _$CameraUpdate({ required cameraposition$_.CameraPosition? Function( - maplibremap$_.MapLibreMap mapLibreMap) - getCameraPosition, + maplibremap$_.MapLibreMap mapLibreMap, + ) + getCameraPosition, }) : _getCameraPosition = getCameraPosition; final cameraposition$_.CameraPosition? Function( - maplibremap$_.MapLibreMap mapLibreMap) _getCameraPosition; + maplibremap$_.MapLibreMap mapLibreMap, + ) + _getCameraPosition; cameraposition$_.CameraPosition? getCameraPosition( - maplibremap$_.MapLibreMap mapLibreMap) { + maplibremap$_.MapLibreMap mapLibreMap, + ) { return _getCameraPosition(mapLibreMap); } } @@ -221,11 +217,8 @@ final class $CameraUpdate$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - CameraUpdate? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : CameraUpdate.fromReference( - reference, - ); + CameraUpdate? fromReference(jni$_.JReference reference) => + reference.isNull ? null : CameraUpdate.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -259,9 +252,7 @@ final class $CameraUpdate$Type extends jni$_.JObjType { @jni$_.internal @core$_.override CameraUpdate fromReference(jni$_.JReference reference) => - CameraUpdate.fromReference( - reference, - ); + CameraUpdate.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/camera/CameraUpdateFactory.dart b/lib/src/platform/android/jni/org/maplibre/android/camera/CameraUpdateFactory.dart index 1c96547b..2701ed2b 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/camera/CameraUpdateFactory.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/camera/CameraUpdateFactory.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -69,11 +57,12 @@ class CameraUpdateFactory$CameraBoundsUpdate extends jni$_.JObject { @jni$_.internal CameraUpdateFactory$CameraBoundsUpdate.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/camera/CameraUpdateFactory$CameraBoundsUpdate'); + r'org/maplibre/android/camera/CameraUpdateFactory$CameraBoundsUpdate', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -83,26 +72,33 @@ class CameraUpdateFactory$CameraBoundsUpdate extends jni$_.JObject { r'(Lorg/maplibre/android/geometry/LatLngBounds;Ljava/lang/Double;Ljava/lang/Double;[I)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (org.maplibre.android.geometry.LatLngBounds latLngBounds, java.lang.Double double, java.lang.Double double1, int[] is)` /// The returned object must be released after use, by calling the [release] method. @@ -116,14 +112,16 @@ class CameraUpdateFactory$CameraBoundsUpdate extends jni$_.JObject { final _$double = double?.reference ?? jni$_.jNullReference; final _$double1 = double1?.reference ?? jni$_.jNullReference; final _$is$ = is$.reference; - return CameraUpdateFactory$CameraBoundsUpdate.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$latLngBounds.pointer, - _$double.pointer, - _$double1.pointer, - _$is$.pointer) - .reference); + return CameraUpdateFactory$CameraBoundsUpdate.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$latLngBounds.pointer, + _$double.pointer, + _$double1.pointer, + _$is$.pointer, + ).reference, + ); } static final _id_getBounds = _class.instanceMethodId( @@ -131,71 +129,86 @@ class CameraUpdateFactory$CameraBoundsUpdate extends jni$_.JObject { r'()Lorg/maplibre/android/geometry/LatLngBounds;', ); - static final _getBounds = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getBounds = + 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 org.maplibre.android.geometry.LatLngBounds getBounds()` /// The returned object must be released after use, by calling the [release] method. latlngbounds$_.LatLngBounds getBounds() { - return _getBounds(reference.pointer, _id_getBounds as jni$_.JMethodIDPtr) - .object( - const latlngbounds$_.$LatLngBounds$Type()); + return _getBounds( + reference.pointer, + _id_getBounds as jni$_.JMethodIDPtr, + ).object( + const latlngbounds$_.$LatLngBounds$Type(), + ); } - static final _id_getPadding = _class.instanceMethodId( - r'getPadding', - r'()[I', - ); + static final _id_getPadding = _class.instanceMethodId(r'getPadding', r'()[I'); - static final _getPadding = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPadding = + 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 int[] getPadding()` /// The returned object must be released after use, by calling the [release] method. jni$_.JIntArray getPadding() { - return _getPadding(reference.pointer, _id_getPadding as jni$_.JMethodIDPtr) - .object(const jni$_.JIntArrayType()); + return _getPadding( + reference.pointer, + _id_getPadding as jni$_.JMethodIDPtr, + ).object(const jni$_.JIntArrayType()); } static final _id_new$1 = _class.constructorId( r'(Lorg/maplibre/android/geometry/LatLngBounds;Ljava/lang/Double;Ljava/lang/Double;IIII)V', ); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -204,7 +217,9 @@ class CameraUpdateFactory$CameraBoundsUpdate extends jni$_.JObject { int, int, int, - int)>(); + int, + ) + >(); /// from: `public void (org.maplibre.android.geometry.LatLngBounds latLngBounds, java.lang.Double double, java.lang.Double double1, int i, int i1, int i2, int i3)` /// The returned object must be released after use, by calling the [release] method. @@ -220,17 +235,19 @@ class CameraUpdateFactory$CameraBoundsUpdate extends jni$_.JObject { final _$latLngBounds = latLngBounds.reference; final _$double = double?.reference ?? jni$_.jNullReference; final _$double1 = double1?.reference ?? jni$_.jNullReference; - return CameraUpdateFactory$CameraBoundsUpdate.fromReference(_new$1( - _class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, - _$latLngBounds.pointer, - _$double.pointer, - _$double1.pointer, - i, - i1, - i2, - i3) - .reference); + return CameraUpdateFactory$CameraBoundsUpdate.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$latLngBounds.pointer, + _$double.pointer, + _$double1.pointer, + i, + i1, + i2, + i3, + ).reference, + ); } static final _id_getCameraPosition = _class.instanceMethodId( @@ -238,16 +255,23 @@ class CameraUpdateFactory$CameraBoundsUpdate extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap;)Lorg/maplibre/android/camera/CameraPosition;', ); - static final _getCameraPosition = 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)>(); + static final _getCameraPosition = + 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 org.maplibre.android.camera.CameraPosition getCameraPosition(org.maplibre.android.maps.MapLibreMap mapLibreMap)` /// The returned object must be released after use, by calling the [release] method. @@ -255,10 +279,13 @@ class CameraUpdateFactory$CameraBoundsUpdate extends jni$_.JObject { maplibremap$_.MapLibreMap mapLibreMap, ) { final _$mapLibreMap = mapLibreMap.reference; - return _getCameraPosition(reference.pointer, - _id_getCameraPosition as jni$_.JMethodIDPtr, _$mapLibreMap.pointer) - .object( - const cameraposition$_.$CameraPosition$NullableType()); + return _getCameraPosition( + reference.pointer, + _id_getCameraPosition as jni$_.JMethodIDPtr, + _$mapLibreMap.pointer, + ).object( + const cameraposition$_.$CameraPosition$NullableType(), + ); } static final _id_equals = _class.instanceMethodId( @@ -266,48 +293,58 @@ class CameraUpdateFactory$CameraBoundsUpdate extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } static final _id_toString$1 = _class.instanceMethodId( @@ -315,23 +352,29 @@ class CameraUpdateFactory$CameraBoundsUpdate extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + 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 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$_.JStringType()); + return _toString$1( + reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } } @@ -348,12 +391,10 @@ final class $CameraUpdateFactory$CameraBoundsUpdate$NullableType @jni$_.internal @core$_.override CameraUpdateFactory$CameraBoundsUpdate? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : CameraUpdateFactory$CameraBoundsUpdate.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : CameraUpdateFactory$CameraBoundsUpdate.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -392,10 +433,8 @@ final class $CameraUpdateFactory$CameraBoundsUpdate$Type @jni$_.internal @core$_.override CameraUpdateFactory$CameraBoundsUpdate fromReference( - jni$_.JReference reference) => - CameraUpdateFactory$CameraBoundsUpdate.fromReference( - reference, - ); + jni$_.JReference reference, + ) => CameraUpdateFactory$CameraBoundsUpdate.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -429,11 +468,12 @@ class CameraUpdateFactory$CameraPositionUpdate extends jni$_.JObject { @jni$_.internal CameraUpdateFactory$CameraPositionUpdate.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/camera/CameraUpdateFactory$CameraPositionUpdate'); + r'org/maplibre/android/camera/CameraUpdateFactory$CameraPositionUpdate', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -443,28 +483,35 @@ class CameraUpdateFactory$CameraPositionUpdate extends jni$_.JObject { r'(DLorg/maplibre/android/geometry/LatLng;DD[D)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Pointer, - jni$_.Double, - jni$_.Double, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Double, + jni$_.Pointer, + jni$_.Double, + jni$_.Double, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, double, jni$_.Pointer, double, double, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (double d, org.maplibre.android.geometry.LatLng latLng, double d1, double d2, double[] ds)` /// The returned object must be released after use, by calling the [release] method. @@ -477,38 +524,43 @@ class CameraUpdateFactory$CameraPositionUpdate extends jni$_.JObject { ) { final _$latLng = latLng?.reference ?? jni$_.jNullReference; final _$ds = ds?.reference ?? jni$_.jNullReference; - return CameraUpdateFactory$CameraPositionUpdate.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - d, - _$latLng.pointer, - d1, - d2, - _$ds.pointer) - .reference); + return CameraUpdateFactory$CameraPositionUpdate.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + d, + _$latLng.pointer, + d1, + d2, + _$ds.pointer, + ).reference, + ); } - static final _id_getBearing = _class.instanceMethodId( - r'getBearing', - r'()D', - ); + static final _id_getBearing = _class.instanceMethodId(r'getBearing', r'()D'); - static final _getBearing = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getBearing = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final double getBearing()` double getBearing() { - return _getBearing(reference.pointer, _id_getBearing as jni$_.JMethodIDPtr) - .doubleFloat; + return _getBearing( + reference.pointer, + _id_getBearing as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_getTarget = _class.instanceMethodId( @@ -516,93 +568,108 @@ class CameraUpdateFactory$CameraPositionUpdate extends jni$_.JObject { r'()Lorg/maplibre/android/geometry/LatLng;', ); - static final _getTarget = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getTarget = + 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 org.maplibre.android.geometry.LatLng getTarget()` /// The returned object must be released after use, by calling the [release] method. latlng$_.LatLng? getTarget() { - return _getTarget(reference.pointer, _id_getTarget as jni$_.JMethodIDPtr) - .object(const latlng$_.$LatLng$NullableType()); + return _getTarget( + reference.pointer, + _id_getTarget as jni$_.JMethodIDPtr, + ).object(const latlng$_.$LatLng$NullableType()); } - static final _id_getTilt = _class.instanceMethodId( - r'getTilt', - r'()D', - ); + static final _id_getTilt = _class.instanceMethodId(r'getTilt', r'()D'); - static final _getTilt = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getTilt = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final double getTilt()` double getTilt() { - return _getTilt(reference.pointer, _id_getTilt as jni$_.JMethodIDPtr) - .doubleFloat; + return _getTilt( + reference.pointer, + _id_getTilt as jni$_.JMethodIDPtr, + ).doubleFloat; } - static final _id_getZoom = _class.instanceMethodId( - r'getZoom', - r'()D', - ); + static final _id_getZoom = _class.instanceMethodId(r'getZoom', r'()D'); - static final _getZoom = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getZoom = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final double getZoom()` double getZoom() { - return _getZoom(reference.pointer, _id_getZoom as jni$_.JMethodIDPtr) - .doubleFloat; + return _getZoom( + reference.pointer, + _id_getZoom as jni$_.JMethodIDPtr, + ).doubleFloat; } - static final _id_getPadding = _class.instanceMethodId( - r'getPadding', - r'()[D', - ); + static final _id_getPadding = _class.instanceMethodId(r'getPadding', r'()[D'); - static final _getPadding = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPadding = + 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 double[] getPadding()` /// The returned object must be released after use, by calling the [release] method. jni$_.JDoubleArray? getPadding() { - return _getPadding(reference.pointer, _id_getPadding as jni$_.JMethodIDPtr) - .object(const jni$_.JDoubleArrayNullableType()); + return _getPadding( + reference.pointer, + _id_getPadding as jni$_.JMethodIDPtr, + ).object(const jni$_.JDoubleArrayNullableType()); } static final _id_getCameraPosition = _class.instanceMethodId( @@ -610,16 +677,23 @@ class CameraUpdateFactory$CameraPositionUpdate extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap;)Lorg/maplibre/android/camera/CameraPosition;', ); - static final _getCameraPosition = 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)>(); + static final _getCameraPosition = + 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 org.maplibre.android.camera.CameraPosition getCameraPosition(org.maplibre.android.maps.MapLibreMap mapLibreMap)` /// The returned object must be released after use, by calling the [release] method. @@ -627,10 +701,13 @@ class CameraUpdateFactory$CameraPositionUpdate extends jni$_.JObject { maplibremap$_.MapLibreMap mapLibreMap, ) { final _$mapLibreMap = mapLibreMap.reference; - return _getCameraPosition(reference.pointer, - _id_getCameraPosition as jni$_.JMethodIDPtr, _$mapLibreMap.pointer) - .object( - const cameraposition$_.$CameraPosition$Type()); + return _getCameraPosition( + reference.pointer, + _id_getCameraPosition as jni$_.JMethodIDPtr, + _$mapLibreMap.pointer, + ).object( + const cameraposition$_.$CameraPosition$Type(), + ); } static final _id_equals = _class.instanceMethodId( @@ -638,48 +715,58 @@ class CameraUpdateFactory$CameraPositionUpdate extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } static final _id_toString$1 = _class.instanceMethodId( @@ -687,23 +774,29 @@ class CameraUpdateFactory$CameraPositionUpdate extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + 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 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$_.JStringType()); + return _toString$1( + reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } } @@ -720,12 +813,10 @@ final class $CameraUpdateFactory$CameraPositionUpdate$NullableType @jni$_.internal @core$_.override CameraUpdateFactory$CameraPositionUpdate? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : CameraUpdateFactory$CameraPositionUpdate.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : CameraUpdateFactory$CameraPositionUpdate.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -764,10 +855,8 @@ final class $CameraUpdateFactory$CameraPositionUpdate$Type @jni$_.internal @core$_.override CameraUpdateFactory$CameraPositionUpdate fromReference( - jni$_.JReference reference) => - CameraUpdateFactory$CameraPositionUpdate.fromReference( - reference, - ); + jni$_.JReference reference, + ) => CameraUpdateFactory$CameraPositionUpdate.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -801,11 +890,12 @@ class CameraUpdateFactory$ZoomUpdate$Companion extends jni$_.JObject { @jni$_.internal CameraUpdateFactory$ZoomUpdate$Companion.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/camera/CameraUpdateFactory$ZoomUpdate$Companion'); + r'org/maplibre/android/camera/CameraUpdateFactory$ZoomUpdate$Companion', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -815,16 +905,23 @@ class CameraUpdateFactory$ZoomUpdate$Companion extends jni$_.JObject { 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)>(); + 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. @@ -833,11 +930,13 @@ class CameraUpdateFactory$ZoomUpdate$Companion extends jni$_.JObject { ) { final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return CameraUpdateFactory$ZoomUpdate$Companion.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$defaultConstructorMarker.pointer) - .reference); + return CameraUpdateFactory$ZoomUpdate$Companion.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -854,12 +953,10 @@ final class $CameraUpdateFactory$ZoomUpdate$Companion$NullableType @jni$_.internal @core$_.override CameraUpdateFactory$ZoomUpdate$Companion? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : CameraUpdateFactory$ZoomUpdate$Companion.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : CameraUpdateFactory$ZoomUpdate$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -898,10 +995,8 @@ final class $CameraUpdateFactory$ZoomUpdate$Companion$Type @jni$_.internal @core$_.override CameraUpdateFactory$ZoomUpdate$Companion fromReference( - jni$_.JReference reference) => - CameraUpdateFactory$ZoomUpdate$Companion.fromReference( - reference, - ); + jni$_.JReference reference, + ) => CameraUpdateFactory$ZoomUpdate$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -933,13 +1028,13 @@ class CameraUpdateFactory$ZoomUpdate$Type extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - CameraUpdateFactory$ZoomUpdate$Type.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + CameraUpdateFactory$ZoomUpdate$Type.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/camera/CameraUpdateFactory$ZoomUpdate$Type'); + r'org/maplibre/android/camera/CameraUpdateFactory$ZoomUpdate$Type', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -956,19 +1051,16 @@ class CameraUpdateFactory$ZoomUpdate$Type extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -1032,12 +1124,10 @@ final class $CameraUpdateFactory$ZoomUpdate$Type$NullableType @jni$_.internal @core$_.override CameraUpdateFactory$ZoomUpdate$Type? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : CameraUpdateFactory$ZoomUpdate$Type.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : CameraUpdateFactory$ZoomUpdate$Type.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1075,10 +1165,8 @@ final class $CameraUpdateFactory$ZoomUpdate$Type$Type @jni$_.internal @core$_.override CameraUpdateFactory$ZoomUpdate$Type fromReference( - jni$_.JReference reference) => - CameraUpdateFactory$ZoomUpdate$Type.fromReference( - reference, - ); + jni$_.JReference reference, + ) => CameraUpdateFactory$ZoomUpdate$Type.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1109,13 +1197,13 @@ class CameraUpdateFactory$ZoomUpdate extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - CameraUpdateFactory$ZoomUpdate.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + CameraUpdateFactory$ZoomUpdate.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/camera/CameraUpdateFactory$ZoomUpdate'); + r'org/maplibre/android/camera/CameraUpdateFactory$ZoomUpdate', + ); /// The type which includes information such as the signature of this class. static const nullableType = $CameraUpdateFactory$ZoomUpdate$NullableType(); @@ -1127,9 +1215,8 @@ class CameraUpdateFactory$ZoomUpdate extends jni$_.JObject { /// from: `static public final org.maplibre.android.camera.CameraUpdateFactory$ZoomUpdate$Companion Companion` /// The returned object must be released after use, by calling the [release] method. - static CameraUpdateFactory$ZoomUpdate$Companion? get Companion => - _id_Companion.get(_class, - const $CameraUpdateFactory$ZoomUpdate$Companion$NullableType()); + static CameraUpdateFactory$ZoomUpdate$Companion get Companion => _id_Companion + .get(_class, const $CameraUpdateFactory$ZoomUpdate$Companion$Type()); /// from: `static public final int ZOOM_IN` static const ZOOM_IN = 0; @@ -1145,175 +1232,204 @@ class CameraUpdateFactory$ZoomUpdate extends jni$_.JObject { /// from: `static public final int ZOOM_TO_POINT` static const ZOOM_TO_POINT = 4; - static final _id_getType = _class.instanceMethodId( - r'getType', - r'()I', - ); + static final _id_getType = _class.instanceMethodId(r'getType', r'()I'); - static final _getType = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getType = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int getType()` int getType() { - return _getType(reference.pointer, _id_getType as jni$_.JMethodIDPtr) - .integer; + return _getType( + reference.pointer, + _id_getType as jni$_.JMethodIDPtr, + ).integer; } - static final _id_getZoom = _class.instanceMethodId( - r'getZoom', - r'()D', - ); + static final _id_getZoom = _class.instanceMethodId(r'getZoom', r'()D'); - static final _getZoom = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getZoom = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final double getZoom()` double getZoom() { - return _getZoom(reference.pointer, _id_getZoom as jni$_.JMethodIDPtr) - .doubleFloat; + return _getZoom( + reference.pointer, + _id_getZoom as jni$_.JMethodIDPtr, + ).doubleFloat; } - static final _id_getX = _class.instanceMethodId( - r'getX', - r'()F', - ); + static final _id_getX = _class.instanceMethodId(r'getX', r'()F'); - static final _getX = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getX = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final float getX()` double getX() { return _getX(reference.pointer, _id_getX as jni$_.JMethodIDPtr).float; } - static final _id_getY = _class.instanceMethodId( - r'getY', - r'()F', - ); + static final _id_getY = _class.instanceMethodId(r'getY', r'()F'); - static final _getY = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getY = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final float getY()` double getY() { return _getY(reference.pointer, _id_getY as jni$_.JMethodIDPtr).float; } - static final _id_new$ = _class.constructorId( - r'(I)V', - ); + static final _id_new$ = _class.constructorId(r'(I)V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void (int i)` /// The returned object must be released after use, by calling the [release] method. - factory CameraUpdateFactory$ZoomUpdate( - int i, - ) { + factory CameraUpdateFactory$ZoomUpdate(int i) { return CameraUpdateFactory$ZoomUpdate.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr, i) - .reference); + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + i, + ).reference, + ); } - static final _id_new$1 = _class.constructorId( - r'(ID)V', - ); + static final _id_new$1 = _class.constructorId(r'(ID)V'); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32, jni$_.Double)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int, double)>(); + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32, jni$_.Double)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + double, + ) + >(); /// from: `public void (int i, double d)` /// The returned object must be released after use, by calling the [release] method. - factory CameraUpdateFactory$ZoomUpdate.new$1( - int i, - double d, - ) { + factory CameraUpdateFactory$ZoomUpdate.new$1(int i, double d) { return CameraUpdateFactory$ZoomUpdate.fromReference( - _new$1(_class.reference.pointer, _id_new$1 as jni$_.JMethodIDPtr, i, d) - .reference); + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + i, + d, + ).reference, + ); } - static final _id_new$2 = _class.constructorId( - r'(DFF)V', - ); + static final _id_new$2 = _class.constructorId(r'(DFF)V'); - static final _new$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Double, - jni$_.Double - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, double, double, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double, jni$_.Double, jni$_.Double)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + double, + double, + ) + >(); /// from: `public void (double d, float f, float f1)` /// The returned object must be released after use, by calling the [release] method. - factory CameraUpdateFactory$ZoomUpdate.new$2( - double d, - double f, - double f1, - ) { - return CameraUpdateFactory$ZoomUpdate.fromReference(_new$2( - _class.reference.pointer, _id_new$2 as jni$_.JMethodIDPtr, d, f, f1) - .reference); + factory CameraUpdateFactory$ZoomUpdate.new$2(double d, double f, double f1) { + return CameraUpdateFactory$ZoomUpdate.fromReference( + _new$2( + _class.reference.pointer, + _id_new$2 as jni$_.JMethodIDPtr, + d, + f, + f1, + ).reference, + ); } static final _id_getCameraPosition = _class.instanceMethodId( @@ -1321,16 +1437,23 @@ class CameraUpdateFactory$ZoomUpdate extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap;)Lorg/maplibre/android/camera/CameraPosition;', ); - static final _getCameraPosition = 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)>(); + static final _getCameraPosition = + 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 org.maplibre.android.camera.CameraPosition getCameraPosition(org.maplibre.android.maps.MapLibreMap mapLibreMap)` /// The returned object must be released after use, by calling the [release] method. @@ -1338,10 +1461,13 @@ class CameraUpdateFactory$ZoomUpdate extends jni$_.JObject { maplibremap$_.MapLibreMap mapLibreMap, ) { final _$mapLibreMap = mapLibreMap.reference; - return _getCameraPosition(reference.pointer, - _id_getCameraPosition as jni$_.JMethodIDPtr, _$mapLibreMap.pointer) - .object( - const cameraposition$_.$CameraPosition$Type()); + return _getCameraPosition( + reference.pointer, + _id_getCameraPosition as jni$_.JMethodIDPtr, + _$mapLibreMap.pointer, + ).object( + const cameraposition$_.$CameraPosition$Type(), + ); } static final _id_equals = _class.instanceMethodId( @@ -1349,48 +1475,58 @@ class CameraUpdateFactory$ZoomUpdate extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } static final _id_toString$1 = _class.instanceMethodId( @@ -1398,23 +1534,29 @@ class CameraUpdateFactory$ZoomUpdate extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + 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 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$_.JStringType()); + return _toString$1( + reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } } @@ -1432,10 +1574,8 @@ final class $CameraUpdateFactory$ZoomUpdate$NullableType @core$_.override CameraUpdateFactory$ZoomUpdate? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : CameraUpdateFactory$ZoomUpdate.fromReference( - reference, - ); + ? null + : CameraUpdateFactory$ZoomUpdate.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1472,9 +1612,7 @@ final class $CameraUpdateFactory$ZoomUpdate$Type @jni$_.internal @core$_.override CameraUpdateFactory$ZoomUpdate fromReference(jni$_.JReference reference) => - CameraUpdateFactory$ZoomUpdate.fromReference( - reference, - ); + CameraUpdateFactory$ZoomUpdate.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1505,13 +1643,13 @@ class CameraUpdateFactory extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - CameraUpdateFactory.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + CameraUpdateFactory.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/camera/CameraUpdateFactory'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/camera/CameraUpdateFactory', + ); /// The type which includes information such as the signature of this class. static const nullableType = $CameraUpdateFactory$NullableType(); @@ -1523,24 +1661,31 @@ class CameraUpdateFactory extends jni$_.JObject { /// from: `static public final org.maplibre.android.camera.CameraUpdateFactory INSTANCE` /// The returned object must be released after use, by calling the [release] method. - static CameraUpdateFactory? get INSTANCE => - _id_INSTANCE.get(_class, const $CameraUpdateFactory$NullableType()); + static CameraUpdateFactory get INSTANCE => + _id_INSTANCE.get(_class, const $CameraUpdateFactory$Type()); static final _id_newCameraPosition = _class.staticMethodId( r'newCameraPosition', r'(Lorg/maplibre/android/camera/CameraPosition;)Lorg/maplibre/android/camera/CameraUpdate;', ); - static final _newCameraPosition = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _newCameraPosition = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public final org.maplibre.android.camera.CameraUpdate newCameraPosition(org.maplibre.android.camera.CameraPosition cameraPosition)` /// The returned object must be released after use, by calling the [release] method. @@ -1549,11 +1694,12 @@ class CameraUpdateFactory extends jni$_.JObject { ) { final _$cameraPosition = cameraPosition.reference; return _newCameraPosition( - _class.reference.pointer, - _id_newCameraPosition as jni$_.JMethodIDPtr, - _$cameraPosition.pointer) - .object( - const cameraupdate$_.$CameraUpdate$Type()); + _class.reference.pointer, + _id_newCameraPosition as jni$_.JMethodIDPtr, + _$cameraPosition.pointer, + ).object( + const cameraupdate$_.$CameraUpdate$Type(), + ); } static final _id_newLatLng = _class.staticMethodId( @@ -1561,27 +1707,35 @@ class CameraUpdateFactory extends jni$_.JObject { r'(Lorg/maplibre/android/geometry/LatLng;)Lorg/maplibre/android/camera/CameraUpdate;', ); - static final _newLatLng = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _newLatLng = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public final org.maplibre.android.camera.CameraUpdate newLatLng(org.maplibre.android.geometry.LatLng latLng)` /// The returned object must be released after use, by calling the [release] method. - static cameraupdate$_.CameraUpdate newLatLng( - latlng$_.LatLng latLng, - ) { + static cameraupdate$_.CameraUpdate newLatLng(latlng$_.LatLng latLng) { final _$latLng = latLng.reference; - return _newLatLng(_class.reference.pointer, - _id_newLatLng as jni$_.JMethodIDPtr, _$latLng.pointer) - .object( - const cameraupdate$_.$CameraUpdate$Type()); + return _newLatLng( + _class.reference.pointer, + _id_newLatLng as jni$_.JMethodIDPtr, + _$latLng.pointer, + ).object( + const cameraupdate$_.$CameraUpdate$Type(), + ); } static final _id_newLatLngBounds = _class.staticMethodId( @@ -1589,17 +1743,24 @@ class CameraUpdateFactory extends jni$_.JObject { r'(Lorg/maplibre/android/geometry/LatLngBounds;I)Lorg/maplibre/android/camera/CameraUpdate;', ); - static final _newLatLngBounds = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _newLatLngBounds = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public final org.maplibre.android.camera.CameraUpdate newLatLngBounds(org.maplibre.android.geometry.LatLngBounds latLngBounds, int i)` /// The returned object must be released after use, by calling the [release] method. @@ -1609,12 +1770,13 @@ class CameraUpdateFactory extends jni$_.JObject { ) { final _$latLngBounds = latLngBounds.reference; return _newLatLngBounds( - _class.reference.pointer, - _id_newLatLngBounds as jni$_.JMethodIDPtr, - _$latLngBounds.pointer, - i) - .object( - const cameraupdate$_.$CameraUpdate$Type()); + _class.reference.pointer, + _id_newLatLngBounds as jni$_.JMethodIDPtr, + _$latLngBounds.pointer, + i, + ).object( + const cameraupdate$_.$CameraUpdate$Type(), + ); } static final _id_newLatLngBounds$1 = _class.staticMethodId( @@ -1622,26 +1784,33 @@ class CameraUpdateFactory extends jni$_.JObject { r'(Lorg/maplibre/android/geometry/LatLngBounds;DDI)Lorg/maplibre/android/camera/CameraUpdate;', ); - static final _newLatLngBounds$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _newLatLngBounds$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Double, - jni$_.Double, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Double, + jni$_.Double, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, double, double, - int)>(); + int, + ) + >(); /// from: `static public final org.maplibre.android.camera.CameraUpdate newLatLngBounds(org.maplibre.android.geometry.LatLngBounds latLngBounds, double d, double d1, int i)` /// The returned object must be released after use, by calling the [release] method. @@ -1653,14 +1822,15 @@ class CameraUpdateFactory extends jni$_.JObject { ) { final _$latLngBounds = latLngBounds.reference; return _newLatLngBounds$1( - _class.reference.pointer, - _id_newLatLngBounds$1 as jni$_.JMethodIDPtr, - _$latLngBounds.pointer, - d, - d1, - i) - .object( - const cameraupdate$_.$CameraUpdate$Type()); + _class.reference.pointer, + _id_newLatLngBounds$1 as jni$_.JMethodIDPtr, + _$latLngBounds.pointer, + d, + d1, + i, + ).object( + const cameraupdate$_.$CameraUpdate$Type(), + ); } static final _id_newLatLngBounds$2 = _class.staticMethodId( @@ -1668,28 +1838,35 @@ class CameraUpdateFactory extends jni$_.JObject { r'(Lorg/maplibre/android/geometry/LatLngBounds;IIII)Lorg/maplibre/android/camera/CameraUpdate;', ); - static final _newLatLngBounds$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _newLatLngBounds$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int, - int)>(); + int, + ) + >(); /// from: `static public final org.maplibre.android.camera.CameraUpdate newLatLngBounds(org.maplibre.android.geometry.LatLngBounds latLngBounds, int i, int i1, int i2, int i3)` /// The returned object must be released after use, by calling the [release] method. @@ -1702,15 +1879,16 @@ class CameraUpdateFactory extends jni$_.JObject { ) { final _$latLngBounds = latLngBounds.reference; return _newLatLngBounds$2( - _class.reference.pointer, - _id_newLatLngBounds$2 as jni$_.JMethodIDPtr, - _$latLngBounds.pointer, - i, - i1, - i2, - i3) - .object( - const cameraupdate$_.$CameraUpdate$Type()); + _class.reference.pointer, + _id_newLatLngBounds$2 as jni$_.JMethodIDPtr, + _$latLngBounds.pointer, + i, + i1, + i2, + i3, + ).object( + const cameraupdate$_.$CameraUpdate$Type(), + ); } static final _id_newLatLngBounds$3 = _class.staticMethodId( @@ -1718,23 +1896,28 @@ class CameraUpdateFactory extends jni$_.JObject { r'(Lorg/maplibre/android/geometry/LatLngBounds;DDIIII)Lorg/maplibre/android/camera/CameraUpdate;', ); - static final _newLatLngBounds$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _newLatLngBounds$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Double, - jni$_.Double, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Double, + jni$_.Double, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -1743,7 +1926,9 @@ class CameraUpdateFactory extends jni$_.JObject { int, int, int, - int)>(); + int, + ) + >(); /// from: `static public final org.maplibre.android.camera.CameraUpdate newLatLngBounds(org.maplibre.android.geometry.LatLngBounds latLngBounds, double d, double d1, int i, int i1, int i2, int i3)` /// The returned object must be released after use, by calling the [release] method. @@ -1758,17 +1943,18 @@ class CameraUpdateFactory extends jni$_.JObject { ) { final _$latLngBounds = latLngBounds.reference; return _newLatLngBounds$3( - _class.reference.pointer, - _id_newLatLngBounds$3 as jni$_.JMethodIDPtr, - _$latLngBounds.pointer, - d, - d1, - i, - i1, - i2, - i3) - .object( - const cameraupdate$_.$CameraUpdate$Type()); + _class.reference.pointer, + _id_newLatLngBounds$3 as jni$_.JMethodIDPtr, + _$latLngBounds.pointer, + d, + d1, + i, + i1, + i2, + i3, + ).object( + const cameraupdate$_.$CameraUpdate$Type(), + ); } static final _id_newLatLngZoom = _class.staticMethodId( @@ -1776,19 +1962,24 @@ class CameraUpdateFactory extends jni$_.JObject { r'(Lorg/maplibre/android/geometry/LatLng;D)Lorg/maplibre/android/camera/CameraUpdate;', ); - static final _newLatLngZoom = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _newLatLngZoom = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Double - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Double)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + double, + ) + >(); /// from: `static public final org.maplibre.android.camera.CameraUpdate newLatLngZoom(org.maplibre.android.geometry.LatLng latLng, double d)` /// The returned object must be released after use, by calling the [release] method. @@ -1797,10 +1988,14 @@ class CameraUpdateFactory extends jni$_.JObject { double d, ) { final _$latLng = latLng.reference; - return _newLatLngZoom(_class.reference.pointer, - _id_newLatLngZoom as jni$_.JMethodIDPtr, _$latLng.pointer, d) - .object( - const cameraupdate$_.$CameraUpdate$Type()); + return _newLatLngZoom( + _class.reference.pointer, + _id_newLatLngZoom as jni$_.JMethodIDPtr, + _$latLng.pointer, + d, + ).object( + const cameraupdate$_.$CameraUpdate$Type(), + ); } static final _id_newLatLngPadding = _class.staticMethodId( @@ -1808,28 +2003,35 @@ class CameraUpdateFactory extends jni$_.JObject { r'(Lorg/maplibre/android/geometry/LatLng;DDDD)Lorg/maplibre/android/camera/CameraUpdate;', ); - static final _newLatLngPadding = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _newLatLngPadding = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Double, - jni$_.Double, - jni$_.Double, - jni$_.Double - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Double, + jni$_.Double, + jni$_.Double, + jni$_.Double, + ) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, double, double, double, - double)>(); + double, + ) + >(); /// from: `static public final org.maplibre.android.camera.CameraUpdate newLatLngPadding(org.maplibre.android.geometry.LatLng latLng, double d, double d1, double d2, double d3)` /// The returned object must be released after use, by calling the [release] method. @@ -1842,15 +2044,16 @@ class CameraUpdateFactory extends jni$_.JObject { ) { final _$latLng = latLng.reference; return _newLatLngPadding( - _class.reference.pointer, - _id_newLatLngPadding as jni$_.JMethodIDPtr, - _$latLng.pointer, - d, - d1, - d2, - d3) - .object( - const cameraupdate$_.$CameraUpdate$Type()); + _class.reference.pointer, + _id_newLatLngPadding as jni$_.JMethodIDPtr, + _$latLng.pointer, + d, + d1, + d2, + d3, + ).object( + const cameraupdate$_.$CameraUpdate$Type(), + ); } static final _id_zoomBy = _class.staticMethodId( @@ -1858,31 +2061,37 @@ class CameraUpdateFactory extends jni$_.JObject { r'(DLandroid/graphics/Point;)Lorg/maplibre/android/camera/CameraUpdate;', ); - static final _zoomBy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _zoomBy = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, double, jni$_.Pointer)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double, jni$_.Pointer)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + jni$_.Pointer, + ) + >(); /// from: `static public final org.maplibre.android.camera.CameraUpdate zoomBy(double d, android.graphics.Point point)` /// The returned object must be released after use, by calling the [release] method. - static cameraupdate$_.CameraUpdate zoomBy( - double d, - jni$_.JObject point, - ) { + static cameraupdate$_.CameraUpdate zoomBy(double d, jni$_.JObject point) { final _$point = point.reference; - return _zoomBy(_class.reference.pointer, _id_zoomBy as jni$_.JMethodIDPtr, - d, _$point.pointer) - .object( - const cameraupdate$_.$CameraUpdate$Type()); + return _zoomBy( + _class.reference.pointer, + _id_zoomBy as jni$_.JMethodIDPtr, + d, + _$point.pointer, + ).object( + const cameraupdate$_.$CameraUpdate$Type(), + ); } static final _id_zoomBy$1 = _class.staticMethodId( @@ -1890,24 +2099,34 @@ class CameraUpdateFactory extends jni$_.JObject { r'(D)Lorg/maplibre/android/camera/CameraUpdate;', ); - static final _zoomBy$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Double,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + static final _zoomBy$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `static public final org.maplibre.android.camera.CameraUpdate zoomBy(double d)` /// The returned object must be released after use, by calling the [release] method. - static cameraupdate$_.CameraUpdate zoomBy$1( - double d, - ) { + static cameraupdate$_.CameraUpdate zoomBy$1(double d) { return _zoomBy$1( - _class.reference.pointer, _id_zoomBy$1 as jni$_.JMethodIDPtr, d) - .object( - const cameraupdate$_.$CameraUpdate$Type()); + _class.reference.pointer, + _id_zoomBy$1 as jni$_.JMethodIDPtr, + d, + ).object( + const cameraupdate$_.$CameraUpdate$Type(), + ); } static final _id_zoomIn = _class.staticMethodId( @@ -1915,24 +2134,31 @@ class CameraUpdateFactory extends jni$_.JObject { r'()Lorg/maplibre/android/camera/CameraUpdate;', ); - static final _zoomIn = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _zoomIn = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public final org.maplibre.android.camera.CameraUpdate zoomIn()` /// The returned object must be released after use, by calling the [release] method. static cameraupdate$_.CameraUpdate zoomIn() { - return _zoomIn(_class.reference.pointer, _id_zoomIn as jni$_.JMethodIDPtr) - .object( - const cameraupdate$_.$CameraUpdate$Type()); + return _zoomIn( + _class.reference.pointer, + _id_zoomIn as jni$_.JMethodIDPtr, + ).object( + const cameraupdate$_.$CameraUpdate$Type(), + ); } static final _id_zoomOut = _class.staticMethodId( @@ -1940,24 +2166,31 @@ class CameraUpdateFactory extends jni$_.JObject { r'()Lorg/maplibre/android/camera/CameraUpdate;', ); - static final _zoomOut = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _zoomOut = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public final org.maplibre.android.camera.CameraUpdate zoomOut()` /// The returned object must be released after use, by calling the [release] method. static cameraupdate$_.CameraUpdate zoomOut() { - return _zoomOut(_class.reference.pointer, _id_zoomOut as jni$_.JMethodIDPtr) - .object( - const cameraupdate$_.$CameraUpdate$Type()); + return _zoomOut( + _class.reference.pointer, + _id_zoomOut as jni$_.JMethodIDPtr, + ).object( + const cameraupdate$_.$CameraUpdate$Type(), + ); } static final _id_zoomTo = _class.staticMethodId( @@ -1965,24 +2198,34 @@ class CameraUpdateFactory extends jni$_.JObject { r'(D)Lorg/maplibre/android/camera/CameraUpdate;', ); - static final _zoomTo = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Double,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + static final _zoomTo = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `static public final org.maplibre.android.camera.CameraUpdate zoomTo(double d)` /// The returned object must be released after use, by calling the [release] method. - static cameraupdate$_.CameraUpdate zoomTo( - double d, - ) { + static cameraupdate$_.CameraUpdate zoomTo(double d) { return _zoomTo( - _class.reference.pointer, _id_zoomTo as jni$_.JMethodIDPtr, d) - .object( - const cameraupdate$_.$CameraUpdate$Type()); + _class.reference.pointer, + _id_zoomTo as jni$_.JMethodIDPtr, + d, + ).object( + const cameraupdate$_.$CameraUpdate$Type(), + ); } static final _id_bearingTo = _class.staticMethodId( @@ -1990,24 +2233,34 @@ class CameraUpdateFactory extends jni$_.JObject { r'(D)Lorg/maplibre/android/camera/CameraUpdate;', ); - static final _bearingTo = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Double,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + static final _bearingTo = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `static public final org.maplibre.android.camera.CameraUpdate bearingTo(double d)` /// The returned object must be released after use, by calling the [release] method. - static cameraupdate$_.CameraUpdate bearingTo( - double d, - ) { + static cameraupdate$_.CameraUpdate bearingTo(double d) { return _bearingTo( - _class.reference.pointer, _id_bearingTo as jni$_.JMethodIDPtr, d) - .object( - const cameraupdate$_.$CameraUpdate$Type()); + _class.reference.pointer, + _id_bearingTo as jni$_.JMethodIDPtr, + d, + ).object( + const cameraupdate$_.$CameraUpdate$Type(), + ); } static final _id_tiltTo = _class.staticMethodId( @@ -2015,24 +2268,34 @@ class CameraUpdateFactory extends jni$_.JObject { r'(D)Lorg/maplibre/android/camera/CameraUpdate;', ); - static final _tiltTo = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Double,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + static final _tiltTo = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `static public final org.maplibre.android.camera.CameraUpdate tiltTo(double d)` /// The returned object must be released after use, by calling the [release] method. - static cameraupdate$_.CameraUpdate tiltTo( - double d, - ) { + static cameraupdate$_.CameraUpdate tiltTo(double d) { return _tiltTo( - _class.reference.pointer, _id_tiltTo as jni$_.JMethodIDPtr, d) - .object( - const cameraupdate$_.$CameraUpdate$Type()); + _class.reference.pointer, + _id_tiltTo as jni$_.JMethodIDPtr, + d, + ).object( + const cameraupdate$_.$CameraUpdate$Type(), + ); } static final _id_paddingTo = _class.staticMethodId( @@ -2040,27 +2303,35 @@ class CameraUpdateFactory extends jni$_.JObject { r'([D)Lorg/maplibre/android/camera/CameraUpdate;', ); - static final _paddingTo = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _paddingTo = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public final org.maplibre.android.camera.CameraUpdate paddingTo(double[] ds)` /// The returned object must be released after use, by calling the [release] method. - static cameraupdate$_.CameraUpdate paddingTo( - jni$_.JDoubleArray? ds, - ) { + static cameraupdate$_.CameraUpdate paddingTo(jni$_.JDoubleArray? ds) { final _$ds = ds?.reference ?? jni$_.jNullReference; - return _paddingTo(_class.reference.pointer, - _id_paddingTo as jni$_.JMethodIDPtr, _$ds.pointer) - .object( - const cameraupdate$_.$CameraUpdate$Type()); + return _paddingTo( + _class.reference.pointer, + _id_paddingTo as jni$_.JMethodIDPtr, + _$ds.pointer, + ).object( + const cameraupdate$_.$CameraUpdate$Type(), + ); } static final _id_paddingTo$1 = _class.staticMethodId( @@ -2068,21 +2339,28 @@ class CameraUpdateFactory extends jni$_.JObject { r'(DDDD)Lorg/maplibre/android/camera/CameraUpdate;', ); - static final _paddingTo$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _paddingTo$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Double, - jni$_.Double, - jni$_.Double - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, double, double, double, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Double, jni$_.Double, jni$_.Double, jni$_.Double) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + double, + double, + double, + ) + >(); /// from: `static public final org.maplibre.android.camera.CameraUpdate paddingTo(double d, double d1, double d2, double d3)` /// The returned object must be released after use, by calling the [release] method. @@ -2092,10 +2370,16 @@ class CameraUpdateFactory extends jni$_.JObject { double d2, double d3, ) { - return _paddingTo$1(_class.reference.pointer, - _id_paddingTo$1 as jni$_.JMethodIDPtr, d, d1, d2, d3) - .object( - const cameraupdate$_.$CameraUpdate$Type()); + return _paddingTo$1( + _class.reference.pointer, + _id_paddingTo$1 as jni$_.JMethodIDPtr, + d, + d1, + d2, + d3, + ).object( + const cameraupdate$_.$CameraUpdate$Type(), + ); } } @@ -2111,11 +2395,7 @@ final class $CameraUpdateFactory$NullableType @jni$_.internal @core$_.override CameraUpdateFactory? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : CameraUpdateFactory.fromReference( - reference, - ); + reference.isNull ? null : CameraUpdateFactory.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -2150,9 +2430,7 @@ final class $CameraUpdateFactory$Type @jni$_.internal @core$_.override CameraUpdateFactory fromReference(jni$_.JReference reference) => - CameraUpdateFactory.fromReference( - reference, - ); + CameraUpdateFactory.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/camera/_package.dart b/lib/src/platform/android/jni/org/maplibre/android/camera/_package.dart index f16add46..9fca26d7 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/camera/_package.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/camera/_package.dart @@ -1,3 +1,4 @@ +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! export 'CameraPosition.dart'; export 'CameraUpdate.dart'; export 'CameraUpdateFactory.dart'; diff --git a/lib/src/platform/android/jni/org/maplibre/android/constants/GeometryConstants.dart b/lib/src/platform/android/jni/org/maplibre/android/constants/GeometryConstants.dart index 9ffa703f..55cb846c 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/constants/GeometryConstants.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/constants/GeometryConstants.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class GeometryConstants extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - GeometryConstants.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + GeometryConstants.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/constants/GeometryConstants'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/constants/GeometryConstants', + ); /// The type which includes information such as the signature of this class. static const nullableType = $GeometryConstants$NullableType(); @@ -115,11 +103,7 @@ final class $GeometryConstants$NullableType @jni$_.internal @core$_.override GeometryConstants? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : GeometryConstants.fromReference( - reference, - ); + reference.isNull ? null : GeometryConstants.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -153,9 +137,7 @@ final class $GeometryConstants$Type extends jni$_.JObjType { @jni$_.internal @core$_.override GeometryConstants fromReference(jni$_.JReference reference) => - GeometryConstants.fromReference( - reference, - ); + GeometryConstants.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/constants/MapLibreConstants.dart b/lib/src/platform/android/jni/org/maplibre/android/constants/MapLibreConstants.dart index 219e2176..d1e92086 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/constants/MapLibreConstants.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/constants/MapLibreConstants.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class MapLibreConstants extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreConstants.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreConstants.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/constants/MapLibreConstants'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/constants/MapLibreConstants', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibreConstants$NullableType(); @@ -87,7 +75,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get MAPLIBRE_SHARED_PREFERENCES => _id_MAPLIBRE_SHARED_PREFERENCES.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_KEY_META_DATA_SET_STORAGE_EXTERNAL = _class.staticFieldId( r'KEY_META_DATA_SET_STORAGE_EXTERNAL', @@ -98,21 +88,25 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get KEY_META_DATA_SET_STORAGE_EXTERNAL => _id_KEY_META_DATA_SET_STORAGE_EXTERNAL.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); /// from: `static public final boolean DEFAULT_SET_STORAGE_EXTERNAL` static const DEFAULT_SET_STORAGE_EXTERNAL = 0; - static final _id_KEY_META_DATA_MEASURE_TILE_DOWNLOAD_ON = - _class.staticFieldId( - r'KEY_META_DATA_MEASURE_TILE_DOWNLOAD_ON', - r'Ljava/lang/String;', - ); + static final _id_KEY_META_DATA_MEASURE_TILE_DOWNLOAD_ON = _class + .staticFieldId( + r'KEY_META_DATA_MEASURE_TILE_DOWNLOAD_ON', + r'Ljava/lang/String;', + ); /// from: `static public final java.lang.String KEY_META_DATA_MEASURE_TILE_DOWNLOAD_ON` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get KEY_META_DATA_MEASURE_TILE_DOWNLOAD_ON => _id_KEY_META_DATA_MEASURE_TILE_DOWNLOAD_ON.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); /// from: `static public final boolean DEFAULT_MEASURE_TILE_DOWNLOAD_ON` static const DEFAULT_MEASURE_TILE_DOWNLOAD_ON = 0; @@ -215,7 +209,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get FRAG_ARG_MAPLIBREMAPOPTIONS => _id_FRAG_ARG_MAPLIBREMAPOPTIONS.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_LAYER_ID_ANNOTATIONS = _class.staticFieldId( r'LAYER_ID_ANNOTATIONS', @@ -276,7 +272,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_HORIZONAL_SCROLL_ENABLED => _id_STATE_HORIZONAL_SCROLL_ENABLED.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_ROTATE_ENABLED = _class.staticFieldId( r'STATE_ROTATE_ENABLED', @@ -307,7 +305,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_DOUBLE_TAP_ENABLED => _id_STATE_DOUBLE_TAP_ENABLED.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_QUICK_ZOOM_ENABLED = _class.staticFieldId( r'STATE_QUICK_ZOOM_ENABLED', @@ -318,7 +318,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_QUICK_ZOOM_ENABLED => _id_STATE_QUICK_ZOOM_ENABLED.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_ZOOM_RATE = _class.staticFieldId( r'STATE_ZOOM_RATE', @@ -369,7 +371,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_COMPASS_MARGIN_LEFT => _id_STATE_COMPASS_MARGIN_LEFT.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_COMPASS_MARGIN_TOP = _class.staticFieldId( r'STATE_COMPASS_MARGIN_TOP', @@ -380,7 +384,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_COMPASS_MARGIN_TOP => _id_STATE_COMPASS_MARGIN_TOP.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_COMPASS_MARGIN_RIGHT = _class.staticFieldId( r'STATE_COMPASS_MARGIN_RIGHT', @@ -391,7 +397,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_COMPASS_MARGIN_RIGHT => _id_STATE_COMPASS_MARGIN_RIGHT.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_COMPASS_MARGIN_BOTTOM = _class.staticFieldId( r'STATE_COMPASS_MARGIN_BOTTOM', @@ -402,7 +410,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_COMPASS_MARGIN_BOTTOM => _id_STATE_COMPASS_MARGIN_BOTTOM.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_COMPASS_FADE_WHEN_FACING_NORTH = _class.staticFieldId( r'STATE_COMPASS_FADE_WHEN_FACING_NORTH', @@ -413,7 +423,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_COMPASS_FADE_WHEN_FACING_NORTH => _id_STATE_COMPASS_FADE_WHEN_FACING_NORTH.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_COMPASS_IMAGE_BITMAP = _class.staticFieldId( r'STATE_COMPASS_IMAGE_BITMAP', @@ -424,7 +436,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_COMPASS_IMAGE_BITMAP => _id_STATE_COMPASS_IMAGE_BITMAP.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_LOGO_GRAVITY = _class.staticFieldId( r'STATE_LOGO_GRAVITY', @@ -465,7 +479,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_LOGO_MARGIN_RIGHT => _id_STATE_LOGO_MARGIN_RIGHT.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_LOGO_MARGIN_BOTTOM = _class.staticFieldId( r'STATE_LOGO_MARGIN_BOTTOM', @@ -476,7 +492,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_LOGO_MARGIN_BOTTOM => _id_STATE_LOGO_MARGIN_BOTTOM.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_LOGO_ENABLED = _class.staticFieldId( r'STATE_LOGO_ENABLED', @@ -497,7 +515,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_ATTRIBUTION_GRAVITY => _id_STATE_ATTRIBUTION_GRAVITY.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_ATTRIBUTION_MARGIN_LEFT = _class.staticFieldId( r'STATE_ATTRIBUTION_MARGIN_LEFT', @@ -508,7 +528,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_ATTRIBUTION_MARGIN_LEFT => _id_STATE_ATTRIBUTION_MARGIN_LEFT.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_ATTRIBUTION_MARGIN_TOP = _class.staticFieldId( r'STATE_ATTRIBUTION_MARGIN_TOP', @@ -519,7 +541,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_ATTRIBUTION_MARGIN_TOP => _id_STATE_ATTRIBUTION_MARGIN_TOP.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_ATTRIBUTION_MARGIN_RIGHT = _class.staticFieldId( r'STATE_ATTRIBUTION_MARGIN_RIGHT', @@ -530,7 +554,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_ATTRIBUTION_MARGIN_RIGHT => _id_STATE_ATTRIBUTION_MARGIN_RIGHT.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_ATTRIBUTION_MARGIN_BOTTOM = _class.staticFieldId( r'STATE_ATTRIBUTION_MARGIN_BOTTOM', @@ -541,7 +567,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_ATTRIBUTION_MARGIN_BOTTOM => _id_STATE_ATTRIBUTION_MARGIN_BOTTOM.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_ATTRIBUTION_ENABLED = _class.staticFieldId( r'STATE_ATTRIBUTION_ENABLED', @@ -552,7 +580,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_ATTRIBUTION_ENABLED => _id_STATE_ATTRIBUTION_ENABLED.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_DESELECT_MARKER_ON_TAP = _class.staticFieldId( r'STATE_DESELECT_MARKER_ON_TAP', @@ -563,7 +593,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_DESELECT_MARKER_ON_TAP => _id_STATE_DESELECT_MARKER_ON_TAP.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_USER_FOCAL_POINT = _class.staticFieldId( r'STATE_USER_FOCAL_POINT', @@ -584,7 +616,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_SCALE_ANIMATION_ENABLED => _id_STATE_SCALE_ANIMATION_ENABLED.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_ROTATE_ANIMATION_ENABLED = _class.staticFieldId( r'STATE_ROTATE_ANIMATION_ENABLED', @@ -595,7 +629,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_ROTATE_ANIMATION_ENABLED => _id_STATE_ROTATE_ANIMATION_ENABLED.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_FLING_ANIMATION_ENABLED = _class.staticFieldId( r'STATE_FLING_ANIMATION_ENABLED', @@ -606,7 +642,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_FLING_ANIMATION_ENABLED => _id_STATE_FLING_ANIMATION_ENABLED.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_INCREASE_ROTATE_THRESHOLD = _class.staticFieldId( r'STATE_INCREASE_ROTATE_THRESHOLD', @@ -617,7 +655,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_INCREASE_ROTATE_THRESHOLD => _id_STATE_INCREASE_ROTATE_THRESHOLD.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_DISABLE_ROTATE_WHEN_SCALING = _class.staticFieldId( r'STATE_DISABLE_ROTATE_WHEN_SCALING', @@ -628,7 +668,9 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_DISABLE_ROTATE_WHEN_SCALING => _id_STATE_DISABLE_ROTATE_WHEN_SCALING.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_STATE_INCREASE_SCALE_THRESHOLD = _class.staticFieldId( r'STATE_INCREASE_SCALE_THRESHOLD', @@ -639,30 +681,34 @@ class MapLibreConstants extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get STATE_INCREASE_SCALE_THRESHOLD => _id_STATE_INCREASE_SCALE_THRESHOLD.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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, - )>(); + ) + > + >('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 MapLibreConstants() { return MapLibreConstants.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } } @@ -678,11 +724,7 @@ final class $MapLibreConstants$NullableType @jni$_.internal @core$_.override MapLibreConstants? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : MapLibreConstants.fromReference( - reference, - ); + reference.isNull ? null : MapLibreConstants.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -716,9 +758,7 @@ final class $MapLibreConstants$Type extends jni$_.JObjType { @jni$_.internal @core$_.override MapLibreConstants fromReference(jni$_.JReference reference) => - MapLibreConstants.fromReference( - reference, - ); + MapLibreConstants.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/constants/_package.dart b/lib/src/platform/android/jni/org/maplibre/android/constants/_package.dart index 4bc1b5aa..b977bd61 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/constants/_package.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/constants/_package.dart @@ -1,2 +1,3 @@ +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! export 'GeometryConstants.dart'; export 'MapLibreConstants.dart'; diff --git a/lib/src/platform/android/jni/org/maplibre/android/exceptions/CalledFromWorkerThreadException.dart b/lib/src/platform/android/jni/org/maplibre/android/exceptions/CalledFromWorkerThreadException.dart index 14294615..5ff5542e 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/exceptions/CalledFromWorkerThreadException.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/exceptions/CalledFromWorkerThreadException.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,43 +45,48 @@ class CalledFromWorkerThreadException extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - CalledFromWorkerThreadException.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + CalledFromWorkerThreadException.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/exceptions/CalledFromWorkerThreadException'); + r'org/maplibre/android/exceptions/CalledFromWorkerThreadException', + ); /// The type which includes information such as the signature of this class. static const nullableType = $CalledFromWorkerThreadException$NullableType(); static const type = $CalledFromWorkerThreadException$Type(); - static final _id_new$ = _class.constructorId( - r'(Ljava/lang/String;)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)>(); + static final _id_new$ = _class.constructorId(r'(Ljava/lang/String;)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: `public void (java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - factory CalledFromWorkerThreadException( - jni$_.JString? string, - ) { + factory CalledFromWorkerThreadException(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return CalledFromWorkerThreadException.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$string.pointer) - .reference); + return CalledFromWorkerThreadException.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$string.pointer, + ).reference, + ); } } @@ -111,10 +104,8 @@ final class $CalledFromWorkerThreadException$NullableType @core$_.override CalledFromWorkerThreadException? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : CalledFromWorkerThreadException.fromReference( - reference, - ); + ? null + : CalledFromWorkerThreadException.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -151,9 +142,7 @@ final class $CalledFromWorkerThreadException$Type @jni$_.internal @core$_.override CalledFromWorkerThreadException fromReference(jni$_.JReference reference) => - CalledFromWorkerThreadException.fromReference( - reference, - ); + CalledFromWorkerThreadException.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/exceptions/ConversionException.dart b/lib/src/platform/android/jni/org/maplibre/android/exceptions/ConversionException.dart index 9b075d6b..f0cf7b10 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/exceptions/ConversionException.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/exceptions/ConversionException.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,41 +45,48 @@ class ConversionException extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - ConversionException.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ConversionException.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/exceptions/ConversionException'); + r'org/maplibre/android/exceptions/ConversionException', + ); /// The type which includes information such as the signature of this class. static const nullableType = $ConversionException$NullableType(); static const type = $ConversionException$Type(); - static final _id_new$ = _class.constructorId( - r'(Ljava/lang/String;)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)>(); + static final _id_new$ = _class.constructorId(r'(Ljava/lang/String;)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: `public void (java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - factory ConversionException( - jni$_.JString? string, - ) { + factory ConversionException(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return ConversionException.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$string.pointer) - .reference); + return ConversionException.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$string.pointer, + ).reference, + ); } } @@ -108,11 +103,7 @@ final class $ConversionException$NullableType @jni$_.internal @core$_.override ConversionException? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : ConversionException.fromReference( - reference, - ); + reference.isNull ? null : ConversionException.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -148,9 +139,7 @@ final class $ConversionException$Type @jni$_.internal @core$_.override ConversionException fromReference(jni$_.JReference reference) => - ConversionException.fromReference( - reference, - ); + ConversionException.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/exceptions/IconBitmapChangedException.dart b/lib/src/platform/android/jni/org/maplibre/android/exceptions/IconBitmapChangedException.dart index b25c8841..592fbf6b 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/exceptions/IconBitmapChangedException.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/exceptions/IconBitmapChangedException.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,39 +45,41 @@ class IconBitmapChangedException extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - IconBitmapChangedException.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + IconBitmapChangedException.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/exceptions/IconBitmapChangedException'); + r'org/maplibre/android/exceptions/IconBitmapChangedException', + ); /// The type which includes information such as the signature of this class. static const nullableType = $IconBitmapChangedException$NullableType(); static const type = $IconBitmapChangedException$Type(); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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, - )>(); + ) + > + >('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 IconBitmapChangedException() { return IconBitmapChangedException.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } } @@ -107,10 +97,8 @@ final class $IconBitmapChangedException$NullableType @core$_.override IconBitmapChangedException? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : IconBitmapChangedException.fromReference( - reference, - ); + ? null + : IconBitmapChangedException.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -146,9 +134,7 @@ final class $IconBitmapChangedException$Type @jni$_.internal @core$_.override IconBitmapChangedException fromReference(jni$_.JReference reference) => - IconBitmapChangedException.fromReference( - reference, - ); + IconBitmapChangedException.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/exceptions/InvalidLatLngBoundsException.dart b/lib/src/platform/android/jni/org/maplibre/android/exceptions/InvalidLatLngBoundsException.dart index 60321599..1a6bba34 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/exceptions/InvalidLatLngBoundsException.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/exceptions/InvalidLatLngBoundsException.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,39 +45,47 @@ class InvalidLatLngBoundsException extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - InvalidLatLngBoundsException.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + InvalidLatLngBoundsException.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/exceptions/InvalidLatLngBoundsException'); + r'org/maplibre/android/exceptions/InvalidLatLngBoundsException', + ); /// The type which includes information such as the signature of this class. static const nullableType = $InvalidLatLngBoundsException$NullableType(); static const type = $InvalidLatLngBoundsException$Type(); - static final _id_new$ = _class.constructorId( - r'(I)V', - ); + static final _id_new$ = _class.constructorId(r'(I)V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void (int i)` /// The returned object must be released after use, by calling the [release] method. - factory InvalidLatLngBoundsException( - int i, - ) { + factory InvalidLatLngBoundsException(int i) { return InvalidLatLngBoundsException.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr, i) - .reference); + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + i, + ).reference, + ); } } @@ -107,10 +103,8 @@ final class $InvalidLatLngBoundsException$NullableType @core$_.override InvalidLatLngBoundsException? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : InvalidLatLngBoundsException.fromReference( - reference, - ); + ? null + : InvalidLatLngBoundsException.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -146,9 +140,7 @@ final class $InvalidLatLngBoundsException$Type @jni$_.internal @core$_.override InvalidLatLngBoundsException fromReference(jni$_.JReference reference) => - InvalidLatLngBoundsException.fromReference( - reference, - ); + InvalidLatLngBoundsException.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/exceptions/InvalidMarkerPositionException.dart b/lib/src/platform/android/jni/org/maplibre/android/exceptions/InvalidMarkerPositionException.dart index 102d4a0e..48dee268 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/exceptions/InvalidMarkerPositionException.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/exceptions/InvalidMarkerPositionException.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,39 +45,41 @@ class InvalidMarkerPositionException extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - InvalidMarkerPositionException.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + InvalidMarkerPositionException.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/exceptions/InvalidMarkerPositionException'); + r'org/maplibre/android/exceptions/InvalidMarkerPositionException', + ); /// The type which includes information such as the signature of this class. static const nullableType = $InvalidMarkerPositionException$NullableType(); static const type = $InvalidMarkerPositionException$Type(); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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, - )>(); + ) + > + >('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 InvalidMarkerPositionException() { return InvalidMarkerPositionException.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } } @@ -107,10 +97,8 @@ final class $InvalidMarkerPositionException$NullableType @core$_.override InvalidMarkerPositionException? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : InvalidMarkerPositionException.fromReference( - reference, - ); + ? null + : InvalidMarkerPositionException.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -147,9 +135,7 @@ final class $InvalidMarkerPositionException$Type @jni$_.internal @core$_.override InvalidMarkerPositionException fromReference(jni$_.JReference reference) => - InvalidMarkerPositionException.fromReference( - reference, - ); + InvalidMarkerPositionException.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/exceptions/MapLibreConfigurationException.dart b/lib/src/platform/android/jni/org/maplibre/android/exceptions/MapLibreConfigurationException.dart index ccad127d..2d2c5fe0 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/exceptions/MapLibreConfigurationException.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/exceptions/MapLibreConfigurationException.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,67 +45,74 @@ class MapLibreConfigurationException extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreConfigurationException.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreConfigurationException.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/exceptions/MapLibreConfigurationException'); + r'org/maplibre/android/exceptions/MapLibreConfigurationException', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibreConfigurationException$NullableType(); static const type = $MapLibreConfigurationException$Type(); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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, - )>(); + ) + > + >('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 MapLibreConfigurationException() { return MapLibreConfigurationException.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } - static final _id_new$1 = _class.constructorId( - r'(Ljava/lang/String;)V', - ); + static final _id_new$1 = _class.constructorId(r'(Ljava/lang/String;)V'); - static final _new$1 = 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)>(); + static final _new$1 = + 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: `public void (java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - factory MapLibreConfigurationException.new$1( - jni$_.JString? string, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; - return MapLibreConfigurationException.fromReference(_new$1( - _class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, - _$string.pointer) - .reference); + factory MapLibreConfigurationException.new$1(jni$_.JString string) { + final _$string = string.reference; + return MapLibreConfigurationException.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$string.pointer, + ).reference, + ); } } @@ -135,10 +130,8 @@ final class $MapLibreConfigurationException$NullableType @core$_.override MapLibreConfigurationException? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapLibreConfigurationException.fromReference( - reference, - ); + ? null + : MapLibreConfigurationException.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -175,9 +168,7 @@ final class $MapLibreConfigurationException$Type @jni$_.internal @core$_.override MapLibreConfigurationException fromReference(jni$_.JReference reference) => - MapLibreConfigurationException.fromReference( - reference, - ); + MapLibreConfigurationException.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/exceptions/TooManyIconsException.dart b/lib/src/platform/android/jni/org/maplibre/android/exceptions/TooManyIconsException.dart index 07b36b2c..73e3232d 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/exceptions/TooManyIconsException.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/exceptions/TooManyIconsException.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,39 +45,41 @@ class TooManyIconsException extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - TooManyIconsException.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + TooManyIconsException.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/exceptions/TooManyIconsException'); + r'org/maplibre/android/exceptions/TooManyIconsException', + ); /// The type which includes information such as the signature of this class. static const nullableType = $TooManyIconsException$NullableType(); static const type = $TooManyIconsException$Type(); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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, - )>(); + ) + > + >('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 TooManyIconsException() { return TooManyIconsException.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } } @@ -106,11 +96,7 @@ final class $TooManyIconsException$NullableType @jni$_.internal @core$_.override TooManyIconsException? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : TooManyIconsException.fromReference( - reference, - ); + reference.isNull ? null : TooManyIconsException.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -146,9 +132,7 @@ final class $TooManyIconsException$Type @jni$_.internal @core$_.override TooManyIconsException fromReference(jni$_.JReference reference) => - TooManyIconsException.fromReference( - reference, - ); + TooManyIconsException.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/exceptions/_package.dart b/lib/src/platform/android/jni/org/maplibre/android/exceptions/_package.dart index c539e836..f6a90524 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/exceptions/_package.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/exceptions/_package.dart @@ -1,3 +1,4 @@ +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! export 'CalledFromWorkerThreadException.dart'; export 'ConversionException.dart'; export 'IconBitmapChangedException.dart'; diff --git a/lib/src/platform/android/jni/org/maplibre/android/geometry/LatLng.dart b/lib/src/platform/android/jni/org/maplibre/android/geometry/LatLng.dart index f24b4723..56b8408c 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/geometry/LatLng.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/geometry/LatLng.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -59,72 +47,84 @@ class LatLng$Companion extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - LatLng$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + LatLng$Companion.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/geometry/LatLng$Companion'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/geometry/LatLng$Companion', + ); /// The type which includes information such as the signature of this class. static const nullableType = $LatLng$Companion$NullableType(); static const type = $LatLng$Companion$Type(); - static final _id_wrap = _class.instanceMethodId( - r'wrap', - r'(DDD)D', - ); + static final _id_wrap = _class.instanceMethodId(r'wrap', r'(DDD)D'); - static final _wrap = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _wrap = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Double, - jni$_.Double - )>)>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, double, double, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double, jni$_.Double, jni$_.Double)>, + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + double, + double, + ) + >(); /// from: `public final double wrap(double d, double d1, double d2)` - double wrap( - double d, - double d1, - double d2, - ) { - return _wrap(reference.pointer, _id_wrap as jni$_.JMethodIDPtr, d, d1, d2) - .doubleFloat; + double wrap(double d, double d1, double d2) { + return _wrap( + reference.pointer, + _id_wrap as jni$_.JMethodIDPtr, + d, + d1, + d2, + ).doubleFloat; } 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)>(); + 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 LatLng$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { + factory LatLng$Companion(jni$_.JObject? defaultConstructorMarker) { final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return LatLng$Companion.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$defaultConstructorMarker.pointer) - .reference); + return LatLng$Companion.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -140,11 +140,7 @@ final class $LatLng$Companion$NullableType @jni$_.internal @core$_.override LatLng$Companion? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : LatLng$Companion.fromReference( - reference, - ); + reference.isNull ? null : LatLng$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -178,9 +174,7 @@ final class $LatLng$Companion$Type extends jni$_.JObjType { @jni$_.internal @core$_.override LatLng$Companion fromReference(jni$_.JReference reference) => - LatLng$Companion.fromReference( - reference, - ); + LatLng$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -211,13 +205,13 @@ class LatLng extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - LatLng.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + LatLng.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/geometry/LatLng'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/geometry/LatLng', + ); /// The type which includes information such as the signature of this class. static const nullableType = $LatLng$NullableType(); @@ -229,41 +223,46 @@ class LatLng extends jni$_.JObject { /// from: `static public final org.maplibre.android.geometry.LatLng$Companion Companion` /// The returned object must be released after use, by calling the [release] method. - static LatLng$Companion? get Companion => - _id_Companion.get(_class, const $LatLng$Companion$NullableType()); + static LatLng$Companion get Companion => + _id_Companion.get(_class, const $LatLng$Companion$Type()); static final _id_CREATOR = _class.staticFieldId( r'CREATOR', r'Landroid/os/Parcelable$Creator;', ); - /// from: `static public final android.os.Parcelable$Creator CREATOR` + /// 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()); + static jni$_.JObject get CREATOR => + _id_CREATOR.get(_class, const jni$_.JObjectType()); static final _id_getLatitude = _class.instanceMethodId( r'getLatitude', r'()D', ); - static final _getLatitude = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLatitude = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final double getLatitude()` double getLatitude() { return _getLatitude( - reference.pointer, _id_getLatitude as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getLatitude as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_setLatitude = _class.instanceMethodId( @@ -271,22 +270,31 @@ class LatLng extends jni$_.JObject { r'(D)V', ); - static final _setLatitude = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setLatitude = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public final void setLatitude(double d)` - void setLatitude( - double d, - ) { - _setLatitude(reference.pointer, _id_setLatitude as jni$_.JMethodIDPtr, d) - .check(); + void setLatitude(double d) { + _setLatitude( + reference.pointer, + _id_setLatitude as jni$_.JMethodIDPtr, + d, + ).check(); } static final _id_getLongitude = _class.instanceMethodId( @@ -294,23 +302,28 @@ class LatLng extends jni$_.JObject { r'()D', ); - static final _getLongitude = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLongitude = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final double getLongitude()` double getLongitude() { return _getLongitude( - reference.pointer, _id_getLongitude as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getLongitude as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_setLongitude = _class.instanceMethodId( @@ -318,22 +331,31 @@ class LatLng extends jni$_.JObject { r'(D)V', ); - static final _setLongitude = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setLongitude = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public final void setLongitude(double d)` - void setLongitude( - double d, - ) { - _setLongitude(reference.pointer, _id_setLongitude as jni$_.JMethodIDPtr, d) - .check(); + void setLongitude(double d) { + _setLongitude( + reference.pointer, + _id_setLongitude as jni$_.JMethodIDPtr, + d, + ).check(); } static final _id_getAltitude = _class.instanceMethodId( @@ -341,23 +363,28 @@ class LatLng extends jni$_.JObject { r'()D', ); - static final _getAltitude = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAltitude = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final double getAltitude()` double getAltitude() { return _getAltitude( - reference.pointer, _id_getAltitude as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getAltitude as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_setAltitude = _class.instanceMethodId( @@ -365,181 +392,230 @@ class LatLng extends jni$_.JObject { r'(D)V', ); - static final _setAltitude = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setAltitude = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public final void setAltitude(double d)` - void setAltitude( - double d, - ) { - _setAltitude(reference.pointer, _id_setAltitude as jni$_.JMethodIDPtr, d) - .check(); + void setAltitude(double d) { + _setAltitude( + reference.pointer, + _id_setAltitude as jni$_.JMethodIDPtr, + d, + ).check(); } - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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, - )>(); + ) + > + >('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 LatLng() { return LatLng.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } - static final _id_new$1 = _class.constructorId( - r'(DD)V', - ); + static final _id_new$1 = _class.constructorId(r'(DD)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)>(); + 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 (double d, double d1)` /// The returned object must be released after use, by calling the [release] method. - factory LatLng.new$1( - double d, - double d1, - ) { + factory LatLng.new$1(double d, double d1) { return LatLng.fromReference( - _new$1(_class.reference.pointer, _id_new$1 as jni$_.JMethodIDPtr, d, d1) - .reference); + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + d, + d1, + ).reference, + ); } - static final _id_new$2 = _class.constructorId( - r'(DDD)V', - ); + static final _id_new$2 = _class.constructorId(r'(DDD)V'); - static final _new$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Double, - jni$_.Double - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, double, double, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double, jni$_.Double, jni$_.Double)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + double, + double, + ) + >(); /// from: `public void (double d, double d1, double d2)` /// The returned object must be released after use, by calling the [release] method. - factory LatLng.new$2( - double d, - double d1, - double d2, - ) { - return LatLng.fromReference(_new$2(_class.reference.pointer, - _id_new$2 as jni$_.JMethodIDPtr, d, d1, d2) - .reference); + factory LatLng.new$2(double d, double d1, double d2) { + return LatLng.fromReference( + _new$2( + _class.reference.pointer, + _id_new$2 as jni$_.JMethodIDPtr, + d, + d1, + d2, + ).reference, + ); } static final _id_new$3 = _class.constructorId( r'(Landroid/location/Location;)V', ); - static final _new$3 = 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)>(); + static final _new$3 = + 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: `public void (android.location.Location location)` /// The returned object must be released after use, by calling the [release] method. - factory LatLng.new$3( - location$_.Location location, - ) { + factory LatLng.new$3(location$_.Location location) { final _$location = location.reference; - return LatLng.fromReference(_new$3(_class.reference.pointer, - _id_new$3 as jni$_.JMethodIDPtr, _$location.pointer) - .reference); + return LatLng.fromReference( + _new$3( + _class.reference.pointer, + _id_new$3 as jni$_.JMethodIDPtr, + _$location.pointer, + ).reference, + ); } static final _id_new$4 = _class.constructorId( r'(Lorg/maplibre/android/geometry/LatLng;)V', ); - static final _new$4 = 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)>(); + static final _new$4 = + 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: `public void (org.maplibre.android.geometry.LatLng latLng)` /// The returned object must be released after use, by calling the [release] method. - factory LatLng.new$4( - LatLng latLng, - ) { + factory LatLng.new$4(LatLng latLng) { final _$latLng = latLng.reference; - return LatLng.fromReference(_new$4(_class.reference.pointer, - _id_new$4 as jni$_.JMethodIDPtr, _$latLng.pointer) - .reference); + return LatLng.fromReference( + _new$4( + _class.reference.pointer, + _id_new$4 as jni$_.JMethodIDPtr, + _$latLng.pointer, + ).reference, + ); } - static final _id_new$5 = _class.constructorId( - r'(Landroid/os/Parcel;)V', - ); + static final _id_new$5 = _class.constructorId(r'(Landroid/os/Parcel;)V'); - static final _new$5 = 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)>(); + static final _new$5 = + 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: `public void (android.os.Parcel parcel)` /// The returned object must be released after use, by calling the [release] method. - factory LatLng.new$5( - jni$_.JObject parcel, - ) { + factory LatLng.new$5(jni$_.JObject parcel) { final _$parcel = parcel.reference; - return LatLng.fromReference(_new$5(_class.reference.pointer, - _id_new$5 as jni$_.JMethodIDPtr, _$parcel.pointer) - .reference); + return LatLng.fromReference( + _new$5( + _class.reference.pointer, + _id_new$5 as jni$_.JMethodIDPtr, + _$parcel.pointer, + ).reference, + ); } static final _id_wrap = _class.instanceMethodId( @@ -547,23 +623,29 @@ class LatLng extends jni$_.JObject { r'()Lorg/maplibre/android/geometry/LatLng;', ); - static final _wrap = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _wrap = + 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 org.maplibre.android.geometry.LatLng wrap()` /// The returned object must be released after use, by calling the [release] method. LatLng wrap() { - return _wrap(reference.pointer, _id_wrap as jni$_.JMethodIDPtr) - .object(const $LatLng$Type()); + return _wrap( + reference.pointer, + _id_wrap as jni$_.JMethodIDPtr, + ).object(const $LatLng$Type()); } static final _id_equals = _class.instanceMethodId( @@ -571,48 +653,58 @@ class LatLng extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } static final _id_toString$1 = _class.instanceMethodId( @@ -620,23 +712,29 @@ class LatLng extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + 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 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$_.JStringType()); + return _toString$1( + reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } static final _id_describeContents = _class.instanceMethodId( @@ -644,23 +742,28 @@ class LatLng extends jni$_.JObject { r'()I', ); - static final _describeContents = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _describeContents = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int describeContents()` int describeContents() { return _describeContents( - reference.pointer, _id_describeContents as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_describeContents as jni$_.JMethodIDPtr, + ).integer; } static final _id_writeToParcel = _class.instanceMethodId( @@ -668,27 +771,34 @@ class LatLng extends jni$_.JObject { r'(Landroid/os/Parcel;I)V', ); - static final _writeToParcel = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _writeToParcel = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public void writeToParcel(android.os.Parcel parcel, int i)` - void writeToParcel( - jni$_.JObject parcel, - int i, - ) { + void writeToParcel(jni$_.JObject parcel, int i) { final _$parcel = parcel.reference; - _writeToParcel(reference.pointer, _id_writeToParcel as jni$_.JMethodIDPtr, - _$parcel.pointer, i) - .check(); + _writeToParcel( + reference.pointer, + _id_writeToParcel as jni$_.JMethodIDPtr, + _$parcel.pointer, + i, + ).check(); } static final _id_distanceTo = _class.instanceMethodId( @@ -696,25 +806,32 @@ class LatLng extends jni$_.JObject { r'(Lorg/maplibre/android/geometry/LatLng;)D', ); - static final _distanceTo = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _distanceTo = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final double distanceTo(org.maplibre.android.geometry.LatLng latLng)` - double distanceTo( - LatLng latLng, - ) { + double distanceTo(LatLng latLng) { final _$latLng = latLng.reference; - return _distanceTo(reference.pointer, _id_distanceTo as jni$_.JMethodIDPtr, - _$latLng.pointer) - .doubleFloat; + return _distanceTo( + reference.pointer, + _id_distanceTo as jni$_.JMethodIDPtr, + _$latLng.pointer, + ).doubleFloat; } } @@ -728,11 +845,8 @@ final class $LatLng$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - LatLng? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : LatLng.fromReference( - reference, - ); + LatLng? fromReference(jni$_.JReference reference) => + reference.isNull ? null : LatLng.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -765,9 +879,8 @@ final class $LatLng$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - LatLng fromReference(jni$_.JReference reference) => LatLng.fromReference( - reference, - ); + LatLng fromReference(jni$_.JReference reference) => + LatLng.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/geometry/LatLngBounds.dart b/lib/src/platform/android/jni/org/maplibre/android/geometry/LatLngBounds.dart index 4bb5d60b..b24650f6 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/geometry/LatLngBounds.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/geometry/LatLngBounds.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -61,39 +49,41 @@ class LatLngBounds$Builder extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - LatLngBounds$Builder.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + LatLngBounds$Builder.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/geometry/LatLngBounds$Builder'); + r'org/maplibre/android/geometry/LatLngBounds$Builder', + ); /// The type which includes information such as the signature of this class. static const nullableType = $LatLngBounds$Builder$NullableType(); static const type = $LatLngBounds$Builder$Type(); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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, - )>(); + ) + > + >('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 LatLngBounds$Builder() { return LatLngBounds$Builder.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } static final _id_build = _class.instanceMethodId( @@ -101,23 +91,29 @@ class LatLngBounds$Builder extends jni$_.JObject { r'()Lorg/maplibre/android/geometry/LatLngBounds;', ); - static final _build = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _build = + 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 org.maplibre.android.geometry.LatLngBounds build()` /// The returned object must be released after use, by calling the [release] method. LatLngBounds build() { - return _build(reference.pointer, _id_build as jni$_.JMethodIDPtr) - .object(const $LatLngBounds$Type()); + return _build( + reference.pointer, + _id_build as jni$_.JMethodIDPtr, + ).object(const $LatLngBounds$Type()); } static final _id_includes = _class.instanceMethodId( @@ -125,26 +121,33 @@ class LatLngBounds$Builder extends jni$_.JObject { r'(Ljava/util/List;)Lorg/maplibre/android/geometry/LatLngBounds$Builder;', ); - static final _includes = 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 final org.maplibre.android.geometry.LatLngBounds$Builder includes(java.util.List list)` + static final _includes = + 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 final org.maplibre.android.geometry.LatLngBounds$Builder includes(java.util.List list)` /// The returned object must be released after use, by calling the [release] method. - LatLngBounds$Builder includes( - jni$_.JList list, - ) { + LatLngBounds$Builder includes(jni$_.JList list) { final _$list = list.reference; - return _includes(reference.pointer, _id_includes as jni$_.JMethodIDPtr, - _$list.pointer) - .object(const $LatLngBounds$Builder$Type()); + return _includes( + reference.pointer, + _id_includes as jni$_.JMethodIDPtr, + _$list.pointer, + ).object(const $LatLngBounds$Builder$Type()); } static final _id_include = _class.instanceMethodId( @@ -152,26 +155,33 @@ class LatLngBounds$Builder extends jni$_.JObject { r'(Lorg/maplibre/android/geometry/LatLng;)Lorg/maplibre/android/geometry/LatLngBounds$Builder;', ); - static final _include = 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)>(); + static final _include = + 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 final org.maplibre.android.geometry.LatLngBounds$Builder include(org.maplibre.android.geometry.LatLng latLng)` /// The returned object must be released after use, by calling the [release] method. - LatLngBounds$Builder include( - latlng$_.LatLng latLng, - ) { + LatLngBounds$Builder include(latlng$_.LatLng latLng) { final _$latLng = latLng.reference; - return _include(reference.pointer, _id_include as jni$_.JMethodIDPtr, - _$latLng.pointer) - .object(const $LatLngBounds$Builder$Type()); + return _include( + reference.pointer, + _id_include as jni$_.JMethodIDPtr, + _$latLng.pointer, + ).object(const $LatLngBounds$Builder$Type()); } } @@ -188,11 +198,7 @@ final class $LatLngBounds$Builder$NullableType @jni$_.internal @core$_.override LatLngBounds$Builder? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : LatLngBounds$Builder.fromReference( - reference, - ); + reference.isNull ? null : LatLngBounds$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -228,9 +234,7 @@ final class $LatLngBounds$Builder$Type @jni$_.internal @core$_.override LatLngBounds$Builder fromReference(jni$_.JReference reference) => - LatLngBounds$Builder.fromReference( - reference, - ); + LatLngBounds$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -261,13 +265,13 @@ class LatLngBounds$Companion extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - LatLngBounds$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + LatLngBounds$Companion.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/geometry/LatLngBounds$Companion'); + r'org/maplibre/android/geometry/LatLngBounds$Companion', + ); /// The type which includes information such as the signature of this class. static const nullableType = $LatLngBounds$Companion$NullableType(); @@ -277,23 +281,29 @@ class LatLngBounds$Companion extends jni$_.JObject { r'()Lorg/maplibre/android/geometry/LatLngBounds;', ); - static final _world = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _world = + 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 org.maplibre.android.geometry.LatLngBounds world()` /// The returned object must be released after use, by calling the [release] method. LatLngBounds world() { - return _world(reference.pointer, _id_world as jni$_.JMethodIDPtr) - .object(const $LatLngBounds$Type()); + return _world( + reference.pointer, + _id_world as jni$_.JMethodIDPtr, + ).object(const $LatLngBounds$Type()); } static final _id_fromLatLngs = _class.instanceMethodId( @@ -301,26 +311,33 @@ class LatLngBounds$Companion extends jni$_.JObject { r'(Ljava/util/List;)Lorg/maplibre/android/geometry/LatLngBounds;', ); - static final _fromLatLngs = 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 final org.maplibre.android.geometry.LatLngBounds fromLatLngs(java.util.List list)` + static final _fromLatLngs = + 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 final org.maplibre.android.geometry.LatLngBounds fromLatLngs(java.util.List list)` /// The returned object must be released after use, by calling the [release] method. - LatLngBounds fromLatLngs( - jni$_.JList list, - ) { + LatLngBounds fromLatLngs(jni$_.JList list) { final _$list = list.reference; - return _fromLatLngs(reference.pointer, - _id_fromLatLngs as jni$_.JMethodIDPtr, _$list.pointer) - .object(const $LatLngBounds$Type()); + return _fromLatLngs( + reference.pointer, + _id_fromLatLngs as jni$_.JMethodIDPtr, + _$list.pointer, + ).object(const $LatLngBounds$Type()); } static final _id_from = _class.instanceMethodId( @@ -328,33 +345,40 @@ class LatLngBounds$Companion extends jni$_.JObject { r'(DDDD)Lorg/maplibre/android/geometry/LatLngBounds;', ); - static final _from = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _from = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Double, - jni$_.Double, - jni$_.Double - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, double, double, double, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Double, jni$_.Double, jni$_.Double, jni$_.Double) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + double, + double, + double, + ) + >(); /// from: `public final org.maplibre.android.geometry.LatLngBounds from(double d, double d1, double d2, double d3)` /// The returned object must be released after use, by calling the [release] method. - LatLngBounds from( - double d, - double d1, - double d2, - double d3, - ) { + LatLngBounds from(double d, double d1, double d2, double d3) { return _from( - reference.pointer, _id_from as jni$_.JMethodIDPtr, d, d1, d2, d3) - .object(const $LatLngBounds$Type()); + reference.pointer, + _id_from as jni$_.JMethodIDPtr, + d, + d1, + d2, + d3, + ).object(const $LatLngBounds$Type()); } static final _id_from$1 = _class.instanceMethodId( @@ -362,54 +386,72 @@ class LatLngBounds$Companion extends jni$_.JObject { r'(III)Lorg/maplibre/android/geometry/LatLngBounds;', ); - static final _from$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32, jni$_.Int32, jni$_.Int32)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int, int, int)>(); + static final _from$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32, jni$_.Int32, jni$_.Int32)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + int, + int, + ) + >(); /// from: `public final org.maplibre.android.geometry.LatLngBounds from(int i, int i1, int i2)` /// The returned object must be released after use, by calling the [release] method. - LatLngBounds from$1( - int i, - int i1, - int i2, - ) { + LatLngBounds from$1(int i, int i1, int i2) { return _from$1( - reference.pointer, _id_from$1 as jni$_.JMethodIDPtr, i, i1, i2) - .object(const $LatLngBounds$Type()); + reference.pointer, + _id_from$1 as jni$_.JMethodIDPtr, + i, + i1, + i2, + ).object(const $LatLngBounds$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)>(); + 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 LatLngBounds$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { + factory LatLngBounds$Companion(jni$_.JObject? defaultConstructorMarker) { final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return LatLngBounds$Companion.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$defaultConstructorMarker.pointer) - .reference); + return LatLngBounds$Companion.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -426,11 +468,7 @@ final class $LatLngBounds$Companion$NullableType @jni$_.internal @core$_.override LatLngBounds$Companion? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : LatLngBounds$Companion.fromReference( - reference, - ); + reference.isNull ? null : LatLngBounds$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -466,9 +504,7 @@ final class $LatLngBounds$Companion$Type @jni$_.internal @core$_.override LatLngBounds$Companion fromReference(jni$_.JReference reference) => - LatLngBounds$Companion.fromReference( - reference, - ); + LatLngBounds$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -499,13 +535,13 @@ class LatLngBounds extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - LatLngBounds.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + LatLngBounds.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/geometry/LatLngBounds'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/geometry/LatLngBounds', + ); /// The type which includes information such as the signature of this class. static const nullableType = $LatLngBounds$NullableType(); @@ -517,8 +553,8 @@ class LatLngBounds extends jni$_.JObject { /// from: `static public final org.maplibre.android.geometry.LatLngBounds$Companion Companion` /// The returned object must be released after use, by calling the [release] method. - static LatLngBounds$Companion? get Companion => - _id_Companion.get(_class, const $LatLngBounds$Companion$NullableType()); + static LatLngBounds$Companion get Companion => + _id_Companion.get(_class, const $LatLngBounds$Companion$Type()); static final _id_latitudeNorth = _class.instanceFieldId( r'latitudeNorth', @@ -561,42 +597,49 @@ class LatLngBounds extends jni$_.JObject { r'Landroid/os/Parcelable$Creator;', ); - /// from: `static public final android.os.Parcelable$Creator CREATOR` + /// 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()); + static jni$_.JObject get CREATOR => + _id_CREATOR.get(_class, const jni$_.JObjectType()); - static final _id_new$ = _class.constructorId( - r'(DDDD)V', - ); + static final _id_new$ = _class.constructorId(r'(DDDD)V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Double, - jni$_.Double, - jni$_.Double - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, double, double, double, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Double, jni$_.Double, jni$_.Double, jni$_.Double) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + double, + double, + double, + ) + >(); /// from: `public void (double d, double d1, double d2, double d3)` /// The returned object must be released after use, by calling the [release] method. - factory LatLngBounds( - double d, - double d1, - double d2, - double d3, - ) { - return LatLngBounds.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, d, d1, d2, d3) - .reference); + factory LatLngBounds(double d, double d1, double d2, double d3) { + return LatLngBounds.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + d, + d1, + d2, + d3, + ).reference, + ); } static final _id_getCenter = _class.instanceMethodId( @@ -604,23 +647,29 @@ class LatLngBounds extends jni$_.JObject { r'()Lorg/maplibre/android/geometry/LatLng;', ); - static final _getCenter = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getCenter = + 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 org.maplibre.android.geometry.LatLng getCenter()` /// The returned object must be released after use, by calling the [release] method. latlng$_.LatLng getCenter() { - return _getCenter(reference.pointer, _id_getCenter as jni$_.JMethodIDPtr) - .object(const latlng$_.$LatLng$Type()); + return _getCenter( + reference.pointer, + _id_getCenter as jni$_.JMethodIDPtr, + ).object(const latlng$_.$LatLng$Type()); } static final _id_getLatNorth = _class.instanceMethodId( @@ -628,23 +677,28 @@ class LatLngBounds extends jni$_.JObject { r'()D', ); - static final _getLatNorth = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLatNorth = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final double getLatNorth()` double getLatNorth() { return _getLatNorth( - reference.pointer, _id_getLatNorth as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getLatNorth as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_getLatSouth = _class.instanceMethodId( @@ -652,69 +706,80 @@ class LatLngBounds extends jni$_.JObject { r'()D', ); - static final _getLatSouth = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLatSouth = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final double getLatSouth()` double getLatSouth() { return _getLatSouth( - reference.pointer, _id_getLatSouth as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getLatSouth as jni$_.JMethodIDPtr, + ).doubleFloat; } - static final _id_getLonEast = _class.instanceMethodId( - r'getLonEast', - r'()D', - ); + static final _id_getLonEast = _class.instanceMethodId(r'getLonEast', r'()D'); - static final _getLonEast = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLonEast = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final double getLonEast()` double getLonEast() { - return _getLonEast(reference.pointer, _id_getLonEast as jni$_.JMethodIDPtr) - .doubleFloat; + return _getLonEast( + reference.pointer, + _id_getLonEast as jni$_.JMethodIDPtr, + ).doubleFloat; } - static final _id_getLonWest = _class.instanceMethodId( - r'getLonWest', - r'()D', - ); + static final _id_getLonWest = _class.instanceMethodId(r'getLonWest', r'()D'); - static final _getLonWest = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLonWest = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final double getLonWest()` double getLonWest() { - return _getLonWest(reference.pointer, _id_getLonWest as jni$_.JMethodIDPtr) - .doubleFloat; + return _getLonWest( + reference.pointer, + _id_getLonWest as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_getSouthWest = _class.instanceMethodId( @@ -722,24 +787,29 @@ class LatLngBounds extends jni$_.JObject { r'()Lorg/maplibre/android/geometry/LatLng;', ); - static final _getSouthWest = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getSouthWest = + 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 org.maplibre.android.geometry.LatLng getSouthWest()` /// The returned object must be released after use, by calling the [release] method. latlng$_.LatLng getSouthWest() { return _getSouthWest( - reference.pointer, _id_getSouthWest as jni$_.JMethodIDPtr) - .object(const latlng$_.$LatLng$Type()); + reference.pointer, + _id_getSouthWest as jni$_.JMethodIDPtr, + ).object(const latlng$_.$LatLng$Type()); } static final _id_getNorthEast = _class.instanceMethodId( @@ -747,24 +817,29 @@ class LatLngBounds extends jni$_.JObject { r'()Lorg/maplibre/android/geometry/LatLng;', ); - static final _getNorthEast = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getNorthEast = + 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 org.maplibre.android.geometry.LatLng getNorthEast()` /// The returned object must be released after use, by calling the [release] method. latlng$_.LatLng getNorthEast() { return _getNorthEast( - reference.pointer, _id_getNorthEast as jni$_.JMethodIDPtr) - .object(const latlng$_.$LatLng$Type()); + reference.pointer, + _id_getNorthEast as jni$_.JMethodIDPtr, + ).object(const latlng$_.$LatLng$Type()); } static final _id_getSouthEast = _class.instanceMethodId( @@ -772,24 +847,29 @@ class LatLngBounds extends jni$_.JObject { r'()Lorg/maplibre/android/geometry/LatLng;', ); - static final _getSouthEast = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getSouthEast = + 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 org.maplibre.android.geometry.LatLng getSouthEast()` /// The returned object must be released after use, by calling the [release] method. latlng$_.LatLng getSouthEast() { return _getSouthEast( - reference.pointer, _id_getSouthEast as jni$_.JMethodIDPtr) - .object(const latlng$_.$LatLng$Type()); + reference.pointer, + _id_getSouthEast as jni$_.JMethodIDPtr, + ).object(const latlng$_.$LatLng$Type()); } static final _id_getNorthWest = _class.instanceMethodId( @@ -797,24 +877,29 @@ class LatLngBounds extends jni$_.JObject { r'()Lorg/maplibre/android/geometry/LatLng;', ); - static final _getNorthWest = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getNorthWest = + 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 org.maplibre.android.geometry.LatLng getNorthWest()` /// The returned object must be released after use, by calling the [release] method. latlng$_.LatLng getNorthWest() { return _getNorthWest( - reference.pointer, _id_getNorthWest as jni$_.JMethodIDPtr) - .object(const latlng$_.$LatLng$Type()); + reference.pointer, + _id_getNorthWest as jni$_.JMethodIDPtr, + ).object(const latlng$_.$LatLng$Type()); } static final _id_getSpan = _class.instanceMethodId( @@ -822,23 +907,29 @@ class LatLngBounds extends jni$_.JObject { r'()Lorg/maplibre/android/geometry/LatLngSpan;', ); - static final _getSpan = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getSpan = + 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 org.maplibre.android.geometry.LatLngSpan getSpan()` /// The returned object must be released after use, by calling the [release] method. latlngspan$_.LatLngSpan getSpan() { - return _getSpan(reference.pointer, _id_getSpan as jni$_.JMethodIDPtr) - .object(const latlngspan$_.$LatLngSpan$Type()); + return _getSpan( + reference.pointer, + _id_getSpan as jni$_.JMethodIDPtr, + ).object(const latlngspan$_.$LatLngSpan$Type()); } static final _id_getLatitudeSpan = _class.instanceMethodId( @@ -846,23 +937,28 @@ class LatLngBounds extends jni$_.JObject { r'()D', ); - static final _getLatitudeSpan = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLatitudeSpan = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final double getLatitudeSpan()` double getLatitudeSpan() { return _getLatitudeSpan( - reference.pointer, _id_getLatitudeSpan as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getLatitudeSpan as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_getLongitudeSpan = _class.instanceMethodId( @@ -870,23 +966,28 @@ class LatLngBounds extends jni$_.JObject { r'()D', ); - static final _getLongitudeSpan = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLongitudeSpan = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final double getLongitudeSpan()` double getLongitudeSpan() { return _getLongitudeSpan( - reference.pointer, _id_getLongitudeSpan as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getLongitudeSpan as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_isEmptySpan = _class.instanceMethodId( @@ -894,23 +995,28 @@ class LatLngBounds extends jni$_.JObject { r'()Z', ); - static final _isEmptySpan = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isEmptySpan = + 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 final boolean isEmptySpan()` bool isEmptySpan() { return _isEmptySpan( - reference.pointer, _id_isEmptySpan as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_isEmptySpan as jni$_.JMethodIDPtr, + ).boolean; } static final _id_toString$1 = _class.instanceMethodId( @@ -918,23 +1024,29 @@ class LatLngBounds extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + 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 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$_.JStringType()); + return _toString$1( + reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } static final _id_toLatLngs = _class.instanceMethodId( @@ -942,24 +1054,31 @@ class LatLngBounds extends jni$_.JObject { r'()[Lorg/maplibre/android/geometry/LatLng;', ); - static final _toLatLngs = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toLatLngs = + 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 org.maplibre.android.geometry.LatLng[] toLatLngs()` /// The returned object must be released after use, by calling the [release] method. jni$_.JArray toLatLngs() { - return _toLatLngs(reference.pointer, _id_toLatLngs as jni$_.JMethodIDPtr) - .object>( - const jni$_.JArrayType(latlng$_.$LatLng$Type())); + return _toLatLngs( + reference.pointer, + _id_toLatLngs as jni$_.JMethodIDPtr, + ).object>( + const jni$_.JArrayType(latlng$_.$LatLng$Type()), + ); } static final _id_include = _class.instanceMethodId( @@ -967,26 +1086,33 @@ class LatLngBounds extends jni$_.JObject { r'(Lorg/maplibre/android/geometry/LatLng;)Lorg/maplibre/android/geometry/LatLngBounds;', ); - static final _include = 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)>(); + static final _include = + 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 final org.maplibre.android.geometry.LatLngBounds include(org.maplibre.android.geometry.LatLng latLng)` /// The returned object must be released after use, by calling the [release] method. - LatLngBounds include( - latlng$_.LatLng latLng, - ) { + LatLngBounds include(latlng$_.LatLng latLng) { final _$latLng = latLng.reference; - return _include(reference.pointer, _id_include as jni$_.JMethodIDPtr, - _$latLng.pointer) - .object(const $LatLngBounds$Type()); + return _include( + reference.pointer, + _id_include as jni$_.JMethodIDPtr, + _$latLng.pointer, + ).object(const $LatLngBounds$Type()); } static final _id_equals = _class.instanceMethodId( @@ -994,25 +1120,32 @@ class LatLngBounds extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } static final _id_contains = _class.instanceMethodId( @@ -1020,25 +1153,32 @@ class LatLngBounds extends jni$_.JObject { r'(Lorg/maplibre/android/geometry/LatLng;)Z', ); - static final _contains = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _contains = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final boolean contains(org.maplibre.android.geometry.LatLng latLng)` - bool contains( - latlng$_.LatLng latLng, - ) { + bool contains(latlng$_.LatLng latLng) { final _$latLng = latLng.reference; - return _contains(reference.pointer, _id_contains as jni$_.JMethodIDPtr, - _$latLng.pointer) - .boolean; + return _contains( + reference.pointer, + _id_contains as jni$_.JMethodIDPtr, + _$latLng.pointer, + ).boolean; } static final _id_contains$1 = _class.instanceMethodId( @@ -1046,25 +1186,32 @@ class LatLngBounds extends jni$_.JObject { r'(Lorg/maplibre/android/geometry/LatLngBounds;)Z', ); - static final _contains$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _contains$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final boolean contains(org.maplibre.android.geometry.LatLngBounds latLngBounds)` - bool contains$1( - LatLngBounds latLngBounds, - ) { + bool contains$1(LatLngBounds latLngBounds) { final _$latLngBounds = latLngBounds.reference; - return _contains$1(reference.pointer, _id_contains$1 as jni$_.JMethodIDPtr, - _$latLngBounds.pointer) - .boolean; + return _contains$1( + reference.pointer, + _id_contains$1 as jni$_.JMethodIDPtr, + _$latLngBounds.pointer, + ).boolean; } static final _id_union = _class.instanceMethodId( @@ -1072,26 +1219,33 @@ class LatLngBounds extends jni$_.JObject { r'(Lorg/maplibre/android/geometry/LatLngBounds;)Lorg/maplibre/android/geometry/LatLngBounds;', ); - static final _union = 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)>(); + static final _union = + 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 final org.maplibre.android.geometry.LatLngBounds union(org.maplibre.android.geometry.LatLngBounds latLngBounds)` /// The returned object must be released after use, by calling the [release] method. - LatLngBounds union( - LatLngBounds latLngBounds, - ) { + LatLngBounds union(LatLngBounds latLngBounds) { final _$latLngBounds = latLngBounds.reference; - return _union(reference.pointer, _id_union as jni$_.JMethodIDPtr, - _$latLngBounds.pointer) - .object(const $LatLngBounds$Type()); + return _union( + reference.pointer, + _id_union as jni$_.JMethodIDPtr, + _$latLngBounds.pointer, + ).object(const $LatLngBounds$Type()); } static final _id_union$1 = _class.instanceMethodId( @@ -1099,33 +1253,40 @@ class LatLngBounds extends jni$_.JObject { r'(DDDD)Lorg/maplibre/android/geometry/LatLngBounds;', ); - static final _union$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _union$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Double, - jni$_.Double, - jni$_.Double - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, double, double, double, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Double, jni$_.Double, jni$_.Double, jni$_.Double) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + double, + double, + double, + ) + >(); /// from: `public final org.maplibre.android.geometry.LatLngBounds union(double d, double d1, double d2, double d3)` /// The returned object must be released after use, by calling the [release] method. - LatLngBounds union$1( - double d, - double d1, - double d2, - double d3, - ) { + LatLngBounds union$1(double d, double d1, double d2, double d3) { return _union$1( - reference.pointer, _id_union$1 as jni$_.JMethodIDPtr, d, d1, d2, d3) - .object(const $LatLngBounds$Type()); + reference.pointer, + _id_union$1 as jni$_.JMethodIDPtr, + d, + d1, + d2, + d3, + ).object(const $LatLngBounds$Type()); } static final _id_intersect = _class.instanceMethodId( @@ -1133,26 +1294,33 @@ class LatLngBounds extends jni$_.JObject { r'(Lorg/maplibre/android/geometry/LatLngBounds;)Lorg/maplibre/android/geometry/LatLngBounds;', ); - static final _intersect = 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)>(); + static final _intersect = + 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 final org.maplibre.android.geometry.LatLngBounds intersect(org.maplibre.android.geometry.LatLngBounds latLngBounds)` /// The returned object must be released after use, by calling the [release] method. - LatLngBounds? intersect( - LatLngBounds latLngBounds, - ) { + LatLngBounds? intersect(LatLngBounds latLngBounds) { final _$latLngBounds = latLngBounds.reference; - return _intersect(reference.pointer, _id_intersect as jni$_.JMethodIDPtr, - _$latLngBounds.pointer) - .object(const $LatLngBounds$NullableType()); + return _intersect( + reference.pointer, + _id_intersect as jni$_.JMethodIDPtr, + _$latLngBounds.pointer, + ).object(const $LatLngBounds$NullableType()); } static final _id_intersect$1 = _class.instanceMethodId( @@ -1160,56 +1328,66 @@ class LatLngBounds extends jni$_.JObject { r'(DDDD)Lorg/maplibre/android/geometry/LatLngBounds;', ); - static final _intersect$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _intersect$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Double, - jni$_.Double, - jni$_.Double - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, double, double, double, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Double, jni$_.Double, jni$_.Double, jni$_.Double) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + double, + double, + double, + ) + >(); /// from: `public final org.maplibre.android.geometry.LatLngBounds intersect(double d, double d1, double d2, double d3)` /// The returned object must be released after use, by calling the [release] method. - LatLngBounds intersect$1( - double d, - double d1, - double d2, - double d3, - ) { - return _intersect$1(reference.pointer, - _id_intersect$1 as jni$_.JMethodIDPtr, d, d1, d2, d3) - .object(const $LatLngBounds$Type()); + LatLngBounds intersect$1(double d, double d1, double d2, double d3) { + return _intersect$1( + reference.pointer, + _id_intersect$1 as jni$_.JMethodIDPtr, + d, + d1, + d2, + d3, + ).object(const $LatLngBounds$Type()); } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } static final _id_describeContents = _class.instanceMethodId( @@ -1217,23 +1395,28 @@ class LatLngBounds extends jni$_.JObject { r'()I', ); - static final _describeContents = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _describeContents = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int describeContents()` int describeContents() { return _describeContents( - reference.pointer, _id_describeContents as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_describeContents as jni$_.JMethodIDPtr, + ).integer; } static final _id_writeToParcel = _class.instanceMethodId( @@ -1241,27 +1424,34 @@ class LatLngBounds extends jni$_.JObject { r'(Landroid/os/Parcel;I)V', ); - static final _writeToParcel = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _writeToParcel = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public void writeToParcel(android.os.Parcel parcel, int i)` - void writeToParcel( - jni$_.JObject parcel, - int i, - ) { + void writeToParcel(jni$_.JObject parcel, int i) { final _$parcel = parcel.reference; - _writeToParcel(reference.pointer, _id_writeToParcel as jni$_.JMethodIDPtr, - _$parcel.pointer, i) - .check(); + _writeToParcel( + reference.pointer, + _id_writeToParcel as jni$_.JMethodIDPtr, + _$parcel.pointer, + i, + ).check(); } static final _id_world = _class.staticMethodId( @@ -1269,23 +1459,29 @@ class LatLngBounds extends jni$_.JObject { r'()Lorg/maplibre/android/geometry/LatLngBounds;', ); - static final _world = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _world = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public final org.maplibre.android.geometry.LatLngBounds world()` /// The returned object must be released after use, by calling the [release] method. - static LatLngBounds? world() { - return _world(_class.reference.pointer, _id_world as jni$_.JMethodIDPtr) - .object(const $LatLngBounds$NullableType()); + static LatLngBounds world() { + return _world( + _class.reference.pointer, + _id_world as jni$_.JMethodIDPtr, + ).object(const $LatLngBounds$Type()); } static final _id_from = _class.staticMethodId( @@ -1293,33 +1489,40 @@ class LatLngBounds extends jni$_.JObject { r'(DDDD)Lorg/maplibre/android/geometry/LatLngBounds;', ); - static final _from = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _from = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Double, - jni$_.Double, - jni$_.Double - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, double, double, double, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Double, jni$_.Double, jni$_.Double, jni$_.Double) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + double, + double, + double, + ) + >(); /// from: `static public final org.maplibre.android.geometry.LatLngBounds from(double d, double d1, double d2, double d3)` /// The returned object must be released after use, by calling the [release] method. - static LatLngBounds? from( - double d, - double d1, - double d2, - double d3, - ) { - return _from(_class.reference.pointer, _id_from as jni$_.JMethodIDPtr, d, - d1, d2, d3) - .object(const $LatLngBounds$NullableType()); + static LatLngBounds from(double d, double d1, double d2, double d3) { + return _from( + _class.reference.pointer, + _id_from as jni$_.JMethodIDPtr, + d, + d1, + d2, + d3, + ).object(const $LatLngBounds$Type()); } static final _id_from$1 = _class.staticMethodId( @@ -1327,27 +1530,36 @@ class LatLngBounds extends jni$_.JObject { r'(III)Lorg/maplibre/android/geometry/LatLngBounds;', ); - static final _from$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32, jni$_.Int32, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int, int, int)>(); + static final _from$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32, jni$_.Int32, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + int, + int, + ) + >(); /// from: `static public final org.maplibre.android.geometry.LatLngBounds from(int i, int i1, int i2)` /// The returned object must be released after use, by calling the [release] method. - static LatLngBounds? from$1( - int i, - int i1, - int i2, - ) { - return _from$1(_class.reference.pointer, _id_from$1 as jni$_.JMethodIDPtr, - i, i1, i2) - .object(const $LatLngBounds$NullableType()); + static LatLngBounds from$1(int i, int i1, int i2) { + return _from$1( + _class.reference.pointer, + _id_from$1 as jni$_.JMethodIDPtr, + i, + i1, + i2, + ).object(const $LatLngBounds$Type()); } } @@ -1361,11 +1573,8 @@ final class $LatLngBounds$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - LatLngBounds? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : LatLngBounds.fromReference( - reference, - ); + LatLngBounds? fromReference(jni$_.JReference reference) => + reference.isNull ? null : LatLngBounds.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1399,9 +1608,7 @@ final class $LatLngBounds$Type extends jni$_.JObjType { @jni$_.internal @core$_.override LatLngBounds fromReference(jni$_.JReference reference) => - LatLngBounds.fromReference( - reference, - ); + LatLngBounds.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/geometry/LatLngQuad.dart b/lib/src/platform/android/jni/org/maplibre/android/geometry/LatLngQuad.dart index eabe94c7..86a6c9aa 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/geometry/LatLngQuad.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/geometry/LatLngQuad.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -59,13 +47,13 @@ class LatLngQuad$Companion extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - LatLngQuad$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + LatLngQuad$Companion.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/geometry/LatLngQuad$Companion'); + r'org/maplibre/android/geometry/LatLngQuad$Companion', + ); /// The type which includes information such as the signature of this class. static const nullableType = $LatLngQuad$Companion$NullableType(); @@ -74,27 +62,36 @@ class LatLngQuad$Companion extends jni$_.JObject { 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)>(); + 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 LatLngQuad$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { + factory LatLngQuad$Companion(jni$_.JObject? defaultConstructorMarker) { final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return LatLngQuad$Companion.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$defaultConstructorMarker.pointer) - .reference); + return LatLngQuad$Companion.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -111,11 +108,7 @@ final class $LatLngQuad$Companion$NullableType @jni$_.internal @core$_.override LatLngQuad$Companion? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : LatLngQuad$Companion.fromReference( - reference, - ); + reference.isNull ? null : LatLngQuad$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -151,9 +144,7 @@ final class $LatLngQuad$Companion$Type @jni$_.internal @core$_.override LatLngQuad$Companion fromReference(jni$_.JReference reference) => - LatLngQuad$Companion.fromReference( - reference, - ); + LatLngQuad$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -184,13 +175,13 @@ class LatLngQuad extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - LatLngQuad.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + LatLngQuad.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/geometry/LatLngQuad'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/geometry/LatLngQuad', + ); /// The type which includes information such as the signature of this class. static const nullableType = $LatLngQuad$NullableType(); @@ -202,43 +193,50 @@ class LatLngQuad extends jni$_.JObject { /// from: `static public final org.maplibre.android.geometry.LatLngQuad$Companion Companion` /// The returned object must be released after use, by calling the [release] method. - static LatLngQuad$Companion? get Companion => - _id_Companion.get(_class, const $LatLngQuad$Companion$NullableType()); + static LatLngQuad$Companion get Companion => + _id_Companion.get(_class, const $LatLngQuad$Companion$Type()); static final _id_CREATOR = _class.staticFieldId( r'CREATOR', r'Landroid/os/Parcelable$Creator;', ); - /// from: `static public final android.os.Parcelable$Creator CREATOR` + /// 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()); + static jni$_.JObject get CREATOR => + _id_CREATOR.get(_class, const jni$_.JObjectType()); static final _id_new$ = _class.constructorId( r'(Lorg/maplibre/android/geometry/LatLng;Lorg/maplibre/android/geometry/LatLng;Lorg/maplibre/android/geometry/LatLng;Lorg/maplibre/android/geometry/LatLng;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (org.maplibre.android.geometry.LatLng latLng, org.maplibre.android.geometry.LatLng latLng1, org.maplibre.android.geometry.LatLng latLng2, org.maplibre.android.geometry.LatLng latLng3)` /// The returned object must be released after use, by calling the [release] method. @@ -252,14 +250,16 @@ class LatLngQuad extends jni$_.JObject { final _$latLng1 = latLng1.reference; final _$latLng2 = latLng2.reference; final _$latLng3 = latLng3.reference; - return LatLngQuad.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$latLng.pointer, - _$latLng1.pointer, - _$latLng2.pointer, - _$latLng3.pointer) - .reference); + return LatLngQuad.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$latLng.pointer, + _$latLng1.pointer, + _$latLng2.pointer, + _$latLng3.pointer, + ).reference, + ); } static final _id_getTopLeft = _class.instanceMethodId( @@ -267,23 +267,29 @@ class LatLngQuad extends jni$_.JObject { r'()Lorg/maplibre/android/geometry/LatLng;', ); - static final _getTopLeft = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getTopLeft = + 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 org.maplibre.android.geometry.LatLng getTopLeft()` /// The returned object must be released after use, by calling the [release] method. latlng$_.LatLng getTopLeft() { - return _getTopLeft(reference.pointer, _id_getTopLeft as jni$_.JMethodIDPtr) - .object(const latlng$_.$LatLng$Type()); + return _getTopLeft( + reference.pointer, + _id_getTopLeft as jni$_.JMethodIDPtr, + ).object(const latlng$_.$LatLng$Type()); } static final _id_getTopRight = _class.instanceMethodId( @@ -291,24 +297,29 @@ class LatLngQuad extends jni$_.JObject { r'()Lorg/maplibre/android/geometry/LatLng;', ); - static final _getTopRight = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getTopRight = + 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 org.maplibre.android.geometry.LatLng getTopRight()` /// The returned object must be released after use, by calling the [release] method. latlng$_.LatLng getTopRight() { return _getTopRight( - reference.pointer, _id_getTopRight as jni$_.JMethodIDPtr) - .object(const latlng$_.$LatLng$Type()); + reference.pointer, + _id_getTopRight as jni$_.JMethodIDPtr, + ).object(const latlng$_.$LatLng$Type()); } static final _id_getBottomRight = _class.instanceMethodId( @@ -316,24 +327,29 @@ class LatLngQuad extends jni$_.JObject { r'()Lorg/maplibre/android/geometry/LatLng;', ); - static final _getBottomRight = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getBottomRight = + 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 org.maplibre.android.geometry.LatLng getBottomRight()` /// The returned object must be released after use, by calling the [release] method. latlng$_.LatLng getBottomRight() { return _getBottomRight( - reference.pointer, _id_getBottomRight as jni$_.JMethodIDPtr) - .object(const latlng$_.$LatLng$Type()); + reference.pointer, + _id_getBottomRight as jni$_.JMethodIDPtr, + ).object(const latlng$_.$LatLng$Type()); } static final _id_getBottomLeft = _class.instanceMethodId( @@ -341,24 +357,29 @@ class LatLngQuad extends jni$_.JObject { r'()Lorg/maplibre/android/geometry/LatLng;', ); - static final _getBottomLeft = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getBottomLeft = + 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 org.maplibre.android.geometry.LatLng getBottomLeft()` /// The returned object must be released after use, by calling the [release] method. latlng$_.LatLng getBottomLeft() { return _getBottomLeft( - reference.pointer, _id_getBottomLeft as jni$_.JMethodIDPtr) - .object(const latlng$_.$LatLng$Type()); + reference.pointer, + _id_getBottomLeft as jni$_.JMethodIDPtr, + ).object(const latlng$_.$LatLng$Type()); } static final _id_describeContents = _class.instanceMethodId( @@ -366,23 +387,28 @@ class LatLngQuad extends jni$_.JObject { r'()I', ); - static final _describeContents = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _describeContents = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int describeContents()` int describeContents() { return _describeContents( - reference.pointer, _id_describeContents as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_describeContents as jni$_.JMethodIDPtr, + ).integer; } static final _id_writeToParcel = _class.instanceMethodId( @@ -390,27 +416,34 @@ class LatLngQuad extends jni$_.JObject { r'(Landroid/os/Parcel;I)V', ); - static final _writeToParcel = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _writeToParcel = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public void writeToParcel(android.os.Parcel parcel, int i)` - void writeToParcel( - jni$_.JObject parcel, - int i, - ) { + void writeToParcel(jni$_.JObject parcel, int i) { final _$parcel = parcel.reference; - _writeToParcel(reference.pointer, _id_writeToParcel as jni$_.JMethodIDPtr, - _$parcel.pointer, i) - .check(); + _writeToParcel( + reference.pointer, + _id_writeToParcel as jni$_.JMethodIDPtr, + _$parcel.pointer, + i, + ).check(); } static final _id_equals = _class.instanceMethodId( @@ -418,48 +451,58 @@ class LatLngQuad extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } } @@ -473,11 +516,8 @@ final class $LatLngQuad$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - LatLngQuad? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : LatLngQuad.fromReference( - reference, - ); + LatLngQuad? fromReference(jni$_.JReference reference) => + reference.isNull ? null : LatLngQuad.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -511,9 +551,7 @@ final class $LatLngQuad$Type extends jni$_.JObjType { @jni$_.internal @core$_.override LatLngQuad fromReference(jni$_.JReference reference) => - LatLngQuad.fromReference( - reference, - ); + LatLngQuad.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/geometry/LatLngSpan.dart b/lib/src/platform/android/jni/org/maplibre/android/geometry/LatLngSpan.dart index ae713753..ae914912 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/geometry/LatLngSpan.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/geometry/LatLngSpan.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class LatLngSpan$Companion extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - LatLngSpan$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + LatLngSpan$Companion.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/geometry/LatLngSpan$Companion'); + r'org/maplibre/android/geometry/LatLngSpan$Companion', + ); /// The type which includes information such as the signature of this class. static const nullableType = $LatLngSpan$Companion$NullableType(); @@ -72,27 +60,36 @@ class LatLngSpan$Companion extends jni$_.JObject { 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)>(); + 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 LatLngSpan$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { + factory LatLngSpan$Companion(jni$_.JObject? defaultConstructorMarker) { final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return LatLngSpan$Companion.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$defaultConstructorMarker.pointer) - .reference); + return LatLngSpan$Companion.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -109,11 +106,7 @@ final class $LatLngSpan$Companion$NullableType @jni$_.internal @core$_.override LatLngSpan$Companion? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : LatLngSpan$Companion.fromReference( - reference, - ); + reference.isNull ? null : LatLngSpan$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -149,9 +142,7 @@ final class $LatLngSpan$Companion$Type @jni$_.internal @core$_.override LatLngSpan$Companion fromReference(jni$_.JReference reference) => - LatLngSpan$Companion.fromReference( - reference, - ); + LatLngSpan$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -182,13 +173,13 @@ class LatLngSpan extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - LatLngSpan.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + LatLngSpan.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/geometry/LatLngSpan'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/geometry/LatLngSpan', + ); /// The type which includes information such as the signature of this class. static const nullableType = $LatLngSpan$NullableType(); @@ -200,41 +191,46 @@ class LatLngSpan extends jni$_.JObject { /// from: `static public final org.maplibre.android.geometry.LatLngSpan$Companion Companion` /// The returned object must be released after use, by calling the [release] method. - static LatLngSpan$Companion? get Companion => - _id_Companion.get(_class, const $LatLngSpan$Companion$NullableType()); + static LatLngSpan$Companion get Companion => + _id_Companion.get(_class, const $LatLngSpan$Companion$Type()); static final _id_CREATOR = _class.staticFieldId( r'CREATOR', r'Landroid/os/Parcelable$Creator;', ); - /// from: `static public final android.os.Parcelable$Creator CREATOR` + /// 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()); + static jni$_.JObject get CREATOR => + _id_CREATOR.get(_class, const jni$_.JObjectType()); static final _id_getLatitudeSpan = _class.instanceMethodId( r'getLatitudeSpan', r'()D', ); - static final _getLatitudeSpan = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLatitudeSpan = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final double getLatitudeSpan()` double getLatitudeSpan() { return _getLatitudeSpan( - reference.pointer, _id_getLatitudeSpan as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getLatitudeSpan as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_setLatitudeSpan = _class.instanceMethodId( @@ -242,23 +238,31 @@ class LatLngSpan extends jni$_.JObject { r'(D)V', ); - static final _setLatitudeSpan = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setLatitudeSpan = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public final void setLatitudeSpan(double d)` - void setLatitudeSpan( - double d, - ) { + void setLatitudeSpan(double d) { _setLatitudeSpan( - reference.pointer, _id_setLatitudeSpan as jni$_.JMethodIDPtr, d) - .check(); + reference.pointer, + _id_setLatitudeSpan as jni$_.JMethodIDPtr, + d, + ).check(); } static final _id_getLongitudeSpan = _class.instanceMethodId( @@ -266,23 +270,28 @@ class LatLngSpan extends jni$_.JObject { r'()D', ); - static final _getLongitudeSpan = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLongitudeSpan = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final double getLongitudeSpan()` double getLongitudeSpan() { return _getLongitudeSpan( - reference.pointer, _id_getLongitudeSpan as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getLongitudeSpan as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_setLongitudeSpan = _class.instanceMethodId( @@ -290,49 +299,65 @@ class LatLngSpan extends jni$_.JObject { r'(D)V', ); - static final _setLongitudeSpan = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setLongitudeSpan = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public final void setLongitudeSpan(double d)` - void setLongitudeSpan( - double d, - ) { + void setLongitudeSpan(double d) { _setLongitudeSpan( - reference.pointer, _id_setLongitudeSpan as jni$_.JMethodIDPtr, d) - .check(); + reference.pointer, + _id_setLongitudeSpan as jni$_.JMethodIDPtr, + d, + ).check(); } - static final _id_new$ = _class.constructorId( - r'(DD)V', - ); + static final _id_new$ = _class.constructorId(r'(DD)V'); - static final _new$ = 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)>(); + static final _new$ = + 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 (double d, double d1)` /// The returned object must be released after use, by calling the [release] method. - factory LatLngSpan( - double d, - double d1, - ) { + factory LatLngSpan(double d, double d1) { return LatLngSpan.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr, d, d1) - .reference); + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + d, + d1, + ).reference, + ); } static final _id_equals = _class.instanceMethodId( @@ -340,25 +365,32 @@ class LatLngSpan extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } static final _id_describeContents = _class.instanceMethodId( @@ -366,23 +398,28 @@ class LatLngSpan extends jni$_.JObject { r'()I', ); - static final _describeContents = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _describeContents = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int describeContents()` int describeContents() { return _describeContents( - reference.pointer, _id_describeContents as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_describeContents as jni$_.JMethodIDPtr, + ).integer; } static final _id_writeToParcel = _class.instanceMethodId( @@ -390,72 +427,86 @@ class LatLngSpan extends jni$_.JObject { r'(Landroid/os/Parcel;I)V', ); - static final _writeToParcel = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _writeToParcel = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public void writeToParcel(android.os.Parcel parcel, int i)` - void writeToParcel( - jni$_.JObject parcel, - int i, - ) { + void writeToParcel(jni$_.JObject parcel, int i) { final _$parcel = parcel.reference; - _writeToParcel(reference.pointer, _id_writeToParcel as jni$_.JMethodIDPtr, - _$parcel.pointer, i) - .check(); + _writeToParcel( + reference.pointer, + _id_writeToParcel as jni$_.JMethodIDPtr, + _$parcel.pointer, + i, + ).check(); } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } static final _id_new$1 = _class.constructorId( r'(Landroid/os/Parcel;Lkotlin/jvm/internal/DefaultConstructorMarker;)V', ); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `synthetic public void (android.os.Parcel parcel, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` /// The returned object must be released after use, by calling the [release] method. @@ -466,12 +517,14 @@ class LatLngSpan extends jni$_.JObject { final _$parcel = parcel?.reference ?? jni$_.jNullReference; final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return LatLngSpan.fromReference(_new$1( - _class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, - _$parcel.pointer, - _$defaultConstructorMarker.pointer) - .reference); + return LatLngSpan.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$parcel.pointer, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -485,11 +538,8 @@ final class $LatLngSpan$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - LatLngSpan? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : LatLngSpan.fromReference( - reference, - ); + LatLngSpan? fromReference(jni$_.JReference reference) => + reference.isNull ? null : LatLngSpan.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -523,9 +573,7 @@ final class $LatLngSpan$Type extends jni$_.JObjType { @jni$_.internal @core$_.override LatLngSpan fromReference(jni$_.JReference reference) => - LatLngSpan.fromReference( - reference, - ); + LatLngSpan.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/geometry/ProjectedMeters.dart b/lib/src/platform/android/jni/org/maplibre/android/geometry/ProjectedMeters.dart index f1e898a6..e35a2e53 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/geometry/ProjectedMeters.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/geometry/ProjectedMeters.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class ProjectedMeters$Companion extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - ProjectedMeters$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ProjectedMeters$Companion.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/geometry/ProjectedMeters$Companion'); + r'org/maplibre/android/geometry/ProjectedMeters$Companion', + ); /// The type which includes information such as the signature of this class. static const nullableType = $ProjectedMeters$Companion$NullableType(); @@ -72,29 +60,36 @@ class ProjectedMeters$Companion extends jni$_.JObject { 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)>(); + 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 ProjectedMeters$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { + factory ProjectedMeters$Companion(jni$_.JObject? defaultConstructorMarker) { final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return ProjectedMeters$Companion.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$defaultConstructorMarker.pointer) - .reference); + return ProjectedMeters$Companion.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -112,10 +107,8 @@ final class $ProjectedMeters$Companion$NullableType @core$_.override ProjectedMeters$Companion? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : ProjectedMeters$Companion.fromReference( - reference, - ); + ? null + : ProjectedMeters$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -151,9 +144,7 @@ final class $ProjectedMeters$Companion$Type @jni$_.internal @core$_.override ProjectedMeters$Companion fromReference(jni$_.JReference reference) => - ProjectedMeters$Companion.fromReference( - reference, - ); + ProjectedMeters$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -184,13 +175,13 @@ class ProjectedMeters extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - ProjectedMeters.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ProjectedMeters.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/geometry/ProjectedMeters'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/geometry/ProjectedMeters', + ); /// The type which includes information such as the signature of this class. static const nullableType = $ProjectedMeters$NullableType(); @@ -202,116 +193,141 @@ class ProjectedMeters extends jni$_.JObject { /// from: `static public final org.maplibre.android.geometry.ProjectedMeters$Companion Companion` /// The returned object must be released after use, by calling the [release] method. - static ProjectedMeters$Companion? get Companion => _id_Companion.get( - _class, const $ProjectedMeters$Companion$NullableType()); + static ProjectedMeters$Companion get Companion => + _id_Companion.get(_class, const $ProjectedMeters$Companion$Type()); static final _id_CREATOR = _class.staticFieldId( r'CREATOR', r'Landroid/os/Parcelable$Creator;', ); - /// from: `static public final android.os.Parcelable$Creator CREATOR` + /// 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()); + static jni$_.JObject get CREATOR => + _id_CREATOR.get(_class, const jni$_.JObjectType()); static final _id_getNorthing = _class.instanceMethodId( r'getNorthing', r'()D', ); - static final _getNorthing = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getNorthing = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final double getNorthing()` double getNorthing() { return _getNorthing( - reference.pointer, _id_getNorthing as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getNorthing as jni$_.JMethodIDPtr, + ).doubleFloat; } - static final _id_getEasting = _class.instanceMethodId( - r'getEasting', - r'()D', - ); + static final _id_getEasting = _class.instanceMethodId(r'getEasting', r'()D'); - static final _getEasting = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getEasting = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final double getEasting()` double getEasting() { - return _getEasting(reference.pointer, _id_getEasting as jni$_.JMethodIDPtr) - .doubleFloat; + return _getEasting( + reference.pointer, + _id_getEasting as jni$_.JMethodIDPtr, + ).doubleFloat; } - static final _id_new$ = _class.constructorId( - r'(DD)V', - ); + static final _id_new$ = _class.constructorId(r'(DD)V'); - static final _new$ = 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)>(); + static final _new$ = + 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 (double d, double d1)` /// The returned object must be released after use, by calling the [release] method. - factory ProjectedMeters( - double d, - double d1, - ) { + factory ProjectedMeters(double d, double d1) { return ProjectedMeters.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr, d, d1) - .reference); + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + d, + d1, + ).reference, + ); } static final _id_new$1 = _class.constructorId( r'(Lorg/maplibre/android/geometry/ProjectedMeters;)V', ); - static final _new$1 = 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)>(); + static final _new$1 = + 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: `public void (org.maplibre.android.geometry.ProjectedMeters projectedMeters)` /// The returned object must be released after use, by calling the [release] method. - factory ProjectedMeters.new$1( - ProjectedMeters projectedMeters, - ) { + factory ProjectedMeters.new$1(ProjectedMeters projectedMeters) { final _$projectedMeters = projectedMeters.reference; - return ProjectedMeters.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$projectedMeters.pointer) - .reference); + return ProjectedMeters.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$projectedMeters.pointer, + ).reference, + ); } static final _id_equals = _class.instanceMethodId( @@ -319,48 +335,58 @@ class ProjectedMeters extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } static final _id_toString$1 = _class.instanceMethodId( @@ -368,23 +394,29 @@ class ProjectedMeters extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + 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 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$_.JStringType()); + return _toString$1( + reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } static final _id_describeContents = _class.instanceMethodId( @@ -392,23 +424,28 @@ class ProjectedMeters extends jni$_.JObject { r'()I', ); - static final _describeContents = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _describeContents = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int describeContents()` int describeContents() { return _describeContents( - reference.pointer, _id_describeContents as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_describeContents as jni$_.JMethodIDPtr, + ).integer; } static final _id_writeToParcel = _class.instanceMethodId( @@ -416,49 +453,60 @@ class ProjectedMeters extends jni$_.JObject { r'(Landroid/os/Parcel;I)V', ); - static final _writeToParcel = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _writeToParcel = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public void writeToParcel(android.os.Parcel parcel, int i)` - void writeToParcel( - jni$_.JObject parcel, - int i, - ) { + void writeToParcel(jni$_.JObject parcel, int i) { final _$parcel = parcel.reference; - _writeToParcel(reference.pointer, _id_writeToParcel as jni$_.JMethodIDPtr, - _$parcel.pointer, i) - .check(); + _writeToParcel( + reference.pointer, + _id_writeToParcel as jni$_.JMethodIDPtr, + _$parcel.pointer, + i, + ).check(); } static final _id_new$2 = _class.constructorId( r'(Landroid/os/Parcel;Lkotlin/jvm/internal/DefaultConstructorMarker;)V', ); - static final _new$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `synthetic public void (android.os.Parcel parcel, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` /// The returned object must be released after use, by calling the [release] method. @@ -469,12 +517,14 @@ class ProjectedMeters extends jni$_.JObject { final _$parcel = parcel?.reference ?? jni$_.jNullReference; final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return ProjectedMeters.fromReference(_new$2( - _class.reference.pointer, - _id_new$2 as jni$_.JMethodIDPtr, - _$parcel.pointer, - _$defaultConstructorMarker.pointer) - .reference); + return ProjectedMeters.fromReference( + _new$2( + _class.reference.pointer, + _id_new$2 as jni$_.JMethodIDPtr, + _$parcel.pointer, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -489,11 +539,8 @@ final class $ProjectedMeters$NullableType @jni$_.internal @core$_.override - ProjectedMeters? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : ProjectedMeters.fromReference( - reference, - ); + ProjectedMeters? fromReference(jni$_.JReference reference) => + reference.isNull ? null : ProjectedMeters.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -527,9 +574,7 @@ final class $ProjectedMeters$Type extends jni$_.JObjType { @jni$_.internal @core$_.override ProjectedMeters fromReference(jni$_.JReference reference) => - ProjectedMeters.fromReference( - reference, - ); + ProjectedMeters.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/geometry/VisibleRegion.dart b/lib/src/platform/android/jni/org/maplibre/android/geometry/VisibleRegion.dart index 52d5d8de..49a184d1 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/geometry/VisibleRegion.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/geometry/VisibleRegion.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -61,13 +49,13 @@ class VisibleRegion$Companion extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - VisibleRegion$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + VisibleRegion$Companion.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/geometry/VisibleRegion$Companion'); + r'org/maplibre/android/geometry/VisibleRegion$Companion', + ); /// The type which includes information such as the signature of this class. static const nullableType = $VisibleRegion$Companion$NullableType(); @@ -76,27 +64,36 @@ class VisibleRegion$Companion extends jni$_.JObject { 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)>(); + 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 VisibleRegion$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { + factory VisibleRegion$Companion(jni$_.JObject? defaultConstructorMarker) { final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return VisibleRegion$Companion.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$defaultConstructorMarker.pointer) - .reference); + return VisibleRegion$Companion.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -114,10 +111,8 @@ final class $VisibleRegion$Companion$NullableType @core$_.override VisibleRegion$Companion? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : VisibleRegion$Companion.fromReference( - reference, - ); + ? null + : VisibleRegion$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -153,9 +148,7 @@ final class $VisibleRegion$Companion$Type @jni$_.internal @core$_.override VisibleRegion$Companion fromReference(jni$_.JReference reference) => - VisibleRegion$Companion.fromReference( - reference, - ); + VisibleRegion$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -186,13 +179,13 @@ class VisibleRegion extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - VisibleRegion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + VisibleRegion.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/geometry/VisibleRegion'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/geometry/VisibleRegion', + ); /// The type which includes information such as the signature of this class. static const nullableType = $VisibleRegion$NullableType(); @@ -204,8 +197,8 @@ class VisibleRegion extends jni$_.JObject { /// from: `static public final org.maplibre.android.geometry.VisibleRegion$Companion Companion` /// The returned object must be released after use, by calling the [release] method. - static VisibleRegion$Companion? get Companion => - _id_Companion.get(_class, const $VisibleRegion$Companion$NullableType()); + static VisibleRegion$Companion get Companion => + _id_Companion.get(_class, const $VisibleRegion$Companion$Type()); static final _id_farLeft = _class.instanceFieldId( r'farLeft', @@ -262,37 +255,44 @@ class VisibleRegion extends jni$_.JObject { r'Landroid/os/Parcelable$Creator;', ); - /// from: `static public final android.os.Parcelable$Creator CREATOR` + /// 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()); + static jni$_.JObject get CREATOR => + _id_CREATOR.get(_class, const jni$_.JObjectType()); static final _id_new$ = _class.constructorId( r'(Lorg/maplibre/android/geometry/LatLng;Lorg/maplibre/android/geometry/LatLng;Lorg/maplibre/android/geometry/LatLng;Lorg/maplibre/android/geometry/LatLng;Lorg/maplibre/android/geometry/LatLngBounds;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (org.maplibre.android.geometry.LatLng latLng, org.maplibre.android.geometry.LatLng latLng1, org.maplibre.android.geometry.LatLng latLng2, org.maplibre.android.geometry.LatLng latLng3, org.maplibre.android.geometry.LatLngBounds latLngBounds)` /// The returned object must be released after use, by calling the [release] method. @@ -308,15 +308,17 @@ class VisibleRegion extends jni$_.JObject { final _$latLng2 = latLng2.reference; final _$latLng3 = latLng3.reference; final _$latLngBounds = latLngBounds.reference; - return VisibleRegion.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$latLng.pointer, - _$latLng1.pointer, - _$latLng2.pointer, - _$latLng3.pointer, - _$latLngBounds.pointer) - .reference); + return VisibleRegion.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$latLng.pointer, + _$latLng1.pointer, + _$latLng2.pointer, + _$latLng3.pointer, + _$latLngBounds.pointer, + ).reference, + ); } static final _id_equals = _class.instanceMethodId( @@ -324,25 +326,32 @@ class VisibleRegion extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } static final _id_toString$1 = _class.instanceMethodId( @@ -350,46 +359,55 @@ class VisibleRegion extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + 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 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$_.JStringType()); + return _toString$1( + reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } static final _id_describeContents = _class.instanceMethodId( @@ -397,23 +415,28 @@ class VisibleRegion extends jni$_.JObject { r'()I', ); - static final _describeContents = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _describeContents = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int describeContents()` int describeContents() { return _describeContents( - reference.pointer, _id_describeContents as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_describeContents as jni$_.JMethodIDPtr, + ).integer; } static final _id_writeToParcel = _class.instanceMethodId( @@ -421,49 +444,60 @@ class VisibleRegion extends jni$_.JObject { r'(Landroid/os/Parcel;I)V', ); - static final _writeToParcel = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _writeToParcel = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public void writeToParcel(android.os.Parcel parcel, int i)` - void writeToParcel( - jni$_.JObject parcel, - int i, - ) { + void writeToParcel(jni$_.JObject parcel, int i) { final _$parcel = parcel.reference; - _writeToParcel(reference.pointer, _id_writeToParcel as jni$_.JMethodIDPtr, - _$parcel.pointer, i) - .check(); + _writeToParcel( + reference.pointer, + _id_writeToParcel as jni$_.JMethodIDPtr, + _$parcel.pointer, + i, + ).check(); } static final _id_new$1 = _class.constructorId( r'(Landroid/os/Parcel;Lkotlin/jvm/internal/DefaultConstructorMarker;)V', ); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `synthetic public void (android.os.Parcel parcel, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` /// The returned object must be released after use, by calling the [release] method. @@ -474,12 +508,14 @@ class VisibleRegion extends jni$_.JObject { final _$parcel = parcel?.reference ?? jni$_.jNullReference; final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return VisibleRegion.fromReference(_new$1( - _class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, - _$parcel.pointer, - _$defaultConstructorMarker.pointer) - .reference); + return VisibleRegion.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$parcel.pointer, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -493,11 +529,8 @@ final class $VisibleRegion$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - VisibleRegion? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : VisibleRegion.fromReference( - reference, - ); + VisibleRegion? fromReference(jni$_.JReference reference) => + reference.isNull ? null : VisibleRegion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -531,9 +564,7 @@ final class $VisibleRegion$Type extends jni$_.JObjType { @jni$_.internal @core$_.override VisibleRegion fromReference(jni$_.JReference reference) => - VisibleRegion.fromReference( - reference, - ); + VisibleRegion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/geometry/_package.dart b/lib/src/platform/android/jni/org/maplibre/android/geometry/_package.dart index 9b6de860..57f42cce 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/geometry/_package.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/geometry/_package.dart @@ -1,3 +1,4 @@ +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! export 'LatLng.dart'; export 'LatLngBounds.dart'; export 'LatLngQuad.dart'; diff --git a/lib/src/platform/android/jni/org/maplibre/android/http/HttpIdentifier.dart b/lib/src/platform/android/jni/org/maplibre/android/http/HttpIdentifier.dart index 4a166da2..14c0910e 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/http/HttpIdentifier.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/http/HttpIdentifier.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class HttpIdentifier extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - HttpIdentifier.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + HttpIdentifier.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/http/HttpIdentifier'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/http/HttpIdentifier', + ); /// The type which includes information such as the signature of this class. static const nullableType = $HttpIdentifier$NullableType(); @@ -73,24 +61,29 @@ class HttpIdentifier extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getIdentifier = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getIdentifier = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public java.lang.String getIdentifier()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? getIdentifier() { return _getIdentifier( - _class.reference.pointer, _id_getIdentifier as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + _class.reference.pointer, + _id_getIdentifier as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } } @@ -105,11 +98,8 @@ final class $HttpIdentifier$NullableType @jni$_.internal @core$_.override - HttpIdentifier? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : HttpIdentifier.fromReference( - reference, - ); + HttpIdentifier? fromReference(jni$_.JReference reference) => + reference.isNull ? null : HttpIdentifier.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -143,9 +133,7 @@ final class $HttpIdentifier$Type extends jni$_.JObjType { @jni$_.internal @core$_.override HttpIdentifier fromReference(jni$_.JReference reference) => - HttpIdentifier.fromReference( - reference, - ); + HttpIdentifier.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/http/HttpLogger.dart b/lib/src/platform/android/jni/org/maplibre/android/http/HttpLogger.dart index 47ab1b99..594288b1 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/http/HttpLogger.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/http/HttpLogger.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,21 +45,18 @@ class HttpLogger extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - HttpLogger.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + HttpLogger.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/http/HttpLogger'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/http/HttpLogger', + ); /// The type which includes information such as the signature of this class. static const nullableType = $HttpLogger$NullableType(); static const type = $HttpLogger$Type(); - static final _id_logRequestUrl = _class.staticFieldId( - r'logRequestUrl', - r'Z', - ); + static final _id_logRequestUrl = _class.staticFieldId(r'logRequestUrl', r'Z'); /// from: `static public boolean logRequestUrl` static bool get logRequestUrl => @@ -81,10 +66,7 @@ class HttpLogger extends jni$_.JObject { static set logRequestUrl(bool value) => _id_logRequestUrl.set(_class, const jni$_.jbooleanType(), value); - static final _id_logEnabled = _class.staticFieldId( - r'logEnabled', - r'Z', - ); + static final _id_logEnabled = _class.staticFieldId(r'logEnabled', r'Z'); /// from: `static public boolean logEnabled` static bool get logEnabled => @@ -99,36 +81,43 @@ class HttpLogger extends jni$_.JObject { r'(ILjava/lang/String;Ljava/lang/String;)V', ); - static final _logFailure = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _logFailure = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Int32, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Int32, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, int, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void logFailure(int i, java.lang.String string, java.lang.String string1)` - static void logFailure( - int i, - jni$_.JString? string, - jni$_.JString? string1, - ) { + static void logFailure(int i, jni$_.JString? string, jni$_.JString? string1) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _logFailure(_class.reference.pointer, _id_logFailure as jni$_.JMethodIDPtr, - i, _$string.pointer, _$string1.pointer) - .check(); + _logFailure( + _class.reference.pointer, + _id_logFailure as jni$_.JMethodIDPtr, + i, + _$string.pointer, + _$string1.pointer, + ).check(); } static final _id_log = _class.staticMethodId( @@ -136,27 +125,34 @@ class HttpLogger extends jni$_.JObject { r'(ILjava/lang/String;)V', ); - static final _log = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int32, jni$_.Pointer)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + static final _log = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32, jni$_.Pointer)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + ) + >(); /// from: `static public void log(int i, java.lang.String string)` - static void log( - int i, - jni$_.JString? string, - ) { + static void log(int i, jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _log(_class.reference.pointer, _id_log as jni$_.JMethodIDPtr, i, - _$string.pointer) - .check(); + _log( + _class.reference.pointer, + _id_log as jni$_.JMethodIDPtr, + i, + _$string.pointer, + ).check(); } } @@ -170,11 +166,8 @@ final class $HttpLogger$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - HttpLogger? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : HttpLogger.fromReference( - reference, - ); + HttpLogger? fromReference(jni$_.JReference reference) => + reference.isNull ? null : HttpLogger.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -208,9 +201,7 @@ final class $HttpLogger$Type extends jni$_.JObjType { @jni$_.internal @core$_.override HttpLogger fromReference(jni$_.JReference reference) => - HttpLogger.fromReference( - reference, - ); + HttpLogger.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/http/HttpRequest.dart b/lib/src/platform/android/jni/org/maplibre/android/http/HttpRequest.dart index 00ecf704..4e923a72 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/http/HttpRequest.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/http/HttpRequest.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -59,13 +47,13 @@ class HttpRequest extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - HttpRequest.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + HttpRequest.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/http/HttpRequest'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/http/HttpRequest', + ); /// The type which includes information such as the signature of this class. static const nullableType = $HttpRequest$NullableType(); @@ -81,25 +69,31 @@ class HttpRequest extends jni$_.JObject { static const PERMANENT_ERROR = 2; static final _id_executeRequest = _class.instanceMethodId( r'executeRequest', - r'(Lorg/maplibre/android/http/HttpResponder;JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V', + r'(Lorg/maplibre/android/http/HttpResponder;JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V', ); - static final _executeRequest = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _executeRequest = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int64, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32 - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int64, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -107,31 +101,37 @@ class HttpRequest extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int)>(); + jni$_.Pointer, + int, + ) + >(); - /// from: `public abstract void executeRequest(org.maplibre.android.http.HttpResponder httpResponder, long j, java.lang.String string, java.lang.String string1, java.lang.String string2, boolean z)` + /// from: `public abstract void executeRequest(org.maplibre.android.http.HttpResponder httpResponder, long j, java.lang.String string, java.lang.String string1, java.lang.String string2, java.lang.String string3, boolean z)` void executeRequest( httpresponder$_.HttpResponder? httpResponder, int j, jni$_.JString? string, jni$_.JString? string1, jni$_.JString? string2, + jni$_.JString? string3, bool z, ) { final _$httpResponder = httpResponder?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$string2 = string2?.reference ?? jni$_.jNullReference; + final _$string3 = string3?.reference ?? jni$_.jNullReference; _executeRequest( - reference.pointer, - _id_executeRequest as jni$_.JMethodIDPtr, - _$httpResponder.pointer, - j, - _$string.pointer, - _$string1.pointer, - _$string2.pointer, - z ? 1 : 0) - .check(); + reference.pointer, + _id_executeRequest as jni$_.JMethodIDPtr, + _$httpResponder.pointer, + j, + _$string.pointer, + _$string1.pointer, + _$string2.pointer, + _$string3.pointer, + z ? 1 : 0, + ).check(); } static final _id_cancelRequest = _class.instanceMethodId( @@ -139,22 +139,28 @@ class HttpRequest extends jni$_.JObject { r'()V', ); - static final _cancelRequest = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _cancelRequest = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void cancelRequest()` void cancelRequest() { - _cancelRequest(reference.pointer, _id_cancelRequest as jni$_.JMethodIDPtr) - .check(); + _cancelRequest( + reference.pointer, + _id_cancelRequest as jni$_.JMethodIDPtr, + ).check(); } /// Maps a specific port to the implemented interface. @@ -166,19 +172,16 @@ class HttpRequest extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -188,17 +191,20 @@ class HttpRequest extends jni$_.JObject { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; if ($d == - r'executeRequest(Lorg/maplibre/android/http/HttpResponder;JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V') { + r'executeRequest(Lorg/maplibre/android/http/HttpResponder;JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V') { _$impls[$p]!.executeRequest( - $a![0]?.as(const httpresponder$_.$HttpResponder$Type(), - releaseOriginal: true), + $a![0]?.as( + const httpresponder$_.$HttpResponder$Type(), + releaseOriginal: true, + ), $a![1]! .as(const jni$_.JLongType(), releaseOriginal: true) .longValue(releaseOriginal: true), $a![2]?.as(const jni$_.JStringType(), releaseOriginal: true), $a![3]?.as(const jni$_.JStringType(), releaseOriginal: true), $a![4]?.as(const jni$_.JStringType(), releaseOriginal: true), - $a![5]! + $a![5]?.as(const jni$_.JStringType(), releaseOriginal: true), + $a![6]! .as(const jni$_.JBooleanType(), releaseOriginal: true) .booleanValue(releaseOriginal: true), ); @@ -214,10 +220,7 @@ class HttpRequest extends jni$_.JObject { return jni$_.nullptr; } - static void implementIn( - jni$_.JImplementer implementer, - $HttpRequest $impl, - ) { + static void implementIn(jni$_.JImplementer implementer, $HttpRequest $impl) { late final jni$_.RawReceivePort $p; $p = jni$_.RawReceivePort(($m) { if ($m == null) { @@ -235,7 +238,7 @@ class HttpRequest extends jni$_.JObject { _$invokePointer, [ if ($impl.executeRequest$async) - r'executeRequest(Lorg/maplibre/android/http/HttpResponder;JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V', + r'executeRequest(Lorg/maplibre/android/http/HttpResponder;JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V', if ($impl.cancelRequest$async) r'cancelRequest()V', ], ); @@ -243,39 +246,39 @@ class HttpRequest extends jni$_.JObject { _$impls[$a] = $impl; } - factory HttpRequest.implement( - $HttpRequest $impl, - ) { + factory HttpRequest.implement($HttpRequest $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return HttpRequest.fromReference( - $i.implementReference(), - ); + return HttpRequest.fromReference($i.implementReference()); } } abstract base mixin class $HttpRequest { factory $HttpRequest({ required void Function( - httpresponder$_.HttpResponder? httpResponder, - int j, - jni$_.JString? string, - jni$_.JString? string1, - jni$_.JString? string2, - bool z) - executeRequest, + httpresponder$_.HttpResponder? httpResponder, + int j, + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JString? string2, + jni$_.JString? string3, + bool z, + ) + executeRequest, bool executeRequest$async, required void Function() cancelRequest, bool cancelRequest$async, }) = _$HttpRequest; void executeRequest( - httpresponder$_.HttpResponder? httpResponder, - int j, - jni$_.JString? string, - jni$_.JString? string1, - jni$_.JString? string2, - bool z); + httpresponder$_.HttpResponder? httpResponder, + int j, + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JString? string2, + jni$_.JString? string3, + bool z, + ); bool get executeRequest$async => false; void cancelRequest(); bool get cancelRequest$async => false; @@ -284,38 +287,53 @@ abstract base mixin class $HttpRequest { final class _$HttpRequest with $HttpRequest { _$HttpRequest({ required void Function( - httpresponder$_.HttpResponder? httpResponder, - int j, - jni$_.JString? string, - jni$_.JString? string1, - jni$_.JString? string2, - bool z) - executeRequest, - this.executeRequest$async = false, - required void Function() cancelRequest, - this.cancelRequest$async = false, - }) : _executeRequest = executeRequest, - _cancelRequest = cancelRequest; - - final void Function( httpresponder$_.HttpResponder? httpResponder, int j, jni$_.JString? string, jni$_.JString? string1, jni$_.JString? string2, - bool z) _executeRequest; + jni$_.JString? string3, + bool z, + ) + executeRequest, + this.executeRequest$async = false, + required void Function() cancelRequest, + this.cancelRequest$async = false, + }) : _executeRequest = executeRequest, + _cancelRequest = cancelRequest; + + final void Function( + httpresponder$_.HttpResponder? httpResponder, + int j, + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JString? string2, + jni$_.JString? string3, + bool z, + ) + _executeRequest; final bool executeRequest$async; final void Function() _cancelRequest; final bool cancelRequest$async; void executeRequest( - httpresponder$_.HttpResponder? httpResponder, - int j, - jni$_.JString? string, - jni$_.JString? string1, - jni$_.JString? string2, - bool z) { - return _executeRequest(httpResponder, j, string, string1, string2, z); + httpresponder$_.HttpResponder? httpResponder, + int j, + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JString? string2, + jni$_.JString? string3, + bool z, + ) { + return _executeRequest( + httpResponder, + j, + string, + string1, + string2, + string3, + z, + ); } void cancelRequest() { @@ -333,11 +351,8 @@ final class $HttpRequest$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - HttpRequest? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : HttpRequest.fromReference( - reference, - ); + HttpRequest? fromReference(jni$_.JReference reference) => + reference.isNull ? null : HttpRequest.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -371,9 +386,7 @@ final class $HttpRequest$Type extends jni$_.JObjType { @jni$_.internal @core$_.override HttpRequest fromReference(jni$_.JReference reference) => - HttpRequest.fromReference( - reference, - ); + HttpRequest.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/http/HttpRequestUrl.dart b/lib/src/platform/android/jni/org/maplibre/android/http/HttpRequestUrl.dart index b44160a5..6d895f66 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/http/HttpRequestUrl.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/http/HttpRequestUrl.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class HttpRequestUrl extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - HttpRequestUrl.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + HttpRequestUrl.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/http/HttpRequestUrl'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/http/HttpRequestUrl', + ); /// The type which includes information such as the signature of this class. static const nullableType = $HttpRequestUrl$NullableType(); @@ -73,45 +61,52 @@ class HttpRequestUrl extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;IZ)Ljava/lang/String;', ); - static final _buildResourceUrl = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _buildResourceUrl = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public java.lang.String buildResourceUrl(java.lang.String string, java.lang.String string1, int i, boolean z)` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? buildResourceUrl( - jni$_.JString? string, + jni$_.JString string, jni$_.JString? string1, int i, bool z, ) { - final _$string = string?.reference ?? jni$_.jNullReference; + final _$string = string.reference; final _$string1 = string1?.reference ?? jni$_.jNullReference; return _buildResourceUrl( - _class.reference.pointer, - _id_buildResourceUrl as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer, - i, - z ? 1 : 0) - .object(const jni$_.JStringNullableType()); + _class.reference.pointer, + _id_buildResourceUrl as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + i, + z ? 1 : 0, + ).object(const jni$_.JStringNullableType()); } } @@ -126,11 +121,8 @@ final class $HttpRequestUrl$NullableType @jni$_.internal @core$_.override - HttpRequestUrl? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : HttpRequestUrl.fromReference( - reference, - ); + HttpRequestUrl? fromReference(jni$_.JReference reference) => + reference.isNull ? null : HttpRequestUrl.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -164,9 +156,7 @@ final class $HttpRequestUrl$Type extends jni$_.JObjType { @jni$_.internal @core$_.override HttpRequestUrl fromReference(jni$_.JReference reference) => - HttpRequestUrl.fromReference( - reference, - ); + HttpRequestUrl.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/http/HttpResponder.dart b/lib/src/platform/android/jni/org/maplibre/android/http/HttpResponder.dart index de94c8a7..0573b0fb 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/http/HttpResponder.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/http/HttpResponder.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class HttpResponder extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - HttpResponder.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + HttpResponder.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/http/HttpResponder'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/http/HttpResponder', + ); /// The type which includes information such as the signature of this class. static const nullableType = $HttpResponder$NullableType(); @@ -73,24 +61,29 @@ class HttpResponder extends jni$_.JObject { r'(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[B)V', ); - static final _onResponse = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onResponse = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Int32, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Int32, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, int, @@ -100,7 +93,9 @@ class HttpResponder extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void onResponse(int i, java.lang.String string, java.lang.String string1, java.lang.String string2, java.lang.String string3, java.lang.String string4, java.lang.String string5, byte[] bs)` void onResponse( @@ -121,17 +116,17 @@ class HttpResponder extends jni$_.JObject { final _$string5 = string5?.reference ?? jni$_.jNullReference; final _$bs = bs?.reference ?? jni$_.jNullReference; _onResponse( - reference.pointer, - _id_onResponse as jni$_.JMethodIDPtr, - i, - _$string.pointer, - _$string1.pointer, - _$string2.pointer, - _$string3.pointer, - _$string4.pointer, - _$string5.pointer, - _$bs.pointer) - .check(); + reference.pointer, + _id_onResponse as jni$_.JMethodIDPtr, + i, + _$string.pointer, + _$string1.pointer, + _$string2.pointer, + _$string3.pointer, + _$string4.pointer, + _$string5.pointer, + _$bs.pointer, + ).check(); } static final _id_handleFailure = _class.instanceMethodId( @@ -139,27 +134,34 @@ class HttpResponder extends jni$_.JObject { r'(ILjava/lang/String;)V', ); - static final _handleFailure = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int32, jni$_.Pointer)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + static final _handleFailure = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32, jni$_.Pointer)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + ) + >(); /// from: `public abstract void handleFailure(int i, java.lang.String string)` - void handleFailure( - int i, - jni$_.JString? string, - ) { + void handleFailure(int i, jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _handleFailure(reference.pointer, _id_handleFailure as jni$_.JMethodIDPtr, - i, _$string.pointer) - .check(); + _handleFailure( + reference.pointer, + _id_handleFailure as jni$_.JMethodIDPtr, + i, + _$string.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -171,19 +173,16 @@ class HttpResponder extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -252,35 +251,16 @@ class HttpResponder extends jni$_.JObject { _$impls[$a] = $impl; } - factory HttpResponder.implement( - $HttpResponder $impl, - ) { + factory HttpResponder.implement($HttpResponder $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return HttpResponder.fromReference( - $i.implementReference(), - ); + return HttpResponder.fromReference($i.implementReference()); } } abstract base mixin class $HttpResponder { factory $HttpResponder({ required void Function( - int i, - jni$_.JString? string, - jni$_.JString? string1, - jni$_.JString? string2, - jni$_.JString? string3, - jni$_.JString? string4, - jni$_.JString? string5, - jni$_.JByteArray? bs) - onResponse, - bool onResponse$async, - required void Function(int i, jni$_.JString? string) handleFailure, - bool handleFailure$async, - }) = _$HttpResponder; - - void onResponse( int i, jni$_.JString? string, jni$_.JString? string1, @@ -288,7 +268,24 @@ abstract base mixin class $HttpResponder { jni$_.JString? string3, jni$_.JString? string4, jni$_.JString? string5, - jni$_.JByteArray? bs); + jni$_.JByteArray? bs, + ) + onResponse, + bool onResponse$async, + required void Function(int i, jni$_.JString? string) handleFailure, + bool handleFailure$async, + }) = _$HttpResponder; + + void onResponse( + int i, + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JString? string2, + jni$_.JString? string3, + jni$_.JString? string4, + jni$_.JString? string5, + jni$_.JByteArray? bs, + ); bool get onResponse$async => false; void handleFailure(int i, jni$_.JString? string); bool get handleFailure$async => false; @@ -297,22 +294,6 @@ abstract base mixin class $HttpResponder { final class _$HttpResponder with $HttpResponder { _$HttpResponder({ required void Function( - int i, - jni$_.JString? string, - jni$_.JString? string1, - jni$_.JString? string2, - jni$_.JString? string3, - jni$_.JString? string4, - jni$_.JString? string5, - jni$_.JByteArray? bs) - onResponse, - this.onResponse$async = false, - required void Function(int i, jni$_.JString? string) handleFailure, - this.handleFailure$async = false, - }) : _onResponse = onResponse, - _handleFailure = handleFailure; - - final void Function( int i, jni$_.JString? string, jni$_.JString? string1, @@ -320,22 +301,50 @@ final class _$HttpResponder with $HttpResponder { jni$_.JString? string3, jni$_.JString? string4, jni$_.JString? string5, - jni$_.JByteArray? bs) _onResponse; + jni$_.JByteArray? bs, + ) + onResponse, + this.onResponse$async = false, + required void Function(int i, jni$_.JString? string) handleFailure, + this.handleFailure$async = false, + }) : _onResponse = onResponse, + _handleFailure = handleFailure; + + final void Function( + int i, + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JString? string2, + jni$_.JString? string3, + jni$_.JString? string4, + jni$_.JString? string5, + jni$_.JByteArray? bs, + ) + _onResponse; final bool onResponse$async; final void Function(int i, jni$_.JString? string) _handleFailure; final bool handleFailure$async; void onResponse( - int i, - jni$_.JString? string, - jni$_.JString? string1, - jni$_.JString? string2, - jni$_.JString? string3, - jni$_.JString? string4, - jni$_.JString? string5, - jni$_.JByteArray? bs) { + int i, + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JString? string2, + jni$_.JString? string3, + jni$_.JString? string4, + jni$_.JString? string5, + jni$_.JByteArray? bs, + ) { return _onResponse( - i, string, string1, string2, string3, string4, string5, bs); + i, + string, + string1, + string2, + string3, + string4, + string5, + bs, + ); } void handleFailure(int i, jni$_.JString? string) { @@ -353,11 +362,8 @@ final class $HttpResponder$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - HttpResponder? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : HttpResponder.fromReference( - reference, - ); + HttpResponder? fromReference(jni$_.JReference reference) => + reference.isNull ? null : HttpResponder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -391,9 +397,7 @@ final class $HttpResponder$Type extends jni$_.JObjType { @jni$_.internal @core$_.override HttpResponder fromReference(jni$_.JReference reference) => - HttpResponder.fromReference( - reference, - ); + HttpResponder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/http/LocalRequestTask.dart b/lib/src/platform/android/jni/org/maplibre/android/http/LocalRequestTask.dart index b183393a..f3f91779 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/http/LocalRequestTask.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/http/LocalRequestTask.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class JObject$OnLocalRequestResponse extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - JObject$OnLocalRequestResponse.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + JObject$OnLocalRequestResponse.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/http/LocalRequestTask$OnLocalRequestResponse'); + r'org/maplibre/android/http/LocalRequestTask$OnLocalRequestResponse', + ); /// The type which includes information such as the signature of this class. static const nullableType = $JObject$OnLocalRequestResponse$NullableType(); @@ -73,25 +61,32 @@ class JObject$OnLocalRequestResponse extends jni$_.JObject { r'([B)V', ); - static final _onResponse = 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 _onResponse = + 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 onResponse(byte[] bs)` - void onResponse( - jni$_.JByteArray? bs, - ) { + void onResponse(jni$_.JByteArray? bs) { final _$bs = bs?.reference ?? jni$_.jNullReference; - _onResponse(reference.pointer, _id_onResponse as jni$_.JMethodIDPtr, - _$bs.pointer) - .check(); + _onResponse( + reference.pointer, + _id_onResponse as jni$_.JMethodIDPtr, + _$bs.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -103,19 +98,16 @@ class JObject$OnLocalRequestResponse extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -155,9 +147,7 @@ class JObject$OnLocalRequestResponse extends jni$_.JObject { r'org.maplibre.android.http.LocalRequestTask$OnLocalRequestResponse', $p, _$invokePointer, - [ - if ($impl.onResponse$async) r'onResponse([B)V', - ], + [if ($impl.onResponse$async) r'onResponse([B)V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; @@ -213,10 +203,8 @@ final class $JObject$OnLocalRequestResponse$NullableType @core$_.override JObject$OnLocalRequestResponse? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : JObject$OnLocalRequestResponse.fromReference( - reference, - ); + ? null + : JObject$OnLocalRequestResponse.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -253,9 +241,7 @@ final class $JObject$OnLocalRequestResponse$Type @jni$_.internal @core$_.override JObject$OnLocalRequestResponse fromReference(jni$_.JReference reference) => - JObject$OnLocalRequestResponse.fromReference( - reference, - ); + JObject$OnLocalRequestResponse.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/http/NativeHttpRequest.dart b/lib/src/platform/android/jni/org/maplibre/android/http/NativeHttpRequest.dart index 6ed3c480..9704af80 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/http/NativeHttpRequest.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/http/NativeHttpRequest.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,33 +45,34 @@ class NativeHttpRequest extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - NativeHttpRequest.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + NativeHttpRequest.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/http/NativeHttpRequest'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/http/NativeHttpRequest', + ); /// The type which includes information such as the signature of this class. static const nullableType = $NativeHttpRequest$NullableType(); static const type = $NativeHttpRequest$Type(); - static final _id_cancel = _class.instanceMethodId( - r'cancel', - r'()V', - ); + static final _id_cancel = _class.instanceMethodId(r'cancel', r'()V'); - static final _cancel = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _cancel = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void cancel()` void cancel() { @@ -95,24 +84,29 @@ class NativeHttpRequest extends jni$_.JObject { r'(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[B)V', ); - static final _onResponse = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onResponse = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Int32, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Int32, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, int, @@ -122,7 +116,9 @@ class NativeHttpRequest extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void onResponse(int i, java.lang.String string, java.lang.String string1, java.lang.String string2, java.lang.String string3, java.lang.String string4, java.lang.String string5, byte[] bs)` void onResponse( @@ -143,17 +139,17 @@ class NativeHttpRequest extends jni$_.JObject { final _$string5 = string5?.reference ?? jni$_.jNullReference; final _$bs = bs?.reference ?? jni$_.jNullReference; _onResponse( - reference.pointer, - _id_onResponse as jni$_.JMethodIDPtr, - i, - _$string.pointer, - _$string1.pointer, - _$string2.pointer, - _$string3.pointer, - _$string4.pointer, - _$string5.pointer, - _$bs.pointer) - .check(); + reference.pointer, + _id_onResponse as jni$_.JMethodIDPtr, + i, + _$string.pointer, + _$string1.pointer, + _$string2.pointer, + _$string3.pointer, + _$string4.pointer, + _$string5.pointer, + _$bs.pointer, + ).check(); } static final _id_handleFailure = _class.instanceMethodId( @@ -161,27 +157,34 @@ class NativeHttpRequest extends jni$_.JObject { r'(ILjava/lang/String;)V', ); - static final _handleFailure = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int32, jni$_.Pointer)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + static final _handleFailure = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32, jni$_.Pointer)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + ) + >(); /// from: `public void handleFailure(int i, java.lang.String string)` - void handleFailure( - int i, - jni$_.JString? string, - ) { + void handleFailure(int i, jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _handleFailure(reference.pointer, _id_handleFailure as jni$_.JMethodIDPtr, - i, _$string.pointer) - .check(); + _handleFailure( + reference.pointer, + _id_handleFailure as jni$_.JMethodIDPtr, + i, + _$string.pointer, + ).check(); } } @@ -197,11 +200,7 @@ final class $NativeHttpRequest$NullableType @jni$_.internal @core$_.override NativeHttpRequest? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : NativeHttpRequest.fromReference( - reference, - ); + reference.isNull ? null : NativeHttpRequest.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -235,9 +234,7 @@ final class $NativeHttpRequest$Type extends jni$_.JObjType { @jni$_.internal @core$_.override NativeHttpRequest fromReference(jni$_.JReference reference) => - NativeHttpRequest.fromReference( - reference, - ); + NativeHttpRequest.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/http/_package.dart b/lib/src/platform/android/jni/org/maplibre/android/http/_package.dart index 8aae846f..d5a03d52 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/http/_package.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/http/_package.dart @@ -1,3 +1,4 @@ +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! export 'HttpIdentifier.dart'; export 'HttpLogger.dart'; export 'HttpRequest.dart'; diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/CompassEngine.dart b/lib/src/platform/android/jni/org/maplibre/android/location/CompassEngine.dart index 9a423edc..9245939b 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/CompassEngine.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/CompassEngine.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -59,13 +47,13 @@ class CompassEngine extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - CompassEngine.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + CompassEngine.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/location/CompassEngine'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/location/CompassEngine', + ); /// The type which includes information such as the signature of this class. static const nullableType = $CompassEngine$NullableType(); @@ -75,28 +63,32 @@ class CompassEngine extends jni$_.JObject { r'(Lorg/maplibre/android/location/CompassListener;)V', ); - static final _addCompassListener = 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 _addCompassListener = + 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 addCompassListener(org.maplibre.android.location.CompassListener compassListener)` - void addCompassListener( - compasslistener$_.CompassListener? compassListener, - ) { - final _$compassListener = - compassListener?.reference ?? jni$_.jNullReference; + void addCompassListener(compasslistener$_.CompassListener compassListener) { + final _$compassListener = compassListener.reference; _addCompassListener( - reference.pointer, - _id_addCompassListener as jni$_.JMethodIDPtr, - _$compassListener.pointer) - .check(); + reference.pointer, + _id_addCompassListener as jni$_.JMethodIDPtr, + _$compassListener.pointer, + ).check(); } static final _id_removeCompassListener = _class.instanceMethodId( @@ -104,28 +96,34 @@ class CompassEngine extends jni$_.JObject { r'(Lorg/maplibre/android/location/CompassListener;)V', ); - static final _removeCompassListener = 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 _removeCompassListener = + 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 removeCompassListener(org.maplibre.android.location.CompassListener compassListener)` void removeCompassListener( - compasslistener$_.CompassListener? compassListener, + compasslistener$_.CompassListener compassListener, ) { - final _$compassListener = - compassListener?.reference ?? jni$_.jNullReference; + final _$compassListener = compassListener.reference; _removeCompassListener( - reference.pointer, - _id_removeCompassListener as jni$_.JMethodIDPtr, - _$compassListener.pointer) - .check(); + reference.pointer, + _id_removeCompassListener as jni$_.JMethodIDPtr, + _$compassListener.pointer, + ).check(); } static final _id_getLastHeading = _class.instanceMethodId( @@ -133,23 +131,28 @@ class CompassEngine extends jni$_.JObject { r'()F', ); - static final _getLastHeading = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLastHeading = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract float getLastHeading()` double getLastHeading() { return _getLastHeading( - reference.pointer, _id_getLastHeading as jni$_.JMethodIDPtr) - .float; + reference.pointer, + _id_getLastHeading as jni$_.JMethodIDPtr, + ).float; } static final _id_getLastAccuracySensorStatus = _class.instanceMethodId( @@ -159,22 +162,26 @@ class CompassEngine extends jni$_.JObject { static final _getLastAccuracySensorStatus = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract int getLastAccuracySensorStatus()` int getLastAccuracySensorStatus() { - return _getLastAccuracySensorStatus(reference.pointer, - _id_getLastAccuracySensorStatus as jni$_.JMethodIDPtr) - .integer; + return _getLastAccuracySensorStatus( + reference.pointer, + _id_getLastAccuracySensorStatus as jni$_.JMethodIDPtr, + ).integer; } /// Maps a specific port to the implemented interface. @@ -186,19 +193,16 @@ class CompassEngine extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -210,16 +214,20 @@ class CompassEngine extends jni$_.JObject { if ($d == r'addCompassListener(Lorg/maplibre/android/location/CompassListener;)V') { _$impls[$p]!.addCompassListener( - $a![0]?.as(const compasslistener$_.$CompassListener$Type(), - releaseOriginal: true), + $a![0]!.as( + const compasslistener$_.$CompassListener$Type(), + releaseOriginal: true, + ), ); return jni$_.nullptr; } if ($d == r'removeCompassListener(Lorg/maplibre/android/location/CompassListener;)V') { _$impls[$p]!.removeCompassListener( - $a![0]?.as(const compasslistener$_.$CompassListener$Type(), - releaseOriginal: true), + $a![0]!.as( + const compasslistener$_.$CompassListener$Type(), + releaseOriginal: true, + ), ); return jni$_.nullptr; } @@ -267,33 +275,28 @@ class CompassEngine extends jni$_.JObject { _$impls[$a] = $impl; } - factory CompassEngine.implement( - $CompassEngine $impl, - ) { + factory CompassEngine.implement($CompassEngine $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return CompassEngine.fromReference( - $i.implementReference(), - ); + return CompassEngine.fromReference($i.implementReference()); } } abstract base mixin class $CompassEngine { factory $CompassEngine({ - required void Function(compasslistener$_.CompassListener? compassListener) - addCompassListener, + required void Function(compasslistener$_.CompassListener compassListener) + addCompassListener, bool addCompassListener$async, - required void Function(compasslistener$_.CompassListener? compassListener) - removeCompassListener, + required void Function(compasslistener$_.CompassListener compassListener) + removeCompassListener, bool removeCompassListener$async, required double Function() getLastHeading, required int Function() getLastAccuracySensorStatus, }) = _$CompassEngine; - void addCompassListener(compasslistener$_.CompassListener? compassListener); + void addCompassListener(compasslistener$_.CompassListener compassListener); bool get addCompassListener$async => false; - void removeCompassListener( - compasslistener$_.CompassListener? compassListener); + void removeCompassListener(compasslistener$_.CompassListener compassListener); bool get removeCompassListener$async => false; double getLastHeading(); int getLastAccuracySensorStatus(); @@ -301,34 +304,35 @@ abstract base mixin class $CompassEngine { final class _$CompassEngine with $CompassEngine { _$CompassEngine({ - required void Function(compasslistener$_.CompassListener? compassListener) - addCompassListener, + required void Function(compasslistener$_.CompassListener compassListener) + addCompassListener, this.addCompassListener$async = false, - required void Function(compasslistener$_.CompassListener? compassListener) - removeCompassListener, + required void Function(compasslistener$_.CompassListener compassListener) + removeCompassListener, this.removeCompassListener$async = false, required double Function() getLastHeading, required int Function() getLastAccuracySensorStatus, - }) : _addCompassListener = addCompassListener, - _removeCompassListener = removeCompassListener, - _getLastHeading = getLastHeading, - _getLastAccuracySensorStatus = getLastAccuracySensorStatus; + }) : _addCompassListener = addCompassListener, + _removeCompassListener = removeCompassListener, + _getLastHeading = getLastHeading, + _getLastAccuracySensorStatus = getLastAccuracySensorStatus; - final void Function(compasslistener$_.CompassListener? compassListener) - _addCompassListener; + final void Function(compasslistener$_.CompassListener compassListener) + _addCompassListener; final bool addCompassListener$async; - final void Function(compasslistener$_.CompassListener? compassListener) - _removeCompassListener; + final void Function(compasslistener$_.CompassListener compassListener) + _removeCompassListener; final bool removeCompassListener$async; final double Function() _getLastHeading; final int Function() _getLastAccuracySensorStatus; - void addCompassListener(compasslistener$_.CompassListener? compassListener) { + void addCompassListener(compasslistener$_.CompassListener compassListener) { return _addCompassListener(compassListener); } void removeCompassListener( - compasslistener$_.CompassListener? compassListener) { + compasslistener$_.CompassListener compassListener, + ) { return _removeCompassListener(compassListener); } @@ -351,11 +355,8 @@ final class $CompassEngine$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - CompassEngine? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : CompassEngine.fromReference( - reference, - ); + CompassEngine? fromReference(jni$_.JReference reference) => + reference.isNull ? null : CompassEngine.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -389,9 +390,7 @@ final class $CompassEngine$Type extends jni$_.JObjType { @jni$_.internal @core$_.override CompassEngine fromReference(jni$_.JReference reference) => - CompassEngine.fromReference( - reference, - ); + CompassEngine.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/CompassListener.dart b/lib/src/platform/android/jni/org/maplibre/android/location/CompassListener.dart index d9019119..2c110480 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/CompassListener.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/CompassListener.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class CompassListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - CompassListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + CompassListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/location/CompassListener'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/location/CompassListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $CompassListener$NullableType(); @@ -73,23 +61,31 @@ class CompassListener extends jni$_.JObject { r'(F)V', ); - static final _onCompassChanged = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onCompassChanged = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public abstract void onCompassChanged(float f)` - void onCompassChanged( - double f, - ) { + void onCompassChanged(double f) { _onCompassChanged( - reference.pointer, _id_onCompassChanged as jni$_.JMethodIDPtr, f) - .check(); + reference.pointer, + _id_onCompassChanged as jni$_.JMethodIDPtr, + f, + ).check(); } static final _id_onCompassAccuracyChange = _class.instanceMethodId( @@ -97,23 +93,31 @@ class CompassListener extends jni$_.JObject { r'(I)V', ); - static final _onCompassAccuracyChange = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onCompassAccuracyChange = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public abstract void onCompassAccuracyChange(int i)` - void onCompassAccuracyChange( - int i, - ) { - _onCompassAccuracyChange(reference.pointer, - _id_onCompassAccuracyChange as jni$_.JMethodIDPtr, i) - .check(); + void onCompassAccuracyChange(int i) { + _onCompassAccuracyChange( + reference.pointer, + _id_onCompassAccuracyChange as jni$_.JMethodIDPtr, + i, + ).check(); } /// Maps a specific port to the implemented interface. @@ -125,19 +129,16 @@ class CompassListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -196,14 +197,10 @@ class CompassListener extends jni$_.JObject { _$impls[$a] = $impl; } - factory CompassListener.implement( - $CompassListener $impl, - ) { + factory CompassListener.implement($CompassListener $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return CompassListener.fromReference( - $i.implementReference(), - ); + return CompassListener.fromReference($i.implementReference()); } } @@ -227,8 +224,8 @@ final class _$CompassListener with $CompassListener { this.onCompassChanged$async = false, required void Function(int i) onCompassAccuracyChange, this.onCompassAccuracyChange$async = false, - }) : _onCompassChanged = onCompassChanged, - _onCompassAccuracyChange = onCompassAccuracyChange; + }) : _onCompassChanged = onCompassChanged, + _onCompassAccuracyChange = onCompassAccuracyChange; final void Function(double f) _onCompassChanged; final bool onCompassChanged$async; @@ -255,11 +252,8 @@ final class $CompassListener$NullableType @jni$_.internal @core$_.override - CompassListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : CompassListener.fromReference( - reference, - ); + CompassListener? fromReference(jni$_.JReference reference) => + reference.isNull ? null : CompassListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -293,9 +287,7 @@ final class $CompassListener$Type extends jni$_.JObjType { @jni$_.internal @core$_.override CompassListener fromReference(jni$_.JReference reference) => - CompassListener.fromReference( - reference, - ); + CompassListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/LocationComponent.dart b/lib/src/platform/android/jni/org/maplibre/android/location/LocationComponent.dart index d8838797..d512ce1a 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/LocationComponent.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/LocationComponent.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -88,13 +76,13 @@ class LocationComponent extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - LocationComponent.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + LocationComponent.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/location/LocationComponent'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/location/LocationComponent', + ); /// The type which includes information such as the signature of this class. static const nullableType = $LocationComponent$NullableType(); @@ -103,42 +91,51 @@ class LocationComponent extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap;Lorg/maplibre/android/maps/Transform;Ljava/util/List;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); - /// from: `public void (org.maplibre.android.maps.MapLibreMap mapLibreMap, org.maplibre.android.maps.Transform transform, java.util.List list)` + /// from: `public void (org.maplibre.android.maps.MapLibreMap mapLibreMap, org.maplibre.android.maps.Transform transform, java.util.List list)` /// The returned object must be released after use, by calling the [release] method. factory LocationComponent( - maplibremap$_.MapLibreMap? mapLibreMap, - transform$_.Transform? transform, - jni$_.JList? list, + maplibremap$_.MapLibreMap mapLibreMap, + transform$_.Transform transform, + jni$_.JList list, ) { - final _$mapLibreMap = mapLibreMap?.reference ?? jni$_.jNullReference; - final _$transform = transform?.reference ?? jni$_.jNullReference; - final _$list = list?.reference ?? jni$_.jNullReference; - return LocationComponent.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$mapLibreMap.pointer, - _$transform.pointer, - _$list.pointer) - .reference); + final _$mapLibreMap = mapLibreMap.reference; + final _$transform = transform.reference; + final _$list = list.reference; + return LocationComponent.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$mapLibreMap.pointer, + _$transform.pointer, + _$list.pointer, + ).reference, + ); } static final _id_activateLocationComponent = _class.instanceMethodId( @@ -146,29 +143,36 @@ class LocationComponent extends jni$_.JObject { r'(Lorg/maplibre/android/location/LocationComponentActivationOptions;)V', ); - static final _activateLocationComponent = 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 _activateLocationComponent = + 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 activateLocationComponent(org.maplibre.android.location.LocationComponentActivationOptions locationComponentActivationOptions)` void activateLocationComponent( - locationcomponentactivationoptions$_.LocationComponentActivationOptions? - locationComponentActivationOptions, + locationcomponentactivationoptions$_.LocationComponentActivationOptions + locationComponentActivationOptions, ) { final _$locationComponentActivationOptions = - locationComponentActivationOptions?.reference ?? jni$_.jNullReference; + locationComponentActivationOptions.reference; _activateLocationComponent( - reference.pointer, - _id_activateLocationComponent as jni$_.JMethodIDPtr, - _$locationComponentActivationOptions.pointer) - .check(); + reference.pointer, + _id_activateLocationComponent as jni$_.JMethodIDPtr, + _$locationComponentActivationOptions.pointer, + ).check(); } static final _id_setLocationComponentEnabled = _class.instanceMethodId( @@ -178,21 +182,29 @@ class LocationComponent extends jni$_.JObject { static final _setLocationComponentEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void setLocationComponentEnabled(boolean z)` - void setLocationComponentEnabled( - bool z, - ) { - _setLocationComponentEnabled(reference.pointer, - _id_setLocationComponentEnabled as jni$_.JMethodIDPtr, z ? 1 : 0) - .check(); + void setLocationComponentEnabled(bool z) { + _setLocationComponentEnabled( + reference.pointer, + _id_setLocationComponentEnabled as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).check(); } static final _id_isLocationComponentEnabled = _class.instanceMethodId( @@ -202,22 +214,26 @@ class LocationComponent extends jni$_.JObject { static final _isLocationComponentEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public boolean isLocationComponentEnabled()` bool isLocationComponentEnabled() { - return _isLocationComponentEnabled(reference.pointer, - _id_isLocationComponentEnabled as jni$_.JMethodIDPtr) - .boolean; + return _isLocationComponentEnabled( + reference.pointer, + _id_isLocationComponentEnabled as jni$_.JMethodIDPtr, + ).boolean; } static final _id_setCameraMode = _class.instanceMethodId( @@ -225,23 +241,31 @@ class LocationComponent extends jni$_.JObject { r'(I)V', ); - static final _setCameraMode = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setCameraMode = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void setCameraMode(int i)` - void setCameraMode( - int i, - ) { + void setCameraMode(int i) { _setCameraMode( - reference.pointer, _id_setCameraMode as jni$_.JMethodIDPtr, i) - .check(); + reference.pointer, + _id_setCameraMode as jni$_.JMethodIDPtr, + i, + ).check(); } static final _id_setCameraMode$1 = _class.instanceMethodId( @@ -249,32 +273,39 @@ class LocationComponent extends jni$_.JObject { r'(ILorg/maplibre/android/location/OnLocationCameraTransitionListener;)V', ); - static final _setCameraMode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int32, jni$_.Pointer)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + static final _setCameraMode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32, jni$_.Pointer)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + ) + >(); /// from: `public void setCameraMode(int i, org.maplibre.android.location.OnLocationCameraTransitionListener onLocationCameraTransitionListener)` void setCameraMode$1( int i, onlocationcameratransitionlistener$_.OnLocationCameraTransitionListener? - onLocationCameraTransitionListener, + onLocationCameraTransitionListener, ) { final _$onLocationCameraTransitionListener = onLocationCameraTransitionListener?.reference ?? jni$_.jNullReference; _setCameraMode$1( - reference.pointer, - _id_setCameraMode$1 as jni$_.JMethodIDPtr, - i, - _$onLocationCameraTransitionListener.pointer) - .check(); + reference.pointer, + _id_setCameraMode$1 as jni$_.JMethodIDPtr, + i, + _$onLocationCameraTransitionListener.pointer, + ).check(); } static final _id_setCameraMode$2 = _class.instanceMethodId( @@ -282,22 +313,27 @@ class LocationComponent extends jni$_.JObject { r'(IJLjava/lang/Double;Ljava/lang/Double;Ljava/lang/Double;Lorg/maplibre/android/location/OnLocationCameraTransitionListener;)V', ); - static final _setCameraMode$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setCameraMode$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Int32, - jni$_.Int64, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Int32, + jni$_.Int64, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, int, @@ -305,7 +341,9 @@ class LocationComponent extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void setCameraMode(int i, long j, java.lang.Double double, java.lang.Double double1, java.lang.Double double2, org.maplibre.android.location.OnLocationCameraTransitionListener onLocationCameraTransitionListener)` void setCameraMode$2( @@ -315,7 +353,7 @@ class LocationComponent extends jni$_.JObject { jni$_.JDouble? double1, jni$_.JDouble? double2, onlocationcameratransitionlistener$_.OnLocationCameraTransitionListener? - onLocationCameraTransitionListener, + onLocationCameraTransitionListener, ) { final _$double = double?.reference ?? jni$_.jNullReference; final _$double1 = double1?.reference ?? jni$_.jNullReference; @@ -323,15 +361,15 @@ class LocationComponent extends jni$_.JObject { final _$onLocationCameraTransitionListener = onLocationCameraTransitionListener?.reference ?? jni$_.jNullReference; _setCameraMode$2( - reference.pointer, - _id_setCameraMode$2 as jni$_.JMethodIDPtr, - i, - j, - _$double.pointer, - _$double1.pointer, - _$double2.pointer, - _$onLocationCameraTransitionListener.pointer) - .check(); + reference.pointer, + _id_setCameraMode$2 as jni$_.JMethodIDPtr, + i, + j, + _$double.pointer, + _$double1.pointer, + _$double2.pointer, + _$onLocationCameraTransitionListener.pointer, + ).check(); } static final _id_getCameraMode = _class.instanceMethodId( @@ -339,23 +377,28 @@ class LocationComponent extends jni$_.JObject { r'()I', ); - static final _getCameraMode = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getCameraMode = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int getCameraMode()` int getCameraMode() { return _getCameraMode( - reference.pointer, _id_getCameraMode as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_getCameraMode as jni$_.JMethodIDPtr, + ).integer; } static final _id_setRenderMode = _class.instanceMethodId( @@ -363,23 +406,31 @@ class LocationComponent extends jni$_.JObject { r'(I)V', ); - static final _setRenderMode = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setRenderMode = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void setRenderMode(int i)` - void setRenderMode( - int i, - ) { + void setRenderMode(int i) { _setRenderMode( - reference.pointer, _id_setRenderMode as jni$_.JMethodIDPtr, i) - .check(); + reference.pointer, + _id_setRenderMode as jni$_.JMethodIDPtr, + i, + ).check(); } static final _id_getRenderMode = _class.instanceMethodId( @@ -387,23 +438,28 @@ class LocationComponent extends jni$_.JObject { r'()I', ); - static final _getRenderMode = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getRenderMode = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int getRenderMode()` int getRenderMode() { return _getRenderMode( - reference.pointer, _id_getRenderMode as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_getRenderMode as jni$_.JMethodIDPtr, + ).integer; } static final _id_getLocationComponentOptions = _class.instanceMethodId( @@ -413,26 +469,30 @@ class LocationComponent extends jni$_.JObject { static final _getLocationComponentOptions = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions getLocationComponentOptions()` /// The returned object must be released after use, by calling the [release] method. locationcomponentoptions$_.LocationComponentOptions? - getLocationComponentOptions() { - return _getLocationComponentOptions(reference.pointer, - _id_getLocationComponentOptions as jni$_.JMethodIDPtr) - .object( - const locationcomponentoptions$_ - .$LocationComponentOptions$NullableType()); + getLocationComponentOptions() { + return _getLocationComponentOptions( + reference.pointer, + _id_getLocationComponentOptions as jni$_.JMethodIDPtr, + ).object( + const locationcomponentoptions$_.$LocationComponentOptions$NullableType(), + ); } static final _id_applyStyle = _class.instanceMethodId( @@ -440,27 +500,34 @@ class LocationComponent extends jni$_.JObject { r'(Landroid/content/Context;I)V', ); - static final _applyStyle = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _applyStyle = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public void applyStyle(android.content.Context context, int i)` - void applyStyle( - jni$_.JObject? context, - int i, - ) { - final _$context = context?.reference ?? jni$_.jNullReference; - _applyStyle(reference.pointer, _id_applyStyle as jni$_.JMethodIDPtr, - _$context.pointer, i) - .check(); + void applyStyle(jni$_.JObject context, int i) { + final _$context = context.reference; + _applyStyle( + reference.pointer, + _id_applyStyle as jni$_.JMethodIDPtr, + _$context.pointer, + i, + ).check(); } static final _id_applyStyle$1 = _class.instanceMethodId( @@ -468,27 +535,35 @@ class LocationComponent extends jni$_.JObject { r'(Lorg/maplibre/android/location/LocationComponentOptions;)V', ); - static final _applyStyle$1 = 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 _applyStyle$1 = + 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 applyStyle(org.maplibre.android.location.LocationComponentOptions locationComponentOptions)` void applyStyle$1( - locationcomponentoptions$_.LocationComponentOptions? - locationComponentOptions, + locationcomponentoptions$_.LocationComponentOptions + locationComponentOptions, ) { - final _$locationComponentOptions = - locationComponentOptions?.reference ?? jni$_.jNullReference; - _applyStyle$1(reference.pointer, _id_applyStyle$1 as jni$_.JMethodIDPtr, - _$locationComponentOptions.pointer) - .check(); + final _$locationComponentOptions = locationComponentOptions.reference; + _applyStyle$1( + reference.pointer, + _id_applyStyle$1 as jni$_.JMethodIDPtr, + _$locationComponentOptions.pointer, + ).check(); } static final _id_zoomWhileTracking = _class.instanceMethodId( @@ -496,20 +571,27 @@ class LocationComponent extends jni$_.JObject { r'(DJLorg/maplibre/android/maps/MapLibreMap$CancelableCallback;)V', ); - static final _zoomWhileTracking = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _zoomWhileTracking = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Int64, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, double, int, jni$_.Pointer)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Double, jni$_.Int64, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + int, + jni$_.Pointer, + ) + >(); /// from: `public void zoomWhileTracking(double d, long j, org.maplibre.android.maps.MapLibreMap$CancelableCallback cancelableCallback)` void zoomWhileTracking( @@ -520,12 +602,12 @@ class LocationComponent extends jni$_.JObject { final _$cancelableCallback = cancelableCallback?.reference ?? jni$_.jNullReference; _zoomWhileTracking( - reference.pointer, - _id_zoomWhileTracking as jni$_.JMethodIDPtr, - d, - j, - _$cancelableCallback.pointer) - .check(); + reference.pointer, + _id_zoomWhileTracking as jni$_.JMethodIDPtr, + d, + j, + _$cancelableCallback.pointer, + ).check(); } static final _id_zoomWhileTracking$1 = _class.instanceMethodId( @@ -533,25 +615,33 @@ class LocationComponent extends jni$_.JObject { r'(DJ)V', ); - static final _zoomWhileTracking$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double, jni$_.Int64)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double, int)>(); + static final _zoomWhileTracking$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double, jni$_.Int64)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + int, + ) + >(); /// from: `public void zoomWhileTracking(double d, long j)` - void zoomWhileTracking$1( - double d, - int j, - ) { - _zoomWhileTracking$1(reference.pointer, - _id_zoomWhileTracking$1 as jni$_.JMethodIDPtr, d, j) - .check(); + void zoomWhileTracking$1(double d, int j) { + _zoomWhileTracking$1( + reference.pointer, + _id_zoomWhileTracking$1 as jni$_.JMethodIDPtr, + d, + j, + ).check(); } static final _id_zoomWhileTracking$2 = _class.instanceMethodId( @@ -559,23 +649,31 @@ class LocationComponent extends jni$_.JObject { r'(D)V', ); - static final _zoomWhileTracking$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _zoomWhileTracking$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public void zoomWhileTracking(double d)` - void zoomWhileTracking$2( - double d, - ) { + void zoomWhileTracking$2(double d) { _zoomWhileTracking$2( - reference.pointer, _id_zoomWhileTracking$2 as jni$_.JMethodIDPtr, d) - .check(); + reference.pointer, + _id_zoomWhileTracking$2 as jni$_.JMethodIDPtr, + d, + ).check(); } static final _id_cancelZoomWhileTrackingAnimation = _class.instanceMethodId( @@ -585,22 +683,26 @@ class LocationComponent extends jni$_.JObject { static final _cancelZoomWhileTrackingAnimation = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void cancelZoomWhileTrackingAnimation()` void cancelZoomWhileTrackingAnimation() { - _cancelZoomWhileTrackingAnimation(reference.pointer, - _id_cancelZoomWhileTrackingAnimation as jni$_.JMethodIDPtr) - .check(); + _cancelZoomWhileTrackingAnimation( + reference.pointer, + _id_cancelZoomWhileTrackingAnimation as jni$_.JMethodIDPtr, + ).check(); } static final _id_paddingWhileTracking = _class.instanceMethodId( @@ -608,25 +710,32 @@ class LocationComponent extends jni$_.JObject { r'([D)V', ); - static final _paddingWhileTracking = 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 _paddingWhileTracking = + 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 paddingWhileTracking(double[] ds)` - void paddingWhileTracking( - jni$_.JDoubleArray? ds, - ) { + void paddingWhileTracking(jni$_.JDoubleArray? ds) { final _$ds = ds?.reference ?? jni$_.jNullReference; - _paddingWhileTracking(reference.pointer, - _id_paddingWhileTracking as jni$_.JMethodIDPtr, _$ds.pointer) - .check(); + _paddingWhileTracking( + reference.pointer, + _id_paddingWhileTracking as jni$_.JMethodIDPtr, + _$ds.pointer, + ).check(); } static final _id_paddingWhileTracking$1 = _class.instanceMethodId( @@ -634,27 +743,34 @@ class LocationComponent extends jni$_.JObject { r'([DJ)V', ); - static final _paddingWhileTracking$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int64)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _paddingWhileTracking$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int64)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public void paddingWhileTracking(double[] ds, long j)` - void paddingWhileTracking$1( - jni$_.JDoubleArray? ds, - int j, - ) { + void paddingWhileTracking$1(jni$_.JDoubleArray? ds, int j) { final _$ds = ds?.reference ?? jni$_.jNullReference; - _paddingWhileTracking$1(reference.pointer, - _id_paddingWhileTracking$1 as jni$_.JMethodIDPtr, _$ds.pointer, j) - .check(); + _paddingWhileTracking$1( + reference.pointer, + _id_paddingWhileTracking$1 as jni$_.JMethodIDPtr, + _$ds.pointer, + j, + ).check(); } static final _id_paddingWhileTracking$2 = _class.instanceMethodId( @@ -662,24 +778,31 @@ class LocationComponent extends jni$_.JObject { r'([DJLorg/maplibre/android/maps/MapLibreMap$CancelableCallback;)V', ); - static final _paddingWhileTracking$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _paddingWhileTracking$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int64, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int64, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void paddingWhileTracking(double[] ds, long j, org.maplibre.android.maps.MapLibreMap$CancelableCallback cancelableCallback)` void paddingWhileTracking$2( @@ -691,38 +814,39 @@ class LocationComponent extends jni$_.JObject { final _$cancelableCallback = cancelableCallback?.reference ?? jni$_.jNullReference; _paddingWhileTracking$2( - reference.pointer, - _id_paddingWhileTracking$2 as jni$_.JMethodIDPtr, - _$ds.pointer, - j, - _$cancelableCallback.pointer) - .check(); + reference.pointer, + _id_paddingWhileTracking$2 as jni$_.JMethodIDPtr, + _$ds.pointer, + j, + _$cancelableCallback.pointer, + ).check(); } - static final _id_cancelPaddingWhileTrackingAnimation = - _class.instanceMethodId( - r'cancelPaddingWhileTrackingAnimation', - r'()V', - ); + static final _id_cancelPaddingWhileTrackingAnimation = _class + .instanceMethodId(r'cancelPaddingWhileTrackingAnimation', r'()V'); static final _cancelPaddingWhileTrackingAnimation = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void cancelPaddingWhileTrackingAnimation()` void cancelPaddingWhileTrackingAnimation() { - _cancelPaddingWhileTrackingAnimation(reference.pointer, - _id_cancelPaddingWhileTrackingAnimation as jni$_.JMethodIDPtr) - .check(); + _cancelPaddingWhileTrackingAnimation( + reference.pointer, + _id_cancelPaddingWhileTrackingAnimation as jni$_.JMethodIDPtr, + ).check(); } static final _id_tiltWhileTracking = _class.instanceMethodId( @@ -730,20 +854,27 @@ class LocationComponent extends jni$_.JObject { r'(DJLorg/maplibre/android/maps/MapLibreMap$CancelableCallback;)V', ); - static final _tiltWhileTracking = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _tiltWhileTracking = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Int64, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, double, int, jni$_.Pointer)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Double, jni$_.Int64, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + int, + jni$_.Pointer, + ) + >(); /// from: `public void tiltWhileTracking(double d, long j, org.maplibre.android.maps.MapLibreMap$CancelableCallback cancelableCallback)` void tiltWhileTracking( @@ -754,12 +885,12 @@ class LocationComponent extends jni$_.JObject { final _$cancelableCallback = cancelableCallback?.reference ?? jni$_.jNullReference; _tiltWhileTracking( - reference.pointer, - _id_tiltWhileTracking as jni$_.JMethodIDPtr, - d, - j, - _$cancelableCallback.pointer) - .check(); + reference.pointer, + _id_tiltWhileTracking as jni$_.JMethodIDPtr, + d, + j, + _$cancelableCallback.pointer, + ).check(); } static final _id_tiltWhileTracking$1 = _class.instanceMethodId( @@ -767,25 +898,33 @@ class LocationComponent extends jni$_.JObject { r'(DJ)V', ); - static final _tiltWhileTracking$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double, jni$_.Int64)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double, int)>(); + static final _tiltWhileTracking$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double, jni$_.Int64)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + int, + ) + >(); /// from: `public void tiltWhileTracking(double d, long j)` - void tiltWhileTracking$1( - double d, - int j, - ) { - _tiltWhileTracking$1(reference.pointer, - _id_tiltWhileTracking$1 as jni$_.JMethodIDPtr, d, j) - .check(); + void tiltWhileTracking$1(double d, int j) { + _tiltWhileTracking$1( + reference.pointer, + _id_tiltWhileTracking$1 as jni$_.JMethodIDPtr, + d, + j, + ).check(); } static final _id_tiltWhileTracking$2 = _class.instanceMethodId( @@ -793,23 +932,31 @@ class LocationComponent extends jni$_.JObject { r'(D)V', ); - static final _tiltWhileTracking$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _tiltWhileTracking$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public void tiltWhileTracking(double d)` - void tiltWhileTracking$2( - double d, - ) { + void tiltWhileTracking$2(double d) { _tiltWhileTracking$2( - reference.pointer, _id_tiltWhileTracking$2 as jni$_.JMethodIDPtr, d) - .check(); + reference.pointer, + _id_tiltWhileTracking$2 as jni$_.JMethodIDPtr, + d, + ).check(); } static final _id_cancelTiltWhileTrackingAnimation = _class.instanceMethodId( @@ -819,22 +966,26 @@ class LocationComponent extends jni$_.JObject { static final _cancelTiltWhileTrackingAnimation = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void cancelTiltWhileTrackingAnimation()` void cancelTiltWhileTrackingAnimation() { - _cancelTiltWhileTrackingAnimation(reference.pointer, - _id_cancelTiltWhileTrackingAnimation as jni$_.JMethodIDPtr) - .check(); + _cancelTiltWhileTrackingAnimation( + reference.pointer, + _id_cancelTiltWhileTrackingAnimation as jni$_.JMethodIDPtr, + ).check(); } static final _id_forceLocationUpdate = _class.instanceMethodId( @@ -842,25 +993,32 @@ class LocationComponent extends jni$_.JObject { r'(Landroid/location/Location;)V', ); - static final _forceLocationUpdate = 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 _forceLocationUpdate = + 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 forceLocationUpdate(android.location.Location location)` - void forceLocationUpdate( - location$_.Location? location, - ) { + void forceLocationUpdate(location$_.Location? location) { final _$location = location?.reference ?? jni$_.jNullReference; - _forceLocationUpdate(reference.pointer, - _id_forceLocationUpdate as jni$_.JMethodIDPtr, _$location.pointer) - .check(); + _forceLocationUpdate( + reference.pointer, + _id_forceLocationUpdate as jni$_.JMethodIDPtr, + _$location.pointer, + ).check(); } static final _id_forceLocationUpdate$1 = _class.instanceMethodId( @@ -868,30 +1026,34 @@ class LocationComponent extends jni$_.JObject { r'(Ljava/util/List;Z)V', ); - static final _forceLocationUpdate$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); - - /// from: `public void forceLocationUpdate(java.util.List list, boolean z)` - void forceLocationUpdate$1( - jni$_.JList? list, - bool z, - ) { + static final _forceLocationUpdate$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); + + /// from: `public void forceLocationUpdate(java.util.List list, boolean z)` + void forceLocationUpdate$1(jni$_.JList? list, bool z) { final _$list = list?.reference ?? jni$_.jNullReference; _forceLocationUpdate$1( - reference.pointer, - _id_forceLocationUpdate$1 as jni$_.JMethodIDPtr, - _$list.pointer, - z ? 1 : 0) - .check(); + reference.pointer, + _id_forceLocationUpdate$1 as jni$_.JMethodIDPtr, + _$list.pointer, + z ? 1 : 0, + ).check(); } static final _id_setMaxAnimationFps = _class.instanceMethodId( @@ -899,23 +1061,31 @@ class LocationComponent extends jni$_.JObject { r'(I)V', ); - static final _setMaxAnimationFps = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setMaxAnimationFps = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void setMaxAnimationFps(int i)` - void setMaxAnimationFps( - int i, - ) { + void setMaxAnimationFps(int i) { _setMaxAnimationFps( - reference.pointer, _id_setMaxAnimationFps as jni$_.JMethodIDPtr, i) - .check(); + reference.pointer, + _id_setMaxAnimationFps as jni$_.JMethodIDPtr, + i, + ).check(); } static final _id_setLocationEngine = _class.instanceMethodId( @@ -923,27 +1093,32 @@ class LocationComponent extends jni$_.JObject { r'(Lorg/maplibre/android/location/engine/LocationEngine;)V', ); - static final _setLocationEngine = 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 _setLocationEngine = + 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 setLocationEngine(org.maplibre.android.location.engine.LocationEngine locationEngine)` - void setLocationEngine( - locationengine$_.LocationEngine? locationEngine, - ) { + void setLocationEngine(locationengine$_.LocationEngine? locationEngine) { final _$locationEngine = locationEngine?.reference ?? jni$_.jNullReference; _setLocationEngine( - reference.pointer, - _id_setLocationEngine as jni$_.JMethodIDPtr, - _$locationEngine.pointer) - .check(); + reference.pointer, + _id_setLocationEngine as jni$_.JMethodIDPtr, + _$locationEngine.pointer, + ).check(); } static final _id_setLocationEngineRequest = _class.instanceMethodId( @@ -951,28 +1126,34 @@ class LocationComponent extends jni$_.JObject { r'(Lorg/maplibre/android/location/engine/LocationEngineRequest;)V', ); - static final _setLocationEngineRequest = 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 _setLocationEngineRequest = + 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 setLocationEngineRequest(org.maplibre.android.location.engine.LocationEngineRequest locationEngineRequest)` void setLocationEngineRequest( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, + locationenginerequest$_.LocationEngineRequest locationEngineRequest, ) { - final _$locationEngineRequest = - locationEngineRequest?.reference ?? jni$_.jNullReference; + final _$locationEngineRequest = locationEngineRequest.reference; _setLocationEngineRequest( - reference.pointer, - _id_setLocationEngineRequest as jni$_.JMethodIDPtr, - _$locationEngineRequest.pointer) - .check(); + reference.pointer, + _id_setLocationEngineRequest as jni$_.JMethodIDPtr, + _$locationEngineRequest.pointer, + ).check(); } static final _id_getLocationEngineRequest = _class.instanceMethodId( @@ -980,26 +1161,31 @@ class LocationComponent extends jni$_.JObject { r'()Lorg/maplibre/android/location/engine/LocationEngineRequest;', ); - static final _getLocationEngineRequest = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLocationEngineRequest = + 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 org.maplibre.android.location.engine.LocationEngineRequest getLocationEngineRequest()` /// The returned object must be released after use, by calling the [release] method. - locationenginerequest$_.LocationEngineRequest? getLocationEngineRequest() { - return _getLocationEngineRequest(reference.pointer, - _id_getLocationEngineRequest as jni$_.JMethodIDPtr) - .object( - const locationenginerequest$_ - .$LocationEngineRequest$NullableType()); + locationenginerequest$_.LocationEngineRequest getLocationEngineRequest() { + return _getLocationEngineRequest( + reference.pointer, + _id_getLocationEngineRequest as jni$_.JMethodIDPtr, + ).object( + const locationenginerequest$_.$LocationEngineRequest$Type(), + ); } static final _id_getLocationEngine = _class.instanceMethodId( @@ -1007,25 +1193,31 @@ class LocationComponent extends jni$_.JObject { r'()Lorg/maplibre/android/location/engine/LocationEngine;', ); - static final _getLocationEngine = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLocationEngine = + 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 org.maplibre.android.location.engine.LocationEngine getLocationEngine()` /// The returned object must be released after use, by calling the [release] method. locationengine$_.LocationEngine? getLocationEngine() { return _getLocationEngine( - reference.pointer, _id_getLocationEngine as jni$_.JMethodIDPtr) - .object( - const locationengine$_.$LocationEngine$NullableType()); + reference.pointer, + _id_getLocationEngine as jni$_.JMethodIDPtr, + ).object( + const locationengine$_.$LocationEngine$NullableType(), + ); } static final _id_setCompassEngine = _class.instanceMethodId( @@ -1033,25 +1225,32 @@ class LocationComponent extends jni$_.JObject { r'(Lorg/maplibre/android/location/CompassEngine;)V', ); - static final _setCompassEngine = 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 _setCompassEngine = + 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 setCompassEngine(org.maplibre.android.location.CompassEngine compassEngine)` - void setCompassEngine( - compassengine$_.CompassEngine? compassEngine, - ) { + void setCompassEngine(compassengine$_.CompassEngine? compassEngine) { final _$compassEngine = compassEngine?.reference ?? jni$_.jNullReference; - _setCompassEngine(reference.pointer, - _id_setCompassEngine as jni$_.JMethodIDPtr, _$compassEngine.pointer) - .check(); + _setCompassEngine( + reference.pointer, + _id_setCompassEngine as jni$_.JMethodIDPtr, + _$compassEngine.pointer, + ).check(); } static final _id_getCompassEngine = _class.instanceMethodId( @@ -1059,25 +1258,31 @@ class LocationComponent extends jni$_.JObject { r'()Lorg/maplibre/android/location/CompassEngine;', ); - static final _getCompassEngine = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getCompassEngine = + 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 org.maplibre.android.location.CompassEngine getCompassEngine()` /// The returned object must be released after use, by calling the [release] method. compassengine$_.CompassEngine? getCompassEngine() { return _getCompassEngine( - reference.pointer, _id_getCompassEngine as jni$_.JMethodIDPtr) - .object( - const compassengine$_.$CompassEngine$NullableType()); + reference.pointer, + _id_getCompassEngine as jni$_.JMethodIDPtr, + ).object( + const compassengine$_.$CompassEngine$NullableType(), + ); } static final _id_getLastKnownLocation = _class.instanceMethodId( @@ -1085,25 +1290,29 @@ class LocationComponent extends jni$_.JObject { r'()Landroid/location/Location;', ); - static final _getLastKnownLocation = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLastKnownLocation = + 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 android.location.Location getLastKnownLocation()` /// The returned object must be released after use, by calling the [release] method. location$_.Location? getLastKnownLocation() { return _getLastKnownLocation( - reference.pointer, _id_getLastKnownLocation as jni$_.JMethodIDPtr) - .object( - const location$_.$Location$NullableType()); + reference.pointer, + _id_getLastKnownLocation as jni$_.JMethodIDPtr, + ).object(const location$_.$Location$NullableType()); } static final _id_addOnLocationClickListener = _class.instanceMethodId( @@ -1113,27 +1322,32 @@ class LocationComponent extends jni$_.JObject { static final _addOnLocationClickListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnLocationClickListener(org.maplibre.android.location.OnLocationClickListener onLocationClickListener)` void addOnLocationClickListener( - onlocationclicklistener$_.OnLocationClickListener? onLocationClickListener, + onlocationclicklistener$_.OnLocationClickListener onLocationClickListener, ) { - final _$onLocationClickListener = - onLocationClickListener?.reference ?? jni$_.jNullReference; + final _$onLocationClickListener = onLocationClickListener.reference; _addOnLocationClickListener( - reference.pointer, - _id_addOnLocationClickListener as jni$_.JMethodIDPtr, - _$onLocationClickListener.pointer) - .check(); + reference.pointer, + _id_addOnLocationClickListener as jni$_.JMethodIDPtr, + _$onLocationClickListener.pointer, + ).check(); } static final _id_removeOnLocationClickListener = _class.instanceMethodId( @@ -1143,27 +1357,32 @@ class LocationComponent extends jni$_.JObject { static final _removeOnLocationClickListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnLocationClickListener(org.maplibre.android.location.OnLocationClickListener onLocationClickListener)` void removeOnLocationClickListener( - onlocationclicklistener$_.OnLocationClickListener? onLocationClickListener, + onlocationclicklistener$_.OnLocationClickListener onLocationClickListener, ) { - final _$onLocationClickListener = - onLocationClickListener?.reference ?? jni$_.jNullReference; + final _$onLocationClickListener = onLocationClickListener.reference; _removeOnLocationClickListener( - reference.pointer, - _id_removeOnLocationClickListener as jni$_.JMethodIDPtr, - _$onLocationClickListener.pointer) - .check(); + reference.pointer, + _id_removeOnLocationClickListener as jni$_.JMethodIDPtr, + _$onLocationClickListener.pointer, + ).check(); } static final _id_addOnLocationLongClickListener = _class.instanceMethodId( @@ -1173,28 +1392,33 @@ class LocationComponent extends jni$_.JObject { static final _addOnLocationLongClickListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnLocationLongClickListener(org.maplibre.android.location.OnLocationLongClickListener onLocationLongClickListener)` void addOnLocationLongClickListener( - onlocationlongclicklistener$_.OnLocationLongClickListener? - onLocationLongClickListener, + onlocationlongclicklistener$_.OnLocationLongClickListener + onLocationLongClickListener, ) { - final _$onLocationLongClickListener = - onLocationLongClickListener?.reference ?? jni$_.jNullReference; + final _$onLocationLongClickListener = onLocationLongClickListener.reference; _addOnLocationLongClickListener( - reference.pointer, - _id_addOnLocationLongClickListener as jni$_.JMethodIDPtr, - _$onLocationLongClickListener.pointer) - .check(); + reference.pointer, + _id_addOnLocationLongClickListener as jni$_.JMethodIDPtr, + _$onLocationLongClickListener.pointer, + ).check(); } static final _id_removeOnLocationLongClickListener = _class.instanceMethodId( @@ -1204,28 +1428,33 @@ class LocationComponent extends jni$_.JObject { static final _removeOnLocationLongClickListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnLocationLongClickListener(org.maplibre.android.location.OnLocationLongClickListener onLocationLongClickListener)` void removeOnLocationLongClickListener( - onlocationlongclicklistener$_.OnLocationLongClickListener? - onLocationLongClickListener, + onlocationlongclicklistener$_.OnLocationLongClickListener + onLocationLongClickListener, ) { - final _$onLocationLongClickListener = - onLocationLongClickListener?.reference ?? jni$_.jNullReference; + final _$onLocationLongClickListener = onLocationLongClickListener.reference; _removeOnLocationLongClickListener( - reference.pointer, - _id_removeOnLocationLongClickListener as jni$_.JMethodIDPtr, - _$onLocationLongClickListener.pointer) - .check(); + reference.pointer, + _id_removeOnLocationLongClickListener as jni$_.JMethodIDPtr, + _$onLocationLongClickListener.pointer, + ).check(); } static final _id_addOnCameraTrackingChangedListener = _class.instanceMethodId( @@ -1235,60 +1464,72 @@ class LocationComponent extends jni$_.JObject { static final _addOnCameraTrackingChangedListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnCameraTrackingChangedListener(org.maplibre.android.location.OnCameraTrackingChangedListener onCameraTrackingChangedListener)` void addOnCameraTrackingChangedListener( - oncameratrackingchangedlistener$_.OnCameraTrackingChangedListener? - onCameraTrackingChangedListener, + oncameratrackingchangedlistener$_.OnCameraTrackingChangedListener + onCameraTrackingChangedListener, ) { final _$onCameraTrackingChangedListener = - onCameraTrackingChangedListener?.reference ?? jni$_.jNullReference; + onCameraTrackingChangedListener.reference; _addOnCameraTrackingChangedListener( - reference.pointer, - _id_addOnCameraTrackingChangedListener as jni$_.JMethodIDPtr, - _$onCameraTrackingChangedListener.pointer) - .check(); + reference.pointer, + _id_addOnCameraTrackingChangedListener as jni$_.JMethodIDPtr, + _$onCameraTrackingChangedListener.pointer, + ).check(); } - static final _id_removeOnCameraTrackingChangedListener = - _class.instanceMethodId( - r'removeOnCameraTrackingChangedListener', - r'(Lorg/maplibre/android/location/OnCameraTrackingChangedListener;)V', - ); + static final _id_removeOnCameraTrackingChangedListener = _class + .instanceMethodId( + r'removeOnCameraTrackingChangedListener', + r'(Lorg/maplibre/android/location/OnCameraTrackingChangedListener;)V', + ); static final _removeOnCameraTrackingChangedListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnCameraTrackingChangedListener(org.maplibre.android.location.OnCameraTrackingChangedListener onCameraTrackingChangedListener)` void removeOnCameraTrackingChangedListener( - oncameratrackingchangedlistener$_.OnCameraTrackingChangedListener? - onCameraTrackingChangedListener, + oncameratrackingchangedlistener$_.OnCameraTrackingChangedListener + onCameraTrackingChangedListener, ) { final _$onCameraTrackingChangedListener = - onCameraTrackingChangedListener?.reference ?? jni$_.jNullReference; + onCameraTrackingChangedListener.reference; _removeOnCameraTrackingChangedListener( - reference.pointer, - _id_removeOnCameraTrackingChangedListener as jni$_.JMethodIDPtr, - _$onCameraTrackingChangedListener.pointer) - .check(); + reference.pointer, + _id_removeOnCameraTrackingChangedListener as jni$_.JMethodIDPtr, + _$onCameraTrackingChangedListener.pointer, + ).check(); } static final _id_addOnRenderModeChangedListener = _class.instanceMethodId( @@ -1298,28 +1539,33 @@ class LocationComponent extends jni$_.JObject { static final _addOnRenderModeChangedListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnRenderModeChangedListener(org.maplibre.android.location.OnRenderModeChangedListener onRenderModeChangedListener)` void addOnRenderModeChangedListener( - onrendermodechangedlistener$_.OnRenderModeChangedListener? - onRenderModeChangedListener, + onrendermodechangedlistener$_.OnRenderModeChangedListener + onRenderModeChangedListener, ) { - final _$onRenderModeChangedListener = - onRenderModeChangedListener?.reference ?? jni$_.jNullReference; + final _$onRenderModeChangedListener = onRenderModeChangedListener.reference; _addOnRenderModeChangedListener( - reference.pointer, - _id_addOnRenderModeChangedListener as jni$_.JMethodIDPtr, - _$onRenderModeChangedListener.pointer) - .check(); + reference.pointer, + _id_addOnRenderModeChangedListener as jni$_.JMethodIDPtr, + _$onRenderModeChangedListener.pointer, + ).check(); } static final _id_removeRenderModeChangedListener = _class.instanceMethodId( @@ -1329,28 +1575,33 @@ class LocationComponent extends jni$_.JObject { static final _removeRenderModeChangedListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeRenderModeChangedListener(org.maplibre.android.location.OnRenderModeChangedListener onRenderModeChangedListener)` void removeRenderModeChangedListener( - onrendermodechangedlistener$_.OnRenderModeChangedListener? - onRenderModeChangedListener, + onrendermodechangedlistener$_.OnRenderModeChangedListener + onRenderModeChangedListener, ) { - final _$onRenderModeChangedListener = - onRenderModeChangedListener?.reference ?? jni$_.jNullReference; + final _$onRenderModeChangedListener = onRenderModeChangedListener.reference; _removeRenderModeChangedListener( - reference.pointer, - _id_removeRenderModeChangedListener as jni$_.JMethodIDPtr, - _$onRenderModeChangedListener.pointer) - .check(); + reference.pointer, + _id_removeRenderModeChangedListener as jni$_.JMethodIDPtr, + _$onRenderModeChangedListener.pointer, + ).check(); } static final _id_addOnLocationStaleListener = _class.instanceMethodId( @@ -1360,27 +1611,32 @@ class LocationComponent extends jni$_.JObject { static final _addOnLocationStaleListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnLocationStaleListener(org.maplibre.android.location.OnLocationStaleListener onLocationStaleListener)` void addOnLocationStaleListener( - onlocationstalelistener$_.OnLocationStaleListener? onLocationStaleListener, + onlocationstalelistener$_.OnLocationStaleListener onLocationStaleListener, ) { - final _$onLocationStaleListener = - onLocationStaleListener?.reference ?? jni$_.jNullReference; + final _$onLocationStaleListener = onLocationStaleListener.reference; _addOnLocationStaleListener( - reference.pointer, - _id_addOnLocationStaleListener as jni$_.JMethodIDPtr, - _$onLocationStaleListener.pointer) - .check(); + reference.pointer, + _id_addOnLocationStaleListener as jni$_.JMethodIDPtr, + _$onLocationStaleListener.pointer, + ).check(); } static final _id_removeOnLocationStaleListener = _class.instanceMethodId( @@ -1390,89 +1646,97 @@ class LocationComponent extends jni$_.JObject { static final _removeOnLocationStaleListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnLocationStaleListener(org.maplibre.android.location.OnLocationStaleListener onLocationStaleListener)` void removeOnLocationStaleListener( - onlocationstalelistener$_.OnLocationStaleListener? onLocationStaleListener, + onlocationstalelistener$_.OnLocationStaleListener onLocationStaleListener, ) { - final _$onLocationStaleListener = - onLocationStaleListener?.reference ?? jni$_.jNullReference; + final _$onLocationStaleListener = onLocationStaleListener.reference; _removeOnLocationStaleListener( - reference.pointer, - _id_removeOnLocationStaleListener as jni$_.JMethodIDPtr, - _$onLocationStaleListener.pointer) - .check(); + reference.pointer, + _id_removeOnLocationStaleListener as jni$_.JMethodIDPtr, + _$onLocationStaleListener.pointer, + ).check(); } - static final _id_onStart = _class.instanceMethodId( - r'onStart', - r'()V', - ); + static final _id_onStart = _class.instanceMethodId(r'onStart', r'()V'); - static final _onStart = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onStart = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void onStart()` void onStart() { _onStart(reference.pointer, _id_onStart as jni$_.JMethodIDPtr).check(); } - static final _id_onStop = _class.instanceMethodId( - r'onStop', - r'()V', - ); + static final _id_onStop = _class.instanceMethodId(r'onStop', r'()V'); - static final _onStop = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onStop = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void onStop()` void onStop() { _onStop(reference.pointer, _id_onStop as jni$_.JMethodIDPtr).check(); } - static final _id_onDestroy = _class.instanceMethodId( - r'onDestroy', - r'()V', - ); + static final _id_onDestroy = _class.instanceMethodId(r'onDestroy', r'()V'); - static final _onDestroy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onDestroy = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void onDestroy()` void onDestroy() { @@ -1484,23 +1748,28 @@ class LocationComponent extends jni$_.JObject { r'()V', ); - static final _onStartLoadingMap = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onStartLoadingMap = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void onStartLoadingMap()` void onStartLoadingMap() { _onStartLoadingMap( - reference.pointer, _id_onStartLoadingMap as jni$_.JMethodIDPtr) - .check(); + reference.pointer, + _id_onStartLoadingMap as jni$_.JMethodIDPtr, + ).check(); } static final _id_onFinishLoadingStyle = _class.instanceMethodId( @@ -1508,23 +1777,28 @@ class LocationComponent extends jni$_.JObject { r'()V', ); - static final _onFinishLoadingStyle = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onFinishLoadingStyle = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void onFinishLoadingStyle()` void onFinishLoadingStyle() { _onFinishLoadingStyle( - reference.pointer, _id_onFinishLoadingStyle as jni$_.JMethodIDPtr) - .check(); + reference.pointer, + _id_onFinishLoadingStyle as jni$_.JMethodIDPtr, + ).check(); } static final _id_isLocationComponentActivated = _class.instanceMethodId( @@ -1534,22 +1808,26 @@ class LocationComponent extends jni$_.JObject { static final _isLocationComponentActivated = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public boolean isLocationComponentActivated()` bool isLocationComponentActivated() { - return _isLocationComponentActivated(reference.pointer, - _id_isLocationComponentActivated as jni$_.JMethodIDPtr) - .boolean; + return _isLocationComponentActivated( + reference.pointer, + _id_isLocationComponentActivated as jni$_.JMethodIDPtr, + ).boolean; } } @@ -1565,11 +1843,7 @@ final class $LocationComponent$NullableType @jni$_.internal @core$_.override LocationComponent? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : LocationComponent.fromReference( - reference, - ); + reference.isNull ? null : LocationComponent.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1603,9 +1877,7 @@ final class $LocationComponent$Type extends jni$_.JObjType { @jni$_.internal @core$_.override LocationComponent fromReference(jni$_.JReference reference) => - LocationComponent.fromReference( - reference, - ); + LocationComponent.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/LocationComponentActivationOptions.dart b/lib/src/platform/android/jni/org/maplibre/android/location/LocationComponentActivationOptions.dart index 725450e1..8aca7859 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/LocationComponentActivationOptions.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/LocationComponentActivationOptions.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -67,11 +55,12 @@ class LocationComponentActivationOptions$Builder extends jni$_.JObject { @jni$_.internal LocationComponentActivationOptions$Builder.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/LocationComponentActivationOptions$Builder'); + r'org/maplibre/android/location/LocationComponentActivationOptions$Builder', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -81,37 +70,43 @@ class LocationComponentActivationOptions$Builder extends jni$_.JObject { r'(Landroid/content/Context;Lorg/maplibre/android/maps/Style;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (android.content.Context context, org.maplibre.android.maps.Style style)` /// The returned object must be released after use, by calling the [release] method. factory LocationComponentActivationOptions$Builder( - jni$_.JObject? context, - style$_.Style? style, + jni$_.JObject context, + style$_.Style style, ) { - final _$context = context?.reference ?? jni$_.jNullReference; - final _$style = style?.reference ?? jni$_.jNullReference; - return LocationComponentActivationOptions$Builder.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$context.pointer, - _$style.pointer) - .reference); + final _$context = context.reference; + final _$style = style.reference; + return LocationComponentActivationOptions$Builder.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$context.pointer, + _$style.pointer, + ).reference, + ); } static final _id_locationEngine = _class.instanceMethodId( @@ -119,27 +114,37 @@ class LocationComponentActivationOptions$Builder extends jni$_.JObject { r'(Lorg/maplibre/android/location/engine/LocationEngine;)Lorg/maplibre/android/location/LocationComponentActivationOptions$Builder;', ); - static final _locationEngine = 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)>(); + static final _locationEngine = + 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 org.maplibre.android.location.LocationComponentActivationOptions$Builder locationEngine(org.maplibre.android.location.engine.LocationEngine locationEngine)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentActivationOptions$Builder? locationEngine( + LocationComponentActivationOptions$Builder locationEngine( locationengine$_.LocationEngine? locationEngine, ) { final _$locationEngine = locationEngine?.reference ?? jni$_.jNullReference; - return _locationEngine(reference.pointer, - _id_locationEngine as jni$_.JMethodIDPtr, _$locationEngine.pointer) - .object( - const $LocationComponentActivationOptions$Builder$NullableType()); + return _locationEngine( + reference.pointer, + _id_locationEngine as jni$_.JMethodIDPtr, + _$locationEngine.pointer, + ).object( + const $LocationComponentActivationOptions$Builder$Type(), + ); } static final _id_locationEngineRequest = _class.instanceMethodId( @@ -147,16 +152,23 @@ class LocationComponentActivationOptions$Builder extends jni$_.JObject { r'(Lorg/maplibre/android/location/engine/LocationEngineRequest;)Lorg/maplibre/android/location/LocationComponentActivationOptions$Builder;', ); - static final _locationEngineRequest = 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)>(); + static final _locationEngineRequest = + 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 org.maplibre.android.location.LocationComponentActivationOptions$Builder locationEngineRequest(org.maplibre.android.location.engine.LocationEngineRequest locationEngineRequest)` /// The returned object must be released after use, by calling the [release] method. @@ -166,11 +178,12 @@ class LocationComponentActivationOptions$Builder extends jni$_.JObject { final _$locationEngineRequest = locationEngineRequest?.reference ?? jni$_.jNullReference; return _locationEngineRequest( - reference.pointer, - _id_locationEngineRequest as jni$_.JMethodIDPtr, - _$locationEngineRequest.pointer) - .object( - const $LocationComponentActivationOptions$Builder$NullableType()); + reference.pointer, + _id_locationEngineRequest as jni$_.JMethodIDPtr, + _$locationEngineRequest.pointer, + ).object( + const $LocationComponentActivationOptions$Builder$NullableType(), + ); } static final _id_locationComponentOptions = _class.instanceMethodId( @@ -178,31 +191,39 @@ class LocationComponentActivationOptions$Builder extends jni$_.JObject { r'(Lorg/maplibre/android/location/LocationComponentOptions;)Lorg/maplibre/android/location/LocationComponentActivationOptions$Builder;', ); - static final _locationComponentOptions = 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)>(); + static final _locationComponentOptions = + 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 org.maplibre.android.location.LocationComponentActivationOptions$Builder locationComponentOptions(org.maplibre.android.location.LocationComponentOptions locationComponentOptions)` /// The returned object must be released after use, by calling the [release] method. LocationComponentActivationOptions$Builder? locationComponentOptions( locationcomponentoptions$_.LocationComponentOptions? - locationComponentOptions, + locationComponentOptions, ) { final _$locationComponentOptions = locationComponentOptions?.reference ?? jni$_.jNullReference; return _locationComponentOptions( - reference.pointer, - _id_locationComponentOptions as jni$_.JMethodIDPtr, - _$locationComponentOptions.pointer) - .object( - const $LocationComponentActivationOptions$Builder$NullableType()); + reference.pointer, + _id_locationComponentOptions as jni$_.JMethodIDPtr, + _$locationComponentOptions.pointer, + ).object( + const $LocationComponentActivationOptions$Builder$NullableType(), + ); } static final _id_styleRes = _class.instanceMethodId( @@ -210,24 +231,34 @@ class LocationComponentActivationOptions$Builder extends jni$_.JObject { r'(I)Lorg/maplibre/android/location/LocationComponentActivationOptions$Builder;', ); - static final _styleRes = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _styleRes = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentActivationOptions$Builder styleRes(int i)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentActivationOptions$Builder? styleRes( - int i, - ) { - return _styleRes(reference.pointer, _id_styleRes as jni$_.JMethodIDPtr, i) - .object( - const $LocationComponentActivationOptions$Builder$NullableType()); + LocationComponentActivationOptions$Builder? styleRes(int i) { + return _styleRes( + reference.pointer, + _id_styleRes as jni$_.JMethodIDPtr, + i, + ).object( + const $LocationComponentActivationOptions$Builder$NullableType(), + ); } static final _id_useDefaultLocationEngine = _class.instanceMethodId( @@ -235,25 +266,34 @@ class LocationComponentActivationOptions$Builder extends jni$_.JObject { r'(Z)Lorg/maplibre/android/location/LocationComponentActivationOptions$Builder;', ); - static final _useDefaultLocationEngine = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _useDefaultLocationEngine = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentActivationOptions$Builder useDefaultLocationEngine(boolean z)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentActivationOptions$Builder? useDefaultLocationEngine( - bool z, - ) { - return _useDefaultLocationEngine(reference.pointer, - _id_useDefaultLocationEngine as jni$_.JMethodIDPtr, z ? 1 : 0) - .object( - const $LocationComponentActivationOptions$Builder$NullableType()); + LocationComponentActivationOptions$Builder? useDefaultLocationEngine(bool z) { + return _useDefaultLocationEngine( + reference.pointer, + _id_useDefaultLocationEngine as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object( + const $LocationComponentActivationOptions$Builder$NullableType(), + ); } static final _id_useSpecializedLocationLayer = _class.instanceMethodId( @@ -263,23 +303,34 @@ class LocationComponentActivationOptions$Builder extends jni$_.JObject { static final _useSpecializedLocationLayer = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentActivationOptions$Builder useSpecializedLocationLayer(boolean z)` /// The returned object must be released after use, by calling the [release] method. LocationComponentActivationOptions$Builder? useSpecializedLocationLayer( bool z, ) { - return _useSpecializedLocationLayer(reference.pointer, - _id_useSpecializedLocationLayer as jni$_.JMethodIDPtr, z ? 1 : 0) - .object( - const $LocationComponentActivationOptions$Builder$NullableType()); + return _useSpecializedLocationLayer( + reference.pointer, + _id_useSpecializedLocationLayer as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object( + const $LocationComponentActivationOptions$Builder$NullableType(), + ); } static final _id_build = _class.instanceMethodId( @@ -287,24 +338,31 @@ class LocationComponentActivationOptions$Builder extends jni$_.JObject { r'()Lorg/maplibre/android/location/LocationComponentActivationOptions;', ); - static final _build = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _build = + 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 org.maplibre.android.location.LocationComponentActivationOptions build()` /// The returned object must be released after use, by calling the [release] method. LocationComponentActivationOptions? build() { - return _build(reference.pointer, _id_build as jni$_.JMethodIDPtr) - .object( - const $LocationComponentActivationOptions$NullableType()); + return _build( + reference.pointer, + _id_build as jni$_.JMethodIDPtr, + ).object( + const $LocationComponentActivationOptions$NullableType(), + ); } } @@ -321,12 +379,10 @@ final class $LocationComponentActivationOptions$Builder$NullableType @jni$_.internal @core$_.override LocationComponentActivationOptions$Builder? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : LocationComponentActivationOptions$Builder.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : LocationComponentActivationOptions$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -334,7 +390,7 @@ final class $LocationComponentActivationOptions$Builder$NullableType @jni$_.internal @core$_.override jni$_.JObjType - get nullableType => this; + get nullableType => this; @jni$_.internal @core$_.override @@ -365,10 +421,8 @@ final class $LocationComponentActivationOptions$Builder$Type @jni$_.internal @core$_.override LocationComponentActivationOptions$Builder fromReference( - jni$_.JReference reference) => - LocationComponentActivationOptions$Builder.fromReference( - reference, - ); + jni$_.JReference reference, + ) => LocationComponentActivationOptions$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -376,8 +430,8 @@ final class $LocationComponentActivationOptions$Builder$Type @jni$_.internal @core$_.override jni$_.JObjType - get nullableType => - const $LocationComponentActivationOptions$Builder$NullableType(); + get nullableType => + const $LocationComponentActivationOptions$Builder$NullableType(); @jni$_.internal @core$_.override @@ -402,13 +456,13 @@ class LocationComponentActivationOptions extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - LocationComponentActivationOptions.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + LocationComponentActivationOptions.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/LocationComponentActivationOptions'); + r'org/maplibre/android/location/LocationComponentActivationOptions', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -419,35 +473,43 @@ class LocationComponentActivationOptions extends jni$_.JObject { r'(Landroid/content/Context;Lorg/maplibre/android/maps/Style;)Lorg/maplibre/android/location/LocationComponentActivationOptions$Builder;', ); - static final _builder = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _builder = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public org.maplibre.android.location.LocationComponentActivationOptions$Builder builder(android.content.Context context, org.maplibre.android.maps.Style style)` /// The returned object must be released after use, by calling the [release] method. - static LocationComponentActivationOptions$Builder? builder( - jni$_.JObject? context, - style$_.Style? style, + static LocationComponentActivationOptions$Builder builder( + jni$_.JObject context, + style$_.Style style, ) { - final _$context = context?.reference ?? jni$_.jNullReference; - final _$style = style?.reference ?? jni$_.jNullReference; - return _builder(_class.reference.pointer, _id_builder as jni$_.JMethodIDPtr, - _$context.pointer, _$style.pointer) - .object( - const $LocationComponentActivationOptions$Builder$NullableType()); + final _$context = context.reference; + final _$style = style.reference; + return _builder( + _class.reference.pointer, + _id_builder as jni$_.JMethodIDPtr, + _$context.pointer, + _$style.pointer, + ).object( + const $LocationComponentActivationOptions$Builder$Type(), + ); } static final _id_context = _class.instanceMethodId( @@ -455,23 +517,29 @@ class LocationComponentActivationOptions extends jni$_.JObject { r'()Landroid/content/Context;', ); - static final _context = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _context = + 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 android.content.Context context()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? context() { - return _context(reference.pointer, _id_context as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject context() { + return _context( + reference.pointer, + _id_context as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } static final _id_style = _class.instanceMethodId( @@ -479,23 +547,29 @@ class LocationComponentActivationOptions extends jni$_.JObject { r'()Lorg/maplibre/android/maps/Style;', ); - static final _style = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _style = + 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 org.maplibre.android.maps.Style style()` /// The returned object must be released after use, by calling the [release] method. - style$_.Style? style() { - return _style(reference.pointer, _id_style as jni$_.JMethodIDPtr) - .object(const style$_.$Style$NullableType()); + style$_.Style style() { + return _style( + reference.pointer, + _id_style as jni$_.JMethodIDPtr, + ).object(const style$_.$Style$Type()); } static final _id_locationEngine = _class.instanceMethodId( @@ -503,25 +577,31 @@ class LocationComponentActivationOptions extends jni$_.JObject { r'()Lorg/maplibre/android/location/engine/LocationEngine;', ); - static final _locationEngine = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _locationEngine = + 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 org.maplibre.android.location.engine.LocationEngine locationEngine()` /// The returned object must be released after use, by calling the [release] method. locationengine$_.LocationEngine? locationEngine() { return _locationEngine( - reference.pointer, _id_locationEngine as jni$_.JMethodIDPtr) - .object( - const locationengine$_.$LocationEngine$NullableType()); + reference.pointer, + _id_locationEngine as jni$_.JMethodIDPtr, + ).object( + const locationengine$_.$LocationEngine$NullableType(), + ); } static final _id_locationEngineRequest = _class.instanceMethodId( @@ -529,26 +609,31 @@ class LocationComponentActivationOptions extends jni$_.JObject { r'()Lorg/maplibre/android/location/engine/LocationEngineRequest;', ); - static final _locationEngineRequest = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _locationEngineRequest = + 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 org.maplibre.android.location.engine.LocationEngineRequest locationEngineRequest()` /// The returned object must be released after use, by calling the [release] method. locationenginerequest$_.LocationEngineRequest? locationEngineRequest() { return _locationEngineRequest( - reference.pointer, _id_locationEngineRequest as jni$_.JMethodIDPtr) - .object( - const locationenginerequest$_ - .$LocationEngineRequest$NullableType()); + reference.pointer, + _id_locationEngineRequest as jni$_.JMethodIDPtr, + ).object( + const locationenginerequest$_.$LocationEngineRequest$NullableType(), + ); } static final _id_locationComponentOptions = _class.instanceMethodId( @@ -556,50 +641,58 @@ class LocationComponentActivationOptions extends jni$_.JObject { r'()Lorg/maplibre/android/location/LocationComponentOptions;', ); - static final _locationComponentOptions = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _locationComponentOptions = + 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 org.maplibre.android.location.LocationComponentOptions locationComponentOptions()` /// The returned object must be released after use, by calling the [release] method. locationcomponentoptions$_.LocationComponentOptions? - locationComponentOptions() { - return _locationComponentOptions(reference.pointer, - _id_locationComponentOptions as jni$_.JMethodIDPtr) - .object( - const locationcomponentoptions$_ - .$LocationComponentOptions$NullableType()); + locationComponentOptions() { + return _locationComponentOptions( + reference.pointer, + _id_locationComponentOptions as jni$_.JMethodIDPtr, + ).object( + const locationcomponentoptions$_.$LocationComponentOptions$NullableType(), + ); } - static final _id_styleRes = _class.instanceMethodId( - r'styleRes', - r'()I', - ); + static final _id_styleRes = _class.instanceMethodId(r'styleRes', r'()I'); - static final _styleRes = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _styleRes = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int styleRes()` int styleRes() { - return _styleRes(reference.pointer, _id_styleRes as jni$_.JMethodIDPtr) - .integer; + return _styleRes( + reference.pointer, + _id_styleRes as jni$_.JMethodIDPtr, + ).integer; } static final _id_useDefaultLocationEngine = _class.instanceMethodId( @@ -607,23 +700,28 @@ class LocationComponentActivationOptions extends jni$_.JObject { r'()Z', ); - static final _useDefaultLocationEngine = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _useDefaultLocationEngine = + 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 useDefaultLocationEngine()` bool useDefaultLocationEngine() { - return _useDefaultLocationEngine(reference.pointer, - _id_useDefaultLocationEngine as jni$_.JMethodIDPtr) - .boolean; + return _useDefaultLocationEngine( + reference.pointer, + _id_useDefaultLocationEngine as jni$_.JMethodIDPtr, + ).boolean; } static final _id_useSpecializedLocationLayer = _class.instanceMethodId( @@ -633,22 +731,26 @@ class LocationComponentActivationOptions extends jni$_.JObject { static final _useSpecializedLocationLayer = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public boolean useSpecializedLocationLayer()` bool useSpecializedLocationLayer() { - return _useSpecializedLocationLayer(reference.pointer, - _id_useSpecializedLocationLayer as jni$_.JMethodIDPtr) - .boolean; + return _useSpecializedLocationLayer( + reference.pointer, + _id_useSpecializedLocationLayer as jni$_.JMethodIDPtr, + ).boolean; } } @@ -665,12 +767,10 @@ final class $LocationComponentActivationOptions$NullableType @jni$_.internal @core$_.override LocationComponentActivationOptions? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : LocationComponentActivationOptions.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : LocationComponentActivationOptions.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -708,10 +808,8 @@ final class $LocationComponentActivationOptions$Type @jni$_.internal @core$_.override LocationComponentActivationOptions fromReference( - jni$_.JReference reference) => - LocationComponentActivationOptions.fromReference( - reference, - ); + jni$_.JReference reference, + ) => LocationComponentActivationOptions.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/LocationComponentConstants.dart b/lib/src/platform/android/jni/org/maplibre/android/location/LocationComponentConstants.dart index 44a9520b..ab16eb7f 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/LocationComponentConstants.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/LocationComponentConstants.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class LocationComponentConstants extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - LocationComponentConstants.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + LocationComponentConstants.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/LocationComponentConstants'); + r'org/maplibre/android/location/LocationComponentConstants', + ); /// The type which includes information such as the signature of this class. static const nullableType = $LocationComponentConstants$NullableType(); @@ -153,10 +141,8 @@ final class $LocationComponentConstants$NullableType @core$_.override LocationComponentConstants? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : LocationComponentConstants.fromReference( - reference, - ); + ? null + : LocationComponentConstants.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -192,9 +178,7 @@ final class $LocationComponentConstants$Type @jni$_.internal @core$_.override LocationComponentConstants fromReference(jni$_.JReference reference) => - LocationComponentConstants.fromReference( - reference, - ); + LocationComponentConstants.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/LocationComponentOptions.dart b/lib/src/platform/android/jni/org/maplibre/android/location/LocationComponentOptions.dart index 867f2c96..8d06a992 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/LocationComponentOptions.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/LocationComponentOptions.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class LocationComponentOptions$Builder extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - LocationComponentOptions$Builder.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + LocationComponentOptions$Builder.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/LocationComponentOptions$Builder'); + r'org/maplibre/android/location/LocationComponentOptions$Builder', + ); /// The type which includes information such as the signature of this class. static const nullableType = $LocationComponentOptions$Builder$NullableType(); @@ -73,24 +61,29 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'()Lorg/maplibre/android/location/LocationComponentOptions;', ); - static final _build = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _build = + 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 org.maplibre.android.location.LocationComponentOptions build()` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions? build() { - return _build(reference.pointer, _id_build as jni$_.JMethodIDPtr) - .object( - const $LocationComponentOptions$NullableType()); + LocationComponentOptions build() { + return _build( + reference.pointer, + _id_build as jni$_.JMethodIDPtr, + ).object(const $LocationComponentOptions$Type()); } static final _id_accuracyAlpha = _class.instanceMethodId( @@ -98,26 +91,34 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(F)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _accuracyAlpha = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _accuracyAlpha = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Double,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder accuracyAlpha(float f)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? accuracyAlpha( - double f, - ) { + LocationComponentOptions$Builder accuracyAlpha(double f) { return _accuracyAlpha( - reference.pointer, _id_accuracyAlpha as jni$_.JMethodIDPtr, f) - .object( - const $LocationComponentOptions$Builder$NullableType()); + reference.pointer, + _id_accuracyAlpha as jni$_.JMethodIDPtr, + f, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_accuracyColor = _class.instanceMethodId( @@ -125,25 +126,34 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(I)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _accuracyColor = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _accuracyColor = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder accuracyColor(int i)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? accuracyColor( - int i, - ) { + LocationComponentOptions$Builder accuracyColor(int i) { return _accuracyColor( - reference.pointer, _id_accuracyColor as jni$_.JMethodIDPtr, i) - .object( - const $LocationComponentOptions$Builder$NullableType()); + reference.pointer, + _id_accuracyColor as jni$_.JMethodIDPtr, + i, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_backgroundDrawableStale = _class.instanceMethodId( @@ -151,25 +161,34 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(I)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _backgroundDrawableStale = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _backgroundDrawableStale = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder backgroundDrawableStale(int i)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? backgroundDrawableStale( - int i, - ) { - return _backgroundDrawableStale(reference.pointer, - _id_backgroundDrawableStale as jni$_.JMethodIDPtr, i) - .object( - const $LocationComponentOptions$Builder$NullableType()); + LocationComponentOptions$Builder backgroundDrawableStale(int i) { + return _backgroundDrawableStale( + reference.pointer, + _id_backgroundDrawableStale as jni$_.JMethodIDPtr, + i, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_backgroundStaleName = _class.instanceMethodId( @@ -177,27 +196,35 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(Ljava/lang/String;)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _backgroundStaleName = 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)>(); + static final _backgroundStaleName = + 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 org.maplibre.android.location.LocationComponentOptions$Builder backgroundStaleName(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? backgroundStaleName( - jni$_.JString? string, - ) { + LocationComponentOptions$Builder backgroundStaleName(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _backgroundStaleName(reference.pointer, - _id_backgroundStaleName as jni$_.JMethodIDPtr, _$string.pointer) - .object( - const $LocationComponentOptions$Builder$NullableType()); + return _backgroundStaleName( + reference.pointer, + _id_backgroundStaleName as jni$_.JMethodIDPtr, + _$string.pointer, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_foregroundDrawableStale = _class.instanceMethodId( @@ -205,25 +232,34 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(I)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _foregroundDrawableStale = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _foregroundDrawableStale = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder foregroundDrawableStale(int i)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? foregroundDrawableStale( - int i, - ) { - return _foregroundDrawableStale(reference.pointer, - _id_foregroundDrawableStale as jni$_.JMethodIDPtr, i) - .object( - const $LocationComponentOptions$Builder$NullableType()); + LocationComponentOptions$Builder foregroundDrawableStale(int i) { + return _foregroundDrawableStale( + reference.pointer, + _id_foregroundDrawableStale as jni$_.JMethodIDPtr, + i, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_foregroundStaleName = _class.instanceMethodId( @@ -231,27 +267,35 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(Ljava/lang/String;)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _foregroundStaleName = 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)>(); + static final _foregroundStaleName = + 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 org.maplibre.android.location.LocationComponentOptions$Builder foregroundStaleName(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? foregroundStaleName( - jni$_.JString? string, - ) { + LocationComponentOptions$Builder foregroundStaleName(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _foregroundStaleName(reference.pointer, - _id_foregroundStaleName as jni$_.JMethodIDPtr, _$string.pointer) - .object( - const $LocationComponentOptions$Builder$NullableType()); + return _foregroundStaleName( + reference.pointer, + _id_foregroundStaleName as jni$_.JMethodIDPtr, + _$string.pointer, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_gpsDrawable = _class.instanceMethodId( @@ -259,25 +303,34 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(I)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _gpsDrawable = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _gpsDrawable = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder gpsDrawable(int i)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? gpsDrawable( - int i, - ) { + LocationComponentOptions$Builder gpsDrawable(int i) { return _gpsDrawable( - reference.pointer, _id_gpsDrawable as jni$_.JMethodIDPtr, i) - .object( - const $LocationComponentOptions$Builder$NullableType()); + reference.pointer, + _id_gpsDrawable as jni$_.JMethodIDPtr, + i, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_gpsName = _class.instanceMethodId( @@ -285,27 +338,35 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(Ljava/lang/String;)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _gpsName = 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)>(); + static final _gpsName = + 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 org.maplibre.android.location.LocationComponentOptions$Builder gpsName(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? gpsName( - jni$_.JString? string, - ) { + LocationComponentOptions$Builder gpsName(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _gpsName(reference.pointer, _id_gpsName as jni$_.JMethodIDPtr, - _$string.pointer) - .object( - const $LocationComponentOptions$Builder$NullableType()); + return _gpsName( + reference.pointer, + _id_gpsName as jni$_.JMethodIDPtr, + _$string.pointer, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_foregroundDrawable = _class.instanceMethodId( @@ -313,25 +374,34 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(I)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _foregroundDrawable = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _foregroundDrawable = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder foregroundDrawable(int i)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? foregroundDrawable( - int i, - ) { + LocationComponentOptions$Builder foregroundDrawable(int i) { return _foregroundDrawable( - reference.pointer, _id_foregroundDrawable as jni$_.JMethodIDPtr, i) - .object( - const $LocationComponentOptions$Builder$NullableType()); + reference.pointer, + _id_foregroundDrawable as jni$_.JMethodIDPtr, + i, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_foregroundName = _class.instanceMethodId( @@ -339,27 +409,35 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(Ljava/lang/String;)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _foregroundName = 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)>(); + static final _foregroundName = + 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 org.maplibre.android.location.LocationComponentOptions$Builder foregroundName(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? foregroundName( - jni$_.JString? string, - ) { + LocationComponentOptions$Builder foregroundName(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _foregroundName(reference.pointer, - _id_foregroundName as jni$_.JMethodIDPtr, _$string.pointer) - .object( - const $LocationComponentOptions$Builder$NullableType()); + return _foregroundName( + reference.pointer, + _id_foregroundName as jni$_.JMethodIDPtr, + _$string.pointer, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_backgroundDrawable = _class.instanceMethodId( @@ -367,25 +445,34 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(I)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _backgroundDrawable = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _backgroundDrawable = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder backgroundDrawable(int i)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? backgroundDrawable( - int i, - ) { + LocationComponentOptions$Builder backgroundDrawable(int i) { return _backgroundDrawable( - reference.pointer, _id_backgroundDrawable as jni$_.JMethodIDPtr, i) - .object( - const $LocationComponentOptions$Builder$NullableType()); + reference.pointer, + _id_backgroundDrawable as jni$_.JMethodIDPtr, + i, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_backgroundName = _class.instanceMethodId( @@ -393,27 +480,35 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(Ljava/lang/String;)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _backgroundName = 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)>(); + static final _backgroundName = + 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 org.maplibre.android.location.LocationComponentOptions$Builder backgroundName(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? backgroundName( - jni$_.JString? string, - ) { + LocationComponentOptions$Builder backgroundName(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _backgroundName(reference.pointer, - _id_backgroundName as jni$_.JMethodIDPtr, _$string.pointer) - .object( - const $LocationComponentOptions$Builder$NullableType()); + return _backgroundName( + reference.pointer, + _id_backgroundName as jni$_.JMethodIDPtr, + _$string.pointer, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_bearingDrawable = _class.instanceMethodId( @@ -421,25 +516,34 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(I)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _bearingDrawable = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _bearingDrawable = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder bearingDrawable(int i)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? bearingDrawable( - int i, - ) { + LocationComponentOptions$Builder bearingDrawable(int i) { return _bearingDrawable( - reference.pointer, _id_bearingDrawable as jni$_.JMethodIDPtr, i) - .object( - const $LocationComponentOptions$Builder$NullableType()); + reference.pointer, + _id_bearingDrawable as jni$_.JMethodIDPtr, + i, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_bearingName = _class.instanceMethodId( @@ -447,27 +551,35 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(Ljava/lang/String;)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _bearingName = 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)>(); + static final _bearingName = + 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 org.maplibre.android.location.LocationComponentOptions$Builder bearingName(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? bearingName( - jni$_.JString? string, - ) { + LocationComponentOptions$Builder bearingName(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _bearingName(reference.pointer, - _id_bearingName as jni$_.JMethodIDPtr, _$string.pointer) - .object( - const $LocationComponentOptions$Builder$NullableType()); + return _bearingName( + reference.pointer, + _id_bearingName as jni$_.JMethodIDPtr, + _$string.pointer, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_bearingTintColor = _class.instanceMethodId( @@ -475,27 +587,35 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(Ljava/lang/Integer;)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _bearingTintColor = 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)>(); + static final _bearingTintColor = + 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 org.maplibre.android.location.LocationComponentOptions$Builder bearingTintColor(java.lang.Integer integer)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? bearingTintColor( - jni$_.JInteger? integer, - ) { + LocationComponentOptions$Builder bearingTintColor(jni$_.JInteger? integer) { final _$integer = integer?.reference ?? jni$_.jNullReference; - return _bearingTintColor(reference.pointer, - _id_bearingTintColor as jni$_.JMethodIDPtr, _$integer.pointer) - .object( - const $LocationComponentOptions$Builder$NullableType()); + return _bearingTintColor( + reference.pointer, + _id_bearingTintColor as jni$_.JMethodIDPtr, + _$integer.pointer, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_foregroundTintColor = _class.instanceMethodId( @@ -503,27 +623,37 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(Ljava/lang/Integer;)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _foregroundTintColor = 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)>(); + static final _foregroundTintColor = + 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 org.maplibre.android.location.LocationComponentOptions$Builder foregroundTintColor(java.lang.Integer integer)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? foregroundTintColor( + LocationComponentOptions$Builder foregroundTintColor( jni$_.JInteger? integer, ) { final _$integer = integer?.reference ?? jni$_.jNullReference; - return _foregroundTintColor(reference.pointer, - _id_foregroundTintColor as jni$_.JMethodIDPtr, _$integer.pointer) - .object( - const $LocationComponentOptions$Builder$NullableType()); + return _foregroundTintColor( + reference.pointer, + _id_foregroundTintColor as jni$_.JMethodIDPtr, + _$integer.pointer, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_backgroundTintColor = _class.instanceMethodId( @@ -531,27 +661,37 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(Ljava/lang/Integer;)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _backgroundTintColor = 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)>(); + static final _backgroundTintColor = + 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 org.maplibre.android.location.LocationComponentOptions$Builder backgroundTintColor(java.lang.Integer integer)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? backgroundTintColor( + LocationComponentOptions$Builder backgroundTintColor( jni$_.JInteger? integer, ) { final _$integer = integer?.reference ?? jni$_.jNullReference; - return _backgroundTintColor(reference.pointer, - _id_backgroundTintColor as jni$_.JMethodIDPtr, _$integer.pointer) - .object( - const $LocationComponentOptions$Builder$NullableType()); + return _backgroundTintColor( + reference.pointer, + _id_backgroundTintColor as jni$_.JMethodIDPtr, + _$integer.pointer, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_foregroundStaleTintColor = _class.instanceMethodId( @@ -559,29 +699,37 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(Ljava/lang/Integer;)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _foregroundStaleTintColor = 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)>(); + static final _foregroundStaleTintColor = + 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 org.maplibre.android.location.LocationComponentOptions$Builder foregroundStaleTintColor(java.lang.Integer integer)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? foregroundStaleTintColor( + LocationComponentOptions$Builder foregroundStaleTintColor( jni$_.JInteger? integer, ) { final _$integer = integer?.reference ?? jni$_.jNullReference; return _foregroundStaleTintColor( - reference.pointer, - _id_foregroundStaleTintColor as jni$_.JMethodIDPtr, - _$integer.pointer) - .object( - const $LocationComponentOptions$Builder$NullableType()); + reference.pointer, + _id_foregroundStaleTintColor as jni$_.JMethodIDPtr, + _$integer.pointer, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_backgroundStaleTintColor = _class.instanceMethodId( @@ -589,29 +737,37 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(Ljava/lang/Integer;)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _backgroundStaleTintColor = 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)>(); + static final _backgroundStaleTintColor = + 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 org.maplibre.android.location.LocationComponentOptions$Builder backgroundStaleTintColor(java.lang.Integer integer)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? backgroundStaleTintColor( + LocationComponentOptions$Builder backgroundStaleTintColor( jni$_.JInteger? integer, ) { final _$integer = integer?.reference ?? jni$_.jNullReference; return _backgroundStaleTintColor( - reference.pointer, - _id_backgroundStaleTintColor as jni$_.JMethodIDPtr, - _$integer.pointer) - .object( - const $LocationComponentOptions$Builder$NullableType()); + reference.pointer, + _id_backgroundStaleTintColor as jni$_.JMethodIDPtr, + _$integer.pointer, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_elevation = _class.instanceMethodId( @@ -619,25 +775,34 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(F)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _elevation = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _elevation = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Double,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder elevation(float f)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? elevation( - double f, - ) { - return _elevation(reference.pointer, _id_elevation as jni$_.JMethodIDPtr, f) - .object( - const $LocationComponentOptions$Builder$NullableType()); + LocationComponentOptions$Builder elevation(double f) { + return _elevation( + reference.pointer, + _id_elevation as jni$_.JMethodIDPtr, + f, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_enableStaleState = _class.instanceMethodId( @@ -645,25 +810,34 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(Z)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _enableStaleState = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _enableStaleState = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder enableStaleState(boolean z)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? enableStaleState( - bool z, - ) { - return _enableStaleState(reference.pointer, - _id_enableStaleState as jni$_.JMethodIDPtr, z ? 1 : 0) - .object( - const $LocationComponentOptions$Builder$NullableType()); + LocationComponentOptions$Builder enableStaleState(bool z) { + return _enableStaleState( + reference.pointer, + _id_enableStaleState as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_staleStateTimeout = _class.instanceMethodId( @@ -671,25 +845,34 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(J)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _staleStateTimeout = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _staleStateTimeout = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder staleStateTimeout(long j)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? staleStateTimeout( - int j, - ) { + LocationComponentOptions$Builder staleStateTimeout(int j) { return _staleStateTimeout( - reference.pointer, _id_staleStateTimeout as jni$_.JMethodIDPtr, j) - .object( - const $LocationComponentOptions$Builder$NullableType()); + reference.pointer, + _id_staleStateTimeout as jni$_.JMethodIDPtr, + j, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_padding = _class.instanceMethodId( @@ -697,27 +880,35 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'([I)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _padding = 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)>(); + static final _padding = + 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 org.maplibre.android.location.LocationComponentOptions$Builder padding(int[] is)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? padding( - jni$_.JIntArray? is$, - ) { + LocationComponentOptions$Builder padding(jni$_.JIntArray? is$) { final _$is$ = is$?.reference ?? jni$_.jNullReference; return _padding( - reference.pointer, _id_padding as jni$_.JMethodIDPtr, _$is$.pointer) - .object( - const $LocationComponentOptions$Builder$NullableType()); + reference.pointer, + _id_padding as jni$_.JMethodIDPtr, + _$is$.pointer, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_maxZoomIconScale = _class.instanceMethodId( @@ -725,26 +916,34 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(F)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _maxZoomIconScale = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _maxZoomIconScale = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Double,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder maxZoomIconScale(float f)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? maxZoomIconScale( - double f, - ) { + LocationComponentOptions$Builder maxZoomIconScale(double f) { return _maxZoomIconScale( - reference.pointer, _id_maxZoomIconScale as jni$_.JMethodIDPtr, f) - .object( - const $LocationComponentOptions$Builder$NullableType()); + reference.pointer, + _id_maxZoomIconScale as jni$_.JMethodIDPtr, + f, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_minZoomIconScale = _class.instanceMethodId( @@ -752,26 +951,34 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(F)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _minZoomIconScale = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _minZoomIconScale = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Double,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder minZoomIconScale(float f)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? minZoomIconScale( - double f, - ) { + LocationComponentOptions$Builder minZoomIconScale(double f) { return _minZoomIconScale( - reference.pointer, _id_minZoomIconScale as jni$_.JMethodIDPtr, f) - .object( - const $LocationComponentOptions$Builder$NullableType()); + reference.pointer, + _id_minZoomIconScale as jni$_.JMethodIDPtr, + f, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_trackingGesturesManagement = _class.instanceMethodId( @@ -781,23 +988,32 @@ class LocationComponentOptions$Builder extends jni$_.JObject { static final _trackingGesturesManagement = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder trackingGesturesManagement(boolean z)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? trackingGesturesManagement( - bool z, - ) { - return _trackingGesturesManagement(reference.pointer, - _id_trackingGesturesManagement as jni$_.JMethodIDPtr, z ? 1 : 0) - .object( - const $LocationComponentOptions$Builder$NullableType()); + LocationComponentOptions$Builder trackingGesturesManagement(bool z) { + return _trackingGesturesManagement( + reference.pointer, + _id_trackingGesturesManagement as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_trackingInitialMoveThreshold = _class.instanceMethodId( @@ -807,23 +1023,32 @@ class LocationComponentOptions$Builder extends jni$_.JObject { static final _trackingInitialMoveThreshold = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Double,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder trackingInitialMoveThreshold(float f)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? trackingInitialMoveThreshold( - double f, - ) { - return _trackingInitialMoveThreshold(reference.pointer, - _id_trackingInitialMoveThreshold as jni$_.JMethodIDPtr, f) - .object( - const $LocationComponentOptions$Builder$NullableType()); + LocationComponentOptions$Builder trackingInitialMoveThreshold(double f) { + return _trackingInitialMoveThreshold( + reference.pointer, + _id_trackingInitialMoveThreshold as jni$_.JMethodIDPtr, + f, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_trackingMultiFingerMoveThreshold = _class.instanceMethodId( @@ -833,55 +1058,70 @@ class LocationComponentOptions$Builder extends jni$_.JObject { static final _trackingMultiFingerMoveThreshold = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Double,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder trackingMultiFingerMoveThreshold(float f)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? trackingMultiFingerMoveThreshold( - double f, - ) { - return _trackingMultiFingerMoveThreshold(reference.pointer, - _id_trackingMultiFingerMoveThreshold as jni$_.JMethodIDPtr, f) - .object( - const $LocationComponentOptions$Builder$NullableType()); + LocationComponentOptions$Builder trackingMultiFingerMoveThreshold(double f) { + return _trackingMultiFingerMoveThreshold( + reference.pointer, + _id_trackingMultiFingerMoveThreshold as jni$_.JMethodIDPtr, + f, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } - static final _id_trackingMultiFingerProtectedMoveArea = - _class.instanceMethodId( + static final _id_trackingMultiFingerProtectedMoveArea = _class.instanceMethodId( r'trackingMultiFingerProtectedMoveArea', r'(Landroid/graphics/RectF;)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); static final _trackingMultiFingerProtectedMoveArea = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') + 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)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder trackingMultiFingerProtectedMoveArea(android.graphics.RectF rectF)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? trackingMultiFingerProtectedMoveArea( + LocationComponentOptions$Builder trackingMultiFingerProtectedMoveArea( jni$_.JObject? rectF, ) { final _$rectF = rectF?.reference ?? jni$_.jNullReference; return _trackingMultiFingerProtectedMoveArea( - reference.pointer, - _id_trackingMultiFingerProtectedMoveArea as jni$_.JMethodIDPtr, - _$rectF.pointer) - .object( - const $LocationComponentOptions$Builder$NullableType()); + reference.pointer, + _id_trackingMultiFingerProtectedMoveArea as jni$_.JMethodIDPtr, + _$rectF.pointer, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_layerAbove = _class.instanceMethodId( @@ -889,27 +1129,35 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(Ljava/lang/String;)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _layerAbove = 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)>(); + static final _layerAbove = + 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 org.maplibre.android.location.LocationComponentOptions$Builder layerAbove(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? layerAbove( - jni$_.JString? string, - ) { + LocationComponentOptions$Builder layerAbove(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _layerAbove(reference.pointer, _id_layerAbove as jni$_.JMethodIDPtr, - _$string.pointer) - .object( - const $LocationComponentOptions$Builder$NullableType()); + return _layerAbove( + reference.pointer, + _id_layerAbove as jni$_.JMethodIDPtr, + _$string.pointer, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_layerBelow = _class.instanceMethodId( @@ -917,54 +1165,73 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(Ljava/lang/String;)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _layerBelow = 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)>(); + static final _layerBelow = + 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 org.maplibre.android.location.LocationComponentOptions$Builder layerBelow(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? layerBelow( - jni$_.JString? string, - ) { + LocationComponentOptions$Builder layerBelow(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _layerBelow(reference.pointer, _id_layerBelow as jni$_.JMethodIDPtr, - _$string.pointer) - .object( - const $LocationComponentOptions$Builder$NullableType()); - } - - static final _id_trackingAnimationDurationMultiplier = - _class.instanceMethodId( - r'trackingAnimationDurationMultiplier', - r'(F)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', - ); + return _layerBelow( + reference.pointer, + _id_layerBelow as jni$_.JMethodIDPtr, + _$string.pointer, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); + } + + static final _id_trackingAnimationDurationMultiplier = _class + .instanceMethodId( + r'trackingAnimationDurationMultiplier', + r'(F)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', + ); static final _trackingAnimationDurationMultiplier = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Double,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder trackingAnimationDurationMultiplier(float f)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? trackingAnimationDurationMultiplier( + LocationComponentOptions$Builder trackingAnimationDurationMultiplier( double f, ) { - return _trackingAnimationDurationMultiplier(reference.pointer, - _id_trackingAnimationDurationMultiplier as jni$_.JMethodIDPtr, f) - .object( - const $LocationComponentOptions$Builder$NullableType()); + return _trackingAnimationDurationMultiplier( + reference.pointer, + _id_trackingAnimationDurationMultiplier as jni$_.JMethodIDPtr, + f, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_compassAnimationEnabled = _class.instanceMethodId( @@ -972,16 +1239,23 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(Ljava/lang/Boolean;)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _compassAnimationEnabled = 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)>(); + static final _compassAnimationEnabled = + 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 org.maplibre.android.location.LocationComponentOptions$Builder compassAnimationEnabled(java.lang.Boolean boolean)` /// The returned object must be released after use, by calling the [release] method. @@ -990,11 +1264,12 @@ class LocationComponentOptions$Builder extends jni$_.JObject { ) { final _$boolean = boolean?.reference ?? jni$_.jNullReference; return _compassAnimationEnabled( - reference.pointer, - _id_compassAnimationEnabled as jni$_.JMethodIDPtr, - _$boolean.pointer) - .object( - const $LocationComponentOptions$Builder$NullableType()); + reference.pointer, + _id_compassAnimationEnabled as jni$_.JMethodIDPtr, + _$boolean.pointer, + ).object( + const $LocationComponentOptions$Builder$NullableType(), + ); } static final _id_accuracyAnimationEnabled = _class.instanceMethodId( @@ -1002,25 +1277,34 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(Z)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _accuracyAnimationEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _accuracyAnimationEnabled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder accuracyAnimationEnabled(boolean z)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? accuracyAnimationEnabled( - bool z, - ) { - return _accuracyAnimationEnabled(reference.pointer, - _id_accuracyAnimationEnabled as jni$_.JMethodIDPtr, z ? 1 : 0) - .object( - const $LocationComponentOptions$Builder$NullableType()); + LocationComponentOptions$Builder? accuracyAnimationEnabled(bool z) { + return _accuracyAnimationEnabled( + reference.pointer, + _id_accuracyAnimationEnabled as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object( + const $LocationComponentOptions$Builder$NullableType(), + ); } static final _id_pulseEnabled = _class.instanceMethodId( @@ -1028,25 +1312,34 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(Z)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _pulseEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _pulseEnabled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder pulseEnabled(boolean z)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? pulseEnabled( - bool z, - ) { - return _pulseEnabled(reference.pointer, - _id_pulseEnabled as jni$_.JMethodIDPtr, z ? 1 : 0) - .object( - const $LocationComponentOptions$Builder$NullableType()); + LocationComponentOptions$Builder? pulseEnabled(bool z) { + return _pulseEnabled( + reference.pointer, + _id_pulseEnabled as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object( + const $LocationComponentOptions$Builder$NullableType(), + ); } static final _id_pulseFadeEnabled = _class.instanceMethodId( @@ -1054,25 +1347,34 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(Z)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _pulseFadeEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _pulseFadeEnabled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder pulseFadeEnabled(boolean z)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? pulseFadeEnabled( - bool z, - ) { - return _pulseFadeEnabled(reference.pointer, - _id_pulseFadeEnabled as jni$_.JMethodIDPtr, z ? 1 : 0) - .object( - const $LocationComponentOptions$Builder$NullableType()); + LocationComponentOptions$Builder? pulseFadeEnabled(bool z) { + return _pulseFadeEnabled( + reference.pointer, + _id_pulseFadeEnabled as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object( + const $LocationComponentOptions$Builder$NullableType(), + ); } static final _id_pulseColor = _class.instanceMethodId( @@ -1080,25 +1382,34 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(I)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _pulseColor = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _pulseColor = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder pulseColor(int i)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? pulseColor( - int i, - ) { + LocationComponentOptions$Builder? pulseColor(int i) { return _pulseColor( - reference.pointer, _id_pulseColor as jni$_.JMethodIDPtr, i) - .object( - const $LocationComponentOptions$Builder$NullableType()); + reference.pointer, + _id_pulseColor as jni$_.JMethodIDPtr, + i, + ).object( + const $LocationComponentOptions$Builder$NullableType(), + ); } static final _id_pulseSingleDuration = _class.instanceMethodId( @@ -1106,26 +1417,34 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(F)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _pulseSingleDuration = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _pulseSingleDuration = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Double,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder pulseSingleDuration(float f)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? pulseSingleDuration( - double f, - ) { + LocationComponentOptions$Builder? pulseSingleDuration(double f) { return _pulseSingleDuration( - reference.pointer, _id_pulseSingleDuration as jni$_.JMethodIDPtr, f) - .object( - const $LocationComponentOptions$Builder$NullableType()); + reference.pointer, + _id_pulseSingleDuration as jni$_.JMethodIDPtr, + f, + ).object( + const $LocationComponentOptions$Builder$NullableType(), + ); } static final _id_pulseMaxRadius = _class.instanceMethodId( @@ -1133,26 +1452,34 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(F)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _pulseMaxRadius = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _pulseMaxRadius = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Double,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder pulseMaxRadius(float f)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? pulseMaxRadius( - double f, - ) { + LocationComponentOptions$Builder? pulseMaxRadius(double f) { return _pulseMaxRadius( - reference.pointer, _id_pulseMaxRadius as jni$_.JMethodIDPtr, f) - .object( - const $LocationComponentOptions$Builder$NullableType()); + reference.pointer, + _id_pulseMaxRadius as jni$_.JMethodIDPtr, + f, + ).object( + const $LocationComponentOptions$Builder$NullableType(), + ); } static final _id_pulseAlpha = _class.instanceMethodId( @@ -1160,26 +1487,34 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(F)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _pulseAlpha = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _pulseAlpha = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Double,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public org.maplibre.android.location.LocationComponentOptions$Builder pulseAlpha(float f)` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? pulseAlpha( - double f, - ) { + LocationComponentOptions$Builder? pulseAlpha(double f) { return _pulseAlpha( - reference.pointer, _id_pulseAlpha as jni$_.JMethodIDPtr, f) - .object( - const $LocationComponentOptions$Builder$NullableType()); + reference.pointer, + _id_pulseAlpha as jni$_.JMethodIDPtr, + f, + ).object( + const $LocationComponentOptions$Builder$NullableType(), + ); } static final _id_pulseInterpolator = _class.instanceMethodId( @@ -1187,16 +1522,23 @@ class LocationComponentOptions$Builder extends jni$_.JObject { r'(Landroid/view/animation/Interpolator;)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _pulseInterpolator = 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)>(); + static final _pulseInterpolator = + 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 org.maplibre.android.location.LocationComponentOptions$Builder pulseInterpolator(android.view.animation.Interpolator interpolator)` /// The returned object must be released after use, by calling the [release] method. @@ -1204,10 +1546,13 @@ class LocationComponentOptions$Builder extends jni$_.JObject { jni$_.JObject? interpolator, ) { final _$interpolator = interpolator?.reference ?? jni$_.jNullReference; - return _pulseInterpolator(reference.pointer, - _id_pulseInterpolator as jni$_.JMethodIDPtr, _$interpolator.pointer) - .object( - const $LocationComponentOptions$Builder$NullableType()); + return _pulseInterpolator( + reference.pointer, + _id_pulseInterpolator as jni$_.JMethodIDPtr, + _$interpolator.pointer, + ).object( + const $LocationComponentOptions$Builder$NullableType(), + ); } } @@ -1225,10 +1570,8 @@ final class $LocationComponentOptions$Builder$NullableType @core$_.override LocationComponentOptions$Builder? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : LocationComponentOptions$Builder.fromReference( - reference, - ); + ? null + : LocationComponentOptions$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1265,9 +1608,7 @@ final class $LocationComponentOptions$Builder$Type @jni$_.internal @core$_.override LocationComponentOptions$Builder fromReference(jni$_.JReference reference) => - LocationComponentOptions$Builder.fromReference( - reference, - ); + LocationComponentOptions$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1298,13 +1639,13 @@ class LocationComponentOptions extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - LocationComponentOptions.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + LocationComponentOptions.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/LocationComponentOptions'); + r'org/maplibre/android/location/LocationComponentOptions', + ); /// The type which includes information such as the signature of this class. static const nullableType = $LocationComponentOptions$NullableType(); @@ -1317,7 +1658,7 @@ class LocationComponentOptions extends jni$_.JObject { r'Landroid/os/Parcelable$Creator;', ); - /// from: `static public final android.os.Parcelable$Creator CREATOR` + /// 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()); @@ -1326,57 +1667,62 @@ class LocationComponentOptions extends jni$_.JObject { r'(FIILjava/lang/String;ILjava/lang/String;ILjava/lang/String;ILjava/lang/String;ILjava/lang/String;ILjava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;FZJ[IFFZFFLandroid/graphics/RectF;Ljava/lang/String;Ljava/lang/String;FZZLjava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Integer;FFFLandroid/view/animation/Interpolator;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Double, - jni$_.Int32, - jni$_.Int64, - jni$_.Pointer, - jni$_.Double, - jni$_.Double, - jni$_.Int32, - jni$_.Double, - jni$_.Double, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Double, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Double, - jni$_.Double, - jni$_.Double, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Double, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Double, + jni$_.Int32, + jni$_.Int64, + jni$_.Pointer, + jni$_.Double, + jni$_.Double, + jni$_.Int32, + jni$_.Double, + jni$_.Double, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Double, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Double, + jni$_.Double, + jni$_.Double, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, double, @@ -1419,7 +1765,9 @@ class LocationComponentOptions extends jni$_.JObject { double, double, double, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (float f, int i, int i1, java.lang.String string, int i2, java.lang.String string1, int i3, java.lang.String string2, int i4, java.lang.String string3, int i5, java.lang.String string4, int i6, java.lang.String string5, java.lang.Integer integer, java.lang.Integer integer1, java.lang.Integer integer2, java.lang.Integer integer3, java.lang.Integer integer4, float f1, boolean z, long j, int[] is, float f2, float f3, boolean z1, float f4, float f5, android.graphics.RectF rectF, java.lang.String string6, java.lang.String string7, float f6, boolean z2, boolean z3, java.lang.Boolean boolean, java.lang.Boolean boolean1, java.lang.Integer integer5, float f7, float f8, float f9, android.view.animation.Interpolator interpolator)` /// The returned object must be released after use, by calling the [release] method. @@ -1485,51 +1833,53 @@ class LocationComponentOptions extends jni$_.JObject { final _$boolean1 = boolean1?.reference ?? jni$_.jNullReference; final _$integer5 = integer5?.reference ?? jni$_.jNullReference; final _$interpolator = interpolator?.reference ?? jni$_.jNullReference; - return LocationComponentOptions.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - f, - i, - i1, - _$string.pointer, - i2, - _$string1.pointer, - i3, - _$string2.pointer, - i4, - _$string3.pointer, - i5, - _$string4.pointer, - i6, - _$string5.pointer, - _$integer.pointer, - _$integer1.pointer, - _$integer2.pointer, - _$integer3.pointer, - _$integer4.pointer, - f1, - z ? 1 : 0, - j, - _$is$.pointer, - f2, - f3, - z1 ? 1 : 0, - f4, - f5, - _$rectF.pointer, - _$string6.pointer, - _$string7.pointer, - f6, - z2 ? 1 : 0, - z3 ? 1 : 0, - _$boolean.pointer, - _$boolean1.pointer, - _$integer5.pointer, - f7, - f8, - f9, - _$interpolator.pointer) - .reference); + return LocationComponentOptions.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + f, + i, + i1, + _$string.pointer, + i2, + _$string1.pointer, + i3, + _$string2.pointer, + i4, + _$string3.pointer, + i5, + _$string4.pointer, + i6, + _$string5.pointer, + _$integer.pointer, + _$integer1.pointer, + _$integer2.pointer, + _$integer3.pointer, + _$integer4.pointer, + f1, + z ? 1 : 0, + j, + _$is$.pointer, + f2, + f3, + z1 ? 1 : 0, + f4, + f5, + _$rectF.pointer, + _$string6.pointer, + _$string7.pointer, + f6, + z2 ? 1 : 0, + z3 ? 1 : 0, + _$boolean.pointer, + _$boolean1.pointer, + _$integer5.pointer, + f7, + f8, + f9, + _$interpolator.pointer, + ).reference, + ); } static final _id_createFromAttributes = _class.staticMethodId( @@ -1537,32 +1887,38 @@ class LocationComponentOptions extends jni$_.JObject { r'(Landroid/content/Context;I)Lorg/maplibre/android/location/LocationComponentOptions;', ); - static final _createFromAttributes = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _createFromAttributes = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public org.maplibre.android.location.LocationComponentOptions createFromAttributes(android.content.Context context, int i)` /// The returned object must be released after use, by calling the [release] method. - static LocationComponentOptions? createFromAttributes( - jni$_.JObject? context, + static LocationComponentOptions createFromAttributes( + jni$_.JObject context, int i, ) { - final _$context = context?.reference ?? jni$_.jNullReference; + final _$context = context.reference; return _createFromAttributes( - _class.reference.pointer, - _id_createFromAttributes as jni$_.JMethodIDPtr, - _$context.pointer, - i) - .object( - const $LocationComponentOptions$NullableType()); + _class.reference.pointer, + _id_createFromAttributes as jni$_.JMethodIDPtr, + _$context.pointer, + i, + ).object(const $LocationComponentOptions$Type()); } static final _id_toBuilder = _class.instanceMethodId( @@ -1570,24 +1926,31 @@ class LocationComponentOptions extends jni$_.JObject { r'()Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _toBuilder = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toBuilder = + 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 org.maplibre.android.location.LocationComponentOptions$Builder toBuilder()` /// The returned object must be released after use, by calling the [release] method. - LocationComponentOptions$Builder? toBuilder() { - return _toBuilder(reference.pointer, _id_toBuilder as jni$_.JMethodIDPtr) - .object( - const $LocationComponentOptions$Builder$NullableType()); + LocationComponentOptions$Builder toBuilder() { + return _toBuilder( + reference.pointer, + _id_toBuilder as jni$_.JMethodIDPtr, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_builder = _class.staticMethodId( @@ -1595,27 +1958,35 @@ class LocationComponentOptions extends jni$_.JObject { r'(Landroid/content/Context;)Lorg/maplibre/android/location/LocationComponentOptions$Builder;', ); - static final _builder = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _builder = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public org.maplibre.android.location.LocationComponentOptions$Builder builder(android.content.Context context)` /// The returned object must be released after use, by calling the [release] method. - static LocationComponentOptions$Builder? builder( - jni$_.JObject? context, - ) { - final _$context = context?.reference ?? jni$_.jNullReference; - return _builder(_class.reference.pointer, _id_builder as jni$_.JMethodIDPtr, - _$context.pointer) - .object( - const $LocationComponentOptions$Builder$NullableType()); + static LocationComponentOptions$Builder builder(jni$_.JObject context) { + final _$context = context.reference; + return _builder( + _class.reference.pointer, + _id_builder as jni$_.JMethodIDPtr, + _$context.pointer, + ).object( + const $LocationComponentOptions$Builder$Type(), + ); } static final _id_accuracyAlpha = _class.instanceMethodId( @@ -1623,23 +1994,28 @@ class LocationComponentOptions extends jni$_.JObject { r'()F', ); - static final _accuracyAlpha = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _accuracyAlpha = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float accuracyAlpha()` double accuracyAlpha() { return _accuracyAlpha( - reference.pointer, _id_accuracyAlpha as jni$_.JMethodIDPtr) - .float; + reference.pointer, + _id_accuracyAlpha as jni$_.JMethodIDPtr, + ).float; } static final _id_accuracyColor = _class.instanceMethodId( @@ -1647,23 +2023,28 @@ class LocationComponentOptions extends jni$_.JObject { r'()I', ); - static final _accuracyColor = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _accuracyColor = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int accuracyColor()` int accuracyColor() { return _accuracyColor( - reference.pointer, _id_accuracyColor as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_accuracyColor as jni$_.JMethodIDPtr, + ).integer; } static final _id_backgroundDrawableStale = _class.instanceMethodId( @@ -1671,23 +2052,28 @@ class LocationComponentOptions extends jni$_.JObject { r'()I', ); - static final _backgroundDrawableStale = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _backgroundDrawableStale = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int backgroundDrawableStale()` int backgroundDrawableStale() { - return _backgroundDrawableStale(reference.pointer, - _id_backgroundDrawableStale as jni$_.JMethodIDPtr) - .integer; + return _backgroundDrawableStale( + reference.pointer, + _id_backgroundDrawableStale as jni$_.JMethodIDPtr, + ).integer; } static final _id_backgroundStaleName = _class.instanceMethodId( @@ -1695,24 +2081,29 @@ class LocationComponentOptions extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _backgroundStaleName = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _backgroundStaleName = + 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 backgroundStaleName()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? backgroundStaleName() { return _backgroundStaleName( - reference.pointer, _id_backgroundStaleName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_backgroundStaleName as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_foregroundDrawableStale = _class.instanceMethodId( @@ -1720,23 +2111,28 @@ class LocationComponentOptions extends jni$_.JObject { r'()I', ); - static final _foregroundDrawableStale = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _foregroundDrawableStale = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int foregroundDrawableStale()` int foregroundDrawableStale() { - return _foregroundDrawableStale(reference.pointer, - _id_foregroundDrawableStale as jni$_.JMethodIDPtr) - .integer; + return _foregroundDrawableStale( + reference.pointer, + _id_foregroundDrawableStale as jni$_.JMethodIDPtr, + ).integer; } static final _id_foregroundStaleName = _class.instanceMethodId( @@ -1744,24 +2140,29 @@ class LocationComponentOptions extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _foregroundStaleName = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _foregroundStaleName = + 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 foregroundStaleName()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? foregroundStaleName() { return _foregroundStaleName( - reference.pointer, _id_foregroundStaleName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_foregroundStaleName as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_gpsDrawable = _class.instanceMethodId( @@ -1769,23 +2170,28 @@ class LocationComponentOptions extends jni$_.JObject { r'()I', ); - static final _gpsDrawable = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _gpsDrawable = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int gpsDrawable()` int gpsDrawable() { return _gpsDrawable( - reference.pointer, _id_gpsDrawable as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_gpsDrawable as jni$_.JMethodIDPtr, + ).integer; } static final _id_gpsName = _class.instanceMethodId( @@ -1793,23 +2199,29 @@ class LocationComponentOptions extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _gpsName = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _gpsName = + 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 gpsName()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? gpsName() { - return _gpsName(reference.pointer, _id_gpsName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _gpsName( + reference.pointer, + _id_gpsName as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_foregroundDrawable = _class.instanceMethodId( @@ -1817,23 +2229,28 @@ class LocationComponentOptions extends jni$_.JObject { r'()I', ); - static final _foregroundDrawable = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _foregroundDrawable = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int foregroundDrawable()` int foregroundDrawable() { return _foregroundDrawable( - reference.pointer, _id_foregroundDrawable as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_foregroundDrawable as jni$_.JMethodIDPtr, + ).integer; } static final _id_foregroundName = _class.instanceMethodId( @@ -1841,24 +2258,29 @@ class LocationComponentOptions extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _foregroundName = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _foregroundName = + 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 foregroundName()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? foregroundName() { return _foregroundName( - reference.pointer, _id_foregroundName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_foregroundName as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_backgroundDrawable = _class.instanceMethodId( @@ -1866,23 +2288,28 @@ class LocationComponentOptions extends jni$_.JObject { r'()I', ); - static final _backgroundDrawable = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _backgroundDrawable = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int backgroundDrawable()` int backgroundDrawable() { return _backgroundDrawable( - reference.pointer, _id_backgroundDrawable as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_backgroundDrawable as jni$_.JMethodIDPtr, + ).integer; } static final _id_backgroundName = _class.instanceMethodId( @@ -1890,24 +2317,29 @@ class LocationComponentOptions extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _backgroundName = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _backgroundName = + 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 backgroundName()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? backgroundName() { return _backgroundName( - reference.pointer, _id_backgroundName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_backgroundName as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_bearingDrawable = _class.instanceMethodId( @@ -1915,23 +2347,28 @@ class LocationComponentOptions extends jni$_.JObject { r'()I', ); - static final _bearingDrawable = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _bearingDrawable = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int bearingDrawable()` int bearingDrawable() { return _bearingDrawable( - reference.pointer, _id_bearingDrawable as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_bearingDrawable as jni$_.JMethodIDPtr, + ).integer; } static final _id_bearingName = _class.instanceMethodId( @@ -1939,24 +2376,29 @@ class LocationComponentOptions extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _bearingName = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _bearingName = + 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 bearingName()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? bearingName() { return _bearingName( - reference.pointer, _id_bearingName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_bearingName as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_bearingTintColor = _class.instanceMethodId( @@ -1964,24 +2406,29 @@ class LocationComponentOptions extends jni$_.JObject { r'()Ljava/lang/Integer;', ); - static final _bearingTintColor = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _bearingTintColor = + 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.Integer bearingTintColor()` /// The returned object must be released after use, by calling the [release] method. jni$_.JInteger? bearingTintColor() { return _bearingTintColor( - reference.pointer, _id_bearingTintColor as jni$_.JMethodIDPtr) - .object(const jni$_.JIntegerNullableType()); + reference.pointer, + _id_bearingTintColor as jni$_.JMethodIDPtr, + ).object(const jni$_.JIntegerNullableType()); } static final _id_foregroundTintColor = _class.instanceMethodId( @@ -1989,24 +2436,29 @@ class LocationComponentOptions extends jni$_.JObject { r'()Ljava/lang/Integer;', ); - static final _foregroundTintColor = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _foregroundTintColor = + 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.Integer foregroundTintColor()` /// The returned object must be released after use, by calling the [release] method. jni$_.JInteger? foregroundTintColor() { return _foregroundTintColor( - reference.pointer, _id_foregroundTintColor as jni$_.JMethodIDPtr) - .object(const jni$_.JIntegerNullableType()); + reference.pointer, + _id_foregroundTintColor as jni$_.JMethodIDPtr, + ).object(const jni$_.JIntegerNullableType()); } static final _id_backgroundTintColor = _class.instanceMethodId( @@ -2014,24 +2466,29 @@ class LocationComponentOptions extends jni$_.JObject { r'()Ljava/lang/Integer;', ); - static final _backgroundTintColor = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _backgroundTintColor = + 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.Integer backgroundTintColor()` /// The returned object must be released after use, by calling the [release] method. jni$_.JInteger? backgroundTintColor() { return _backgroundTintColor( - reference.pointer, _id_backgroundTintColor as jni$_.JMethodIDPtr) - .object(const jni$_.JIntegerNullableType()); + reference.pointer, + _id_backgroundTintColor as jni$_.JMethodIDPtr, + ).object(const jni$_.JIntegerNullableType()); } static final _id_foregroundStaleTintColor = _class.instanceMethodId( @@ -2039,24 +2496,29 @@ class LocationComponentOptions extends jni$_.JObject { r'()Ljava/lang/Integer;', ); - static final _foregroundStaleTintColor = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _foregroundStaleTintColor = + 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.Integer foregroundStaleTintColor()` /// The returned object must be released after use, by calling the [release] method. jni$_.JInteger? foregroundStaleTintColor() { - return _foregroundStaleTintColor(reference.pointer, - _id_foregroundStaleTintColor as jni$_.JMethodIDPtr) - .object(const jni$_.JIntegerNullableType()); + return _foregroundStaleTintColor( + reference.pointer, + _id_foregroundStaleTintColor as jni$_.JMethodIDPtr, + ).object(const jni$_.JIntegerNullableType()); } static final _id_backgroundStaleTintColor = _class.instanceMethodId( @@ -2064,47 +2526,55 @@ class LocationComponentOptions extends jni$_.JObject { r'()Ljava/lang/Integer;', ); - static final _backgroundStaleTintColor = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _backgroundStaleTintColor = + 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.Integer backgroundStaleTintColor()` /// The returned object must be released after use, by calling the [release] method. jni$_.JInteger? backgroundStaleTintColor() { - return _backgroundStaleTintColor(reference.pointer, - _id_backgroundStaleTintColor as jni$_.JMethodIDPtr) - .object(const jni$_.JIntegerNullableType()); + return _backgroundStaleTintColor( + reference.pointer, + _id_backgroundStaleTintColor as jni$_.JMethodIDPtr, + ).object(const jni$_.JIntegerNullableType()); } - static final _id_elevation = _class.instanceMethodId( - r'elevation', - r'()F', - ); + static final _id_elevation = _class.instanceMethodId(r'elevation', r'()F'); - static final _elevation = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _elevation = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float elevation()` double elevation() { - return _elevation(reference.pointer, _id_elevation as jni$_.JMethodIDPtr) - .float; + return _elevation( + reference.pointer, + _id_elevation as jni$_.JMethodIDPtr, + ).float; } static final _id_enableStaleState = _class.instanceMethodId( @@ -2112,23 +2582,28 @@ class LocationComponentOptions extends jni$_.JObject { r'()Z', ); - static final _enableStaleState = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _enableStaleState = + 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 enableStaleState()` bool enableStaleState() { return _enableStaleState( - reference.pointer, _id_enableStaleState as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_enableStaleState as jni$_.JMethodIDPtr, + ).boolean; } static final _id_staleStateTimeout = _class.instanceMethodId( @@ -2136,47 +2611,55 @@ class LocationComponentOptions extends jni$_.JObject { r'()J', ); - static final _staleStateTimeout = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _staleStateTimeout = + 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 staleStateTimeout()` int staleStateTimeout() { return _staleStateTimeout( - reference.pointer, _id_staleStateTimeout as jni$_.JMethodIDPtr) - .long; + reference.pointer, + _id_staleStateTimeout as jni$_.JMethodIDPtr, + ).long; } - static final _id_padding = _class.instanceMethodId( - r'padding', - r'()[I', - ); + static final _id_padding = _class.instanceMethodId(r'padding', r'()[I'); - static final _padding = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _padding = + 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 int[] padding()` /// The returned object must be released after use, by calling the [release] method. jni$_.JIntArray? padding() { - return _padding(reference.pointer, _id_padding as jni$_.JMethodIDPtr) - .object(const jni$_.JIntArrayNullableType()); + return _padding( + reference.pointer, + _id_padding as jni$_.JMethodIDPtr, + ).object(const jni$_.JIntArrayNullableType()); } static final _id_maxZoomIconScale = _class.instanceMethodId( @@ -2184,23 +2667,28 @@ class LocationComponentOptions extends jni$_.JObject { r'()F', ); - static final _maxZoomIconScale = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _maxZoomIconScale = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float maxZoomIconScale()` double maxZoomIconScale() { return _maxZoomIconScale( - reference.pointer, _id_maxZoomIconScale as jni$_.JMethodIDPtr) - .float; + reference.pointer, + _id_maxZoomIconScale as jni$_.JMethodIDPtr, + ).float; } static final _id_minZoomIconScale = _class.instanceMethodId( @@ -2208,23 +2696,28 @@ class LocationComponentOptions extends jni$_.JObject { r'()F', ); - static final _minZoomIconScale = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _minZoomIconScale = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float minZoomIconScale()` double minZoomIconScale() { return _minZoomIconScale( - reference.pointer, _id_minZoomIconScale as jni$_.JMethodIDPtr) - .float; + reference.pointer, + _id_minZoomIconScale as jni$_.JMethodIDPtr, + ).float; } static final _id_trackingGesturesManagement = _class.instanceMethodId( @@ -2234,22 +2727,26 @@ class LocationComponentOptions extends jni$_.JObject { static final _trackingGesturesManagement = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public boolean trackingGesturesManagement()` bool trackingGesturesManagement() { - return _trackingGesturesManagement(reference.pointer, - _id_trackingGesturesManagement as jni$_.JMethodIDPtr) - .boolean; + return _trackingGesturesManagement( + reference.pointer, + _id_trackingGesturesManagement as jni$_.JMethodIDPtr, + ).boolean; } static final _id_trackingInitialMoveThreshold = _class.instanceMethodId( @@ -2259,22 +2756,26 @@ class LocationComponentOptions extends jni$_.JObject { static final _trackingInitialMoveThreshold = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float trackingInitialMoveThreshold()` double trackingInitialMoveThreshold() { - return _trackingInitialMoveThreshold(reference.pointer, - _id_trackingInitialMoveThreshold as jni$_.JMethodIDPtr) - .float; + return _trackingInitialMoveThreshold( + reference.pointer, + _id_trackingInitialMoveThreshold as jni$_.JMethodIDPtr, + ).float; } static final _id_trackingMultiFingerMoveThreshold = _class.instanceMethodId( @@ -2284,49 +2785,57 @@ class LocationComponentOptions extends jni$_.JObject { static final _trackingMultiFingerMoveThreshold = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float trackingMultiFingerMoveThreshold()` double trackingMultiFingerMoveThreshold() { - return _trackingMultiFingerMoveThreshold(reference.pointer, - _id_trackingMultiFingerMoveThreshold as jni$_.JMethodIDPtr) - .float; + return _trackingMultiFingerMoveThreshold( + reference.pointer, + _id_trackingMultiFingerMoveThreshold as jni$_.JMethodIDPtr, + ).float; } - static final _id_trackingMultiFingerProtectedMoveArea = - _class.instanceMethodId( - r'trackingMultiFingerProtectedMoveArea', - r'()Landroid/graphics/RectF;', - ); + static final _id_trackingMultiFingerProtectedMoveArea = _class + .instanceMethodId( + r'trackingMultiFingerProtectedMoveArea', + r'()Landroid/graphics/RectF;', + ); static final _trackingMultiFingerProtectedMoveArea = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public android.graphics.RectF trackingMultiFingerProtectedMoveArea()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? trackingMultiFingerProtectedMoveArea() { - return _trackingMultiFingerProtectedMoveArea(reference.pointer, - _id_trackingMultiFingerProtectedMoveArea as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _trackingMultiFingerProtectedMoveArea( + reference.pointer, + _id_trackingMultiFingerProtectedMoveArea as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_layerAbove = _class.instanceMethodId( @@ -2334,23 +2843,29 @@ class LocationComponentOptions extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _layerAbove = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _layerAbove = + 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 layerAbove()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? layerAbove() { - return _layerAbove(reference.pointer, _id_layerAbove as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _layerAbove( + reference.pointer, + _id_layerAbove as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_layerBelow = _class.instanceMethodId( @@ -2358,49 +2873,56 @@ class LocationComponentOptions extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _layerBelow = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _layerBelow = + 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 layerBelow()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? layerBelow() { - return _layerBelow(reference.pointer, _id_layerBelow as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _layerBelow( + reference.pointer, + _id_layerBelow as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } - static final _id_trackingAnimationDurationMultiplier = - _class.instanceMethodId( - r'trackingAnimationDurationMultiplier', - r'()F', - ); + static final _id_trackingAnimationDurationMultiplier = _class + .instanceMethodId(r'trackingAnimationDurationMultiplier', r'()F'); static final _trackingAnimationDurationMultiplier = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float trackingAnimationDurationMultiplier()` double trackingAnimationDurationMultiplier() { - return _trackingAnimationDurationMultiplier(reference.pointer, - _id_trackingAnimationDurationMultiplier as jni$_.JMethodIDPtr) - .float; + return _trackingAnimationDurationMultiplier( + reference.pointer, + _id_trackingAnimationDurationMultiplier as jni$_.JMethodIDPtr, + ).float; } static final _id_compassAnimationEnabled = _class.instanceMethodId( @@ -2408,23 +2930,28 @@ class LocationComponentOptions extends jni$_.JObject { r'()Z', ); - static final _compassAnimationEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compassAnimationEnabled = + 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 compassAnimationEnabled()` bool compassAnimationEnabled() { - return _compassAnimationEnabled(reference.pointer, - _id_compassAnimationEnabled as jni$_.JMethodIDPtr) - .boolean; + return _compassAnimationEnabled( + reference.pointer, + _id_compassAnimationEnabled as jni$_.JMethodIDPtr, + ).boolean; } static final _id_accuracyAnimationEnabled = _class.instanceMethodId( @@ -2432,23 +2959,28 @@ class LocationComponentOptions extends jni$_.JObject { r'()Z', ); - static final _accuracyAnimationEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _accuracyAnimationEnabled = + 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 accuracyAnimationEnabled()` bool accuracyAnimationEnabled() { - return _accuracyAnimationEnabled(reference.pointer, - _id_accuracyAnimationEnabled as jni$_.JMethodIDPtr) - .boolean; + return _accuracyAnimationEnabled( + reference.pointer, + _id_accuracyAnimationEnabled as jni$_.JMethodIDPtr, + ).boolean; } static final _id_pulseEnabled = _class.instanceMethodId( @@ -2456,24 +2988,29 @@ class LocationComponentOptions extends jni$_.JObject { r'()Ljava/lang/Boolean;', ); - static final _pulseEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _pulseEnabled = + 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.Boolean pulseEnabled()` /// The returned object must be released after use, by calling the [release] method. jni$_.JBoolean? pulseEnabled() { return _pulseEnabled( - reference.pointer, _id_pulseEnabled as jni$_.JMethodIDPtr) - .object(const jni$_.JBooleanNullableType()); + reference.pointer, + _id_pulseEnabled as jni$_.JMethodIDPtr, + ).object(const jni$_.JBooleanNullableType()); } static final _id_pulseFadeEnabled = _class.instanceMethodId( @@ -2481,24 +3018,29 @@ class LocationComponentOptions extends jni$_.JObject { r'()Ljava/lang/Boolean;', ); - static final _pulseFadeEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _pulseFadeEnabled = + 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.Boolean pulseFadeEnabled()` /// The returned object must be released after use, by calling the [release] method. jni$_.JBoolean? pulseFadeEnabled() { return _pulseFadeEnabled( - reference.pointer, _id_pulseFadeEnabled as jni$_.JMethodIDPtr) - .object(const jni$_.JBooleanNullableType()); + reference.pointer, + _id_pulseFadeEnabled as jni$_.JMethodIDPtr, + ).object(const jni$_.JBooleanNullableType()); } static final _id_pulseColor = _class.instanceMethodId( @@ -2506,23 +3048,29 @@ class LocationComponentOptions extends jni$_.JObject { r'()Ljava/lang/Integer;', ); - static final _pulseColor = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _pulseColor = + 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.Integer pulseColor()` /// The returned object must be released after use, by calling the [release] method. jni$_.JInteger? pulseColor() { - return _pulseColor(reference.pointer, _id_pulseColor as jni$_.JMethodIDPtr) - .object(const jni$_.JIntegerNullableType()); + return _pulseColor( + reference.pointer, + _id_pulseColor as jni$_.JMethodIDPtr, + ).object(const jni$_.JIntegerNullableType()); } static final _id_pulseSingleDuration = _class.instanceMethodId( @@ -2530,23 +3078,28 @@ class LocationComponentOptions extends jni$_.JObject { r'()F', ); - static final _pulseSingleDuration = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _pulseSingleDuration = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float pulseSingleDuration()` double pulseSingleDuration() { return _pulseSingleDuration( - reference.pointer, _id_pulseSingleDuration as jni$_.JMethodIDPtr) - .float; + reference.pointer, + _id_pulseSingleDuration as jni$_.JMethodIDPtr, + ).float; } static final _id_pulseMaxRadius = _class.instanceMethodId( @@ -2554,46 +3107,54 @@ class LocationComponentOptions extends jni$_.JObject { r'()F', ); - static final _pulseMaxRadius = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _pulseMaxRadius = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float pulseMaxRadius()` double pulseMaxRadius() { return _pulseMaxRadius( - reference.pointer, _id_pulseMaxRadius as jni$_.JMethodIDPtr) - .float; + reference.pointer, + _id_pulseMaxRadius as jni$_.JMethodIDPtr, + ).float; } - static final _id_pulseAlpha = _class.instanceMethodId( - r'pulseAlpha', - r'()F', - ); + static final _id_pulseAlpha = _class.instanceMethodId(r'pulseAlpha', r'()F'); - static final _pulseAlpha = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _pulseAlpha = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float pulseAlpha()` double pulseAlpha() { - return _pulseAlpha(reference.pointer, _id_pulseAlpha as jni$_.JMethodIDPtr) - .float; + return _pulseAlpha( + reference.pointer, + _id_pulseAlpha as jni$_.JMethodIDPtr, + ).float; } static final _id_pulseInterpolator = _class.instanceMethodId( @@ -2601,24 +3162,29 @@ class LocationComponentOptions extends jni$_.JObject { r'()Landroid/view/animation/Interpolator;', ); - static final _pulseInterpolator = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _pulseInterpolator = + 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 android.view.animation.Interpolator pulseInterpolator()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? pulseInterpolator() { return _pulseInterpolator( - reference.pointer, _id_pulseInterpolator as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_pulseInterpolator as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_toString$1 = _class.instanceMethodId( @@ -2626,23 +3192,29 @@ class LocationComponentOptions extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + 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 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()); + jni$_.JString toString$1() { + return _toString$1( + reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } static final _id_equals = _class.instanceMethodId( @@ -2650,48 +3222,58 @@ class LocationComponentOptions extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } static final _id_describeContents = _class.instanceMethodId( @@ -2699,23 +3281,28 @@ class LocationComponentOptions extends jni$_.JObject { r'()I', ); - static final _describeContents = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _describeContents = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int describeContents()` int describeContents() { return _describeContents( - reference.pointer, _id_describeContents as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_describeContents as jni$_.JMethodIDPtr, + ).integer; } static final _id_writeToParcel = _class.instanceMethodId( @@ -2723,27 +3310,34 @@ class LocationComponentOptions extends jni$_.JObject { r'(Landroid/os/Parcel;I)V', ); - static final _writeToParcel = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _writeToParcel = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public void writeToParcel(android.os.Parcel parcel, int i)` - void writeToParcel( - jni$_.JObject? parcel, - int i, - ) { + void writeToParcel(jni$_.JObject? parcel, int i) { final _$parcel = parcel?.reference ?? jni$_.jNullReference; - _writeToParcel(reference.pointer, _id_writeToParcel as jni$_.JMethodIDPtr, - _$parcel.pointer, i) - .check(); + _writeToParcel( + reference.pointer, + _id_writeToParcel as jni$_.JMethodIDPtr, + _$parcel.pointer, + i, + ).check(); } } @@ -2761,10 +3355,8 @@ final class $LocationComponentOptions$NullableType @core$_.override LocationComponentOptions? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : LocationComponentOptions.fromReference( - reference, - ); + ? null + : LocationComponentOptions.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2800,9 +3392,7 @@ final class $LocationComponentOptions$Type @jni$_.internal @core$_.override LocationComponentOptions fromReference(jni$_.JReference reference) => - LocationComponentOptions.fromReference( - reference, - ); + LocationComponentOptions.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/MapLibreAnimator.dart b/lib/src/platform/android/jni/org/maplibre/android/location/MapLibreAnimator.dart index 9991de4d..eb6159b0 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/MapLibreAnimator.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/MapLibreAnimator.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -60,31 +48,24 @@ class MapLibreAnimator<$K extends jni$_.JObject?> extends jni$_.JObject { final jni$_.JObjType<$K> K; @jni$_.internal - MapLibreAnimator.fromReference( - this.K, - jni$_.JReference reference, - ) : $type = type<$K>(K), - super.fromReference(reference); + MapLibreAnimator.fromReference(this.K, jni$_.JReference reference) + : $type = type<$K>(K), + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/location/MapLibreAnimator'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/location/MapLibreAnimator', + ); /// The type which includes information such as the signature of this class. static $MapLibreAnimator$NullableType<$K> - nullableType<$K extends jni$_.JObject?>( - jni$_.JObjType<$K> K, - ) { - return $MapLibreAnimator$NullableType<$K>( - K, - ); + nullableType<$K extends jni$_.JObject?>(jni$_.JObjType<$K> K) { + return $MapLibreAnimator$NullableType<$K>(K); } static $MapLibreAnimator$Type<$K> type<$K extends jni$_.JObject?>( jni$_.JObjType<$K> K, ) { - return $MapLibreAnimator$Type<$K>( - K, - ); + return $MapLibreAnimator$Type<$K>(K); } static final _id_onAnimationUpdate = _class.instanceMethodId( @@ -92,27 +73,32 @@ class MapLibreAnimator<$K extends jni$_.JObject?> extends jni$_.JObject { r'(Landroid/animation/ValueAnimator;)V', ); - static final _onAnimationUpdate = 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 _onAnimationUpdate = + 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 onAnimationUpdate(android.animation.ValueAnimator valueAnimator)` - void onAnimationUpdate( - jni$_.JObject? valueAnimator, - ) { + void onAnimationUpdate(jni$_.JObject? valueAnimator) { final _$valueAnimator = valueAnimator?.reference ?? jni$_.jNullReference; _onAnimationUpdate( - reference.pointer, - _id_onAnimationUpdate as jni$_.JMethodIDPtr, - _$valueAnimator.pointer) - .check(); + reference.pointer, + _id_onAnimationUpdate as jni$_.JMethodIDPtr, + _$valueAnimator.pointer, + ).check(); } static final _id_makeInvalid = _class.instanceMethodId( @@ -120,22 +106,28 @@ class MapLibreAnimator<$K extends jni$_.JObject?> extends jni$_.JObject { r'()V', ); - static final _makeInvalid = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _makeInvalid = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void makeInvalid()` void makeInvalid() { - _makeInvalid(reference.pointer, _id_makeInvalid as jni$_.JMethodIDPtr) - .check(); + _makeInvalid( + reference.pointer, + _id_makeInvalid as jni$_.JMethodIDPtr, + ).check(); } } @@ -145,9 +137,7 @@ final class $MapLibreAnimator$NullableType<$K extends jni$_.JObject?> final jni$_.JObjType<$K> K; @jni$_.internal - const $MapLibreAnimator$NullableType( - this.K, - ); + const $MapLibreAnimator$NullableType(this.K); @jni$_.internal @core$_.override @@ -157,11 +147,8 @@ final class $MapLibreAnimator$NullableType<$K extends jni$_.JObject?> @core$_.override MapLibreAnimator<$K>? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapLibreAnimator<$K>.fromReference( - K, - reference, - ); + ? null + : MapLibreAnimator<$K>.fromReference(K, reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -191,9 +178,7 @@ final class $MapLibreAnimator$Type<$K extends jni$_.JObject?> final jni$_.JObjType<$K> K; @jni$_.internal - const $MapLibreAnimator$Type( - this.K, - ); + const $MapLibreAnimator$Type(this.K); @jni$_.internal @core$_.override @@ -202,10 +187,7 @@ final class $MapLibreAnimator$Type<$K extends jni$_.JObject?> @jni$_.internal @core$_.override MapLibreAnimator<$K> fromReference(jni$_.JReference reference) => - MapLibreAnimator<$K>.fromReference( - K, - reference, - ); + MapLibreAnimator<$K>.fromReference(K, reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/MapLibreAnimatorListener.dart b/lib/src/platform/android/jni/org/maplibre/android/location/MapLibreAnimatorListener.dart index c8bce140..81148b17 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/MapLibreAnimatorListener.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/MapLibreAnimatorListener.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -59,13 +47,13 @@ class MapLibreAnimatorListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreAnimatorListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreAnimatorListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/MapLibreAnimatorListener'); + r'org/maplibre/android/location/MapLibreAnimatorListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibreAnimatorListener$NullableType(); @@ -74,16 +62,23 @@ class MapLibreAnimatorListener extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$CancelableCallback;)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)>(); + 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: `public void (org.maplibre.android.maps.MapLibreMap$CancelableCallback cancelableCallback)` /// The returned object must be released after use, by calling the [release] method. @@ -92,11 +87,13 @@ class MapLibreAnimatorListener extends jni$_.JObject { ) { final _$cancelableCallback = cancelableCallback?.reference ?? jni$_.jNullReference; - return MapLibreAnimatorListener.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$cancelableCallback.pointer) - .reference); + return MapLibreAnimatorListener.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$cancelableCallback.pointer, + ).reference, + ); } static final _id_onAnimationCancel = _class.instanceMethodId( @@ -104,25 +101,32 @@ class MapLibreAnimatorListener extends jni$_.JObject { r'(Landroid/animation/Animator;)V', ); - static final _onAnimationCancel = 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 _onAnimationCancel = + 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 onAnimationCancel(android.animation.Animator animator)` - void onAnimationCancel( - jni$_.JObject animator, - ) { + void onAnimationCancel(jni$_.JObject animator) { final _$animator = animator.reference; - _onAnimationCancel(reference.pointer, - _id_onAnimationCancel as jni$_.JMethodIDPtr, _$animator.pointer) - .check(); + _onAnimationCancel( + reference.pointer, + _id_onAnimationCancel as jni$_.JMethodIDPtr, + _$animator.pointer, + ).check(); } static final _id_onAnimationEnd = _class.instanceMethodId( @@ -130,25 +134,32 @@ class MapLibreAnimatorListener extends jni$_.JObject { r'(Landroid/animation/Animator;)V', ); - static final _onAnimationEnd = 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 _onAnimationEnd = + 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 onAnimationEnd(android.animation.Animator animator)` - void onAnimationEnd( - jni$_.JObject animator, - ) { + void onAnimationEnd(jni$_.JObject animator) { final _$animator = animator.reference; - _onAnimationEnd(reference.pointer, _id_onAnimationEnd as jni$_.JMethodIDPtr, - _$animator.pointer) - .check(); + _onAnimationEnd( + reference.pointer, + _id_onAnimationEnd as jni$_.JMethodIDPtr, + _$animator.pointer, + ).check(); } } @@ -166,10 +177,8 @@ final class $MapLibreAnimatorListener$NullableType @core$_.override MapLibreAnimatorListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapLibreAnimatorListener.fromReference( - reference, - ); + ? null + : MapLibreAnimatorListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -205,9 +214,7 @@ final class $MapLibreAnimatorListener$Type @jni$_.internal @core$_.override MapLibreAnimatorListener fromReference(jni$_.JReference reference) => - MapLibreAnimatorListener.fromReference( - reference, - ); + MapLibreAnimatorListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/MapLibrePaddingAnimator.dart b/lib/src/platform/android/jni/org/maplibre/android/location/MapLibrePaddingAnimator.dart index fbccc7d9..c3ef9845 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/MapLibrePaddingAnimator.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/MapLibrePaddingAnimator.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -62,13 +50,13 @@ class MapLibrePaddingAnimator final jni$_.JObjType $type; @jni$_.internal - MapLibrePaddingAnimator.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(const jni$_.JDoubleArrayType(), reference); + MapLibrePaddingAnimator.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(const jni$_.JDoubleArrayType(), reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/MapLibrePaddingAnimator'); + r'org/maplibre/android/location/MapLibrePaddingAnimator', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibrePaddingAnimator$NullableType(); @@ -77,26 +65,33 @@ class MapLibrePaddingAnimator r'([[DLorg/maplibre/android/location/MapLibreAnimator$AnimationsValueChangeListener;Lorg/maplibre/android/maps/MapLibreMap$CancelableCallback;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); - /// from: `public void (java.lang.Object[] ds, org.maplibre.android.location.MapLibreAnimator$AnimationsValueChangeListener animationsValueChangeListener, org.maplibre.android.maps.MapLibreMap$CancelableCallback cancelableCallback)` + /// from: `public void (double[][] ds, org.maplibre.android.location.MapLibreAnimator$AnimationsValueChangeListener animationsValueChangeListener, org.maplibre.android.maps.MapLibreMap$CancelableCallback cancelableCallback)` /// The returned object must be released after use, by calling the [release] method. factory MapLibrePaddingAnimator( jni$_.JArray ds, @@ -108,13 +103,15 @@ class MapLibrePaddingAnimator animationsValueChangeListener.reference; final _$cancelableCallback = cancelableCallback?.reference ?? jni$_.jNullReference; - return MapLibrePaddingAnimator.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$ds.pointer, - _$animationsValueChangeListener.pointer, - _$cancelableCallback.pointer) - .reference); + return MapLibrePaddingAnimator.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$ds.pointer, + _$animationsValueChangeListener.pointer, + _$cancelableCallback.pointer, + ).reference, + ); } static final _id_provideEvaluator = _class.instanceMethodId( @@ -122,24 +119,29 @@ class MapLibrePaddingAnimator r'()Landroid/animation/TypeEvaluator;', ); - static final _provideEvaluator = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _provideEvaluator = + 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.animation.TypeEvaluator provideEvaluator()` + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public android.animation.TypeEvaluator provideEvaluator()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject provideEvaluator() { return _provideEvaluator( - reference.pointer, _id_provideEvaluator as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + reference.pointer, + _id_provideEvaluator as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } } @@ -157,15 +159,14 @@ final class $MapLibrePaddingAnimator$NullableType @core$_.override MapLibrePaddingAnimator? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapLibrePaddingAnimator.fromReference( - reference, - ); + ? null + : MapLibrePaddingAnimator.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const maplibreanimator$_.$MapLibreAnimator$Type( - jni$_.JDoubleArrayType()); + jni$_.JDoubleArrayType(), + ); @jni$_.internal @core$_.override @@ -198,14 +199,13 @@ final class $MapLibrePaddingAnimator$Type @jni$_.internal @core$_.override MapLibrePaddingAnimator fromReference(jni$_.JReference reference) => - MapLibrePaddingAnimator.fromReference( - reference, - ); + MapLibrePaddingAnimator.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const maplibreanimator$_.$MapLibreAnimator$Type( - jni$_.JDoubleArrayType()); + jni$_.JDoubleArrayType(), + ); @jni$_.internal @core$_.override diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/OnCameraTrackingChangedListener.dart b/lib/src/platform/android/jni/org/maplibre/android/location/OnCameraTrackingChangedListener.dart index 6d4b9be9..f32bc8db 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/OnCameraTrackingChangedListener.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/OnCameraTrackingChangedListener.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class OnCameraTrackingChangedListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - OnCameraTrackingChangedListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + OnCameraTrackingChangedListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/OnCameraTrackingChangedListener'); + r'org/maplibre/android/location/OnCameraTrackingChangedListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $OnCameraTrackingChangedListener$NullableType(); @@ -73,23 +61,28 @@ class OnCameraTrackingChangedListener extends jni$_.JObject { r'()V', ); - static final _onCameraTrackingDismissed = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onCameraTrackingDismissed = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onCameraTrackingDismissed()` void onCameraTrackingDismissed() { - _onCameraTrackingDismissed(reference.pointer, - _id_onCameraTrackingDismissed as jni$_.JMethodIDPtr) - .check(); + _onCameraTrackingDismissed( + reference.pointer, + _id_onCameraTrackingDismissed as jni$_.JMethodIDPtr, + ).check(); } static final _id_onCameraTrackingChanged = _class.instanceMethodId( @@ -97,23 +90,31 @@ class OnCameraTrackingChangedListener extends jni$_.JObject { r'(I)V', ); - static final _onCameraTrackingChanged = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onCameraTrackingChanged = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public abstract void onCameraTrackingChanged(int i)` - void onCameraTrackingChanged( - int i, - ) { - _onCameraTrackingChanged(reference.pointer, - _id_onCameraTrackingChanged as jni$_.JMethodIDPtr, i) - .check(); + void onCameraTrackingChanged(int i) { + _onCameraTrackingChanged( + reference.pointer, + _id_onCameraTrackingChanged as jni$_.JMethodIDPtr, + i, + ).check(); } /// Maps a specific port to the implemented interface. @@ -125,19 +126,16 @@ class OnCameraTrackingChangedListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -225,8 +223,8 @@ final class _$OnCameraTrackingChangedListener this.onCameraTrackingDismissed$async = false, required void Function(int i) onCameraTrackingChanged, this.onCameraTrackingChanged$async = false, - }) : _onCameraTrackingDismissed = onCameraTrackingDismissed, - _onCameraTrackingChanged = onCameraTrackingChanged; + }) : _onCameraTrackingDismissed = onCameraTrackingDismissed, + _onCameraTrackingChanged = onCameraTrackingChanged; final void Function() _onCameraTrackingDismissed; final bool onCameraTrackingDismissed$async; @@ -256,10 +254,8 @@ final class $OnCameraTrackingChangedListener$NullableType @core$_.override OnCameraTrackingChangedListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : OnCameraTrackingChangedListener.fromReference( - reference, - ); + ? null + : OnCameraTrackingChangedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -296,9 +292,7 @@ final class $OnCameraTrackingChangedListener$Type @jni$_.internal @core$_.override OnCameraTrackingChangedListener fromReference(jni$_.JReference reference) => - OnCameraTrackingChangedListener.fromReference( - reference, - ); + OnCameraTrackingChangedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/OnLocationCameraTransitionListener.dart b/lib/src/platform/android/jni/org/maplibre/android/location/OnLocationCameraTransitionListener.dart index 062ed7d3..83d81699 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/OnLocationCameraTransitionListener.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/OnLocationCameraTransitionListener.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class OnLocationCameraTransitionListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - OnLocationCameraTransitionListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + OnLocationCameraTransitionListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/OnLocationCameraTransitionListener'); + r'org/maplibre/android/location/OnLocationCameraTransitionListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -76,21 +64,29 @@ class OnLocationCameraTransitionListener extends jni$_.JObject { static final _onLocationCameraTransitionFinished = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public abstract void onLocationCameraTransitionFinished(int i)` - void onLocationCameraTransitionFinished( - int i, - ) { - _onLocationCameraTransitionFinished(reference.pointer, - _id_onLocationCameraTransitionFinished as jni$_.JMethodIDPtr, i) - .check(); + void onLocationCameraTransitionFinished(int i) { + _onLocationCameraTransitionFinished( + reference.pointer, + _id_onLocationCameraTransitionFinished as jni$_.JMethodIDPtr, + i, + ).check(); } static final _id_onLocationCameraTransitionCanceled = _class.instanceMethodId( @@ -100,21 +96,29 @@ class OnLocationCameraTransitionListener extends jni$_.JObject { static final _onLocationCameraTransitionCanceled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public abstract void onLocationCameraTransitionCanceled(int i)` - void onLocationCameraTransitionCanceled( - int i, - ) { - _onLocationCameraTransitionCanceled(reference.pointer, - _id_onLocationCameraTransitionCanceled as jni$_.JMethodIDPtr, i) - .check(); + void onLocationCameraTransitionCanceled(int i) { + _onLocationCameraTransitionCanceled( + reference.pointer, + _id_onLocationCameraTransitionCanceled as jni$_.JMethodIDPtr, + i, + ).check(); } /// Maps a specific port to the implemented interface. @@ -127,19 +131,16 @@ class OnLocationCameraTransitionListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -232,10 +233,8 @@ final class _$OnLocationCameraTransitionListener this.onLocationCameraTransitionFinished$async = false, required void Function(int i) onLocationCameraTransitionCanceled, this.onLocationCameraTransitionCanceled$async = false, - }) : _onLocationCameraTransitionFinished = - onLocationCameraTransitionFinished, - _onLocationCameraTransitionCanceled = - onLocationCameraTransitionCanceled; + }) : _onLocationCameraTransitionFinished = onLocationCameraTransitionFinished, + _onLocationCameraTransitionCanceled = onLocationCameraTransitionCanceled; final void Function(int i) _onLocationCameraTransitionFinished; final bool onLocationCameraTransitionFinished$async; @@ -264,12 +263,10 @@ final class $OnLocationCameraTransitionListener$NullableType @jni$_.internal @core$_.override OnLocationCameraTransitionListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : OnLocationCameraTransitionListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : OnLocationCameraTransitionListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -307,10 +304,8 @@ final class $OnLocationCameraTransitionListener$Type @jni$_.internal @core$_.override OnLocationCameraTransitionListener fromReference( - jni$_.JReference reference) => - OnLocationCameraTransitionListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => OnLocationCameraTransitionListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/OnLocationClickListener.dart b/lib/src/platform/android/jni/org/maplibre/android/location/OnLocationClickListener.dart index fae557cb..b7fce4b9 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/OnLocationClickListener.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/OnLocationClickListener.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class OnLocationClickListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - OnLocationClickListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + OnLocationClickListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/OnLocationClickListener'); + r'org/maplibre/android/location/OnLocationClickListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $OnLocationClickListener$NullableType(); @@ -73,23 +61,28 @@ class OnLocationClickListener extends jni$_.JObject { r'()V', ); - static final _onLocationComponentClick = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onLocationComponentClick = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onLocationComponentClick()` void onLocationComponentClick() { - _onLocationComponentClick(reference.pointer, - _id_onLocationComponentClick as jni$_.JMethodIDPtr) - .check(); + _onLocationComponentClick( + reference.pointer, + _id_onLocationComponentClick as jni$_.JMethodIDPtr, + ).check(); } /// Maps a specific port to the implemented interface. @@ -101,19 +94,16 @@ class OnLocationClickListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -160,14 +150,10 @@ class OnLocationClickListener extends jni$_.JObject { _$impls[$a] = $impl; } - factory OnLocationClickListener.implement( - $OnLocationClickListener $impl, - ) { + factory OnLocationClickListener.implement($OnLocationClickListener $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return OnLocationClickListener.fromReference( - $i.implementReference(), - ); + return OnLocationClickListener.fromReference($i.implementReference()); } } @@ -209,10 +195,8 @@ final class $OnLocationClickListener$NullableType @core$_.override OnLocationClickListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : OnLocationClickListener.fromReference( - reference, - ); + ? null + : OnLocationClickListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -248,9 +232,7 @@ final class $OnLocationClickListener$Type @jni$_.internal @core$_.override OnLocationClickListener fromReference(jni$_.JReference reference) => - OnLocationClickListener.fromReference( - reference, - ); + OnLocationClickListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/OnLocationLongClickListener.dart b/lib/src/platform/android/jni/org/maplibre/android/location/OnLocationLongClickListener.dart index 94b56e17..22e1fe5e 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/OnLocationLongClickListener.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/OnLocationLongClickListener.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class OnLocationLongClickListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - OnLocationLongClickListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + OnLocationLongClickListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/OnLocationLongClickListener'); + r'org/maplibre/android/location/OnLocationLongClickListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $OnLocationLongClickListener$NullableType(); @@ -75,22 +63,26 @@ class OnLocationLongClickListener extends jni$_.JObject { static final _onLocationComponentLongClick = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onLocationComponentLongClick()` void onLocationComponentLongClick() { - _onLocationComponentLongClick(reference.pointer, - _id_onLocationComponentLongClick as jni$_.JMethodIDPtr) - .check(); + _onLocationComponentLongClick( + reference.pointer, + _id_onLocationComponentLongClick as jni$_.JMethodIDPtr, + ).check(); } /// Maps a specific port to the implemented interface. @@ -102,19 +94,16 @@ class OnLocationLongClickListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -166,9 +155,7 @@ class OnLocationLongClickListener extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return OnLocationLongClickListener.fromReference( - $i.implementReference(), - ); + return OnLocationLongClickListener.fromReference($i.implementReference()); } } @@ -210,10 +197,8 @@ final class $OnLocationLongClickListener$NullableType @core$_.override OnLocationLongClickListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : OnLocationLongClickListener.fromReference( - reference, - ); + ? null + : OnLocationLongClickListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -249,9 +234,7 @@ final class $OnLocationLongClickListener$Type @jni$_.internal @core$_.override OnLocationLongClickListener fromReference(jni$_.JReference reference) => - OnLocationLongClickListener.fromReference( - reference, - ); + OnLocationLongClickListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/OnLocationStaleListener.dart b/lib/src/platform/android/jni/org/maplibre/android/location/OnLocationStaleListener.dart index 3cbdc472..511d2746 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/OnLocationStaleListener.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/OnLocationStaleListener.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class OnLocationStaleListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - OnLocationStaleListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + OnLocationStaleListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/OnLocationStaleListener'); + r'org/maplibre/android/location/OnLocationStaleListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $OnLocationStaleListener$NullableType(); @@ -73,23 +61,31 @@ class OnLocationStaleListener extends jni$_.JObject { r'(Z)V', ); - static final _onStaleStateChange = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onStaleStateChange = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public abstract void onStaleStateChange(boolean z)` - void onStaleStateChange( - bool z, - ) { - _onStaleStateChange(reference.pointer, - _id_onStaleStateChange as jni$_.JMethodIDPtr, z ? 1 : 0) - .check(); + void onStaleStateChange(bool z) { + _onStaleStateChange( + reference.pointer, + _id_onStaleStateChange as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).check(); } /// Maps a specific port to the implemented interface. @@ -101,19 +97,16 @@ class OnLocationStaleListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -155,22 +148,16 @@ class OnLocationStaleListener extends jni$_.JObject { r'org.maplibre.android.location.OnLocationStaleListener', $p, _$invokePointer, - [ - if ($impl.onStaleStateChange$async) r'onStaleStateChange(Z)V', - ], + [if ($impl.onStaleStateChange$async) r'onStaleStateChange(Z)V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory OnLocationStaleListener.implement( - $OnLocationStaleListener $impl, - ) { + factory OnLocationStaleListener.implement($OnLocationStaleListener $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return OnLocationStaleListener.fromReference( - $i.implementReference(), - ); + return OnLocationStaleListener.fromReference($i.implementReference()); } } @@ -212,10 +199,8 @@ final class $OnLocationStaleListener$NullableType @core$_.override OnLocationStaleListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : OnLocationStaleListener.fromReference( - reference, - ); + ? null + : OnLocationStaleListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -251,9 +236,7 @@ final class $OnLocationStaleListener$Type @jni$_.internal @core$_.override OnLocationStaleListener fromReference(jni$_.JReference reference) => - OnLocationStaleListener.fromReference( - reference, - ); + OnLocationStaleListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/OnRenderModeChangedListener.dart b/lib/src/platform/android/jni/org/maplibre/android/location/OnRenderModeChangedListener.dart index c59e2f44..35de24e4 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/OnRenderModeChangedListener.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/OnRenderModeChangedListener.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class OnRenderModeChangedListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - OnRenderModeChangedListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + OnRenderModeChangedListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/OnRenderModeChangedListener'); + r'org/maplibre/android/location/OnRenderModeChangedListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $OnRenderModeChangedListener$NullableType(); @@ -73,23 +61,31 @@ class OnRenderModeChangedListener extends jni$_.JObject { r'(I)V', ); - static final _onRenderModeChanged = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onRenderModeChanged = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public abstract void onRenderModeChanged(int i)` - void onRenderModeChanged( - int i, - ) { + void onRenderModeChanged(int i) { _onRenderModeChanged( - reference.pointer, _id_onRenderModeChanged as jni$_.JMethodIDPtr, i) - .check(); + reference.pointer, + _id_onRenderModeChanged as jni$_.JMethodIDPtr, + i, + ).check(); } /// Maps a specific port to the implemented interface. @@ -101,19 +97,16 @@ class OnRenderModeChangedListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -155,9 +148,7 @@ class OnRenderModeChangedListener extends jni$_.JObject { r'org.maplibre.android.location.OnRenderModeChangedListener', $p, _$invokePointer, - [ - if ($impl.onRenderModeChanged$async) r'onRenderModeChanged(I)V', - ], + [if ($impl.onRenderModeChanged$async) r'onRenderModeChanged(I)V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; @@ -168,9 +159,7 @@ class OnRenderModeChangedListener extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return OnRenderModeChangedListener.fromReference( - $i.implementReference(), - ); + return OnRenderModeChangedListener.fromReference($i.implementReference()); } } @@ -212,10 +201,8 @@ final class $OnRenderModeChangedListener$NullableType @core$_.override OnRenderModeChangedListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : OnRenderModeChangedListener.fromReference( - reference, - ); + ? null + : OnRenderModeChangedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -251,9 +238,7 @@ final class $OnRenderModeChangedListener$Type @jni$_.internal @core$_.override OnRenderModeChangedListener fromReference(jni$_.JReference reference) => - OnRenderModeChangedListener.fromReference( - reference, - ); + OnRenderModeChangedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/PaddingEvaluator.dart b/lib/src/platform/android/jni/org/maplibre/android/location/PaddingEvaluator.dart index f49bc143..a6c4715e 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/PaddingEvaluator.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/PaddingEvaluator.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,39 +45,41 @@ class PaddingEvaluator extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - PaddingEvaluator.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + PaddingEvaluator.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/location/PaddingEvaluator'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/location/PaddingEvaluator', + ); /// The type which includes information such as the signature of this class. static const nullableType = $PaddingEvaluator$NullableType(); static const type = $PaddingEvaluator$Type(); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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, - )>(); + ) + > + >('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 PaddingEvaluator() { return PaddingEvaluator.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } static final _id_evaluate = _class.instanceMethodId( @@ -97,24 +87,31 @@ class PaddingEvaluator extends jni$_.JObject { r'(F[D[D)[D', ); - static final _evaluate = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _evaluate = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Double, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, double, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public double[] evaluate(float f, double[] ds, double[] ds1)` /// The returned object must be released after use, by calling the [release] method. @@ -125,9 +122,13 @@ class PaddingEvaluator extends jni$_.JObject { ) { final _$ds = ds.reference; final _$ds1 = ds1.reference; - return _evaluate(reference.pointer, _id_evaluate as jni$_.JMethodIDPtr, f, - _$ds.pointer, _$ds1.pointer) - .object(const jni$_.JDoubleArrayType()); + return _evaluate( + reference.pointer, + _id_evaluate as jni$_.JMethodIDPtr, + f, + _$ds.pointer, + _$ds1.pointer, + ).object(const jni$_.JDoubleArrayType()); } } @@ -143,11 +144,7 @@ final class $PaddingEvaluator$NullableType @jni$_.internal @core$_.override PaddingEvaluator? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : PaddingEvaluator.fromReference( - reference, - ); + reference.isNull ? null : PaddingEvaluator.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -181,9 +178,7 @@ final class $PaddingEvaluator$Type extends jni$_.JObjType { @jni$_.internal @core$_.override PaddingEvaluator fromReference(jni$_.JReference reference) => - PaddingEvaluator.fromReference( - reference, - ); + PaddingEvaluator.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/PulsingLocationCircleAnimator.dart b/lib/src/platform/android/jni/org/maplibre/android/location/PulsingLocationCircleAnimator.dart index f5b392e7..dc97154f 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/PulsingLocationCircleAnimator.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/PulsingLocationCircleAnimator.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class PulsingLocationCircleAnimator extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - PulsingLocationCircleAnimator.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + PulsingLocationCircleAnimator.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/PulsingLocationCircleAnimator'); + r'org/maplibre/android/location/PulsingLocationCircleAnimator', + ); /// The type which includes information such as the signature of this class. static const nullableType = $PulsingLocationCircleAnimator$NullableType(); @@ -72,20 +60,27 @@ class PulsingLocationCircleAnimator extends jni$_.JObject { r'(Lorg/maplibre/android/location/MapLibreAnimator$AnimationsValueChangeListener;IF)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Double - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Double) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + double, + ) + >(); /// from: `public void (org.maplibre.android.location.MapLibreAnimator$AnimationsValueChangeListener animationsValueChangeListener, int i, float f)` /// The returned object must be released after use, by calling the [release] method. @@ -96,13 +91,15 @@ class PulsingLocationCircleAnimator extends jni$_.JObject { ) { final _$animationsValueChangeListener = animationsValueChangeListener?.reference ?? jni$_.jNullReference; - return PulsingLocationCircleAnimator.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$animationsValueChangeListener.pointer, - i, - f) - .reference); + return PulsingLocationCircleAnimator.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$animationsValueChangeListener.pointer, + i, + f, + ).reference, + ); } } @@ -120,10 +117,8 @@ final class $PulsingLocationCircleAnimator$NullableType @core$_.override PulsingLocationCircleAnimator? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : PulsingLocationCircleAnimator.fromReference( - reference, - ); + ? null + : PulsingLocationCircleAnimator.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -159,9 +154,7 @@ final class $PulsingLocationCircleAnimator$Type @jni$_.internal @core$_.override PulsingLocationCircleAnimator fromReference(jni$_.JReference reference) => - PulsingLocationCircleAnimator.fromReference( - reference, - ); + PulsingLocationCircleAnimator.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/Utils.dart b/lib/src/platform/android/jni/org/maplibre/android/location/Utils.dart index 48553a1c..a4931371 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/Utils.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/Utils.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class Utils extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Utils.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Utils.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/location/Utils'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/location/Utils', + ); /// The type which includes information such as the signature of this class. static const nullableType = $Utils$NullableType(); @@ -73,48 +61,62 @@ class Utils extends jni$_.JObject { r'(FF)F', ); - static final _shortestRotation = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double, jni$_.Double)>)>>( - 'globalEnv_CallStaticFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double, double)>(); + static final _shortestRotation = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double, jni$_.Double)>, + ) + > + >('globalEnv_CallStaticFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + double, + ) + >(); /// from: `static public float shortestRotation(float f, float f1)` - static double shortestRotation( - double f, - double f1, - ) { - return _shortestRotation(_class.reference.pointer, - _id_shortestRotation as jni$_.JMethodIDPtr, f, f1) - .float; + static double shortestRotation(double f, double f1) { + return _shortestRotation( + _class.reference.pointer, + _id_shortestRotation as jni$_.JMethodIDPtr, + f, + f1, + ).float; } - static final _id_normalize = _class.staticMethodId( - r'normalize', - r'(F)F', - ); - - static final _normalize = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Double,)>)>>( - 'globalEnv_CallStaticFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + static final _id_normalize = _class.staticMethodId(r'normalize', r'(F)F'); + + static final _normalize = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallStaticFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `static public float normalize(float f)` - static double normalize( - double f, - ) { + static double normalize(double f) { return _normalize( - _class.reference.pointer, _id_normalize as jni$_.JMethodIDPtr, f) - .float; + _class.reference.pointer, + _id_normalize as jni$_.JMethodIDPtr, + f, + ).float; } } @@ -128,11 +130,8 @@ final class $Utils$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - Utils? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Utils.fromReference( - reference, - ); + Utils? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Utils.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -165,9 +164,8 @@ final class $Utils$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - Utils fromReference(jni$_.JReference reference) => Utils.fromReference( - reference, - ); + Utils fromReference(jni$_.JReference reference) => + Utils.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/_package.dart b/lib/src/platform/android/jni/org/maplibre/android/location/_package.dart index da5e5e45..aae6ae75 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/_package.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/_package.dart @@ -1,3 +1,4 @@ +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! export 'CompassEngine.dart'; export 'CompassListener.dart'; export 'LocationComponent.dart'; diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/engine/AndroidLocationEngineImpl.dart b/lib/src/platform/android/jni/org/maplibre/android/location/engine/AndroidLocationEngineImpl.dart index 3e01ceb0..08e975af 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/engine/AndroidLocationEngineImpl.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/engine/AndroidLocationEngineImpl.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -63,43 +51,48 @@ class AndroidLocationEngineImpl extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - AndroidLocationEngineImpl.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + AndroidLocationEngineImpl.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/engine/AndroidLocationEngineImpl'); + r'org/maplibre/android/location/engine/AndroidLocationEngineImpl', + ); /// The type which includes information such as the signature of this class. static const nullableType = $AndroidLocationEngineImpl$NullableType(); static const type = $AndroidLocationEngineImpl$Type(); - static final _id_new$ = _class.constructorId( - r'(Landroid/content/Context;)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)>(); + static final _id_new$ = _class.constructorId(r'(Landroid/content/Context;)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: `public void (android.content.Context context)` /// The returned object must be released after use, by calling the [release] method. - factory AndroidLocationEngineImpl( - jni$_.JObject? context, - ) { - final _$context = context?.reference ?? jni$_.jNullReference; - return AndroidLocationEngineImpl.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$context.pointer) - .reference); + factory AndroidLocationEngineImpl(jni$_.JObject context) { + final _$context = context.reference; + return AndroidLocationEngineImpl.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$context.pointer, + ).reference, + ); } static final _id_createListener = _class.instanceMethodId( @@ -107,31 +100,39 @@ class AndroidLocationEngineImpl extends jni$_.JObject { r'(Lorg/maplibre/android/location/engine/LocationEngineCallback;)Landroid/location/LocationListener;', ); - static final _createListener = 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 android.location.LocationListener createListener(org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback)` + static final _createListener = + 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 android.location.LocationListener createListener(org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? createListener( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback, + jni$_.JObject createListener( + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + >? + locationEngineCallback, ) { final _$locationEngineCallback = locationEngineCallback?.reference ?? jni$_.jNullReference; return _createListener( - reference.pointer, - _id_createListener as jni$_.JMethodIDPtr, - _$locationEngineCallback.pointer) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_createListener as jni$_.JMethodIDPtr, + _$locationEngineCallback.pointer, + ).object(const jni$_.JObjectType()); } static final _id_getLastLocation = _class.instanceMethodId( @@ -139,30 +140,37 @@ class AndroidLocationEngineImpl extends jni$_.JObject { r'(Lorg/maplibre/android/location/engine/LocationEngineCallback;)V', ); - static final _getLastLocation = 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 getLastLocation(org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback)` + static final _getLastLocation = + 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 getLastLocation(org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback)` void getLastLocation( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback, + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, ) { - final _$locationEngineCallback = - locationEngineCallback?.reference ?? jni$_.jNullReference; + final _$locationEngineCallback = locationEngineCallback.reference; _getLastLocation( - reference.pointer, - _id_getLastLocation as jni$_.JMethodIDPtr, - _$locationEngineCallback.pointer) - .check(); + reference.pointer, + _id_getLastLocation as jni$_.JMethodIDPtr, + _$locationEngineCallback.pointer, + ).check(); } static final _id_requestLocationUpdates = _class.instanceMethodId( @@ -170,43 +178,48 @@ class AndroidLocationEngineImpl extends jni$_.JObject { r'(Lorg/maplibre/android/location/engine/LocationEngineRequest;Landroid/location/LocationListener;Landroid/os/Looper;)V', ); - static final _requestLocationUpdates = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _requestLocationUpdates = + 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$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void requestLocationUpdates(org.maplibre.android.location.engine.LocationEngineRequest locationEngineRequest, android.location.LocationListener locationListener, android.os.Looper looper)` void requestLocationUpdates( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, - jni$_.JObject? locationListener, + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + jni$_.JObject locationListener, jni$_.JObject? looper, ) { - final _$locationEngineRequest = - locationEngineRequest?.reference ?? jni$_.jNullReference; - final _$locationListener = - locationListener?.reference ?? jni$_.jNullReference; + final _$locationEngineRequest = locationEngineRequest.reference; + final _$locationListener = locationListener.reference; final _$looper = looper?.reference ?? jni$_.jNullReference; _requestLocationUpdates( - reference.pointer, - _id_requestLocationUpdates as jni$_.JMethodIDPtr, - _$locationEngineRequest.pointer, - _$locationListener.pointer, - _$looper.pointer) - .check(); + reference.pointer, + _id_requestLocationUpdates as jni$_.JMethodIDPtr, + _$locationEngineRequest.pointer, + _$locationListener.pointer, + _$looper.pointer, + ).check(); } static final _id_requestLocationUpdates$1 = _class.instanceMethodId( @@ -214,37 +227,40 @@ class AndroidLocationEngineImpl extends jni$_.JObject { r'(Lorg/maplibre/android/location/engine/LocationEngineRequest;Landroid/app/PendingIntent;)V', ); - static final _requestLocationUpdates$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _requestLocationUpdates$1 = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void requestLocationUpdates(org.maplibre.android.location.engine.LocationEngineRequest locationEngineRequest, android.app.PendingIntent pendingIntent)` void requestLocationUpdates$1( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, - jni$_.JObject? pendingIntent, + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + jni$_.JObject pendingIntent, ) { - final _$locationEngineRequest = - locationEngineRequest?.reference ?? jni$_.jNullReference; - final _$pendingIntent = pendingIntent?.reference ?? jni$_.jNullReference; + final _$locationEngineRequest = locationEngineRequest.reference; + final _$pendingIntent = pendingIntent.reference; _requestLocationUpdates$1( - reference.pointer, - _id_requestLocationUpdates$1 as jni$_.JMethodIDPtr, - _$locationEngineRequest.pointer, - _$pendingIntent.pointer) - .check(); + reference.pointer, + _id_requestLocationUpdates$1 as jni$_.JMethodIDPtr, + _$locationEngineRequest.pointer, + _$pendingIntent.pointer, + ).check(); } static final _id_removeLocationUpdates = _class.instanceMethodId( @@ -252,28 +268,32 @@ class AndroidLocationEngineImpl extends jni$_.JObject { r'(Landroid/location/LocationListener;)V', ); - static final _removeLocationUpdates = 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 _removeLocationUpdates = + 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 removeLocationUpdates(android.location.LocationListener locationListener)` - void removeLocationUpdates( - jni$_.JObject? locationListener, - ) { - final _$locationListener = - locationListener?.reference ?? jni$_.jNullReference; + void removeLocationUpdates(jni$_.JObject locationListener) { + final _$locationListener = locationListener.reference; _removeLocationUpdates( - reference.pointer, - _id_removeLocationUpdates as jni$_.JMethodIDPtr, - _$locationListener.pointer) - .check(); + reference.pointer, + _id_removeLocationUpdates as jni$_.JMethodIDPtr, + _$locationListener.pointer, + ).check(); } static final _id_removeLocationUpdates$1 = _class.instanceMethodId( @@ -281,27 +301,32 @@ class AndroidLocationEngineImpl extends jni$_.JObject { r'(Landroid/app/PendingIntent;)V', ); - static final _removeLocationUpdates$1 = 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 _removeLocationUpdates$1 = + 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 removeLocationUpdates(android.app.PendingIntent pendingIntent)` - void removeLocationUpdates$1( - jni$_.JObject? pendingIntent, - ) { + void removeLocationUpdates$1(jni$_.JObject? pendingIntent) { final _$pendingIntent = pendingIntent?.reference ?? jni$_.jNullReference; _removeLocationUpdates$1( - reference.pointer, - _id_removeLocationUpdates$1 as jni$_.JMethodIDPtr, - _$pendingIntent.pointer) - .check(); + reference.pointer, + _id_removeLocationUpdates$1 as jni$_.JMethodIDPtr, + _$pendingIntent.pointer, + ).check(); } } @@ -319,10 +344,8 @@ final class $AndroidLocationEngineImpl$NullableType @core$_.override AndroidLocationEngineImpl? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : AndroidLocationEngineImpl.fromReference( - reference, - ); + ? null + : AndroidLocationEngineImpl.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -358,9 +381,7 @@ final class $AndroidLocationEngineImpl$Type @jni$_.internal @core$_.override AndroidLocationEngineImpl fromReference(jni$_.JReference reference) => - AndroidLocationEngineImpl.fromReference( - reference, - ); + AndroidLocationEngineImpl.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngine.dart b/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngine.dart index e7258688..e9e82229 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngine.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngine.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -63,13 +51,13 @@ class LocationEngine extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - LocationEngine.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + LocationEngine.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/engine/LocationEngine'); + r'org/maplibre/android/location/engine/LocationEngine', + ); /// The type which includes information such as the signature of this class. static const nullableType = $LocationEngine$NullableType(); @@ -79,30 +67,37 @@ class LocationEngine extends jni$_.JObject { r'(Lorg/maplibre/android/location/engine/LocationEngineCallback;)V', ); - static final _getLastLocation = 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 getLastLocation(org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback)` + static final _getLastLocation = + 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 getLastLocation(org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback)` void getLastLocation( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback, + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, ) { - final _$locationEngineCallback = - locationEngineCallback?.reference ?? jni$_.jNullReference; + final _$locationEngineCallback = locationEngineCallback.reference; _getLastLocation( - reference.pointer, - _id_getLastLocation as jni$_.JMethodIDPtr, - _$locationEngineCallback.pointer) - .check(); + reference.pointer, + _id_getLastLocation as jni$_.JMethodIDPtr, + _$locationEngineCallback.pointer, + ).check(); } static final _id_requestLocationUpdates = _class.instanceMethodId( @@ -110,45 +105,51 @@ class LocationEngine extends jni$_.JObject { r'(Lorg/maplibre/android/location/engine/LocationEngineRequest;Lorg/maplibre/android/location/engine/LocationEngineCallback;Landroid/os/Looper;)V', ); - static final _requestLocationUpdates = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _requestLocationUpdates = + 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$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); - /// from: `public abstract void requestLocationUpdates(org.maplibre.android.location.engine.LocationEngineRequest locationEngineRequest, org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback, android.os.Looper looper)` + /// from: `public abstract void requestLocationUpdates(org.maplibre.android.location.engine.LocationEngineRequest locationEngineRequest, org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback, android.os.Looper looper)` void requestLocationUpdates( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback, + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, jni$_.JObject? looper, ) { - final _$locationEngineRequest = - locationEngineRequest?.reference ?? jni$_.jNullReference; - final _$locationEngineCallback = - locationEngineCallback?.reference ?? jni$_.jNullReference; + final _$locationEngineRequest = locationEngineRequest.reference; + final _$locationEngineCallback = locationEngineCallback.reference; final _$looper = looper?.reference ?? jni$_.jNullReference; _requestLocationUpdates( - reference.pointer, - _id_requestLocationUpdates as jni$_.JMethodIDPtr, - _$locationEngineRequest.pointer, - _$locationEngineCallback.pointer, - _$looper.pointer) - .check(); + reference.pointer, + _id_requestLocationUpdates as jni$_.JMethodIDPtr, + _$locationEngineRequest.pointer, + _$locationEngineCallback.pointer, + _$looper.pointer, + ).check(); } static final _id_requestLocationUpdates$1 = _class.instanceMethodId( @@ -156,37 +157,40 @@ class LocationEngine extends jni$_.JObject { r'(Lorg/maplibre/android/location/engine/LocationEngineRequest;Landroid/app/PendingIntent;)V', ); - static final _requestLocationUpdates$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _requestLocationUpdates$1 = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void requestLocationUpdates(org.maplibre.android.location.engine.LocationEngineRequest locationEngineRequest, android.app.PendingIntent pendingIntent)` void requestLocationUpdates$1( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, + locationenginerequest$_.LocationEngineRequest locationEngineRequest, jni$_.JObject? pendingIntent, ) { - final _$locationEngineRequest = - locationEngineRequest?.reference ?? jni$_.jNullReference; + final _$locationEngineRequest = locationEngineRequest.reference; final _$pendingIntent = pendingIntent?.reference ?? jni$_.jNullReference; _requestLocationUpdates$1( - reference.pointer, - _id_requestLocationUpdates$1 as jni$_.JMethodIDPtr, - _$locationEngineRequest.pointer, - _$pendingIntent.pointer) - .check(); + reference.pointer, + _id_requestLocationUpdates$1 as jni$_.JMethodIDPtr, + _$locationEngineRequest.pointer, + _$pendingIntent.pointer, + ).check(); } static final _id_removeLocationUpdates = _class.instanceMethodId( @@ -194,30 +198,37 @@ class LocationEngine extends jni$_.JObject { r'(Lorg/maplibre/android/location/engine/LocationEngineCallback;)V', ); - static final _removeLocationUpdates = 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 removeLocationUpdates(org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback)` + static final _removeLocationUpdates = + 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 removeLocationUpdates(org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback)` void removeLocationUpdates( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback, + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, ) { - final _$locationEngineCallback = - locationEngineCallback?.reference ?? jni$_.jNullReference; + final _$locationEngineCallback = locationEngineCallback.reference; _removeLocationUpdates( - reference.pointer, - _id_removeLocationUpdates as jni$_.JMethodIDPtr, - _$locationEngineCallback.pointer) - .check(); + reference.pointer, + _id_removeLocationUpdates as jni$_.JMethodIDPtr, + _$locationEngineCallback.pointer, + ).check(); } static final _id_removeLocationUpdates$1 = _class.instanceMethodId( @@ -225,27 +236,32 @@ class LocationEngine extends jni$_.JObject { r'(Landroid/app/PendingIntent;)V', ); - static final _removeLocationUpdates$1 = 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 _removeLocationUpdates$1 = + 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 removeLocationUpdates(android.app.PendingIntent pendingIntent)` - void removeLocationUpdates$1( - jni$_.JObject? pendingIntent, - ) { + void removeLocationUpdates$1(jni$_.JObject? pendingIntent) { final _$pendingIntent = pendingIntent?.reference ?? jni$_.jNullReference; _removeLocationUpdates$1( - reference.pointer, - _id_removeLocationUpdates$1 as jni$_.JMethodIDPtr, - _$pendingIntent.pointer) - .check(); + reference.pointer, + _id_removeLocationUpdates$1 as jni$_.JMethodIDPtr, + _$pendingIntent.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -257,19 +273,16 @@ class LocationEngine extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -281,25 +294,28 @@ class LocationEngine extends jni$_.JObject { if ($d == r'getLastLocation(Lorg/maplibre/android/location/engine/LocationEngineCallback;)V') { _$impls[$p]!.getLastLocation( - $a![0]?.as( - const locationenginecallback$_.$LocationEngineCallback$Type< - locationengineresult$_.LocationEngineResult?>( - locationengineresult$_.$LocationEngineResult$NullableType()), - releaseOriginal: true), + $a![0]!.as( + const locationenginecallback$_.$LocationEngineCallback$Type< + locationengineresult$_.LocationEngineResult? + >(locationengineresult$_.$LocationEngineResult$NullableType()), + releaseOriginal: true, + ), ); return jni$_.nullptr; } if ($d == r'requestLocationUpdates(Lorg/maplibre/android/location/engine/LocationEngineRequest;Lorg/maplibre/android/location/engine/LocationEngineCallback;Landroid/os/Looper;)V') { _$impls[$p]!.requestLocationUpdates( - $a![0]?.as( - const locationenginerequest$_.$LocationEngineRequest$Type(), - releaseOriginal: true), - $a![1]?.as( - const locationenginecallback$_.$LocationEngineCallback$Type< - locationengineresult$_.LocationEngineResult?>( - locationengineresult$_.$LocationEngineResult$NullableType()), - releaseOriginal: true), + $a![0]!.as( + const locationenginerequest$_.$LocationEngineRequest$Type(), + releaseOriginal: true, + ), + $a![1]!.as( + const locationenginecallback$_.$LocationEngineCallback$Type< + locationengineresult$_.LocationEngineResult? + >(locationengineresult$_.$LocationEngineResult$NullableType()), + releaseOriginal: true, + ), $a![2]?.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; @@ -307,9 +323,10 @@ class LocationEngine extends jni$_.JObject { if ($d == r'requestLocationUpdates(Lorg/maplibre/android/location/engine/LocationEngineRequest;Landroid/app/PendingIntent;)V') { _$impls[$p]!.requestLocationUpdates$1( - $a![0]?.as( - const locationenginerequest$_.$LocationEngineRequest$Type(), - releaseOriginal: true), + $a![0]!.as( + const locationenginerequest$_.$LocationEngineRequest$Type(), + releaseOriginal: true, + ), $a![1]?.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; @@ -317,11 +334,12 @@ class LocationEngine extends jni$_.JObject { if ($d == r'removeLocationUpdates(Lorg/maplibre/android/location/engine/LocationEngineCallback;)V') { _$impls[$p]!.removeLocationUpdates( - $a![0]?.as( - const locationenginecallback$_.$LocationEngineCallback$Type< - locationengineresult$_.LocationEngineResult?>( - locationengineresult$_.$LocationEngineResult$NullableType()), - releaseOriginal: true), + $a![0]!.as( + const locationenginecallback$_.$LocationEngineCallback$Type< + locationengineresult$_.LocationEngineResult? + >(locationengineresult$_.$LocationEngineResult$NullableType()), + releaseOriginal: true, + ), ); return jni$_.nullptr; } @@ -373,71 +391,79 @@ class LocationEngine extends jni$_.JObject { _$impls[$a] = $impl; } - factory LocationEngine.implement( - $LocationEngine $impl, - ) { + factory LocationEngine.implement($LocationEngine $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return LocationEngine.fromReference( - $i.implementReference(), - ); + return LocationEngine.fromReference($i.implementReference()); } } abstract base mixin class $LocationEngine { factory $LocationEngine({ required void Function( - locationenginecallback$_.LocationEngineCallback< - locationengineresult$_.LocationEngineResult?>? - locationEngineCallback) - getLastLocation, + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, + ) + getLastLocation, bool getLastLocation$async, required void Function( - locationenginerequest$_.LocationEngineRequest? - locationEngineRequest, - locationenginecallback$_.LocationEngineCallback< - locationengineresult$_.LocationEngineResult?>? - locationEngineCallback, - jni$_.JObject? looper) - requestLocationUpdates, + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, + jni$_.JObject? looper, + ) + requestLocationUpdates, bool requestLocationUpdates$async, required void Function( - locationenginerequest$_.LocationEngineRequest? - locationEngineRequest, - jni$_.JObject? pendingIntent) - requestLocationUpdates$1, + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + jni$_.JObject? pendingIntent, + ) + requestLocationUpdates$1, bool requestLocationUpdates$1$async, required void Function( - locationenginecallback$_.LocationEngineCallback< - locationengineresult$_.LocationEngineResult?>? - locationEngineCallback) - removeLocationUpdates, + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, + ) + removeLocationUpdates, bool removeLocationUpdates$async, required void Function(jni$_.JObject? pendingIntent) - removeLocationUpdates$1, + removeLocationUpdates$1, bool removeLocationUpdates$1$async, }) = _$LocationEngine; void getLastLocation( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback); + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, + ); bool get getLastLocation$async => false; void requestLocationUpdates( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback, - jni$_.JObject? looper); + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, + jni$_.JObject? looper, + ); bool get requestLocationUpdates$async => false; void requestLocationUpdates$1( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, - jni$_.JObject? pendingIntent); + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + jni$_.JObject? pendingIntent, + ); bool get requestLocationUpdates$1$async => false; void removeLocationUpdates( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback); + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, + ); bool get removeLocationUpdates$async => false; void removeLocationUpdates$1(jni$_.JObject? pendingIntent); bool get removeLocationUpdates$1$async => false; @@ -446,92 +472,118 @@ abstract base mixin class $LocationEngine { final class _$LocationEngine with $LocationEngine { _$LocationEngine({ required void Function( - locationenginecallback$_.LocationEngineCallback< - locationengineresult$_.LocationEngineResult?>? - locationEngineCallback) - getLastLocation, + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, + ) + getLastLocation, this.getLastLocation$async = false, required void Function( - locationenginerequest$_.LocationEngineRequest? - locationEngineRequest, - locationenginecallback$_.LocationEngineCallback< - locationengineresult$_.LocationEngineResult?>? - locationEngineCallback, - jni$_.JObject? looper) - requestLocationUpdates, + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, + jni$_.JObject? looper, + ) + requestLocationUpdates, this.requestLocationUpdates$async = false, required void Function( - locationenginerequest$_.LocationEngineRequest? - locationEngineRequest, - jni$_.JObject? pendingIntent) - requestLocationUpdates$1, + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + jni$_.JObject? pendingIntent, + ) + requestLocationUpdates$1, this.requestLocationUpdates$1$async = false, required void Function( - locationenginecallback$_.LocationEngineCallback< - locationengineresult$_.LocationEngineResult?>? - locationEngineCallback) - removeLocationUpdates, + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, + ) + removeLocationUpdates, this.removeLocationUpdates$async = false, required void Function(jni$_.JObject? pendingIntent) - removeLocationUpdates$1, + removeLocationUpdates$1, this.removeLocationUpdates$1$async = false, - }) : _getLastLocation = getLastLocation, - _requestLocationUpdates = requestLocationUpdates, - _requestLocationUpdates$1 = requestLocationUpdates$1, - _removeLocationUpdates = removeLocationUpdates, - _removeLocationUpdates$1 = removeLocationUpdates$1; + }) : _getLastLocation = getLastLocation, + _requestLocationUpdates = requestLocationUpdates, + _requestLocationUpdates$1 = requestLocationUpdates$1, + _removeLocationUpdates = removeLocationUpdates, + _removeLocationUpdates$1 = removeLocationUpdates$1; final void Function( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback) _getLastLocation; + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, + ) + _getLastLocation; final bool getLastLocation$async; final void Function( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback, - jni$_.JObject? looper) _requestLocationUpdates; + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, + jni$_.JObject? looper, + ) + _requestLocationUpdates; final bool requestLocationUpdates$async; final void Function( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, - jni$_.JObject? pendingIntent) _requestLocationUpdates$1; + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + jni$_.JObject? pendingIntent, + ) + _requestLocationUpdates$1; final bool requestLocationUpdates$1$async; final void Function( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback) _removeLocationUpdates; + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, + ) + _removeLocationUpdates; final bool removeLocationUpdates$async; final void Function(jni$_.JObject? pendingIntent) _removeLocationUpdates$1; final bool removeLocationUpdates$1$async; void getLastLocation( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback) { + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, + ) { return _getLastLocation(locationEngineCallback); } void requestLocationUpdates( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback, - jni$_.JObject? looper) { + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, + jni$_.JObject? looper, + ) { return _requestLocationUpdates( - locationEngineRequest, locationEngineCallback, looper); + locationEngineRequest, + locationEngineCallback, + looper, + ); } void requestLocationUpdates$1( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, - jni$_.JObject? pendingIntent) { + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + jni$_.JObject? pendingIntent, + ) { return _requestLocationUpdates$1(locationEngineRequest, pendingIntent); } void removeLocationUpdates( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback) { + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, + ) { return _removeLocationUpdates(locationEngineCallback); } @@ -552,11 +604,8 @@ final class $LocationEngine$NullableType @jni$_.internal @core$_.override - LocationEngine? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : LocationEngine.fromReference( - reference, - ); + LocationEngine? fromReference(jni$_.JReference reference) => + reference.isNull ? null : LocationEngine.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -591,9 +640,7 @@ final class $LocationEngine$Type extends jni$_.JObjType { @jni$_.internal @core$_.override LocationEngine fromReference(jni$_.JReference reference) => - LocationEngine.fromReference( - reference, - ); + LocationEngine.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineCallback.dart b/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineCallback.dart index 375270e3..c1a356f0 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineCallback.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineCallback.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -60,31 +48,24 @@ class LocationEngineCallback<$T extends jni$_.JObject?> extends jni$_.JObject { final jni$_.JObjType<$T> T; @jni$_.internal - LocationEngineCallback.fromReference( - this.T, - jni$_.JReference reference, - ) : $type = type<$T>(T), - super.fromReference(reference); + LocationEngineCallback.fromReference(this.T, jni$_.JReference reference) + : $type = type<$T>(T), + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/engine/LocationEngineCallback'); + r'org/maplibre/android/location/engine/LocationEngineCallback', + ); /// The type which includes information such as the signature of this class. static $LocationEngineCallback$NullableType<$T> - nullableType<$T extends jni$_.JObject?>( - jni$_.JObjType<$T> T, - ) { - return $LocationEngineCallback$NullableType<$T>( - T, - ); + nullableType<$T extends jni$_.JObject?>(jni$_.JObjType<$T> T) { + return $LocationEngineCallback$NullableType<$T>(T); } static $LocationEngineCallback$Type<$T> type<$T extends jni$_.JObject?>( jni$_.JObjType<$T> T, ) { - return $LocationEngineCallback$Type<$T>( - T, - ); + return $LocationEngineCallback$Type<$T>(T); } static final _id_onSuccess = _class.instanceMethodId( @@ -92,25 +73,32 @@ class LocationEngineCallback<$T extends jni$_.JObject?> extends jni$_.JObject { r'(Ljava/lang/Object;)V', ); - static final _onSuccess = 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 _onSuccess = + 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 onSuccess(T object)` - void onSuccess( - $T? object, - ) { + void onSuccess($T? object) { final _$object = object?.reference ?? jni$_.jNullReference; - _onSuccess(reference.pointer, _id_onSuccess as jni$_.JMethodIDPtr, - _$object.pointer) - .check(); + _onSuccess( + reference.pointer, + _id_onSuccess as jni$_.JMethodIDPtr, + _$object.pointer, + ).check(); } static final _id_onFailure = _class.instanceMethodId( @@ -118,25 +106,32 @@ class LocationEngineCallback<$T extends jni$_.JObject?> extends jni$_.JObject { r'(Ljava/lang/Exception;)V', ); - static final _onFailure = 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 _onFailure = + 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 onFailure(java.lang.Exception exception)` - void onFailure( - jni$_.JObject? exception, - ) { - final _$exception = exception?.reference ?? jni$_.jNullReference; - _onFailure(reference.pointer, _id_onFailure as jni$_.JMethodIDPtr, - _$exception.pointer) - .check(); + void onFailure(jni$_.JObject exception) { + final _$exception = exception.reference; + _onFailure( + reference.pointer, + _id_onFailure as jni$_.JMethodIDPtr, + _$exception.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -148,19 +143,16 @@ class LocationEngineCallback<$T extends jni$_.JObject?> extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -177,7 +169,7 @@ class LocationEngineCallback<$T extends jni$_.JObject?> extends jni$_.JObject { } if ($d == r'onFailure(Ljava/lang/Exception;)V') { _$impls[$p]!.onFailure( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; } @@ -215,9 +207,7 @@ class LocationEngineCallback<$T extends jni$_.JObject?> extends jni$_.JObject { _$impls[$a] = $impl; } - factory LocationEngineCallback.implement( - $LocationEngineCallback<$T> $impl, - ) { + factory LocationEngineCallback.implement($LocationEngineCallback<$T> $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); return LocationEngineCallback<$T>.fromReference( @@ -232,7 +222,7 @@ abstract base mixin class $LocationEngineCallback<$T extends jni$_.JObject?> { required jni$_.JObjType<$T> T, required void Function($T? object) onSuccess, bool onSuccess$async, - required void Function(jni$_.JObject? exception) onFailure, + required void Function(jni$_.JObject exception) onFailure, bool onFailure$async, }) = _$LocationEngineCallback<$T>; @@ -240,7 +230,7 @@ abstract base mixin class $LocationEngineCallback<$T extends jni$_.JObject?> { void onSuccess($T? object); bool get onSuccess$async => false; - void onFailure(jni$_.JObject? exception); + void onFailure(jni$_.JObject exception); bool get onFailure$async => false; } @@ -250,24 +240,24 @@ final class _$LocationEngineCallback<$T extends jni$_.JObject?> required this.T, required void Function($T? object) onSuccess, this.onSuccess$async = false, - required void Function(jni$_.JObject? exception) onFailure, + required void Function(jni$_.JObject exception) onFailure, this.onFailure$async = false, - }) : _onSuccess = onSuccess, - _onFailure = onFailure; + }) : _onSuccess = onSuccess, + _onFailure = onFailure; @core$_.override final jni$_.JObjType<$T> T; final void Function($T? object) _onSuccess; final bool onSuccess$async; - final void Function(jni$_.JObject? exception) _onFailure; + final void Function(jni$_.JObject exception) _onFailure; final bool onFailure$async; void onSuccess($T? object) { return _onSuccess(object); } - void onFailure(jni$_.JObject? exception) { + void onFailure(jni$_.JObject exception) { return _onFailure(exception); } } @@ -278,9 +268,7 @@ final class $LocationEngineCallback$NullableType<$T extends jni$_.JObject?> final jni$_.JObjType<$T> T; @jni$_.internal - const $LocationEngineCallback$NullableType( - this.T, - ); + const $LocationEngineCallback$NullableType(this.T); @jni$_.internal @core$_.override @@ -291,11 +279,8 @@ final class $LocationEngineCallback$NullableType<$T extends jni$_.JObject?> @core$_.override LocationEngineCallback<$T>? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : LocationEngineCallback<$T>.fromReference( - T, - reference, - ); + ? null + : LocationEngineCallback<$T>.fromReference(T, reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -325,9 +310,7 @@ final class $LocationEngineCallback$Type<$T extends jni$_.JObject?> final jni$_.JObjType<$T> T; @jni$_.internal - const $LocationEngineCallback$Type( - this.T, - ); + const $LocationEngineCallback$Type(this.T); @jni$_.internal @core$_.override @@ -337,10 +320,7 @@ final class $LocationEngineCallback$Type<$T extends jni$_.JObject?> @jni$_.internal @core$_.override LocationEngineCallback<$T> fromReference(jni$_.JReference reference) => - LocationEngineCallback<$T>.fromReference( - T, - reference, - ); + LocationEngineCallback<$T>.fromReference(T, reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineDefault.dart b/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineDefault.dart index 4b1f9d67..13395471 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineDefault.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineDefault.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -59,13 +47,13 @@ class LocationEngineDefault extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - LocationEngineDefault.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + LocationEngineDefault.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/engine/LocationEngineDefault'); + r'org/maplibre/android/location/engine/LocationEngineDefault', + ); /// The type which includes information such as the signature of this class. static const nullableType = $LocationEngineDefault$NullableType(); @@ -77,24 +65,31 @@ class LocationEngineDefault extends jni$_.JObject { /// from: `static public final org.maplibre.android.location.engine.LocationEngineDefault INSTANCE` /// The returned object must be released after use, by calling the [release] method. - static LocationEngineDefault? get INSTANCE => - _id_INSTANCE.get(_class, const $LocationEngineDefault$NullableType()); + static LocationEngineDefault get INSTANCE => + _id_INSTANCE.get(_class, const $LocationEngineDefault$Type()); static final _id_getDefaultLocationEngine = _class.instanceMethodId( r'getDefaultLocationEngine', r'(Landroid/content/Context;)Lorg/maplibre/android/location/engine/LocationEngine;', ); - static final _getDefaultLocationEngine = 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)>(); + static final _getDefaultLocationEngine = + 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 final org.maplibre.android.location.engine.LocationEngine getDefaultLocationEngine(android.content.Context context)` /// The returned object must be released after use, by calling the [release] method. @@ -103,11 +98,12 @@ class LocationEngineDefault extends jni$_.JObject { ) { final _$context = context.reference; return _getDefaultLocationEngine( - reference.pointer, - _id_getDefaultLocationEngine as jni$_.JMethodIDPtr, - _$context.pointer) - .object( - const locationengine$_.$LocationEngine$Type()); + reference.pointer, + _id_getDefaultLocationEngine as jni$_.JMethodIDPtr, + _$context.pointer, + ).object( + const locationengine$_.$LocationEngine$Type(), + ); } } @@ -124,11 +120,7 @@ final class $LocationEngineDefault$NullableType @jni$_.internal @core$_.override LocationEngineDefault? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : LocationEngineDefault.fromReference( - reference, - ); + reference.isNull ? null : LocationEngineDefault.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -164,9 +156,7 @@ final class $LocationEngineDefault$Type @jni$_.internal @core$_.override LocationEngineDefault fromReference(jni$_.JReference reference) => - LocationEngineDefault.fromReference( - reference, - ); + LocationEngineDefault.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineImpl.dart b/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineImpl.dart index 7dc9eef4..56205a05 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineImpl.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineImpl.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -66,31 +54,24 @@ class LocationEngineImpl<$T extends jni$_.JObject?> extends jni$_.JObject { final jni$_.JObjType<$T> T; @jni$_.internal - LocationEngineImpl.fromReference( - this.T, - jni$_.JReference reference, - ) : $type = type<$T>(T), - super.fromReference(reference); + LocationEngineImpl.fromReference(this.T, jni$_.JReference reference) + : $type = type<$T>(T), + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/engine/LocationEngineImpl'); + r'org/maplibre/android/location/engine/LocationEngineImpl', + ); /// The type which includes information such as the signature of this class. static $LocationEngineImpl$NullableType<$T> - nullableType<$T extends jni$_.JObject?>( - jni$_.JObjType<$T> T, - ) { - return $LocationEngineImpl$NullableType<$T>( - T, - ); + nullableType<$T extends jni$_.JObject?>(jni$_.JObjType<$T> T) { + return $LocationEngineImpl$NullableType<$T>(T); } static $LocationEngineImpl$Type<$T> type<$T extends jni$_.JObject?>( jni$_.JObjType<$T> T, ) { - return $LocationEngineImpl$Type<$T>( - T, - ); + return $LocationEngineImpl$Type<$T>(T); } static final _id_createListener = _class.instanceMethodId( @@ -98,31 +79,39 @@ class LocationEngineImpl<$T extends jni$_.JObject?> extends jni$_.JObject { r'(Lorg/maplibre/android/location/engine/LocationEngineCallback;)Ljava/lang/Object;', ); - static final _createListener = 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 T createListener(org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback)` + static final _createListener = + 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 T createListener(org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback)` /// The returned object must be released after use, by calling the [release] method. - $T? createListener( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback, + $T createListener( + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + >? + locationEngineCallback, ) { final _$locationEngineCallback = locationEngineCallback?.reference ?? jni$_.jNullReference; return _createListener( - reference.pointer, - _id_createListener as jni$_.JMethodIDPtr, - _$locationEngineCallback.pointer) - .object<$T?>(T.nullableType); + reference.pointer, + _id_createListener as jni$_.JMethodIDPtr, + _$locationEngineCallback.pointer, + ).object<$T>(T); } static final _id_getLastLocation = _class.instanceMethodId( @@ -130,30 +119,37 @@ class LocationEngineImpl<$T extends jni$_.JObject?> extends jni$_.JObject { r'(Lorg/maplibre/android/location/engine/LocationEngineCallback;)V', ); - static final _getLastLocation = 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 getLastLocation(org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback)` + static final _getLastLocation = + 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 getLastLocation(org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback)` void getLastLocation( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback, + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, ) { - final _$locationEngineCallback = - locationEngineCallback?.reference ?? jni$_.jNullReference; + final _$locationEngineCallback = locationEngineCallback.reference; _getLastLocation( - reference.pointer, - _id_getLastLocation as jni$_.JMethodIDPtr, - _$locationEngineCallback.pointer) - .check(); + reference.pointer, + _id_getLastLocation as jni$_.JMethodIDPtr, + _$locationEngineCallback.pointer, + ).check(); } static final _id_requestLocationUpdates = _class.instanceMethodId( @@ -161,42 +157,48 @@ class LocationEngineImpl<$T extends jni$_.JObject?> extends jni$_.JObject { r'(Lorg/maplibre/android/location/engine/LocationEngineRequest;Ljava/lang/Object;Landroid/os/Looper;)V', ); - static final _requestLocationUpdates = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _requestLocationUpdates = + 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$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void requestLocationUpdates(org.maplibre.android.location.engine.LocationEngineRequest locationEngineRequest, T object, android.os.Looper looper)` void requestLocationUpdates( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, - $T? object, + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + $T object, jni$_.JObject? looper, ) { - final _$locationEngineRequest = - locationEngineRequest?.reference ?? jni$_.jNullReference; + final _$locationEngineRequest = locationEngineRequest.reference; final _$object = object?.reference ?? jni$_.jNullReference; final _$looper = looper?.reference ?? jni$_.jNullReference; _requestLocationUpdates( - reference.pointer, - _id_requestLocationUpdates as jni$_.JMethodIDPtr, - _$locationEngineRequest.pointer, - _$object.pointer, - _$looper.pointer) - .check(); + reference.pointer, + _id_requestLocationUpdates as jni$_.JMethodIDPtr, + _$locationEngineRequest.pointer, + _$object.pointer, + _$looper.pointer, + ).check(); } static final _id_requestLocationUpdates$1 = _class.instanceMethodId( @@ -204,37 +206,40 @@ class LocationEngineImpl<$T extends jni$_.JObject?> extends jni$_.JObject { r'(Lorg/maplibre/android/location/engine/LocationEngineRequest;Landroid/app/PendingIntent;)V', ); - static final _requestLocationUpdates$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _requestLocationUpdates$1 = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void requestLocationUpdates(org.maplibre.android.location.engine.LocationEngineRequest locationEngineRequest, android.app.PendingIntent pendingIntent)` void requestLocationUpdates$1( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, - jni$_.JObject? pendingIntent, + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + jni$_.JObject pendingIntent, ) { - final _$locationEngineRequest = - locationEngineRequest?.reference ?? jni$_.jNullReference; - final _$pendingIntent = pendingIntent?.reference ?? jni$_.jNullReference; + final _$locationEngineRequest = locationEngineRequest.reference; + final _$pendingIntent = pendingIntent.reference; _requestLocationUpdates$1( - reference.pointer, - _id_requestLocationUpdates$1 as jni$_.JMethodIDPtr, - _$locationEngineRequest.pointer, - _$pendingIntent.pointer) - .check(); + reference.pointer, + _id_requestLocationUpdates$1 as jni$_.JMethodIDPtr, + _$locationEngineRequest.pointer, + _$pendingIntent.pointer, + ).check(); } static final _id_removeLocationUpdates = _class.instanceMethodId( @@ -242,25 +247,32 @@ class LocationEngineImpl<$T extends jni$_.JObject?> extends jni$_.JObject { r'(Ljava/lang/Object;)V', ); - static final _removeLocationUpdates = 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 _removeLocationUpdates = + 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 removeLocationUpdates(T object)` - void removeLocationUpdates( - $T? object, - ) { + void removeLocationUpdates($T? object) { final _$object = object?.reference ?? jni$_.jNullReference; - _removeLocationUpdates(reference.pointer, - _id_removeLocationUpdates as jni$_.JMethodIDPtr, _$object.pointer) - .check(); + _removeLocationUpdates( + reference.pointer, + _id_removeLocationUpdates as jni$_.JMethodIDPtr, + _$object.pointer, + ).check(); } static final _id_removeLocationUpdates$1 = _class.instanceMethodId( @@ -268,27 +280,32 @@ class LocationEngineImpl<$T extends jni$_.JObject?> extends jni$_.JObject { r'(Landroid/app/PendingIntent;)V', ); - static final _removeLocationUpdates$1 = 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 _removeLocationUpdates$1 = + 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 removeLocationUpdates(android.app.PendingIntent pendingIntent)` - void removeLocationUpdates$1( - jni$_.JObject? pendingIntent, - ) { + void removeLocationUpdates$1(jni$_.JObject? pendingIntent) { final _$pendingIntent = pendingIntent?.reference ?? jni$_.jNullReference; _removeLocationUpdates$1( - reference.pointer, - _id_removeLocationUpdates$1 as jni$_.JMethodIDPtr, - _$pendingIntent.pointer) - .check(); + reference.pointer, + _id_removeLocationUpdates$1 as jni$_.JMethodIDPtr, + _$pendingIntent.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -300,19 +317,16 @@ class LocationEngineImpl<$T extends jni$_.JObject?> extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -325,10 +339,11 @@ class LocationEngineImpl<$T extends jni$_.JObject?> extends jni$_.JObject { r'createListener(Lorg/maplibre/android/location/engine/LocationEngineCallback;)Ljava/lang/Object;') { final $r = _$impls[$p]!.createListener( $a![0]?.as( - const locationenginecallback$_.$LocationEngineCallback$Type< - locationengineresult$_.LocationEngineResult?>( - locationengineresult$_.$LocationEngineResult$NullableType()), - releaseOriginal: true), + const locationenginecallback$_.$LocationEngineCallback$Type< + locationengineresult$_.LocationEngineResult? + >(locationengineresult$_.$LocationEngineResult$NullableType()), + releaseOriginal: true, + ), ); return ($r as jni$_.JObject?) ?.as(const jni$_.JObjectType()) @@ -339,20 +354,22 @@ class LocationEngineImpl<$T extends jni$_.JObject?> extends jni$_.JObject { if ($d == r'getLastLocation(Lorg/maplibre/android/location/engine/LocationEngineCallback;)V') { _$impls[$p]!.getLastLocation( - $a![0]?.as( - const locationenginecallback$_.$LocationEngineCallback$Type< - locationengineresult$_.LocationEngineResult?>( - locationengineresult$_.$LocationEngineResult$NullableType()), - releaseOriginal: true), + $a![0]!.as( + const locationenginecallback$_.$LocationEngineCallback$Type< + locationengineresult$_.LocationEngineResult? + >(locationengineresult$_.$LocationEngineResult$NullableType()), + releaseOriginal: true, + ), ); return jni$_.nullptr; } if ($d == r'requestLocationUpdates(Lorg/maplibre/android/location/engine/LocationEngineRequest;Ljava/lang/Object;Landroid/os/Looper;)V') { _$impls[$p]!.requestLocationUpdates( - $a![0]?.as( - const locationenginerequest$_.$LocationEngineRequest$Type(), - releaseOriginal: true), + $a![0]!.as( + const locationenginerequest$_.$LocationEngineRequest$Type(), + releaseOriginal: true, + ), $a![1]?.as(_$impls[$p]!.T, releaseOriginal: true), $a![2]?.as(const jni$_.JObjectType(), releaseOriginal: true), ); @@ -361,10 +378,11 @@ class LocationEngineImpl<$T extends jni$_.JObject?> extends jni$_.JObject { if ($d == r'requestLocationUpdates(Lorg/maplibre/android/location/engine/LocationEngineRequest;Landroid/app/PendingIntent;)V') { _$impls[$p]!.requestLocationUpdates$1( - $a![0]?.as( - const locationenginerequest$_.$LocationEngineRequest$Type(), - releaseOriginal: true), - $a![1]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as( + const locationenginerequest$_.$LocationEngineRequest$Type(), + releaseOriginal: true, + ), + $a![1]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; } @@ -422,9 +440,7 @@ class LocationEngineImpl<$T extends jni$_.JObject?> extends jni$_.JObject { _$impls[$a] = $impl; } - factory LocationEngineImpl.implement( - $LocationEngineImpl<$T> $impl, - ) { + factory LocationEngineImpl.implement($LocationEngineImpl<$T> $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); return LocationEngineImpl<$T>.fromReference( @@ -437,56 +453,66 @@ class LocationEngineImpl<$T extends jni$_.JObject?> extends jni$_.JObject { abstract base mixin class $LocationEngineImpl<$T extends jni$_.JObject?> { factory $LocationEngineImpl({ required jni$_.JObjType<$T> T, - required $T? Function( - locationenginecallback$_.LocationEngineCallback< - locationengineresult$_.LocationEngineResult?>? - locationEngineCallback) - createListener, + required $T Function( + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + >? + locationEngineCallback, + ) + createListener, required void Function( - locationenginecallback$_.LocationEngineCallback< - locationengineresult$_.LocationEngineResult?>? - locationEngineCallback) - getLastLocation, + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, + ) + getLastLocation, bool getLastLocation$async, required void Function( - locationenginerequest$_.LocationEngineRequest? - locationEngineRequest, - $T? object, - jni$_.JObject? looper) - requestLocationUpdates, + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + $T object, + jni$_.JObject? looper, + ) + requestLocationUpdates, bool requestLocationUpdates$async, required void Function( - locationenginerequest$_.LocationEngineRequest? - locationEngineRequest, - jni$_.JObject? pendingIntent) - requestLocationUpdates$1, + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + jni$_.JObject pendingIntent, + ) + requestLocationUpdates$1, bool requestLocationUpdates$1$async, required void Function($T? object) removeLocationUpdates, bool removeLocationUpdates$async, required void Function(jni$_.JObject? pendingIntent) - removeLocationUpdates$1, + removeLocationUpdates$1, bool removeLocationUpdates$1$async, }) = _$LocationEngineImpl<$T>; jni$_.JObjType<$T> get T; - $T? createListener( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback); + $T createListener( + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + >? + locationEngineCallback, + ); void getLastLocation( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback); + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, + ); bool get getLastLocation$async => false; void requestLocationUpdates( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, - $T? object, - jni$_.JObject? looper); + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + $T object, + jni$_.JObject? looper, + ); bool get requestLocationUpdates$async => false; void requestLocationUpdates$1( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, - jni$_.JObject? pendingIntent); + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + jni$_.JObject pendingIntent, + ); bool get requestLocationUpdates$1$async => false; void removeLocationUpdates($T? object); bool get removeLocationUpdates$async => false; @@ -498,92 +524,112 @@ final class _$LocationEngineImpl<$T extends jni$_.JObject?> with $LocationEngineImpl<$T> { _$LocationEngineImpl({ required this.T, - required $T? Function( - locationenginecallback$_.LocationEngineCallback< - locationengineresult$_.LocationEngineResult?>? - locationEngineCallback) - createListener, + required $T Function( + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + >? + locationEngineCallback, + ) + createListener, required void Function( - locationenginecallback$_.LocationEngineCallback< - locationengineresult$_.LocationEngineResult?>? - locationEngineCallback) - getLastLocation, + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, + ) + getLastLocation, this.getLastLocation$async = false, required void Function( - locationenginerequest$_.LocationEngineRequest? - locationEngineRequest, - $T? object, - jni$_.JObject? looper) - requestLocationUpdates, + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + $T object, + jni$_.JObject? looper, + ) + requestLocationUpdates, this.requestLocationUpdates$async = false, required void Function( - locationenginerequest$_.LocationEngineRequest? - locationEngineRequest, - jni$_.JObject? pendingIntent) - requestLocationUpdates$1, + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + jni$_.JObject pendingIntent, + ) + requestLocationUpdates$1, this.requestLocationUpdates$1$async = false, required void Function($T? object) removeLocationUpdates, this.removeLocationUpdates$async = false, required void Function(jni$_.JObject? pendingIntent) - removeLocationUpdates$1, + removeLocationUpdates$1, this.removeLocationUpdates$1$async = false, - }) : _createListener = createListener, - _getLastLocation = getLastLocation, - _requestLocationUpdates = requestLocationUpdates, - _requestLocationUpdates$1 = requestLocationUpdates$1, - _removeLocationUpdates = removeLocationUpdates, - _removeLocationUpdates$1 = removeLocationUpdates$1; + }) : _createListener = createListener, + _getLastLocation = getLastLocation, + _requestLocationUpdates = requestLocationUpdates, + _requestLocationUpdates$1 = requestLocationUpdates$1, + _removeLocationUpdates = removeLocationUpdates, + _removeLocationUpdates$1 = removeLocationUpdates$1; @core$_.override final jni$_.JObjType<$T> T; - final $T? Function( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback) _createListener; + final $T Function( + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + >? + locationEngineCallback, + ) + _createListener; final void Function( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback) _getLastLocation; + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, + ) + _getLastLocation; final bool getLastLocation$async; final void Function( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, - $T? object, - jni$_.JObject? looper) _requestLocationUpdates; + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + $T object, + jni$_.JObject? looper, + ) + _requestLocationUpdates; final bool requestLocationUpdates$async; final void Function( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, - jni$_.JObject? pendingIntent) _requestLocationUpdates$1; + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + jni$_.JObject pendingIntent, + ) + _requestLocationUpdates$1; final bool requestLocationUpdates$1$async; final void Function($T? object) _removeLocationUpdates; final bool removeLocationUpdates$async; final void Function(jni$_.JObject? pendingIntent) _removeLocationUpdates$1; final bool removeLocationUpdates$1$async; - $T? createListener( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback) { + $T createListener( + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + >? + locationEngineCallback, + ) { return _createListener(locationEngineCallback); } void getLastLocation( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback) { + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, + ) { return _getLastLocation(locationEngineCallback); } void requestLocationUpdates( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, - $T? object, - jni$_.JObject? looper) { + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + $T object, + jni$_.JObject? looper, + ) { return _requestLocationUpdates(locationEngineRequest, object, looper); } void requestLocationUpdates$1( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, - jni$_.JObject? pendingIntent) { + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + jni$_.JObject pendingIntent, + ) { return _requestLocationUpdates$1(locationEngineRequest, pendingIntent); } @@ -602,9 +648,7 @@ final class $LocationEngineImpl$NullableType<$T extends jni$_.JObject?> final jni$_.JObjType<$T> T; @jni$_.internal - const $LocationEngineImpl$NullableType( - this.T, - ); + const $LocationEngineImpl$NullableType(this.T); @jni$_.internal @core$_.override @@ -615,11 +659,8 @@ final class $LocationEngineImpl$NullableType<$T extends jni$_.JObject?> @core$_.override LocationEngineImpl<$T>? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : LocationEngineImpl<$T>.fromReference( - T, - reference, - ); + ? null + : LocationEngineImpl<$T>.fromReference(T, reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -649,9 +690,7 @@ final class $LocationEngineImpl$Type<$T extends jni$_.JObject?> final jni$_.JObjType<$T> T; @jni$_.internal - const $LocationEngineImpl$Type( - this.T, - ); + const $LocationEngineImpl$Type(this.T); @jni$_.internal @core$_.override @@ -661,10 +700,7 @@ final class $LocationEngineImpl$Type<$T extends jni$_.JObject?> @jni$_.internal @core$_.override LocationEngineImpl<$T> fromReference(jni$_.JReference reference) => - LocationEngineImpl<$T>.fromReference( - T, - reference, - ); + LocationEngineImpl<$T>.fromReference(T, reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineProxy.dart b/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineProxy.dart index 023c76c5..0be7b6d8 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineProxy.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineProxy.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -68,49 +56,49 @@ class LocationEngineProxy<$T extends jni$_.JObject?> extends jni$_.JObject { final jni$_.JObjType<$T> T; @jni$_.internal - LocationEngineProxy.fromReference( - this.T, - jni$_.JReference reference, - ) : $type = type<$T>(T), - super.fromReference(reference); + LocationEngineProxy.fromReference(this.T, jni$_.JReference reference) + : $type = type<$T>(T), + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/engine/LocationEngineProxy'); + r'org/maplibre/android/location/engine/LocationEngineProxy', + ); /// The type which includes information such as the signature of this class. static $LocationEngineProxy$NullableType<$T> - nullableType<$T extends jni$_.JObject?>( - jni$_.JObjType<$T> T, - ) { - return $LocationEngineProxy$NullableType<$T>( - T, - ); + nullableType<$T extends jni$_.JObject?>(jni$_.JObjType<$T> T) { + return $LocationEngineProxy$NullableType<$T>(T); } static $LocationEngineProxy$Type<$T> type<$T extends jni$_.JObject?>( jni$_.JObjType<$T> T, ) { - return $LocationEngineProxy$Type<$T>( - T, - ); + return $LocationEngineProxy$Type<$T>(T); } static final _id_new$ = _class.constructorId( r'(Lorg/maplibre/android/location/engine/LocationEngineImpl;)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: `public void (org.maplibre.android.location.engine.LocationEngineImpl locationEngineImpl)` + 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: `public void (org.maplibre.android.location.engine.LocationEngineImpl locationEngineImpl)` /// The returned object must be released after use, by calling the [release] method. factory LocationEngineProxy( locationengineimpl$_.LocationEngineImpl<$T?>? locationEngineImpl, { @@ -119,10 +107,13 @@ class LocationEngineProxy<$T extends jni$_.JObject?> extends jni$_.JObject { final _$locationEngineImpl = locationEngineImpl?.reference ?? jni$_.jNullReference; return LocationEngineProxy<$T>.fromReference( - T, - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr, - _$locationEngineImpl.pointer) - .reference); + T, + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$locationEngineImpl.pointer, + ).reference, + ); } static final _id_getLastLocation = _class.instanceMethodId( @@ -130,30 +121,37 @@ class LocationEngineProxy<$T extends jni$_.JObject?> extends jni$_.JObject { r'(Lorg/maplibre/android/location/engine/LocationEngineCallback;)V', ); - static final _getLastLocation = 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 getLastLocation(org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback)` + static final _getLastLocation = + 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 getLastLocation(org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback)` void getLastLocation( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback, + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, ) { - final _$locationEngineCallback = - locationEngineCallback?.reference ?? jni$_.jNullReference; + final _$locationEngineCallback = locationEngineCallback.reference; _getLastLocation( - reference.pointer, - _id_getLastLocation as jni$_.JMethodIDPtr, - _$locationEngineCallback.pointer) - .check(); + reference.pointer, + _id_getLastLocation as jni$_.JMethodIDPtr, + _$locationEngineCallback.pointer, + ).check(); } static final _id_requestLocationUpdates = _class.instanceMethodId( @@ -161,45 +159,51 @@ class LocationEngineProxy<$T extends jni$_.JObject?> extends jni$_.JObject { r'(Lorg/maplibre/android/location/engine/LocationEngineRequest;Lorg/maplibre/android/location/engine/LocationEngineCallback;Landroid/os/Looper;)V', ); - static final _requestLocationUpdates = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _requestLocationUpdates = + 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$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); - /// from: `public void requestLocationUpdates(org.maplibre.android.location.engine.LocationEngineRequest locationEngineRequest, org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback, android.os.Looper looper)` + /// from: `public void requestLocationUpdates(org.maplibre.android.location.engine.LocationEngineRequest locationEngineRequest, org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback, android.os.Looper looper)` void requestLocationUpdates( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback, + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, jni$_.JObject? looper, ) { - final _$locationEngineRequest = - locationEngineRequest?.reference ?? jni$_.jNullReference; - final _$locationEngineCallback = - locationEngineCallback?.reference ?? jni$_.jNullReference; + final _$locationEngineRequest = locationEngineRequest.reference; + final _$locationEngineCallback = locationEngineCallback.reference; final _$looper = looper?.reference ?? jni$_.jNullReference; _requestLocationUpdates( - reference.pointer, - _id_requestLocationUpdates as jni$_.JMethodIDPtr, - _$locationEngineRequest.pointer, - _$locationEngineCallback.pointer, - _$looper.pointer) - .check(); + reference.pointer, + _id_requestLocationUpdates as jni$_.JMethodIDPtr, + _$locationEngineRequest.pointer, + _$locationEngineCallback.pointer, + _$looper.pointer, + ).check(); } static final _id_requestLocationUpdates$1 = _class.instanceMethodId( @@ -207,37 +211,40 @@ class LocationEngineProxy<$T extends jni$_.JObject?> extends jni$_.JObject { r'(Lorg/maplibre/android/location/engine/LocationEngineRequest;Landroid/app/PendingIntent;)V', ); - static final _requestLocationUpdates$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _requestLocationUpdates$1 = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void requestLocationUpdates(org.maplibre.android.location.engine.LocationEngineRequest locationEngineRequest, android.app.PendingIntent pendingIntent)` void requestLocationUpdates$1( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, + locationenginerequest$_.LocationEngineRequest locationEngineRequest, jni$_.JObject? pendingIntent, ) { - final _$locationEngineRequest = - locationEngineRequest?.reference ?? jni$_.jNullReference; + final _$locationEngineRequest = locationEngineRequest.reference; final _$pendingIntent = pendingIntent?.reference ?? jni$_.jNullReference; _requestLocationUpdates$1( - reference.pointer, - _id_requestLocationUpdates$1 as jni$_.JMethodIDPtr, - _$locationEngineRequest.pointer, - _$pendingIntent.pointer) - .check(); + reference.pointer, + _id_requestLocationUpdates$1 as jni$_.JMethodIDPtr, + _$locationEngineRequest.pointer, + _$pendingIntent.pointer, + ).check(); } static final _id_removeLocationUpdates = _class.instanceMethodId( @@ -245,30 +252,37 @@ class LocationEngineProxy<$T extends jni$_.JObject?> extends jni$_.JObject { r'(Lorg/maplibre/android/location/engine/LocationEngineCallback;)V', ); - static final _removeLocationUpdates = 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 removeLocationUpdates(org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback)` + static final _removeLocationUpdates = + 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 removeLocationUpdates(org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback)` void removeLocationUpdates( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback, + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, ) { - final _$locationEngineCallback = - locationEngineCallback?.reference ?? jni$_.jNullReference; + final _$locationEngineCallback = locationEngineCallback.reference; _removeLocationUpdates( - reference.pointer, - _id_removeLocationUpdates as jni$_.JMethodIDPtr, - _$locationEngineCallback.pointer) - .check(); + reference.pointer, + _id_removeLocationUpdates as jni$_.JMethodIDPtr, + _$locationEngineCallback.pointer, + ).check(); } static final _id_removeLocationUpdates$1 = _class.instanceMethodId( @@ -276,27 +290,32 @@ class LocationEngineProxy<$T extends jni$_.JObject?> extends jni$_.JObject { r'(Landroid/app/PendingIntent;)V', ); - static final _removeLocationUpdates$1 = 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 _removeLocationUpdates$1 = + 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 removeLocationUpdates(android.app.PendingIntent pendingIntent)` - void removeLocationUpdates$1( - jni$_.JObject? pendingIntent, - ) { + void removeLocationUpdates$1(jni$_.JObject? pendingIntent) { final _$pendingIntent = pendingIntent?.reference ?? jni$_.jNullReference; _removeLocationUpdates$1( - reference.pointer, - _id_removeLocationUpdates$1 as jni$_.JMethodIDPtr, - _$pendingIntent.pointer) - .check(); + reference.pointer, + _id_removeLocationUpdates$1 as jni$_.JMethodIDPtr, + _$pendingIntent.pointer, + ).check(); } } @@ -306,9 +325,7 @@ final class $LocationEngineProxy$NullableType<$T extends jni$_.JObject?> final jni$_.JObjType<$T> T; @jni$_.internal - const $LocationEngineProxy$NullableType( - this.T, - ); + const $LocationEngineProxy$NullableType(this.T); @jni$_.internal @core$_.override @@ -319,11 +336,8 @@ final class $LocationEngineProxy$NullableType<$T extends jni$_.JObject?> @core$_.override LocationEngineProxy<$T>? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : LocationEngineProxy<$T>.fromReference( - T, - reference, - ); + ? null + : LocationEngineProxy<$T>.fromReference(T, reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -353,9 +367,7 @@ final class $LocationEngineProxy$Type<$T extends jni$_.JObject?> final jni$_.JObjType<$T> T; @jni$_.internal - const $LocationEngineProxy$Type( - this.T, - ); + const $LocationEngineProxy$Type(this.T); @jni$_.internal @core$_.override @@ -365,10 +377,7 @@ final class $LocationEngineProxy$Type<$T extends jni$_.JObject?> @jni$_.internal @core$_.override LocationEngineProxy<$T> fromReference(jni$_.JReference reference) => - LocationEngineProxy<$T>.fromReference( - T, - reference, - ); + LocationEngineProxy<$T>.fromReference(T, reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineRequest.dart b/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineRequest.dart index 5f74884e..9591807d 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineRequest.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineRequest.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,39 +45,47 @@ class LocationEngineRequest$Builder extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - LocationEngineRequest$Builder.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + LocationEngineRequest$Builder.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/engine/LocationEngineRequest$Builder'); + r'org/maplibre/android/location/engine/LocationEngineRequest$Builder', + ); /// The type which includes information such as the signature of this class. static const nullableType = $LocationEngineRequest$Builder$NullableType(); static const type = $LocationEngineRequest$Builder$Type(); - static final _id_new$ = _class.constructorId( - r'(J)V', - ); + static final _id_new$ = _class.constructorId(r'(J)V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void (long j)` /// The returned object must be released after use, by calling the [release] method. - factory LocationEngineRequest$Builder( - int j, - ) { + factory LocationEngineRequest$Builder(int j) { return LocationEngineRequest$Builder.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr, j) - .reference); + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + j, + ).reference, + ); } static final _id_setPriority = _class.instanceMethodId( @@ -97,25 +93,34 @@ class LocationEngineRequest$Builder extends jni$_.JObject { r'(I)Lorg/maplibre/android/location/engine/LocationEngineRequest$Builder;', ); - static final _setPriority = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setPriority = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.location.engine.LocationEngineRequest$Builder setPriority(int i)` /// The returned object must be released after use, by calling the [release] method. - LocationEngineRequest$Builder? setPriority( - int i, - ) { + LocationEngineRequest$Builder? setPriority(int i) { return _setPriority( - reference.pointer, _id_setPriority as jni$_.JMethodIDPtr, i) - .object( - const $LocationEngineRequest$Builder$NullableType()); + reference.pointer, + _id_setPriority as jni$_.JMethodIDPtr, + i, + ).object( + const $LocationEngineRequest$Builder$NullableType(), + ); } static final _id_setDisplacement = _class.instanceMethodId( @@ -123,26 +128,34 @@ class LocationEngineRequest$Builder extends jni$_.JObject { r'(F)Lorg/maplibre/android/location/engine/LocationEngineRequest$Builder;', ); - static final _setDisplacement = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setDisplacement = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Double,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public org.maplibre.android.location.engine.LocationEngineRequest$Builder setDisplacement(float f)` /// The returned object must be released after use, by calling the [release] method. - LocationEngineRequest$Builder? setDisplacement( - double f, - ) { + LocationEngineRequest$Builder? setDisplacement(double f) { return _setDisplacement( - reference.pointer, _id_setDisplacement as jni$_.JMethodIDPtr, f) - .object( - const $LocationEngineRequest$Builder$NullableType()); + reference.pointer, + _id_setDisplacement as jni$_.JMethodIDPtr, + f, + ).object( + const $LocationEngineRequest$Builder$NullableType(), + ); } static final _id_setMaxWaitTime = _class.instanceMethodId( @@ -150,25 +163,34 @@ class LocationEngineRequest$Builder extends jni$_.JObject { r'(J)Lorg/maplibre/android/location/engine/LocationEngineRequest$Builder;', ); - static final _setMaxWaitTime = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setMaxWaitTime = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.location.engine.LocationEngineRequest$Builder setMaxWaitTime(long j)` /// The returned object must be released after use, by calling the [release] method. - LocationEngineRequest$Builder? setMaxWaitTime( - int j, - ) { + LocationEngineRequest$Builder? setMaxWaitTime(int j) { return _setMaxWaitTime( - reference.pointer, _id_setMaxWaitTime as jni$_.JMethodIDPtr, j) - .object( - const $LocationEngineRequest$Builder$NullableType()); + reference.pointer, + _id_setMaxWaitTime as jni$_.JMethodIDPtr, + j, + ).object( + const $LocationEngineRequest$Builder$NullableType(), + ); } static final _id_setFastestInterval = _class.instanceMethodId( @@ -176,25 +198,34 @@ class LocationEngineRequest$Builder extends jni$_.JObject { r'(J)Lorg/maplibre/android/location/engine/LocationEngineRequest$Builder;', ); - static final _setFastestInterval = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setFastestInterval = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.location.engine.LocationEngineRequest$Builder setFastestInterval(long j)` /// The returned object must be released after use, by calling the [release] method. - LocationEngineRequest$Builder? setFastestInterval( - int j, - ) { + LocationEngineRequest$Builder? setFastestInterval(int j) { return _setFastestInterval( - reference.pointer, _id_setFastestInterval as jni$_.JMethodIDPtr, j) - .object( - const $LocationEngineRequest$Builder$NullableType()); + reference.pointer, + _id_setFastestInterval as jni$_.JMethodIDPtr, + j, + ).object( + const $LocationEngineRequest$Builder$NullableType(), + ); } static final _id_build = _class.instanceMethodId( @@ -202,24 +233,31 @@ class LocationEngineRequest$Builder extends jni$_.JObject { r'()Lorg/maplibre/android/location/engine/LocationEngineRequest;', ); - static final _build = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _build = + 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 org.maplibre.android.location.engine.LocationEngineRequest build()` /// The returned object must be released after use, by calling the [release] method. LocationEngineRequest? build() { - return _build(reference.pointer, _id_build as jni$_.JMethodIDPtr) - .object( - const $LocationEngineRequest$NullableType()); + return _build( + reference.pointer, + _id_build as jni$_.JMethodIDPtr, + ).object( + const $LocationEngineRequest$NullableType(), + ); } } @@ -237,10 +275,8 @@ final class $LocationEngineRequest$Builder$NullableType @core$_.override LocationEngineRequest$Builder? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : LocationEngineRequest$Builder.fromReference( - reference, - ); + ? null + : LocationEngineRequest$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -276,9 +312,7 @@ final class $LocationEngineRequest$Builder$Type @jni$_.internal @core$_.override LocationEngineRequest$Builder fromReference(jni$_.JReference reference) => - LocationEngineRequest$Builder.fromReference( - reference, - ); + LocationEngineRequest$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -309,13 +343,13 @@ class LocationEngineRequest extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - LocationEngineRequest.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + LocationEngineRequest.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/engine/LocationEngineRequest'); + r'org/maplibre/android/location/engine/LocationEngineRequest', + ); /// The type which includes information such as the signature of this class. static const nullableType = $LocationEngineRequest$NullableType(); @@ -337,23 +371,28 @@ class LocationEngineRequest extends jni$_.JObject { r'()J', ); - static final _getInterval = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInterval = + 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 getInterval()` int getInterval() { return _getInterval( - reference.pointer, _id_getInterval as jni$_.JMethodIDPtr) - .long; + reference.pointer, + _id_getInterval as jni$_.JMethodIDPtr, + ).long; } static final _id_getPriority = _class.instanceMethodId( @@ -361,23 +400,28 @@ class LocationEngineRequest extends jni$_.JObject { r'()I', ); - static final _getPriority = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPriority = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int getPriority()` int getPriority() { return _getPriority( - reference.pointer, _id_getPriority as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_getPriority as jni$_.JMethodIDPtr, + ).integer; } static final _id_getDisplacement = _class.instanceMethodId( @@ -385,23 +429,28 @@ class LocationEngineRequest extends jni$_.JObject { r'()F', ); - static final _getDisplacement = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getDisplacement = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float getDisplacement()` double getDisplacement() { return _getDisplacement( - reference.pointer, _id_getDisplacement as jni$_.JMethodIDPtr) - .float; + reference.pointer, + _id_getDisplacement as jni$_.JMethodIDPtr, + ).float; } static final _id_getMaxWaitTime = _class.instanceMethodId( @@ -409,23 +458,28 @@ class LocationEngineRequest extends jni$_.JObject { r'()J', ); - static final _getMaxWaitTime = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getMaxWaitTime = + 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 getMaxWaitTime()` int getMaxWaitTime() { return _getMaxWaitTime( - reference.pointer, _id_getMaxWaitTime as jni$_.JMethodIDPtr) - .long; + reference.pointer, + _id_getMaxWaitTime as jni$_.JMethodIDPtr, + ).long; } static final _id_getFastestInterval = _class.instanceMethodId( @@ -433,23 +487,28 @@ class LocationEngineRequest extends jni$_.JObject { r'()J', ); - static final _getFastestInterval = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getFastestInterval = + 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 getFastestInterval()` int getFastestInterval() { return _getFastestInterval( - reference.pointer, _id_getFastestInterval as jni$_.JMethodIDPtr) - .long; + reference.pointer, + _id_getFastestInterval as jni$_.JMethodIDPtr, + ).long; } static final _id_equals = _class.instanceMethodId( @@ -457,48 +516,58 @@ class LocationEngineRequest extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } } @@ -515,11 +584,7 @@ final class $LocationEngineRequest$NullableType @jni$_.internal @core$_.override LocationEngineRequest? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : LocationEngineRequest.fromReference( - reference, - ); + reference.isNull ? null : LocationEngineRequest.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -555,9 +620,7 @@ final class $LocationEngineRequest$Type @jni$_.internal @core$_.override LocationEngineRequest fromReference(jni$_.JReference reference) => - LocationEngineRequest.fromReference( - reference, - ); + LocationEngineRequest.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineResult.dart b/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineResult.dart index ae64d8b5..6c5529b9 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineResult.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/engine/LocationEngineResult.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -59,13 +47,13 @@ class LocationEngineResult extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - LocationEngineResult.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + LocationEngineResult.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/engine/LocationEngineResult'); + r'org/maplibre/android/location/engine/LocationEngineResult', + ); /// The type which includes information such as the signature of this class. static const nullableType = $LocationEngineResult$NullableType(); @@ -75,27 +63,33 @@ class LocationEngineResult extends jni$_.JObject { r'(Landroid/location/Location;)Lorg/maplibre/android/location/engine/LocationEngineResult;', ); - static final _create = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _create = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public org.maplibre.android.location.engine.LocationEngineResult create(android.location.Location location)` /// The returned object must be released after use, by calling the [release] method. - static LocationEngineResult? create( - location$_.Location? location, - ) { + static LocationEngineResult create(location$_.Location? location) { final _$location = location?.reference ?? jni$_.jNullReference; - return _create(_class.reference.pointer, _id_create as jni$_.JMethodIDPtr, - _$location.pointer) - .object( - const $LocationEngineResult$NullableType()); + return _create( + _class.reference.pointer, + _id_create as jni$_.JMethodIDPtr, + _$location.pointer, + ).object(const $LocationEngineResult$Type()); } static final _id_create$1 = _class.staticMethodId( @@ -103,27 +97,35 @@ class LocationEngineResult extends jni$_.JObject { r'(Ljava/util/List;)Lorg/maplibre/android/location/engine/LocationEngineResult;', ); - static final _create$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `static public org.maplibre.android.location.engine.LocationEngineResult create(java.util.List list)` + static final _create$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); + + /// from: `static public org.maplibre.android.location.engine.LocationEngineResult create(java.util.List list)` /// The returned object must be released after use, by calling the [release] method. - static LocationEngineResult? create$1( + static LocationEngineResult create$1( jni$_.JList? list, ) { final _$list = list?.reference ?? jni$_.jNullReference; - return _create$1(_class.reference.pointer, - _id_create$1 as jni$_.JMethodIDPtr, _$list.pointer) - .object( - const $LocationEngineResult$NullableType()); + return _create$1( + _class.reference.pointer, + _id_create$1 as jni$_.JMethodIDPtr, + _$list.pointer, + ).object(const $LocationEngineResult$Type()); } static final _id_getLastLocation = _class.instanceMethodId( @@ -131,25 +133,29 @@ class LocationEngineResult extends jni$_.JObject { r'()Landroid/location/Location;', ); - static final _getLastLocation = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLastLocation = + 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 android.location.Location getLastLocation()` /// The returned object must be released after use, by calling the [release] method. location$_.Location? getLastLocation() { return _getLastLocation( - reference.pointer, _id_getLastLocation as jni$_.JMethodIDPtr) - .object( - const location$_.$Location$NullableType()); + reference.pointer, + _id_getLastLocation as jni$_.JMethodIDPtr, + ).object(const location$_.$Location$NullableType()); } static final _id_getLocations = _class.instanceMethodId( @@ -157,26 +163,33 @@ class LocationEngineResult extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _getLocations = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLocations = + 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 getLocations()` + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public java.util.List getLocations()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList? getLocations() { return _getLocations( - reference.pointer, _id_getLocations as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - location$_.$Location$NullableType())); + reference.pointer, + _id_getLocations as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JListNullableType( + location$_.$Location$NullableType(), + ), + ); } static final _id_extractResult = _class.staticMethodId( @@ -184,27 +197,33 @@ class LocationEngineResult extends jni$_.JObject { r'(Landroid/content/Intent;)Lorg/maplibre/android/location/engine/LocationEngineResult;', ); - static final _extractResult = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _extractResult = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public org.maplibre.android.location.engine.LocationEngineResult extractResult(android.content.Intent intent)` /// The returned object must be released after use, by calling the [release] method. - static LocationEngineResult? extractResult( - jni$_.JObject? intent, - ) { + static LocationEngineResult? extractResult(jni$_.JObject? intent) { final _$intent = intent?.reference ?? jni$_.jNullReference; - return _extractResult(_class.reference.pointer, - _id_extractResult as jni$_.JMethodIDPtr, _$intent.pointer) - .object( - const $LocationEngineResult$NullableType()); + return _extractResult( + _class.reference.pointer, + _id_extractResult as jni$_.JMethodIDPtr, + _$intent.pointer, + ).object(const $LocationEngineResult$NullableType()); } } @@ -221,11 +240,7 @@ final class $LocationEngineResult$NullableType @jni$_.internal @core$_.override LocationEngineResult? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : LocationEngineResult.fromReference( - reference, - ); + reference.isNull ? null : LocationEngineResult.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -261,9 +276,7 @@ final class $LocationEngineResult$Type @jni$_.internal @core$_.override LocationEngineResult fromReference(jni$_.JReference reference) => - LocationEngineResult.fromReference( - reference, - ); + LocationEngineResult.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/engine/MapLibreFusedLocationEngineImpl.dart b/lib/src/platform/android/jni/org/maplibre/android/location/engine/MapLibreFusedLocationEngineImpl.dart index ea6d5e73..ba09e967 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/engine/MapLibreFusedLocationEngineImpl.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/engine/MapLibreFusedLocationEngineImpl.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -66,43 +54,48 @@ class MapLibreFusedLocationEngineImpl final jni$_.JObjType $type; @jni$_.internal - MapLibreFusedLocationEngineImpl.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreFusedLocationEngineImpl.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/engine/MapLibreFusedLocationEngineImpl'); + r'org/maplibre/android/location/engine/MapLibreFusedLocationEngineImpl', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibreFusedLocationEngineImpl$NullableType(); static const type = $MapLibreFusedLocationEngineImpl$Type(); - static final _id_new$ = _class.constructorId( - r'(Landroid/content/Context;)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)>(); + static final _id_new$ = _class.constructorId(r'(Landroid/content/Context;)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: `public void (android.content.Context context)` /// The returned object must be released after use, by calling the [release] method. - factory MapLibreFusedLocationEngineImpl( - jni$_.JObject? context, - ) { - final _$context = context?.reference ?? jni$_.jNullReference; - return MapLibreFusedLocationEngineImpl.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$context.pointer) - .reference); + factory MapLibreFusedLocationEngineImpl(jni$_.JObject context) { + final _$context = context.reference; + return MapLibreFusedLocationEngineImpl.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$context.pointer, + ).reference, + ); } static final _id_createListener = _class.instanceMethodId( @@ -110,31 +103,39 @@ class MapLibreFusedLocationEngineImpl r'(Lorg/maplibre/android/location/engine/LocationEngineCallback;)Landroid/location/LocationListener;', ); - static final _createListener = 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 android.location.LocationListener createListener(org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback)` + static final _createListener = + 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 android.location.LocationListener createListener(org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? createListener( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback, + jni$_.JObject createListener( + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + >? + locationEngineCallback, ) { final _$locationEngineCallback = locationEngineCallback?.reference ?? jni$_.jNullReference; return _createListener( - reference.pointer, - _id_createListener as jni$_.JMethodIDPtr, - _$locationEngineCallback.pointer) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_createListener as jni$_.JMethodIDPtr, + _$locationEngineCallback.pointer, + ).object(const jni$_.JObjectType()); } static final _id_getLastLocation = _class.instanceMethodId( @@ -142,30 +143,37 @@ class MapLibreFusedLocationEngineImpl r'(Lorg/maplibre/android/location/engine/LocationEngineCallback;)V', ); - static final _getLastLocation = 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 getLastLocation(org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback)` + static final _getLastLocation = + 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 getLastLocation(org.maplibre.android.location.engine.LocationEngineCallback locationEngineCallback)` void getLastLocation( - locationenginecallback$_ - .LocationEngineCallback? - locationEngineCallback, + locationenginecallback$_.LocationEngineCallback< + locationengineresult$_.LocationEngineResult? + > + locationEngineCallback, ) { - final _$locationEngineCallback = - locationEngineCallback?.reference ?? jni$_.jNullReference; + final _$locationEngineCallback = locationEngineCallback.reference; _getLastLocation( - reference.pointer, - _id_getLastLocation as jni$_.JMethodIDPtr, - _$locationEngineCallback.pointer) - .check(); + reference.pointer, + _id_getLastLocation as jni$_.JMethodIDPtr, + _$locationEngineCallback.pointer, + ).check(); } static final _id_requestLocationUpdates = _class.instanceMethodId( @@ -173,43 +181,48 @@ class MapLibreFusedLocationEngineImpl r'(Lorg/maplibre/android/location/engine/LocationEngineRequest;Landroid/location/LocationListener;Landroid/os/Looper;)V', ); - static final _requestLocationUpdates = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _requestLocationUpdates = + 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$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void requestLocationUpdates(org.maplibre.android.location.engine.LocationEngineRequest locationEngineRequest, android.location.LocationListener locationListener, android.os.Looper looper)` void requestLocationUpdates( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, - jni$_.JObject? locationListener, + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + jni$_.JObject locationListener, jni$_.JObject? looper, ) { - final _$locationEngineRequest = - locationEngineRequest?.reference ?? jni$_.jNullReference; - final _$locationListener = - locationListener?.reference ?? jni$_.jNullReference; + final _$locationEngineRequest = locationEngineRequest.reference; + final _$locationListener = locationListener.reference; final _$looper = looper?.reference ?? jni$_.jNullReference; _requestLocationUpdates( - reference.pointer, - _id_requestLocationUpdates as jni$_.JMethodIDPtr, - _$locationEngineRequest.pointer, - _$locationListener.pointer, - _$looper.pointer) - .check(); + reference.pointer, + _id_requestLocationUpdates as jni$_.JMethodIDPtr, + _$locationEngineRequest.pointer, + _$locationListener.pointer, + _$looper.pointer, + ).check(); } static final _id_requestLocationUpdates1 = _class.instanceMethodId( @@ -217,37 +230,40 @@ class MapLibreFusedLocationEngineImpl r'(Lorg/maplibre/android/location/engine/LocationEngineRequest;Landroid/app/PendingIntent;)V', ); - static final _requestLocationUpdates1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _requestLocationUpdates1 = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void requestLocationUpdates(org.maplibre.android.location.engine.LocationEngineRequest locationEngineRequest, android.app.PendingIntent pendingIntent)` void requestLocationUpdates1( - locationenginerequest$_.LocationEngineRequest? locationEngineRequest, - jni$_.JObject? pendingIntent, + locationenginerequest$_.LocationEngineRequest locationEngineRequest, + jni$_.JObject pendingIntent, ) { - final _$locationEngineRequest = - locationEngineRequest?.reference ?? jni$_.jNullReference; - final _$pendingIntent = pendingIntent?.reference ?? jni$_.jNullReference; + final _$locationEngineRequest = locationEngineRequest.reference; + final _$pendingIntent = pendingIntent.reference; _requestLocationUpdates1( - reference.pointer, - _id_requestLocationUpdates1 as jni$_.JMethodIDPtr, - _$locationEngineRequest.pointer, - _$pendingIntent.pointer) - .check(); + reference.pointer, + _id_requestLocationUpdates1 as jni$_.JMethodIDPtr, + _$locationEngineRequest.pointer, + _$pendingIntent.pointer, + ).check(); } } @@ -265,14 +281,12 @@ final class $MapLibreFusedLocationEngineImpl$NullableType @core$_.override MapLibreFusedLocationEngineImpl? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapLibreFusedLocationEngineImpl.fromReference( - reference, - ); + ? null + : MapLibreFusedLocationEngineImpl.fromReference(reference); @jni$_.internal @core$_.override - jni$_.JObjType get superType => const androidlocationengineimpl$_ - .$AndroidLocationEngineImpl$NullableType(); + jni$_.JObjType get superType => + const androidlocationengineimpl$_.$AndroidLocationEngineImpl$NullableType(); @jni$_.internal @core$_.override @@ -306,13 +320,11 @@ final class $MapLibreFusedLocationEngineImpl$Type @jni$_.internal @core$_.override MapLibreFusedLocationEngineImpl fromReference(jni$_.JReference reference) => - MapLibreFusedLocationEngineImpl.fromReference( - reference, - ); + MapLibreFusedLocationEngineImpl.fromReference(reference); @jni$_.internal @core$_.override - jni$_.JObjType get superType => const androidlocationengineimpl$_ - .$AndroidLocationEngineImpl$NullableType(); + jni$_.JObjType get superType => + const androidlocationengineimpl$_.$AndroidLocationEngineImpl$NullableType(); @jni$_.internal @core$_.override diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/engine/_package.dart b/lib/src/platform/android/jni/org/maplibre/android/location/engine/_package.dart index 99e00ec4..f6107c28 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/engine/_package.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/engine/_package.dart @@ -1,3 +1,4 @@ +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! export 'AndroidLocationEngineImpl.dart'; export 'LocationEngine.dart'; export 'LocationEngineCallback.dart'; diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/modes/CameraMode.dart b/lib/src/platform/android/jni/org/maplibre/android/location/modes/CameraMode.dart index 9fbbdede..678cd21f 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/modes/CameraMode.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/modes/CameraMode.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class CameraMode$Mode extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - CameraMode$Mode.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + CameraMode$Mode.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/modes/CameraMode$Mode'); + r'org/maplibre/android/location/modes/CameraMode$Mode', + ); /// The type which includes information such as the signature of this class. static const nullableType = $CameraMode$Mode$NullableType(); @@ -78,19 +66,16 @@ class CameraMode$Mode extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -130,14 +115,10 @@ class CameraMode$Mode extends jni$_.JObject { _$impls[$a] = $impl; } - factory CameraMode$Mode.implement( - $CameraMode$Mode $impl, - ) { + factory CameraMode$Mode.implement($CameraMode$Mode $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return CameraMode$Mode.fromReference( - $i.implementReference(), - ); + return CameraMode$Mode.fromReference($i.implementReference()); } } @@ -161,11 +142,8 @@ final class $CameraMode$Mode$NullableType @jni$_.internal @core$_.override - CameraMode$Mode? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : CameraMode$Mode.fromReference( - reference, - ); + CameraMode$Mode? fromReference(jni$_.JReference reference) => + reference.isNull ? null : CameraMode$Mode.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -200,9 +178,7 @@ final class $CameraMode$Mode$Type extends jni$_.JObjType { @jni$_.internal @core$_.override CameraMode$Mode fromReference(jni$_.JReference reference) => - CameraMode$Mode.fromReference( - reference, - ); + CameraMode$Mode.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -233,13 +209,13 @@ class CameraMode extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - CameraMode.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + CameraMode.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/location/modes/CameraMode'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/location/modes/CameraMode', + ); /// The type which includes information such as the signature of this class. static const nullableType = $CameraMode$NullableType(); @@ -277,11 +253,8 @@ final class $CameraMode$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - CameraMode? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : CameraMode.fromReference( - reference, - ); + CameraMode? fromReference(jni$_.JReference reference) => + reference.isNull ? null : CameraMode.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -315,9 +288,7 @@ final class $CameraMode$Type extends jni$_.JObjType { @jni$_.internal @core$_.override CameraMode fromReference(jni$_.JReference reference) => - CameraMode.fromReference( - reference, - ); + CameraMode.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/modes/RenderMode.dart b/lib/src/platform/android/jni/org/maplibre/android/location/modes/RenderMode.dart index caf835f8..30bb73e7 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/modes/RenderMode.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/modes/RenderMode.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class RenderMode$Mode extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - RenderMode$Mode.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + RenderMode$Mode.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/modes/RenderMode$Mode'); + r'org/maplibre/android/location/modes/RenderMode$Mode', + ); /// The type which includes information such as the signature of this class. static const nullableType = $RenderMode$Mode$NullableType(); @@ -78,19 +66,16 @@ class RenderMode$Mode extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -130,14 +115,10 @@ class RenderMode$Mode extends jni$_.JObject { _$impls[$a] = $impl; } - factory RenderMode$Mode.implement( - $RenderMode$Mode $impl, - ) { + factory RenderMode$Mode.implement($RenderMode$Mode $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return RenderMode$Mode.fromReference( - $i.implementReference(), - ); + return RenderMode$Mode.fromReference($i.implementReference()); } } @@ -161,11 +142,8 @@ final class $RenderMode$Mode$NullableType @jni$_.internal @core$_.override - RenderMode$Mode? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : RenderMode$Mode.fromReference( - reference, - ); + RenderMode$Mode? fromReference(jni$_.JReference reference) => + reference.isNull ? null : RenderMode$Mode.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -200,9 +178,7 @@ final class $RenderMode$Mode$Type extends jni$_.JObjType { @jni$_.internal @core$_.override RenderMode$Mode fromReference(jni$_.JReference reference) => - RenderMode$Mode.fromReference( - reference, - ); + RenderMode$Mode.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -233,13 +209,13 @@ class RenderMode extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - RenderMode.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + RenderMode.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/location/modes/RenderMode'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/location/modes/RenderMode', + ); /// The type which includes information such as the signature of this class. static const nullableType = $RenderMode$NullableType(); @@ -265,11 +241,8 @@ final class $RenderMode$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - RenderMode? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : RenderMode.fromReference( - reference, - ); + RenderMode? fromReference(jni$_.JReference reference) => + reference.isNull ? null : RenderMode.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -303,9 +276,7 @@ final class $RenderMode$Type extends jni$_.JObjType { @jni$_.internal @core$_.override RenderMode fromReference(jni$_.JReference reference) => - RenderMode.fromReference( - reference, - ); + RenderMode.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/modes/_package.dart b/lib/src/platform/android/jni/org/maplibre/android/location/modes/_package.dart index 75e191aa..96dedf8f 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/modes/_package.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/modes/_package.dart @@ -1,2 +1,3 @@ +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! export 'CameraMode.dart'; export 'RenderMode.dart'; diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/permissions/PermissionsListener.dart b/lib/src/platform/android/jni/org/maplibre/android/location/permissions/PermissionsListener.dart index d9493330..6d474264 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/permissions/PermissionsListener.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/permissions/PermissionsListener.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class PermissionsListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - PermissionsListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + PermissionsListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/permissions/PermissionsListener'); + r'org/maplibre/android/location/permissions/PermissionsListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $PermissionsListener$NullableType(); @@ -73,25 +61,32 @@ class PermissionsListener extends jni$_.JObject { r'(Ljava/util/List;)V', ); - static final _onExplanationNeeded = 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 onExplanationNeeded(java.util.List list)` - void onExplanationNeeded( - jni$_.JList? list, - ) { + static final _onExplanationNeeded = + 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 onExplanationNeeded(java.util.List list)` + void onExplanationNeeded(jni$_.JList? list) { final _$list = list?.reference ?? jni$_.jNullReference; - _onExplanationNeeded(reference.pointer, - _id_onExplanationNeeded as jni$_.JMethodIDPtr, _$list.pointer) - .check(); + _onExplanationNeeded( + reference.pointer, + _id_onExplanationNeeded as jni$_.JMethodIDPtr, + _$list.pointer, + ).check(); } static final _id_onPermissionResult = _class.instanceMethodId( @@ -99,23 +94,31 @@ class PermissionsListener extends jni$_.JObject { r'(Z)V', ); - static final _onPermissionResult = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onPermissionResult = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public abstract void onPermissionResult(boolean z)` - void onPermissionResult( - bool z, - ) { - _onPermissionResult(reference.pointer, - _id_onPermissionResult as jni$_.JMethodIDPtr, z ? 1 : 0) - .check(); + void onPermissionResult(bool z) { + _onPermissionResult( + reference.pointer, + _id_onPermissionResult as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).check(); } /// Maps a specific port to the implemented interface. @@ -127,19 +130,16 @@ class PermissionsListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -151,9 +151,9 @@ class PermissionsListener extends jni$_.JObject { if ($d == r'onExplanationNeeded(Ljava/util/List;)V') { _$impls[$p]!.onExplanationNeeded( $a![0]?.as( - const jni$_.JListType( - jni$_.JStringNullableType()), - releaseOriginal: true), + const jni$_.JListType(jni$_.JStringNullableType()), + releaseOriginal: true, + ), ); return jni$_.nullptr; } @@ -200,21 +200,17 @@ class PermissionsListener extends jni$_.JObject { _$impls[$a] = $impl; } - factory PermissionsListener.implement( - $PermissionsListener $impl, - ) { + factory PermissionsListener.implement($PermissionsListener $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return PermissionsListener.fromReference( - $i.implementReference(), - ); + return PermissionsListener.fromReference($i.implementReference()); } } abstract base mixin class $PermissionsListener { factory $PermissionsListener({ required void Function(jni$_.JList? list) - onExplanationNeeded, + onExplanationNeeded, bool onExplanationNeeded$async, required void Function(bool z) onPermissionResult, bool onPermissionResult$async, @@ -229,12 +225,12 @@ abstract base mixin class $PermissionsListener { final class _$PermissionsListener with $PermissionsListener { _$PermissionsListener({ required void Function(jni$_.JList? list) - onExplanationNeeded, + onExplanationNeeded, this.onExplanationNeeded$async = false, required void Function(bool z) onPermissionResult, this.onPermissionResult$async = false, - }) : _onExplanationNeeded = onExplanationNeeded, - _onPermissionResult = onPermissionResult; + }) : _onExplanationNeeded = onExplanationNeeded, + _onPermissionResult = onPermissionResult; final void Function(jni$_.JList? list) _onExplanationNeeded; final bool onExplanationNeeded$async; @@ -263,11 +259,7 @@ final class $PermissionsListener$NullableType @jni$_.internal @core$_.override PermissionsListener? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : PermissionsListener.fromReference( - reference, - ); + reference.isNull ? null : PermissionsListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -303,9 +295,7 @@ final class $PermissionsListener$Type @jni$_.internal @core$_.override PermissionsListener fromReference(jni$_.JReference reference) => - PermissionsListener.fromReference( - reference, - ); + PermissionsListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/permissions/PermissionsManager.dart b/lib/src/platform/android/jni/org/maplibre/android/location/permissions/PermissionsManager.dart index e362a400..ac5e24a8 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/permissions/PermissionsManager.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/permissions/PermissionsManager.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -59,13 +47,13 @@ class PermissionsManager extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - PermissionsManager.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + PermissionsManager.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/location/permissions/PermissionsManager'); + r'org/maplibre/android/location/permissions/PermissionsManager', + ); /// The type which includes information such as the signature of this class. static const nullableType = $PermissionsManager$NullableType(); @@ -74,16 +62,23 @@ class PermissionsManager extends jni$_.JObject { r'(Lorg/maplibre/android/location/permissions/PermissionsListener;)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)>(); + 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: `public void (org.maplibre.android.location.permissions.PermissionsListener permissionsListener)` /// The returned object must be released after use, by calling the [release] method. @@ -92,9 +87,13 @@ class PermissionsManager extends jni$_.JObject { ) { final _$permissionsListener = permissionsListener?.reference ?? jni$_.jNullReference; - return PermissionsManager.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$permissionsListener.pointer) - .reference); + return PermissionsManager.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$permissionsListener.pointer, + ).reference, + ); } static final _id_getListener = _class.instanceMethodId( @@ -102,25 +101,31 @@ class PermissionsManager extends jni$_.JObject { r'()Lorg/maplibre/android/location/permissions/PermissionsListener;', ); - static final _getListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getListener = + 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 org.maplibre.android.location.permissions.PermissionsListener getListener()` /// The returned object must be released after use, by calling the [release] method. permissionslistener$_.PermissionsListener? getListener() { return _getListener( - reference.pointer, _id_getListener as jni$_.JMethodIDPtr) - .object( - const permissionslistener$_.$PermissionsListener$NullableType()); + reference.pointer, + _id_getListener as jni$_.JMethodIDPtr, + ).object( + const permissionslistener$_.$PermissionsListener$NullableType(), + ); } static final _id_setListener = _class.instanceMethodId( @@ -128,16 +133,23 @@ class PermissionsManager extends jni$_.JObject { r'(Lorg/maplibre/android/location/permissions/PermissionsListener;)V', ); - static final _setListener = 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 _setListener = + 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 setListener(org.maplibre.android.location.permissions.PermissionsListener permissionsListener)` void setListener( @@ -145,39 +157,45 @@ class PermissionsManager extends jni$_.JObject { ) { final _$permissionsListener = permissionsListener?.reference ?? jni$_.jNullReference; - _setListener(reference.pointer, _id_setListener as jni$_.JMethodIDPtr, - _$permissionsListener.pointer) - .check(); + _setListener( + reference.pointer, + _id_setListener as jni$_.JMethodIDPtr, + _$permissionsListener.pointer, + ).check(); } - static final _id_isBackgroundLocationPermissionGranted = - _class.staticMethodId( - r'isBackgroundLocationPermissionGranted', - r'(Landroid/content/Context;)Z', - ); + static final _id_isBackgroundLocationPermissionGranted = _class + .staticMethodId( + r'isBackgroundLocationPermissionGranted', + r'(Landroid/content/Context;)Z', + ); static final _isBackgroundLocationPermissionGranted = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticBooleanMethod') + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticBooleanMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public boolean isBackgroundLocationPermissionGranted(android.content.Context context)` - static bool isBackgroundLocationPermissionGranted( - jni$_.JObject? context, - ) { + static bool isBackgroundLocationPermissionGranted(jni$_.JObject? context) { final _$context = context?.reference ?? jni$_.jNullReference; return _isBackgroundLocationPermissionGranted( - _class.reference.pointer, - _id_isBackgroundLocationPermissionGranted as jni$_.JMethodIDPtr, - _$context.pointer) - .boolean; + _class.reference.pointer, + _id_isBackgroundLocationPermissionGranted as jni$_.JMethodIDPtr, + _$context.pointer, + ).boolean; } static final _id_areLocationPermissionsGranted = _class.staticMethodId( @@ -187,26 +205,30 @@ class PermissionsManager extends jni$_.JObject { static final _areLocationPermissionsGranted = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticBooleanMethod') + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticBooleanMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public boolean areLocationPermissionsGranted(android.content.Context context)` - static bool areLocationPermissionsGranted( - jni$_.JObject? context, - ) { + static bool areLocationPermissionsGranted(jni$_.JObject? context) { final _$context = context?.reference ?? jni$_.jNullReference; return _areLocationPermissionsGranted( - _class.reference.pointer, - _id_areLocationPermissionsGranted as jni$_.JMethodIDPtr, - _$context.pointer) - .boolean; + _class.reference.pointer, + _id_areLocationPermissionsGranted as jni$_.JMethodIDPtr, + _$context.pointer, + ).boolean; } static final _id_areRuntimePermissionsRequired = _class.staticMethodId( @@ -216,22 +238,26 @@ class PermissionsManager extends jni$_.JObject { static final _areRuntimePermissionsRequired = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticBooleanMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public boolean areRuntimePermissionsRequired()` static bool areRuntimePermissionsRequired() { - return _areRuntimePermissionsRequired(_class.reference.pointer, - _id_areRuntimePermissionsRequired as jni$_.JMethodIDPtr) - .boolean; + return _areRuntimePermissionsRequired( + _class.reference.pointer, + _id_areRuntimePermissionsRequired as jni$_.JMethodIDPtr, + ).boolean; } static final _id_requestLocationPermissions = _class.instanceMethodId( @@ -241,26 +267,30 @@ class PermissionsManager extends jni$_.JObject { static final _requestLocationPermissions = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void requestLocationPermissions(android.app.Activity activity)` - void requestLocationPermissions( - jni$_.JObject? activity, - ) { + void requestLocationPermissions(jni$_.JObject? activity) { final _$activity = activity?.reference ?? jni$_.jNullReference; _requestLocationPermissions( - reference.pointer, - _id_requestLocationPermissions as jni$_.JMethodIDPtr, - _$activity.pointer) - .check(); + reference.pointer, + _id_requestLocationPermissions as jni$_.JMethodIDPtr, + _$activity.pointer, + ).check(); } static final _id_onRequestPermissionsResult = _class.instanceMethodId( @@ -270,23 +300,29 @@ class PermissionsManager extends jni$_.JObject { static final _onRequestPermissionsResult = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Int32, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - int, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Int32, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + jni$_.Pointer, + ) + >(); /// from: `public void onRequestPermissionsResult(int i, java.lang.String[] strings, int[] is)` void onRequestPermissionsResult( @@ -297,12 +333,12 @@ class PermissionsManager extends jni$_.JObject { final _$strings = strings?.reference ?? jni$_.jNullReference; final _$is$ = is$?.reference ?? jni$_.jNullReference; _onRequestPermissionsResult( - reference.pointer, - _id_onRequestPermissionsResult as jni$_.JMethodIDPtr, - i, - _$strings.pointer, - _$is$.pointer) - .check(); + reference.pointer, + _id_onRequestPermissionsResult as jni$_.JMethodIDPtr, + i, + _$strings.pointer, + _$is$.pointer, + ).check(); } } @@ -319,11 +355,7 @@ final class $PermissionsManager$NullableType @jni$_.internal @core$_.override PermissionsManager? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : PermissionsManager.fromReference( - reference, - ); + reference.isNull ? null : PermissionsManager.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -359,9 +391,7 @@ final class $PermissionsManager$Type @jni$_.internal @core$_.override PermissionsManager fromReference(jni$_.JReference reference) => - PermissionsManager.fromReference( - reference, - ); + PermissionsManager.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/location/permissions/_package.dart b/lib/src/platform/android/jni/org/maplibre/android/location/permissions/_package.dart index 54dcc080..3b8bb2ea 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/location/permissions/_package.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/location/permissions/_package.dart @@ -1,2 +1,3 @@ +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! export 'PermissionsListener.dart'; export 'PermissionsManager.dart'; diff --git a/lib/src/platform/android/jni/org/maplibre/android/log/Logger.dart b/lib/src/platform/android/jni/org/maplibre/android/log/Logger.dart index ccfda6c1..f6171c25 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/log/Logger.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/log/Logger.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -59,13 +47,13 @@ class Logger$LogLevel extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Logger$LogLevel.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Logger$LogLevel.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/log/Logger$LogLevel'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/log/Logger$LogLevel', + ); /// The type which includes information such as the signature of this class. static const nullableType = $Logger$LogLevel$NullableType(); @@ -80,19 +68,16 @@ class Logger$LogLevel extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -132,14 +117,10 @@ class Logger$LogLevel extends jni$_.JObject { _$impls[$a] = $impl; } - factory Logger$LogLevel.implement( - $Logger$LogLevel $impl, - ) { + factory Logger$LogLevel.implement($Logger$LogLevel $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return Logger$LogLevel.fromReference( - $i.implementReference(), - ); + return Logger$LogLevel.fromReference($i.implementReference()); } } @@ -162,11 +143,8 @@ final class $Logger$LogLevel$NullableType @jni$_.internal @core$_.override - Logger$LogLevel? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Logger$LogLevel.fromReference( - reference, - ); + Logger$LogLevel? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Logger$LogLevel.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -200,9 +178,7 @@ final class $Logger$LogLevel$Type extends jni$_.JObjType { @jni$_.internal @core$_.override Logger$LogLevel fromReference(jni$_.JReference reference) => - Logger$LogLevel.fromReference( - reference, - ); + Logger$LogLevel.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -233,13 +209,13 @@ class Logger extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Logger.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Logger.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/log/Logger'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/log/Logger', + ); /// The type which includes information such as the signature of this class. static const nullableType = $Logger$NullableType(); @@ -262,28 +238,30 @@ class Logger extends jni$_.JObject { /// from: `static public final int NONE` static const NONE = 99; - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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, - )>(); + ) + > + >('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 Logger() { return Logger.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } static final _id_setVerbosity = _class.staticMethodId( @@ -291,22 +269,31 @@ class Logger extends jni$_.JObject { r'(I)V', ); - static final _setVerbosity = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + static final _setVerbosity = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `static public void setVerbosity(int i)` - static void setVerbosity( - int i, - ) { + static void setVerbosity(int i) { _setVerbosity( - _class.reference.pointer, _id_setVerbosity as jni$_.JMethodIDPtr, i) - .check(); + _class.reference.pointer, + _id_setVerbosity as jni$_.JMethodIDPtr, + i, + ).check(); } static final _id_setLoggerDefinition = _class.staticMethodId( @@ -314,16 +301,23 @@ class Logger extends jni$_.JObject { r'(Lorg/maplibre/android/log/LoggerDefinition;)V', ); - static final _setLoggerDefinition = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _setLoggerDefinition = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void setLoggerDefinition(org.maplibre.android.log.LoggerDefinition loggerDefinition)` static void setLoggerDefinition( @@ -332,10 +326,10 @@ class Logger extends jni$_.JObject { final _$loggerDefinition = loggerDefinition?.reference ?? jni$_.jNullReference; _setLoggerDefinition( - _class.reference.pointer, - _id_setLoggerDefinition as jni$_.JMethodIDPtr, - _$loggerDefinition.pointer) - .check(); + _class.reference.pointer, + _id_setLoggerDefinition as jni$_.JMethodIDPtr, + _$loggerDefinition.pointer, + ).check(); } static final _id_v = _class.staticMethodId( @@ -343,33 +337,37 @@ class Logger extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)V', ); - static final _v = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _v = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void v(java.lang.String string, java.lang.String string1)` - static void v( - jni$_.JString? string, - jni$_.JString? string1, - ) { + static void v(jni$_.JString? string, jni$_.JString? string1) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _v(_class.reference.pointer, _id_v as jni$_.JMethodIDPtr, _$string.pointer, - _$string1.pointer) - .check(); + _v( + _class.reference.pointer, + _id_v as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).check(); } static final _id_v$1 = _class.staticMethodId( @@ -377,24 +375,31 @@ class Logger extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V', ); - static final _v$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _v$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void v(java.lang.String string, java.lang.String string1, java.lang.Throwable throwable)` static void v$1( @@ -405,9 +410,13 @@ class Logger extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$throwable = throwable?.reference ?? jni$_.jNullReference; - _v$1(_class.reference.pointer, _id_v$1 as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer, _$throwable.pointer) - .check(); + _v$1( + _class.reference.pointer, + _id_v$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + _$throwable.pointer, + ).check(); } static final _id_d = _class.staticMethodId( @@ -415,33 +424,37 @@ class Logger extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)V', ); - static final _d = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _d = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void d(java.lang.String string, java.lang.String string1)` - static void d( - jni$_.JString? string, - jni$_.JString? string1, - ) { + static void d(jni$_.JString? string, jni$_.JString? string1) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _d(_class.reference.pointer, _id_d as jni$_.JMethodIDPtr, _$string.pointer, - _$string1.pointer) - .check(); + _d( + _class.reference.pointer, + _id_d as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).check(); } static final _id_d$1 = _class.staticMethodId( @@ -449,24 +462,31 @@ class Logger extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V', ); - static final _d$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _d$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void d(java.lang.String string, java.lang.String string1, java.lang.Throwable throwable)` static void d$1( @@ -477,9 +497,13 @@ class Logger extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$throwable = throwable?.reference ?? jni$_.jNullReference; - _d$1(_class.reference.pointer, _id_d$1 as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer, _$throwable.pointer) - .check(); + _d$1( + _class.reference.pointer, + _id_d$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + _$throwable.pointer, + ).check(); } static final _id_i = _class.staticMethodId( @@ -487,33 +511,37 @@ class Logger extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)V', ); - static final _i = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _i = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void i(java.lang.String string, java.lang.String string1)` - static void i( - jni$_.JString? string, - jni$_.JString? string1, - ) { + static void i(jni$_.JString? string, jni$_.JString? string1) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _i(_class.reference.pointer, _id_i as jni$_.JMethodIDPtr, _$string.pointer, - _$string1.pointer) - .check(); + _i( + _class.reference.pointer, + _id_i as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).check(); } static final _id_i$1 = _class.staticMethodId( @@ -521,24 +549,31 @@ class Logger extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V', ); - static final _i$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _i$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void i(java.lang.String string, java.lang.String string1, java.lang.Throwable throwable)` static void i$1( @@ -549,9 +584,13 @@ class Logger extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$throwable = throwable?.reference ?? jni$_.jNullReference; - _i$1(_class.reference.pointer, _id_i$1 as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer, _$throwable.pointer) - .check(); + _i$1( + _class.reference.pointer, + _id_i$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + _$throwable.pointer, + ).check(); } static final _id_w = _class.staticMethodId( @@ -559,33 +598,37 @@ class Logger extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)V', ); - static final _w = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _w = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void w(java.lang.String string, java.lang.String string1)` - static void w( - jni$_.JString? string, - jni$_.JString? string1, - ) { + static void w(jni$_.JString? string, jni$_.JString? string1) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _w(_class.reference.pointer, _id_w as jni$_.JMethodIDPtr, _$string.pointer, - _$string1.pointer) - .check(); + _w( + _class.reference.pointer, + _id_w as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).check(); } static final _id_w$1 = _class.staticMethodId( @@ -593,24 +636,31 @@ class Logger extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V', ); - static final _w$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _w$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void w(java.lang.String string, java.lang.String string1, java.lang.Throwable throwable)` static void w$1( @@ -621,9 +671,13 @@ class Logger extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$throwable = throwable?.reference ?? jni$_.jNullReference; - _w$1(_class.reference.pointer, _id_w$1 as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer, _$throwable.pointer) - .check(); + _w$1( + _class.reference.pointer, + _id_w$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + _$throwable.pointer, + ).check(); } static final _id_e = _class.staticMethodId( @@ -631,33 +685,37 @@ class Logger extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)V', ); - static final _e = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _e = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void e(java.lang.String string, java.lang.String string1)` - static void e( - jni$_.JString? string, - jni$_.JString? string1, - ) { + static void e(jni$_.JString? string, jni$_.JString? string1) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _e(_class.reference.pointer, _id_e as jni$_.JMethodIDPtr, _$string.pointer, - _$string1.pointer) - .check(); + _e( + _class.reference.pointer, + _id_e as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).check(); } static final _id_e$1 = _class.staticMethodId( @@ -665,24 +723,31 @@ class Logger extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V', ); - static final _e$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _e$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void e(java.lang.String string, java.lang.String string1, java.lang.Throwable throwable)` static void e$1( @@ -693,9 +758,13 @@ class Logger extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$throwable = throwable?.reference ?? jni$_.jNullReference; - _e$1(_class.reference.pointer, _id_e$1 as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer, _$throwable.pointer) - .check(); + _e$1( + _class.reference.pointer, + _id_e$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + _$throwable.pointer, + ).check(); } static final _id_log = _class.staticMethodId( @@ -703,36 +772,43 @@ class Logger extends jni$_.JObject { r'(ILjava/lang/String;Ljava/lang/String;)V', ); - static final _log = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _log = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Int32, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Int32, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, int, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void log(int i, java.lang.String string, java.lang.String string1)` - static void log( - int i, - jni$_.JString? string, - jni$_.JString? string1, - ) { + static void log(int i, jni$_.JString? string, jni$_.JString? string1) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _log(_class.reference.pointer, _id_log as jni$_.JMethodIDPtr, i, - _$string.pointer, _$string1.pointer) - .check(); + _log( + _class.reference.pointer, + _id_log as jni$_.JMethodIDPtr, + i, + _$string.pointer, + _$string1.pointer, + ).check(); } } @@ -746,11 +822,8 @@ final class $Logger$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - Logger? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Logger.fromReference( - reference, - ); + Logger? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Logger.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -783,9 +856,8 @@ final class $Logger$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - Logger fromReference(jni$_.JReference reference) => Logger.fromReference( - reference, - ); + Logger fromReference(jni$_.JReference reference) => + Logger.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/log/LoggerDefinition.dart b/lib/src/platform/android/jni/org/maplibre/android/log/LoggerDefinition.dart index 32cb428f..fb3d7aa1 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/log/LoggerDefinition.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/log/LoggerDefinition.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class LoggerDefinition extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - LoggerDefinition.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + LoggerDefinition.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/log/LoggerDefinition'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/log/LoggerDefinition', + ); /// The type which includes information such as the signature of this class. static const nullableType = $LoggerDefinition$NullableType(); @@ -73,33 +61,37 @@ class LoggerDefinition extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)V', ); - static final _v = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _v = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void v(java.lang.String string, java.lang.String string1)` - void v( - jni$_.JString? string, - jni$_.JString? string1, - ) { + void v(jni$_.JString? string, jni$_.JString? string1) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _v(reference.pointer, _id_v as jni$_.JMethodIDPtr, _$string.pointer, - _$string1.pointer) - .check(); + _v( + reference.pointer, + _id_v as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).check(); } static final _id_v$1 = _class.instanceMethodId( @@ -107,24 +99,31 @@ class LoggerDefinition extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V', ); - static final _v$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _v$1 = + 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$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void v(java.lang.String string, java.lang.String string1, java.lang.Throwable throwable)` void v$1( @@ -135,9 +134,13 @@ class LoggerDefinition extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$throwable = throwable?.reference ?? jni$_.jNullReference; - _v$1(reference.pointer, _id_v$1 as jni$_.JMethodIDPtr, _$string.pointer, - _$string1.pointer, _$throwable.pointer) - .check(); + _v$1( + reference.pointer, + _id_v$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + _$throwable.pointer, + ).check(); } static final _id_d = _class.instanceMethodId( @@ -145,33 +148,37 @@ class LoggerDefinition extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)V', ); - static final _d = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _d = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void d(java.lang.String string, java.lang.String string1)` - void d( - jni$_.JString? string, - jni$_.JString? string1, - ) { + void d(jni$_.JString? string, jni$_.JString? string1) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _d(reference.pointer, _id_d as jni$_.JMethodIDPtr, _$string.pointer, - _$string1.pointer) - .check(); + _d( + reference.pointer, + _id_d as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).check(); } static final _id_d$1 = _class.instanceMethodId( @@ -179,24 +186,31 @@ class LoggerDefinition extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V', ); - static final _d$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _d$1 = + 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$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void d(java.lang.String string, java.lang.String string1, java.lang.Throwable throwable)` void d$1( @@ -207,9 +221,13 @@ class LoggerDefinition extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$throwable = throwable?.reference ?? jni$_.jNullReference; - _d$1(reference.pointer, _id_d$1 as jni$_.JMethodIDPtr, _$string.pointer, - _$string1.pointer, _$throwable.pointer) - .check(); + _d$1( + reference.pointer, + _id_d$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + _$throwable.pointer, + ).check(); } static final _id_i = _class.instanceMethodId( @@ -217,33 +235,37 @@ class LoggerDefinition extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)V', ); - static final _i = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _i = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void i(java.lang.String string, java.lang.String string1)` - void i( - jni$_.JString? string, - jni$_.JString? string1, - ) { + void i(jni$_.JString? string, jni$_.JString? string1) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _i(reference.pointer, _id_i as jni$_.JMethodIDPtr, _$string.pointer, - _$string1.pointer) - .check(); + _i( + reference.pointer, + _id_i as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).check(); } static final _id_i$1 = _class.instanceMethodId( @@ -251,24 +273,31 @@ class LoggerDefinition extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V', ); - static final _i$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _i$1 = + 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$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void i(java.lang.String string, java.lang.String string1, java.lang.Throwable throwable)` void i$1( @@ -279,9 +308,13 @@ class LoggerDefinition extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$throwable = throwable?.reference ?? jni$_.jNullReference; - _i$1(reference.pointer, _id_i$1 as jni$_.JMethodIDPtr, _$string.pointer, - _$string1.pointer, _$throwable.pointer) - .check(); + _i$1( + reference.pointer, + _id_i$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + _$throwable.pointer, + ).check(); } static final _id_w = _class.instanceMethodId( @@ -289,33 +322,37 @@ class LoggerDefinition extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)V', ); - static final _w = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _w = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void w(java.lang.String string, java.lang.String string1)` - void w( - jni$_.JString? string, - jni$_.JString? string1, - ) { + void w(jni$_.JString? string, jni$_.JString? string1) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _w(reference.pointer, _id_w as jni$_.JMethodIDPtr, _$string.pointer, - _$string1.pointer) - .check(); + _w( + reference.pointer, + _id_w as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).check(); } static final _id_w$1 = _class.instanceMethodId( @@ -323,24 +360,31 @@ class LoggerDefinition extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V', ); - static final _w$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _w$1 = + 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$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void w(java.lang.String string, java.lang.String string1, java.lang.Throwable throwable)` void w$1( @@ -351,9 +395,13 @@ class LoggerDefinition extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$throwable = throwable?.reference ?? jni$_.jNullReference; - _w$1(reference.pointer, _id_w$1 as jni$_.JMethodIDPtr, _$string.pointer, - _$string1.pointer, _$throwable.pointer) - .check(); + _w$1( + reference.pointer, + _id_w$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + _$throwable.pointer, + ).check(); } static final _id_e = _class.instanceMethodId( @@ -361,33 +409,37 @@ class LoggerDefinition extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)V', ); - static final _e = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _e = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void e(java.lang.String string, java.lang.String string1)` - void e( - jni$_.JString? string, - jni$_.JString? string1, - ) { + void e(jni$_.JString? string, jni$_.JString? string1) { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - _e(reference.pointer, _id_e as jni$_.JMethodIDPtr, _$string.pointer, - _$string1.pointer) - .check(); + _e( + reference.pointer, + _id_e as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).check(); } static final _id_e$1 = _class.instanceMethodId( @@ -395,24 +447,31 @@ class LoggerDefinition extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V', ); - static final _e$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _e$1 = + 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$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void e(java.lang.String string, java.lang.String string1, java.lang.Throwable throwable)` void e$1( @@ -423,9 +482,13 @@ class LoggerDefinition extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$throwable = throwable?.reference ?? jni$_.jNullReference; - _e$1(reference.pointer, _id_e$1 as jni$_.JMethodIDPtr, _$string.pointer, - _$string1.pointer, _$throwable.pointer) - .check(); + _e$1( + reference.pointer, + _id_e$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + _$throwable.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -437,19 +500,16 @@ class LoggerDefinition extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -585,14 +645,10 @@ class LoggerDefinition extends jni$_.JObject { _$impls[$a] = $impl; } - factory LoggerDefinition.implement( - $LoggerDefinition $impl, - ) { + factory LoggerDefinition.implement($LoggerDefinition $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return LoggerDefinition.fromReference( - $i.implementReference(), - ); + return LoggerDefinition.fromReference($i.implementReference()); } } @@ -600,60 +656,90 @@ abstract base mixin class $LoggerDefinition { factory $LoggerDefinition({ required void Function(jni$_.JString? string, jni$_.JString? string1) v, bool v$async, - required void Function(jni$_.JString? string, jni$_.JString? string1, - jni$_.JObject? throwable) - v$1, + required void Function( + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ) + v$1, bool v$1$async, required void Function(jni$_.JString? string, jni$_.JString? string1) d, bool d$async, - required void Function(jni$_.JString? string, jni$_.JString? string1, - jni$_.JObject? throwable) - d$1, + required void Function( + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ) + d$1, bool d$1$async, required void Function(jni$_.JString? string, jni$_.JString? string1) i, bool i$async, - required void Function(jni$_.JString? string, jni$_.JString? string1, - jni$_.JObject? throwable) - i$1, + required void Function( + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ) + i$1, bool i$1$async, required void Function(jni$_.JString? string, jni$_.JString? string1) w, bool w$async, - required void Function(jni$_.JString? string, jni$_.JString? string1, - jni$_.JObject? throwable) - w$1, + required void Function( + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ) + w$1, bool w$1$async, required void Function(jni$_.JString? string, jni$_.JString? string1) e, bool e$async, - required void Function(jni$_.JString? string, jni$_.JString? string1, - jni$_.JObject? throwable) - e$1, + required void Function( + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ) + e$1, bool e$1$async, }) = _$LoggerDefinition; void v(jni$_.JString? string, jni$_.JString? string1); bool get v$async => false; void v$1( - jni$_.JString? string, jni$_.JString? string1, jni$_.JObject? throwable); + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ); bool get v$1$async => false; void d(jni$_.JString? string, jni$_.JString? string1); bool get d$async => false; void d$1( - jni$_.JString? string, jni$_.JString? string1, jni$_.JObject? throwable); + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ); bool get d$1$async => false; void i(jni$_.JString? string, jni$_.JString? string1); bool get i$async => false; void i$1( - jni$_.JString? string, jni$_.JString? string1, jni$_.JObject? throwable); + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ); bool get i$1$async => false; void w(jni$_.JString? string, jni$_.JString? string1); bool get w$async => false; void w$1( - jni$_.JString? string, jni$_.JString? string1, jni$_.JObject? throwable); + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ); bool get w$1$async => false; void e(jni$_.JString? string, jni$_.JString? string1); bool get e$async => false; void e$1( - jni$_.JString? string, jni$_.JString? string1, jni$_.JObject? throwable); + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ); bool get e$1$async => false; } @@ -661,69 +747,104 @@ final class _$LoggerDefinition with $LoggerDefinition { _$LoggerDefinition({ required void Function(jni$_.JString? string, jni$_.JString? string1) v, this.v$async = false, - required void Function(jni$_.JString? string, jni$_.JString? string1, - jni$_.JObject? throwable) - v$1, + required void Function( + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ) + v$1, this.v$1$async = false, required void Function(jni$_.JString? string, jni$_.JString? string1) d, this.d$async = false, - required void Function(jni$_.JString? string, jni$_.JString? string1, - jni$_.JObject? throwable) - d$1, + required void Function( + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ) + d$1, this.d$1$async = false, required void Function(jni$_.JString? string, jni$_.JString? string1) i, this.i$async = false, - required void Function(jni$_.JString? string, jni$_.JString? string1, - jni$_.JObject? throwable) - i$1, + required void Function( + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ) + i$1, this.i$1$async = false, required void Function(jni$_.JString? string, jni$_.JString? string1) w, this.w$async = false, - required void Function(jni$_.JString? string, jni$_.JString? string1, - jni$_.JObject? throwable) - w$1, + required void Function( + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ) + w$1, this.w$1$async = false, required void Function(jni$_.JString? string, jni$_.JString? string1) e, this.e$async = false, - required void Function(jni$_.JString? string, jni$_.JString? string1, - jni$_.JObject? throwable) - e$1, + required void Function( + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ) + e$1, this.e$1$async = false, - }) : _v = v, - _v$1 = v$1, - _d = d, - _d$1 = d$1, - _i = i, - _i$1 = i$1, - _w = w, - _w$1 = w$1, - _e = e, - _e$1 = e$1; + }) : _v = v, + _v$1 = v$1, + _d = d, + _d$1 = d$1, + _i = i, + _i$1 = i$1, + _w = w, + _w$1 = w$1, + _e = e, + _e$1 = e$1; final void Function(jni$_.JString? string, jni$_.JString? string1) _v; final bool v$async; - final void Function(jni$_.JString? string, jni$_.JString? string1, - jni$_.JObject? throwable) _v$1; + final void Function( + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ) + _v$1; final bool v$1$async; final void Function(jni$_.JString? string, jni$_.JString? string1) _d; final bool d$async; - final void Function(jni$_.JString? string, jni$_.JString? string1, - jni$_.JObject? throwable) _d$1; + final void Function( + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ) + _d$1; final bool d$1$async; final void Function(jni$_.JString? string, jni$_.JString? string1) _i; final bool i$async; - final void Function(jni$_.JString? string, jni$_.JString? string1, - jni$_.JObject? throwable) _i$1; + final void Function( + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ) + _i$1; final bool i$1$async; final void Function(jni$_.JString? string, jni$_.JString? string1) _w; final bool w$async; - final void Function(jni$_.JString? string, jni$_.JString? string1, - jni$_.JObject? throwable) _w$1; + final void Function( + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ) + _w$1; final bool w$1$async; final void Function(jni$_.JString? string, jni$_.JString? string1) _e; final bool e$async; - final void Function(jni$_.JString? string, jni$_.JString? string1, - jni$_.JObject? throwable) _e$1; + final void Function( + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ) + _e$1; final bool e$1$async; void v(jni$_.JString? string, jni$_.JString? string1) { @@ -731,7 +852,10 @@ final class _$LoggerDefinition with $LoggerDefinition { } void v$1( - jni$_.JString? string, jni$_.JString? string1, jni$_.JObject? throwable) { + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ) { return _v$1(string, string1, throwable); } @@ -740,7 +864,10 @@ final class _$LoggerDefinition with $LoggerDefinition { } void d$1( - jni$_.JString? string, jni$_.JString? string1, jni$_.JObject? throwable) { + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ) { return _d$1(string, string1, throwable); } @@ -749,7 +876,10 @@ final class _$LoggerDefinition with $LoggerDefinition { } void i$1( - jni$_.JString? string, jni$_.JString? string1, jni$_.JObject? throwable) { + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ) { return _i$1(string, string1, throwable); } @@ -758,7 +888,10 @@ final class _$LoggerDefinition with $LoggerDefinition { } void w$1( - jni$_.JString? string, jni$_.JString? string1, jni$_.JObject? throwable) { + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ) { return _w$1(string, string1, throwable); } @@ -767,7 +900,10 @@ final class _$LoggerDefinition with $LoggerDefinition { } void e$1( - jni$_.JString? string, jni$_.JString? string1, jni$_.JObject? throwable) { + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JObject? throwable, + ) { return _e$1(string, string1, throwable); } } @@ -784,11 +920,7 @@ final class $LoggerDefinition$NullableType @jni$_.internal @core$_.override LoggerDefinition? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : LoggerDefinition.fromReference( - reference, - ); + reference.isNull ? null : LoggerDefinition.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -822,9 +954,7 @@ final class $LoggerDefinition$Type extends jni$_.JObjType { @jni$_.internal @core$_.override LoggerDefinition fromReference(jni$_.JReference reference) => - LoggerDefinition.fromReference( - reference, - ); + LoggerDefinition.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/log/_package.dart b/lib/src/platform/android/jni/org/maplibre/android/log/_package.dart index c691e533..1d887dda 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/log/_package.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/log/_package.dart @@ -1,2 +1,3 @@ +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! export 'Logger.dart'; export 'LoggerDefinition.dart'; diff --git a/lib/src/platform/android/jni/org/maplibre/android/maps/AttributionDialogManager.dart b/lib/src/platform/android/jni/org/maplibre/android/maps/AttributionDialogManager.dart index 7a754787..9e68042a 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/maps/AttributionDialogManager.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/maps/AttributionDialogManager.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -59,13 +47,13 @@ class AttributionDialogManager extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - AttributionDialogManager.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + AttributionDialogManager.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/AttributionDialogManager'); + r'org/maplibre/android/maps/AttributionDialogManager', + ); /// The type which includes information such as the signature of this class. static const nullableType = $AttributionDialogManager$NullableType(); @@ -74,37 +62,43 @@ class AttributionDialogManager extends jni$_.JObject { r'(Landroid/content/Context;Lorg/maplibre/android/maps/MapLibreMap;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (android.content.Context context, org.maplibre.android.maps.MapLibreMap mapLibreMap)` /// The returned object must be released after use, by calling the [release] method. factory AttributionDialogManager( - jni$_.JObject? context, - maplibremap$_.MapLibreMap? mapLibreMap, + jni$_.JObject context, + maplibremap$_.MapLibreMap mapLibreMap, ) { - final _$context = context?.reference ?? jni$_.jNullReference; - final _$mapLibreMap = mapLibreMap?.reference ?? jni$_.jNullReference; - return AttributionDialogManager.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$context.pointer, - _$mapLibreMap.pointer) - .reference); + final _$context = context.reference; + final _$mapLibreMap = mapLibreMap.reference; + return AttributionDialogManager.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$context.pointer, + _$mapLibreMap.pointer, + ).reference, + ); } static final _id_onClick = _class.instanceMethodId( @@ -112,25 +106,32 @@ class AttributionDialogManager extends jni$_.JObject { r'(Landroid/view/View;)V', ); - static final _onClick = 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 _onClick = + 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 onClick(android.view.View view)` - void onClick( - jni$_.JObject? view, - ) { - final _$view = view?.reference ?? jni$_.jNullReference; - _onClick(reference.pointer, _id_onClick as jni$_.JMethodIDPtr, - _$view.pointer) - .check(); + void onClick(jni$_.JObject view) { + final _$view = view.reference; + _onClick( + reference.pointer, + _id_onClick as jni$_.JMethodIDPtr, + _$view.pointer, + ).check(); } static final _id_onClick$1 = _class.instanceMethodId( @@ -138,46 +139,54 @@ class AttributionDialogManager extends jni$_.JObject { r'(Landroid/content/DialogInterface;I)V', ); - static final _onClick$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _onClick$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public void onClick(android.content.DialogInterface dialogInterface, int i)` - void onClick$1( - jni$_.JObject? dialogInterface, - int i, - ) { + void onClick$1(jni$_.JObject? dialogInterface, int i) { final _$dialogInterface = dialogInterface?.reference ?? jni$_.jNullReference; - _onClick$1(reference.pointer, _id_onClick$1 as jni$_.JMethodIDPtr, - _$dialogInterface.pointer, i) - .check(); + _onClick$1( + reference.pointer, + _id_onClick$1 as jni$_.JMethodIDPtr, + _$dialogInterface.pointer, + i, + ).check(); } - static final _id_onStop = _class.instanceMethodId( - r'onStop', - r'()V', - ); + static final _id_onStop = _class.instanceMethodId(r'onStop', r'()V'); - static final _onStop = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onStop = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void onStop()` void onStop() { @@ -199,10 +208,8 @@ final class $AttributionDialogManager$NullableType @core$_.override AttributionDialogManager? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : AttributionDialogManager.fromReference( - reference, - ); + ? null + : AttributionDialogManager.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -238,9 +245,7 @@ final class $AttributionDialogManager$Type @jni$_.internal @core$_.override AttributionDialogManager fromReference(jni$_.JReference reference) => - AttributionDialogManager.fromReference( - reference, - ); + AttributionDialogManager.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/maps/FocalPointChangeListener.dart b/lib/src/platform/android/jni/org/maplibre/android/maps/FocalPointChangeListener.dart index 09f86c2a..87c421c8 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/maps/FocalPointChangeListener.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/maps/FocalPointChangeListener.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -59,13 +47,13 @@ class FocalPointChangeListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - FocalPointChangeListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + FocalPointChangeListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/FocalPointChangeListener'); + r'org/maplibre/android/maps/FocalPointChangeListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $FocalPointChangeListener$NullableType(); @@ -75,25 +63,32 @@ class FocalPointChangeListener extends jni$_.JObject { r'(Landroid/graphics/PointF;)V', ); - static final _onFocalPointChanged = 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 _onFocalPointChanged = + 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 onFocalPointChanged(android.graphics.PointF pointF)` - void onFocalPointChanged( - pointf$_.PointF? pointF, - ) { + void onFocalPointChanged(pointf$_.PointF? pointF) { final _$pointF = pointF?.reference ?? jni$_.jNullReference; - _onFocalPointChanged(reference.pointer, - _id_onFocalPointChanged as jni$_.JMethodIDPtr, _$pointF.pointer) - .check(); + _onFocalPointChanged( + reference.pointer, + _id_onFocalPointChanged as jni$_.JMethodIDPtr, + _$pointF.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -105,19 +100,16 @@ class FocalPointChangeListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -166,14 +158,10 @@ class FocalPointChangeListener extends jni$_.JObject { _$impls[$a] = $impl; } - factory FocalPointChangeListener.implement( - $FocalPointChangeListener $impl, - ) { + factory FocalPointChangeListener.implement($FocalPointChangeListener $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return FocalPointChangeListener.fromReference( - $i.implementReference(), - ); + return FocalPointChangeListener.fromReference($i.implementReference()); } } @@ -215,10 +203,8 @@ final class $FocalPointChangeListener$NullableType @core$_.override FocalPointChangeListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : FocalPointChangeListener.fromReference( - reference, - ); + ? null + : FocalPointChangeListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -254,9 +240,7 @@ final class $FocalPointChangeListener$Type @jni$_.internal @core$_.override FocalPointChangeListener fromReference(jni$_.JReference reference) => - FocalPointChangeListener.fromReference( - reference, - ); + FocalPointChangeListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/maps/Image.dart b/lib/src/platform/android/jni/org/maplibre/android/maps/Image.dart index 03e80f18..85a5fe07 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/maps/Image.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/maps/Image.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,37 +45,40 @@ class Image extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Image.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Image.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/maps/Image'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/maps/Image', + ); /// The type which includes information such as the signature of this class. static const nullableType = $Image$NullableType(); static const type = $Image$Type(); - static final _id_new$ = _class.constructorId( - r'([BFLjava/lang/String;IIZ)V', - ); + static final _id_new$ = _class.constructorId(r'([BFLjava/lang/String;IIZ)V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Double, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Double, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -95,7 +86,9 @@ class Image extends jni$_.JObject { jni$_.Pointer, int, int, - int)>(); + int, + ) + >(); /// from: `public void (byte[] bs, float f, java.lang.String string, int i, int i1, boolean z)` /// The returned object must be released after use, by calling the [release] method. @@ -109,41 +102,48 @@ class Image extends jni$_.JObject { ) { final _$bs = bs?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; - return Image.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$bs.pointer, - f, - _$string.pointer, - i, - i1, - z ? 1 : 0) - .reference); + return Image.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$bs.pointer, + f, + _$string.pointer, + i, + i1, + z ? 1 : 0, + ).reference, + ); } static final _id_new$1 = _class.constructorId( r'([BFLjava/lang/String;IIZ[F[F[F)V', ); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Double, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Double, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -154,7 +154,9 @@ class Image extends jni$_.JObject { int, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (byte[] bs, float f, java.lang.String string, int i, int i1, boolean z, float[] fs, float[] fs1, float[] fs2)` /// The returned object must be released after use, by calling the [release] method. @@ -174,19 +176,21 @@ class Image extends jni$_.JObject { final _$fs = fs?.reference ?? jni$_.jNullReference; final _$fs1 = fs1?.reference ?? jni$_.jNullReference; final _$fs2 = fs2?.reference ?? jni$_.jNullReference; - return Image.fromReference(_new$1( - _class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, - _$bs.pointer, - f, - _$string.pointer, - i, - i1, - z ? 1 : 0, - _$fs.pointer, - _$fs1.pointer, - _$fs2.pointer) - .reference); + return Image.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$bs.pointer, + f, + _$string.pointer, + i, + i1, + z ? 1 : 0, + _$fs.pointer, + _$fs1.pointer, + _$fs2.pointer, + ).reference, + ); } } @@ -200,11 +204,8 @@ final class $Image$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - Image? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Image.fromReference( - reference, - ); + Image? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Image.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -237,9 +238,8 @@ final class $Image$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - Image fromReference(jni$_.JReference reference) => Image.fromReference( - reference, - ); + Image fromReference(jni$_.JReference reference) => + Image.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/maps/ImageContent.dart b/lib/src/platform/android/jni/org/maplibre/android/maps/ImageContent.dart index 05d117ff..c0ce24da 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/maps/ImageContent.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/maps/ImageContent.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,48 +45,55 @@ class ImageContent extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - ImageContent.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ImageContent.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/maps/ImageContent'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/maps/ImageContent', + ); /// The type which includes information such as the signature of this class. static const nullableType = $ImageContent$NullableType(); static const type = $ImageContent$Type(); - static final _id_new$ = _class.constructorId( - r'(FFFF)V', - ); + static final _id_new$ = _class.constructorId(r'(FFFF)V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Double, - jni$_.Double, - jni$_.Double - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, double, double, double, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Double, jni$_.Double, jni$_.Double, jni$_.Double) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + double, + double, + double, + ) + >(); /// from: `public void (float f, float f1, float f2, float f3)` /// The returned object must be released after use, by calling the [release] method. - factory ImageContent( - double f, - double f1, - double f2, - double f3, - ) { - return ImageContent.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, f, f1, f2, f3) - .reference); + factory ImageContent(double f, double f1, double f2, double f3) { + return ImageContent.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + f, + f1, + f2, + f3, + ).reference, + ); } static final _id_getContentArray = _class.instanceMethodId( @@ -106,24 +101,29 @@ class ImageContent extends jni$_.JObject { r'()[F', ); - static final _getContentArray = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getContentArray = + 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 float[] getContentArray()` /// The returned object must be released after use, by calling the [release] method. jni$_.JFloatArray? getContentArray() { return _getContentArray( - reference.pointer, _id_getContentArray as jni$_.JMethodIDPtr) - .object(const jni$_.JFloatArrayNullableType()); + reference.pointer, + _id_getContentArray as jni$_.JMethodIDPtr, + ).object(const jni$_.JFloatArrayNullableType()); } static final _id_equals = _class.instanceMethodId( @@ -131,48 +131,58 @@ class ImageContent extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } static final _id_toString$1 = _class.instanceMethodId( @@ -180,23 +190,29 @@ class ImageContent extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + 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 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 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } } @@ -210,11 +226,8 @@ final class $ImageContent$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - ImageContent? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : ImageContent.fromReference( - reference, - ); + ImageContent? fromReference(jni$_.JReference reference) => + reference.isNull ? null : ImageContent.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -248,9 +261,7 @@ final class $ImageContent$Type extends jni$_.JObjType { @jni$_.internal @core$_.override ImageContent fromReference(jni$_.JReference reference) => - ImageContent.fromReference( - reference, - ); + ImageContent.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/maps/ImageStretches.dart b/lib/src/platform/android/jni/org/maplibre/android/maps/ImageStretches.dart index 0f0c9241..23392641 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/maps/ImageStretches.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/maps/ImageStretches.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,87 +45,101 @@ class ImageStretches extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - ImageStretches.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ImageStretches.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/maps/ImageStretches'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/maps/ImageStretches', + ); /// The type which includes information such as the signature of this class. static const nullableType = $ImageStretches$NullableType(); static const type = $ImageStretches$Type(); - static final _id_new$ = _class.constructorId( - r'(FF)V', - ); + static final _id_new$ = _class.constructorId(r'(FF)V'); - static final _new$ = 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)>(); + static final _new$ = + 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 ImageStretches( - double f, - double f1, - ) { + factory ImageStretches(double f, double f1) { return ImageStretches.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr, f, f1) - .reference); + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + f, + f1, + ).reference, + ); } - static final _id_getFirst = _class.instanceMethodId( - r'getFirst', - r'()F', - ); + static final _id_getFirst = _class.instanceMethodId(r'getFirst', r'()F'); - static final _getFirst = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getFirst = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float getFirst()` double getFirst() { - return _getFirst(reference.pointer, _id_getFirst as jni$_.JMethodIDPtr) - .float; + return _getFirst( + reference.pointer, + _id_getFirst as jni$_.JMethodIDPtr, + ).float; } - static final _id_getSecond = _class.instanceMethodId( - r'getSecond', - r'()F', - ); + static final _id_getSecond = _class.instanceMethodId(r'getSecond', r'()F'); - static final _getSecond = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getSecond = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float getSecond()` double getSecond() { - return _getSecond(reference.pointer, _id_getSecond as jni$_.JMethodIDPtr) - .float; + return _getSecond( + reference.pointer, + _id_getSecond as jni$_.JMethodIDPtr, + ).float; } static final _id_equals = _class.instanceMethodId( @@ -145,48 +147,58 @@ class ImageStretches extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } static final _id_toString$1 = _class.instanceMethodId( @@ -194,23 +206,29 @@ class ImageStretches extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + 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 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 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } } @@ -225,11 +243,8 @@ final class $ImageStretches$NullableType @jni$_.internal @core$_.override - ImageStretches? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : ImageStretches.fromReference( - reference, - ); + ImageStretches? fromReference(jni$_.JReference reference) => + reference.isNull ? null : ImageStretches.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -263,9 +278,7 @@ final class $ImageStretches$Type extends jni$_.JObjType { @jni$_.internal @core$_.override ImageStretches fromReference(jni$_.JReference reference) => - ImageStretches.fromReference( - reference, - ); + ImageStretches.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/maps/MapFragment.dart b/lib/src/platform/android/jni/org/maplibre/android/maps/MapFragment.dart index 431a31b2..f8bdf869 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/maps/MapFragment.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/maps/MapFragment.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -65,13 +53,13 @@ class MapFragment$OnMapViewReadyCallback extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapFragment$OnMapViewReadyCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapFragment$OnMapViewReadyCallback.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapFragment$OnMapViewReadyCallback'); + r'org/maplibre/android/maps/MapFragment$OnMapViewReadyCallback', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -82,25 +70,32 @@ class MapFragment$OnMapViewReadyCallback extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapView;)V', ); - static final _onMapViewReady = 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 _onMapViewReady = + 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 onMapViewReady(org.maplibre.android.maps.MapView mapView)` - void onMapViewReady( - mapview$_.MapView? mapView, - ) { + void onMapViewReady(mapview$_.MapView? mapView) { final _$mapView = mapView?.reference ?? jni$_.jNullReference; - _onMapViewReady(reference.pointer, _id_onMapViewReady as jni$_.JMethodIDPtr, - _$mapView.pointer) - .check(); + _onMapViewReady( + reference.pointer, + _id_onMapViewReady as jni$_.JMethodIDPtr, + _$mapView.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -113,19 +108,16 @@ class MapFragment$OnMapViewReadyCallback extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -223,12 +215,10 @@ final class $MapFragment$OnMapViewReadyCallback$NullableType @jni$_.internal @core$_.override MapFragment$OnMapViewReadyCallback? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapFragment$OnMapViewReadyCallback.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapFragment$OnMapViewReadyCallback.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -266,10 +256,8 @@ final class $MapFragment$OnMapViewReadyCallback$Type @jni$_.internal @core$_.override MapFragment$OnMapViewReadyCallback fromReference( - jni$_.JReference reference) => - MapFragment$OnMapViewReadyCallback.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapFragment$OnMapViewReadyCallback.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -300,39 +288,41 @@ class MapFragment extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapFragment.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapFragment.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/maps/MapFragment'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/maps/MapFragment', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapFragment$NullableType(); static const type = $MapFragment$Type(); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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, - )>(); + ) + > + >('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 MapFragment() { return MapFragment.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } static final _id_newInstance = _class.staticMethodId( @@ -340,24 +330,29 @@ class MapFragment extends jni$_.JObject { r'()Lorg/maplibre/android/maps/MapFragment;', ); - static final _newInstance = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _newInstance = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public org.maplibre.android.maps.MapFragment newInstance()` /// The returned object must be released after use, by calling the [release] method. static MapFragment? newInstance() { return _newInstance( - _class.reference.pointer, _id_newInstance as jni$_.JMethodIDPtr) - .object(const $MapFragment$NullableType()); + _class.reference.pointer, + _id_newInstance as jni$_.JMethodIDPtr, + ).object(const $MapFragment$NullableType()); } static final _id_newInstance$1 = _class.staticMethodId( @@ -365,29 +360,36 @@ class MapFragment extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMapOptions;)Lorg/maplibre/android/maps/MapFragment;', ); - static final _newInstance$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _newInstance$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public org.maplibre.android.maps.MapFragment newInstance(org.maplibre.android.maps.MapLibreMapOptions mapLibreMapOptions)` /// The returned object must be released after use, by calling the [release] method. - static MapFragment? newInstance$1( + static MapFragment newInstance$1( maplibremapoptions$_.MapLibreMapOptions? mapLibreMapOptions, ) { final _$mapLibreMapOptions = mapLibreMapOptions?.reference ?? jni$_.jNullReference; return _newInstance$1( - _class.reference.pointer, - _id_newInstance$1 as jni$_.JMethodIDPtr, - _$mapLibreMapOptions.pointer) - .object(const $MapFragment$NullableType()); + _class.reference.pointer, + _id_newInstance$1 as jni$_.JMethodIDPtr, + _$mapLibreMapOptions.pointer, + ).object(const $MapFragment$Type()); } static final _id_onInflate = _class.instanceMethodId( @@ -395,37 +397,48 @@ class MapFragment extends jni$_.JObject { r'(Landroid/content/Context;Landroid/util/AttributeSet;Landroid/os/Bundle;)V', ); - static final _onInflate = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onInflate = + 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$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void onInflate(android.content.Context context, android.util.AttributeSet attributeSet, android.os.Bundle bundle)` void onInflate( - jni$_.JObject? context, + jni$_.JObject context, jni$_.JObject? attributeSet, jni$_.JObject? bundle, ) { - final _$context = context?.reference ?? jni$_.jNullReference; + final _$context = context.reference; final _$attributeSet = attributeSet?.reference ?? jni$_.jNullReference; final _$bundle = bundle?.reference ?? jni$_.jNullReference; - _onInflate(reference.pointer, _id_onInflate as jni$_.JMethodIDPtr, - _$context.pointer, _$attributeSet.pointer, _$bundle.pointer) - .check(); + _onInflate( + reference.pointer, + _id_onInflate as jni$_.JMethodIDPtr, + _$context.pointer, + _$attributeSet.pointer, + _$bundle.pointer, + ).check(); } static final _id_onAttach = _class.instanceMethodId( @@ -433,25 +446,32 @@ class MapFragment extends jni$_.JObject { r'(Landroid/content/Context;)V', ); - static final _onAttach = 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 _onAttach = + 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 onAttach(android.content.Context context)` - void onAttach( - jni$_.JObject? context, - ) { + void onAttach(jni$_.JObject? context) { final _$context = context?.reference ?? jni$_.jNullReference; - _onAttach(reference.pointer, _id_onAttach as jni$_.JMethodIDPtr, - _$context.pointer) - .check(); + _onAttach( + reference.pointer, + _id_onAttach as jni$_.JMethodIDPtr, + _$context.pointer, + ).check(); } static final _id_onCreateView = _class.instanceMethodId( @@ -459,42 +479,49 @@ class MapFragment extends jni$_.JObject { r'(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;', ); - static final _onCreateView = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onCreateView = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public android.view.View onCreateView(android.view.LayoutInflater layoutInflater, android.view.ViewGroup viewGroup, android.os.Bundle bundle)` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? onCreateView( - jni$_.JObject? layoutInflater, + jni$_.JObject layoutInflater, jni$_.JObject? viewGroup, jni$_.JObject? bundle, ) { - final _$layoutInflater = layoutInflater?.reference ?? jni$_.jNullReference; + final _$layoutInflater = layoutInflater.reference; final _$viewGroup = viewGroup?.reference ?? jni$_.jNullReference; final _$bundle = bundle?.reference ?? jni$_.jNullReference; return _onCreateView( - reference.pointer, - _id_onCreateView as jni$_.JMethodIDPtr, - _$layoutInflater.pointer, - _$viewGroup.pointer, - _$bundle.pointer) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_onCreateView as jni$_.JMethodIDPtr, + _$layoutInflater.pointer, + _$viewGroup.pointer, + _$bundle.pointer, + ).object(const jni$_.JObjectNullableType()); } static final _id_onViewCreated = _class.instanceMethodId( @@ -502,33 +529,37 @@ class MapFragment extends jni$_.JObject { r'(Landroid/view/View;Landroid/os/Bundle;)V', ); - static final _onViewCreated = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onViewCreated = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void onViewCreated(android.view.View view, android.os.Bundle bundle)` - void onViewCreated( - jni$_.JObject? view, - jni$_.JObject? bundle, - ) { + void onViewCreated(jni$_.JObject? view, jni$_.JObject? bundle) { final _$view = view?.reference ?? jni$_.jNullReference; final _$bundle = bundle?.reference ?? jni$_.jNullReference; - _onViewCreated(reference.pointer, _id_onViewCreated as jni$_.JMethodIDPtr, - _$view.pointer, _$bundle.pointer) - .check(); + _onViewCreated( + reference.pointer, + _id_onViewCreated as jni$_.JMethodIDPtr, + _$view.pointer, + _$bundle.pointer, + ).check(); } static final _id_onMapReady = _class.instanceMethodId( @@ -536,87 +567,97 @@ class MapFragment extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap;)V', ); - static final _onMapReady = 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 _onMapReady = + 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 onMapReady(org.maplibre.android.maps.MapLibreMap mapLibreMap)` - void onMapReady( - maplibremap$_.MapLibreMap? mapLibreMap, - ) { - final _$mapLibreMap = mapLibreMap?.reference ?? jni$_.jNullReference; - _onMapReady(reference.pointer, _id_onMapReady as jni$_.JMethodIDPtr, - _$mapLibreMap.pointer) - .check(); + void onMapReady(maplibremap$_.MapLibreMap mapLibreMap) { + final _$mapLibreMap = mapLibreMap.reference; + _onMapReady( + reference.pointer, + _id_onMapReady as jni$_.JMethodIDPtr, + _$mapLibreMap.pointer, + ).check(); } - static final _id_onStart = _class.instanceMethodId( - r'onStart', - r'()V', - ); + static final _id_onStart = _class.instanceMethodId(r'onStart', r'()V'); - static final _onStart = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onStart = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void onStart()` void onStart() { _onStart(reference.pointer, _id_onStart as jni$_.JMethodIDPtr).check(); } - static final _id_onResume = _class.instanceMethodId( - r'onResume', - r'()V', - ); + static final _id_onResume = _class.instanceMethodId(r'onResume', r'()V'); - static final _onResume = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onResume = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void onResume()` void onResume() { _onResume(reference.pointer, _id_onResume as jni$_.JMethodIDPtr).check(); } - static final _id_onPause = _class.instanceMethodId( - r'onPause', - r'()V', - ); + static final _id_onPause = _class.instanceMethodId(r'onPause', r'()V'); - static final _onPause = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onPause = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void onPause()` void onPause() { @@ -628,43 +669,51 @@ class MapFragment extends jni$_.JObject { r'(Landroid/os/Bundle;)V', ); - static final _onSaveInstanceState = 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 _onSaveInstanceState = + 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 onSaveInstanceState(android.os.Bundle bundle)` - void onSaveInstanceState( - jni$_.JObject? bundle, - ) { - final _$bundle = bundle?.reference ?? jni$_.jNullReference; - _onSaveInstanceState(reference.pointer, - _id_onSaveInstanceState as jni$_.JMethodIDPtr, _$bundle.pointer) - .check(); + void onSaveInstanceState(jni$_.JObject bundle) { + final _$bundle = bundle.reference; + _onSaveInstanceState( + reference.pointer, + _id_onSaveInstanceState as jni$_.JMethodIDPtr, + _$bundle.pointer, + ).check(); } - static final _id_onStop = _class.instanceMethodId( - r'onStop', - r'()V', - ); + static final _id_onStop = _class.instanceMethodId(r'onStop', r'()V'); - static final _onStop = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onStop = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void onStop()` void onStop() { @@ -676,22 +725,28 @@ class MapFragment extends jni$_.JObject { r'()V', ); - static final _onLowMemory = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onLowMemory = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void onLowMemory()` void onLowMemory() { - _onLowMemory(reference.pointer, _id_onLowMemory as jni$_.JMethodIDPtr) - .check(); + _onLowMemory( + reference.pointer, + _id_onLowMemory as jni$_.JMethodIDPtr, + ).check(); } static final _id_onDestroyView = _class.instanceMethodId( @@ -699,40 +754,47 @@ class MapFragment extends jni$_.JObject { r'()V', ); - static final _onDestroyView = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onDestroyView = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void onDestroyView()` void onDestroyView() { - _onDestroyView(reference.pointer, _id_onDestroyView as jni$_.JMethodIDPtr) - .check(); + _onDestroyView( + reference.pointer, + _id_onDestroyView as jni$_.JMethodIDPtr, + ).check(); } - static final _id_onDestroy = _class.instanceMethodId( - r'onDestroy', - r'()V', - ); + static final _id_onDestroy = _class.instanceMethodId(r'onDestroy', r'()V'); - static final _onDestroy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onDestroy = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void onDestroy()` void onDestroy() { @@ -744,26 +806,32 @@ class MapFragment extends jni$_.JObject { r'(Lorg/maplibre/android/maps/OnMapReadyCallback;)V', ); - static final _getMapAsync = 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 _getMapAsync = + 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 getMapAsync(org.maplibre.android.maps.OnMapReadyCallback onMapReadyCallback)` - void getMapAsync( - onmapreadycallback$_.OnMapReadyCallback? onMapReadyCallback, - ) { - final _$onMapReadyCallback = - onMapReadyCallback?.reference ?? jni$_.jNullReference; - _getMapAsync(reference.pointer, _id_getMapAsync as jni$_.JMethodIDPtr, - _$onMapReadyCallback.pointer) - .check(); + void getMapAsync(onmapreadycallback$_.OnMapReadyCallback onMapReadyCallback) { + final _$onMapReadyCallback = onMapReadyCallback.reference; + _getMapAsync( + reference.pointer, + _id_getMapAsync as jni$_.JMethodIDPtr, + _$onMapReadyCallback.pointer, + ).check(); } } @@ -777,11 +845,8 @@ final class $MapFragment$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - MapFragment? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapFragment.fromReference( - reference, - ); + MapFragment? fromReference(jni$_.JReference reference) => + reference.isNull ? null : MapFragment.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -815,9 +880,7 @@ final class $MapFragment$Type extends jni$_.JObjType { @jni$_.internal @core$_.override MapFragment fromReference(jni$_.JReference reference) => - MapFragment.fromReference( - reference, - ); + MapFragment.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/maps/MapLibreMap.dart b/lib/src/platform/android/jni/org/maplibre/android/maps/MapLibreMap.dart index 4c6b3abc..276393e2 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/maps/MapLibreMap.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/maps/MapLibreMap.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -79,55 +67,57 @@ class MapLibreMap$CancelableCallback extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreMap$CancelableCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreMap$CancelableCallback.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$CancelableCallback'); + r'org/maplibre/android/maps/MapLibreMap$CancelableCallback', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibreMap$CancelableCallback$NullableType(); static const type = $MapLibreMap$CancelableCallback$Type(); - static final _id_onCancel = _class.instanceMethodId( - r'onCancel', - r'()V', - ); + static final _id_onCancel = _class.instanceMethodId(r'onCancel', r'()V'); - static final _onCancel = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onCancel = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onCancel()` void onCancel() { _onCancel(reference.pointer, _id_onCancel as jni$_.JMethodIDPtr).check(); } - static final _id_onFinish = _class.instanceMethodId( - r'onFinish', - r'()V', - ); + static final _id_onFinish = _class.instanceMethodId(r'onFinish', r'()V'); - static final _onFinish = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onFinish = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onFinish()` void onFinish() { @@ -143,19 +133,16 @@ class MapLibreMap$CancelableCallback extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -238,8 +225,8 @@ final class _$MapLibreMap$CancelableCallback this.onCancel$async = false, required void Function() onFinish, this.onFinish$async = false, - }) : _onCancel = onCancel, - _onFinish = onFinish; + }) : _onCancel = onCancel, + _onFinish = onFinish; final void Function() _onCancel; final bool onCancel$async; @@ -269,10 +256,8 @@ final class $MapLibreMap$CancelableCallback$NullableType @core$_.override MapLibreMap$CancelableCallback? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapLibreMap$CancelableCallback.fromReference( - reference, - ); + ? null + : MapLibreMap$CancelableCallback.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -309,9 +294,7 @@ final class $MapLibreMap$CancelableCallback$Type @jni$_.internal @core$_.override MapLibreMap$CancelableCallback fromReference(jni$_.JReference reference) => - MapLibreMap$CancelableCallback.fromReference( - reference, - ); + MapLibreMap$CancelableCallback.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -342,13 +325,13 @@ class MapLibreMap$InfoWindowAdapter extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreMap$InfoWindowAdapter.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreMap$InfoWindowAdapter.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$InfoWindowAdapter'); + r'org/maplibre/android/maps/MapLibreMap$InfoWindowAdapter', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibreMap$InfoWindowAdapter$NullableType(); @@ -358,26 +341,33 @@ class MapLibreMap$InfoWindowAdapter extends jni$_.JObject { r'(Lorg/maplibre/android/annotations/Marker;)Landroid/view/View;', ); - static final _getInfoWindow = 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)>(); + static final _getInfoWindow = + 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 android.view.View getInfoWindow(org.maplibre.android.annotations.Marker marker)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getInfoWindow( - jni$_.JObject? marker, - ) { - final _$marker = marker?.reference ?? jni$_.jNullReference; - return _getInfoWindow(reference.pointer, - _id_getInfoWindow as jni$_.JMethodIDPtr, _$marker.pointer) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject? getInfoWindow(jni$_.JObject marker) { + final _$marker = marker.reference; + return _getInfoWindow( + reference.pointer, + _id_getInfoWindow as jni$_.JMethodIDPtr, + _$marker.pointer, + ).object(const jni$_.JObjectNullableType()); } /// Maps a specific port to the implemented interface. @@ -389,19 +379,16 @@ class MapLibreMap$InfoWindowAdapter extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -413,7 +400,7 @@ class MapLibreMap$InfoWindowAdapter extends jni$_.JObject { if ($d == r'getInfoWindow(Lorg/maplibre/android/annotations/Marker;)Landroid/view/View;') { final $r = _$impls[$p]!.getInfoWindow( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return ($r as jni$_.JObject?) ?.as(const jni$_.JObjectType()) @@ -457,29 +444,27 @@ class MapLibreMap$InfoWindowAdapter extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return MapLibreMap$InfoWindowAdapter.fromReference( - $i.implementReference(), - ); + return MapLibreMap$InfoWindowAdapter.fromReference($i.implementReference()); } } abstract base mixin class $MapLibreMap$InfoWindowAdapter { factory $MapLibreMap$InfoWindowAdapter({ - required jni$_.JObject? Function(jni$_.JObject? marker) getInfoWindow, + required jni$_.JObject? Function(jni$_.JObject marker) getInfoWindow, }) = _$MapLibreMap$InfoWindowAdapter; - jni$_.JObject? getInfoWindow(jni$_.JObject? marker); + jni$_.JObject? getInfoWindow(jni$_.JObject marker); } final class _$MapLibreMap$InfoWindowAdapter with $MapLibreMap$InfoWindowAdapter { _$MapLibreMap$InfoWindowAdapter({ - required jni$_.JObject? Function(jni$_.JObject? marker) getInfoWindow, + required jni$_.JObject? Function(jni$_.JObject marker) getInfoWindow, }) : _getInfoWindow = getInfoWindow; - final jni$_.JObject? Function(jni$_.JObject? marker) _getInfoWindow; + final jni$_.JObject? Function(jni$_.JObject marker) _getInfoWindow; - jni$_.JObject? getInfoWindow(jni$_.JObject? marker) { + jni$_.JObject? getInfoWindow(jni$_.JObject marker) { return _getInfoWindow(marker); } } @@ -498,10 +483,8 @@ final class $MapLibreMap$InfoWindowAdapter$NullableType @core$_.override MapLibreMap$InfoWindowAdapter? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapLibreMap$InfoWindowAdapter.fromReference( - reference, - ); + ? null + : MapLibreMap$InfoWindowAdapter.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -537,9 +520,7 @@ final class $MapLibreMap$InfoWindowAdapter$Type @jni$_.internal @core$_.override MapLibreMap$InfoWindowAdapter fromReference(jni$_.JReference reference) => - MapLibreMap$InfoWindowAdapter.fromReference( - reference, - ); + MapLibreMap$InfoWindowAdapter.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -570,13 +551,13 @@ class MapLibreMap$OnCameraIdleListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreMap$OnCameraIdleListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreMap$OnCameraIdleListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$OnCameraIdleListener'); + r'org/maplibre/android/maps/MapLibreMap$OnCameraIdleListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibreMap$OnCameraIdleListener$NullableType(); @@ -586,22 +567,28 @@ class MapLibreMap$OnCameraIdleListener extends jni$_.JObject { r'()V', ); - static final _onCameraIdle = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onCameraIdle = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onCameraIdle()` void onCameraIdle() { - _onCameraIdle(reference.pointer, _id_onCameraIdle as jni$_.JMethodIDPtr) - .check(); + _onCameraIdle( + reference.pointer, + _id_onCameraIdle as jni$_.JMethodIDPtr, + ).check(); } /// Maps a specific port to the implemented interface. @@ -613,19 +600,16 @@ class MapLibreMap$OnCameraIdleListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -663,9 +647,7 @@ class MapLibreMap$OnCameraIdleListener extends jni$_.JObject { r'org.maplibre.android.maps.MapLibreMap$OnCameraIdleListener', $p, _$invokePointer, - [ - if ($impl.onCameraIdle$async) r'onCameraIdle()V', - ], + [if ($impl.onCameraIdle$async) r'onCameraIdle()V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; @@ -721,10 +703,8 @@ final class $MapLibreMap$OnCameraIdleListener$NullableType @core$_.override MapLibreMap$OnCameraIdleListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapLibreMap$OnCameraIdleListener.fromReference( - reference, - ); + ? null + : MapLibreMap$OnCameraIdleListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -761,9 +741,7 @@ final class $MapLibreMap$OnCameraIdleListener$Type @jni$_.internal @core$_.override MapLibreMap$OnCameraIdleListener fromReference(jni$_.JReference reference) => - MapLibreMap$OnCameraIdleListener.fromReference( - reference, - ); + MapLibreMap$OnCameraIdleListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -796,11 +774,12 @@ class MapLibreMap$OnCameraMoveCanceledListener extends jni$_.JObject { @jni$_.internal MapLibreMap$OnCameraMoveCanceledListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$OnCameraMoveCanceledListener'); + r'org/maplibre/android/maps/MapLibreMap$OnCameraMoveCanceledListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -811,28 +790,33 @@ class MapLibreMap$OnCameraMoveCanceledListener extends jni$_.JObject { r'()V', ); - static final _onCameraMoveCanceled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onCameraMoveCanceled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onCameraMoveCanceled()` void onCameraMoveCanceled() { _onCameraMoveCanceled( - reference.pointer, _id_onCameraMoveCanceled as jni$_.JMethodIDPtr) - .check(); + reference.pointer, + _id_onCameraMoveCanceled as jni$_.JMethodIDPtr, + ).check(); } /// Maps a specific port to the implemented interface. static final core$_.Map - _$impls = {}; + _$impls = {}; static jni$_.JObjectPtr _$invoke( int port, jni$_.JObjectPtr descriptor, @@ -840,19 +824,16 @@ class MapLibreMap$OnCameraMoveCanceledListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -890,9 +871,7 @@ class MapLibreMap$OnCameraMoveCanceledListener extends jni$_.JObject { r'org.maplibre.android.maps.MapLibreMap$OnCameraMoveCanceledListener', $p, _$invokePointer, - [ - if ($impl.onCameraMoveCanceled$async) r'onCameraMoveCanceled()V', - ], + [if ($impl.onCameraMoveCanceled$async) r'onCameraMoveCanceled()V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; @@ -947,12 +926,10 @@ final class $MapLibreMap$OnCameraMoveCanceledListener$NullableType @jni$_.internal @core$_.override MapLibreMap$OnCameraMoveCanceledListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapLibreMap$OnCameraMoveCanceledListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapLibreMap$OnCameraMoveCanceledListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -991,10 +968,8 @@ final class $MapLibreMap$OnCameraMoveCanceledListener$Type @jni$_.internal @core$_.override MapLibreMap$OnCameraMoveCanceledListener fromReference( - jni$_.JReference reference) => - MapLibreMap$OnCameraMoveCanceledListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapLibreMap$OnCameraMoveCanceledListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1026,13 +1001,13 @@ class MapLibreMap$OnCameraMoveListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreMap$OnCameraMoveListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreMap$OnCameraMoveListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$OnCameraMoveListener'); + r'org/maplibre/android/maps/MapLibreMap$OnCameraMoveListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibreMap$OnCameraMoveListener$NullableType(); @@ -1042,22 +1017,28 @@ class MapLibreMap$OnCameraMoveListener extends jni$_.JObject { r'()V', ); - static final _onCameraMove = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onCameraMove = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onCameraMove()` void onCameraMove() { - _onCameraMove(reference.pointer, _id_onCameraMove as jni$_.JMethodIDPtr) - .check(); + _onCameraMove( + reference.pointer, + _id_onCameraMove as jni$_.JMethodIDPtr, + ).check(); } /// Maps a specific port to the implemented interface. @@ -1069,19 +1050,16 @@ class MapLibreMap$OnCameraMoveListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -1119,9 +1097,7 @@ class MapLibreMap$OnCameraMoveListener extends jni$_.JObject { r'org.maplibre.android.maps.MapLibreMap$OnCameraMoveListener', $p, _$invokePointer, - [ - if ($impl.onCameraMove$async) r'onCameraMove()V', - ], + [if ($impl.onCameraMove$async) r'onCameraMove()V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; @@ -1177,10 +1153,8 @@ final class $MapLibreMap$OnCameraMoveListener$NullableType @core$_.override MapLibreMap$OnCameraMoveListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapLibreMap$OnCameraMoveListener.fromReference( - reference, - ); + ? null + : MapLibreMap$OnCameraMoveListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1217,9 +1191,7 @@ final class $MapLibreMap$OnCameraMoveListener$Type @jni$_.internal @core$_.override MapLibreMap$OnCameraMoveListener fromReference(jni$_.JReference reference) => - MapLibreMap$OnCameraMoveListener.fromReference( - reference, - ); + MapLibreMap$OnCameraMoveListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1252,11 +1224,12 @@ class MapLibreMap$OnCameraMoveStartedListener extends jni$_.JObject { @jni$_.internal MapLibreMap$OnCameraMoveStartedListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$OnCameraMoveStartedListener'); + r'org/maplibre/android/maps/MapLibreMap$OnCameraMoveStartedListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -1276,28 +1249,36 @@ class MapLibreMap$OnCameraMoveStartedListener extends jni$_.JObject { r'(I)V', ); - static final _onCameraMoveStarted = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onCameraMoveStarted = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public abstract void onCameraMoveStarted(int i)` - void onCameraMoveStarted( - int i, - ) { + void onCameraMoveStarted(int i) { _onCameraMoveStarted( - reference.pointer, _id_onCameraMoveStarted as jni$_.JMethodIDPtr, i) - .check(); + reference.pointer, + _id_onCameraMoveStarted as jni$_.JMethodIDPtr, + i, + ).check(); } /// Maps a specific port to the implemented interface. static final core$_.Map - _$impls = {}; + _$impls = {}; static jni$_.JObjectPtr _$invoke( int port, jni$_.JObjectPtr descriptor, @@ -1305,19 +1286,16 @@ class MapLibreMap$OnCameraMoveStartedListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -1359,9 +1337,7 @@ class MapLibreMap$OnCameraMoveStartedListener extends jni$_.JObject { r'org.maplibre.android.maps.MapLibreMap$OnCameraMoveStartedListener', $p, _$invokePointer, - [ - if ($impl.onCameraMoveStarted$async) r'onCameraMoveStarted(I)V', - ], + [if ($impl.onCameraMoveStarted$async) r'onCameraMoveStarted(I)V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; @@ -1416,12 +1392,10 @@ final class $MapLibreMap$OnCameraMoveStartedListener$NullableType @jni$_.internal @core$_.override MapLibreMap$OnCameraMoveStartedListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapLibreMap$OnCameraMoveStartedListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapLibreMap$OnCameraMoveStartedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1460,10 +1434,8 @@ final class $MapLibreMap$OnCameraMoveStartedListener$Type @jni$_.internal @core$_.override MapLibreMap$OnCameraMoveStartedListener fromReference( - jni$_.JReference reference) => - MapLibreMap$OnCameraMoveStartedListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapLibreMap$OnCameraMoveStartedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1497,11 +1469,12 @@ class MapLibreMap$OnCompassAnimationListener extends jni$_.JObject { @jni$_.internal MapLibreMap$OnCompassAnimationListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$OnCompassAnimationListener'); + r'org/maplibre/android/maps/MapLibreMap$OnCompassAnimationListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -1512,23 +1485,28 @@ class MapLibreMap$OnCompassAnimationListener extends jni$_.JObject { r'()V', ); - static final _onCompassAnimation = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onCompassAnimation = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onCompassAnimation()` void onCompassAnimation() { _onCompassAnimation( - reference.pointer, _id_onCompassAnimation as jni$_.JMethodIDPtr) - .check(); + reference.pointer, + _id_onCompassAnimation as jni$_.JMethodIDPtr, + ).check(); } static final _id_onCompassAnimationFinished = _class.instanceMethodId( @@ -1538,27 +1516,31 @@ class MapLibreMap$OnCompassAnimationListener extends jni$_.JObject { static final _onCompassAnimationFinished = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onCompassAnimationFinished()` void onCompassAnimationFinished() { - _onCompassAnimationFinished(reference.pointer, - _id_onCompassAnimationFinished as jni$_.JMethodIDPtr) - .check(); + _onCompassAnimationFinished( + reference.pointer, + _id_onCompassAnimationFinished as jni$_.JMethodIDPtr, + ).check(); } /// Maps a specific port to the implemented interface. static final core$_.Map - _$impls = {}; + _$impls = {}; static jni$_.JObjectPtr _$invoke( int port, jni$_.JObjectPtr descriptor, @@ -1566,19 +1548,16 @@ class MapLibreMap$OnCompassAnimationListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -1662,8 +1641,8 @@ final class _$MapLibreMap$OnCompassAnimationListener this.onCompassAnimation$async = false, required void Function() onCompassAnimationFinished, this.onCompassAnimationFinished$async = false, - }) : _onCompassAnimation = onCompassAnimation, - _onCompassAnimationFinished = onCompassAnimationFinished; + }) : _onCompassAnimation = onCompassAnimation, + _onCompassAnimationFinished = onCompassAnimationFinished; final void Function() _onCompassAnimation; final bool onCompassAnimation$async; @@ -1692,12 +1671,10 @@ final class $MapLibreMap$OnCompassAnimationListener$NullableType @jni$_.internal @core$_.override MapLibreMap$OnCompassAnimationListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapLibreMap$OnCompassAnimationListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapLibreMap$OnCompassAnimationListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1736,10 +1713,8 @@ final class $MapLibreMap$OnCompassAnimationListener$Type @jni$_.internal @core$_.override MapLibreMap$OnCompassAnimationListener fromReference( - jni$_.JReference reference) => - MapLibreMap$OnCompassAnimationListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapLibreMap$OnCompassAnimationListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1773,11 +1748,12 @@ class MapLibreMap$OnDeveloperAnimationListener extends jni$_.JObject { @jni$_.internal MapLibreMap$OnDeveloperAnimationListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$OnDeveloperAnimationListener'); + r'org/maplibre/android/maps/MapLibreMap$OnDeveloperAnimationListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -1790,27 +1766,31 @@ class MapLibreMap$OnDeveloperAnimationListener extends jni$_.JObject { static final _onDeveloperAnimationStarted = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onDeveloperAnimationStarted()` void onDeveloperAnimationStarted() { - _onDeveloperAnimationStarted(reference.pointer, - _id_onDeveloperAnimationStarted as jni$_.JMethodIDPtr) - .check(); + _onDeveloperAnimationStarted( + reference.pointer, + _id_onDeveloperAnimationStarted as jni$_.JMethodIDPtr, + ).check(); } /// Maps a specific port to the implemented interface. static final core$_.Map - _$impls = {}; + _$impls = {}; static jni$_.JObjectPtr _$invoke( int port, jni$_.JObjectPtr descriptor, @@ -1818,19 +1798,16 @@ class MapLibreMap$OnDeveloperAnimationListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -1926,12 +1903,10 @@ final class $MapLibreMap$OnDeveloperAnimationListener$NullableType @jni$_.internal @core$_.override MapLibreMap$OnDeveloperAnimationListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapLibreMap$OnDeveloperAnimationListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapLibreMap$OnDeveloperAnimationListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1970,10 +1945,8 @@ final class $MapLibreMap$OnDeveloperAnimationListener$Type @jni$_.internal @core$_.override MapLibreMap$OnDeveloperAnimationListener fromReference( - jni$_.JReference reference) => - MapLibreMap$OnDeveloperAnimationListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapLibreMap$OnDeveloperAnimationListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2005,33 +1978,34 @@ class MapLibreMap$OnFlingListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreMap$OnFlingListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreMap$OnFlingListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$OnFlingListener'); + r'org/maplibre/android/maps/MapLibreMap$OnFlingListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibreMap$OnFlingListener$NullableType(); static const type = $MapLibreMap$OnFlingListener$Type(); - static final _id_onFling = _class.instanceMethodId( - r'onFling', - r'()V', - ); + static final _id_onFling = _class.instanceMethodId(r'onFling', r'()V'); - static final _onFling = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onFling = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onFling()` void onFling() { @@ -2047,19 +2021,16 @@ class MapLibreMap$OnFlingListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -2097,9 +2068,7 @@ class MapLibreMap$OnFlingListener extends jni$_.JObject { r'org.maplibre.android.maps.MapLibreMap$OnFlingListener', $p, _$invokePointer, - [ - if ($impl.onFling$async) r'onFling()V', - ], + [if ($impl.onFling$async) r'onFling()V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; @@ -2110,9 +2079,7 @@ class MapLibreMap$OnFlingListener extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return MapLibreMap$OnFlingListener.fromReference( - $i.implementReference(), - ); + return MapLibreMap$OnFlingListener.fromReference($i.implementReference()); } } @@ -2154,10 +2121,8 @@ final class $MapLibreMap$OnFlingListener$NullableType @core$_.override MapLibreMap$OnFlingListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapLibreMap$OnFlingListener.fromReference( - reference, - ); + ? null + : MapLibreMap$OnFlingListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2193,9 +2158,7 @@ final class $MapLibreMap$OnFlingListener$Type @jni$_.internal @core$_.override MapLibreMap$OnFlingListener fromReference(jni$_.JReference reference) => - MapLibreMap$OnFlingListener.fromReference( - reference, - ); + MapLibreMap$OnFlingListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2226,13 +2189,13 @@ class MapLibreMap$OnFpsChangedListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreMap$OnFpsChangedListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreMap$OnFpsChangedListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$OnFpsChangedListener'); + r'org/maplibre/android/maps/MapLibreMap$OnFpsChangedListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibreMap$OnFpsChangedListener$NullableType(); @@ -2242,22 +2205,31 @@ class MapLibreMap$OnFpsChangedListener extends jni$_.JObject { r'(D)V', ); - static final _onFpsChanged = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onFpsChanged = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public abstract void onFpsChanged(double d)` - void onFpsChanged( - double d, - ) { - _onFpsChanged(reference.pointer, _id_onFpsChanged as jni$_.JMethodIDPtr, d) - .check(); + void onFpsChanged(double d) { + _onFpsChanged( + reference.pointer, + _id_onFpsChanged as jni$_.JMethodIDPtr, + d, + ).check(); } /// Maps a specific port to the implemented interface. @@ -2269,19 +2241,16 @@ class MapLibreMap$OnFpsChangedListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -2323,9 +2292,7 @@ class MapLibreMap$OnFpsChangedListener extends jni$_.JObject { r'org.maplibre.android.maps.MapLibreMap$OnFpsChangedListener', $p, _$invokePointer, - [ - if ($impl.onFpsChanged$async) r'onFpsChanged(D)V', - ], + [if ($impl.onFpsChanged$async) r'onFpsChanged(D)V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; @@ -2381,10 +2348,8 @@ final class $MapLibreMap$OnFpsChangedListener$NullableType @core$_.override MapLibreMap$OnFpsChangedListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapLibreMap$OnFpsChangedListener.fromReference( - reference, - ); + ? null + : MapLibreMap$OnFpsChangedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2421,9 +2386,7 @@ final class $MapLibreMap$OnFpsChangedListener$Type @jni$_.internal @core$_.override MapLibreMap$OnFpsChangedListener fromReference(jni$_.JReference reference) => - MapLibreMap$OnFpsChangedListener.fromReference( - reference, - ); + MapLibreMap$OnFpsChangedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2456,11 +2419,12 @@ class MapLibreMap$OnInfoWindowClickListener extends jni$_.JObject { @jni$_.internal MapLibreMap$OnInfoWindowClickListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$OnInfoWindowClickListener'); + r'org/maplibre/android/maps/MapLibreMap$OnInfoWindowClickListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -2471,25 +2435,32 @@ class MapLibreMap$OnInfoWindowClickListener extends jni$_.JObject { r'(Lorg/maplibre/android/annotations/Marker;)Z', ); - static final _onInfoWindowClick = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _onInfoWindowClick = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract boolean onInfoWindowClick(org.maplibre.android.annotations.Marker marker)` - bool onInfoWindowClick( - jni$_.JObject? marker, - ) { - final _$marker = marker?.reference ?? jni$_.jNullReference; - return _onInfoWindowClick(reference.pointer, - _id_onInfoWindowClick as jni$_.JMethodIDPtr, _$marker.pointer) - .boolean; + bool onInfoWindowClick(jni$_.JObject marker) { + final _$marker = marker.reference; + return _onInfoWindowClick( + reference.pointer, + _id_onInfoWindowClick as jni$_.JMethodIDPtr, + _$marker.pointer, + ).boolean; } /// Maps a specific port to the implemented interface. @@ -2502,19 +2473,16 @@ class MapLibreMap$OnInfoWindowClickListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -2526,7 +2494,7 @@ class MapLibreMap$OnInfoWindowClickListener extends jni$_.JObject { if ($d == r'onInfoWindowClick(Lorg/maplibre/android/annotations/Marker;)Z') { final $r = _$impls[$p]!.onInfoWindowClick( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.JBoolean($r).reference.toPointer(); } @@ -2574,21 +2542,21 @@ class MapLibreMap$OnInfoWindowClickListener extends jni$_.JObject { abstract base mixin class $MapLibreMap$OnInfoWindowClickListener { factory $MapLibreMap$OnInfoWindowClickListener({ - required bool Function(jni$_.JObject? marker) onInfoWindowClick, + required bool Function(jni$_.JObject marker) onInfoWindowClick, }) = _$MapLibreMap$OnInfoWindowClickListener; - bool onInfoWindowClick(jni$_.JObject? marker); + bool onInfoWindowClick(jni$_.JObject marker); } final class _$MapLibreMap$OnInfoWindowClickListener with $MapLibreMap$OnInfoWindowClickListener { _$MapLibreMap$OnInfoWindowClickListener({ - required bool Function(jni$_.JObject? marker) onInfoWindowClick, + required bool Function(jni$_.JObject marker) onInfoWindowClick, }) : _onInfoWindowClick = onInfoWindowClick; - final bool Function(jni$_.JObject? marker) _onInfoWindowClick; + final bool Function(jni$_.JObject marker) _onInfoWindowClick; - bool onInfoWindowClick(jni$_.JObject? marker) { + bool onInfoWindowClick(jni$_.JObject marker) { return _onInfoWindowClick(marker); } } @@ -2606,12 +2574,10 @@ final class $MapLibreMap$OnInfoWindowClickListener$NullableType @jni$_.internal @core$_.override MapLibreMap$OnInfoWindowClickListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapLibreMap$OnInfoWindowClickListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapLibreMap$OnInfoWindowClickListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2650,10 +2616,8 @@ final class $MapLibreMap$OnInfoWindowClickListener$Type @jni$_.internal @core$_.override MapLibreMap$OnInfoWindowClickListener fromReference( - jni$_.JReference reference) => - MapLibreMap$OnInfoWindowClickListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapLibreMap$OnInfoWindowClickListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2686,11 +2650,12 @@ class MapLibreMap$OnInfoWindowCloseListener extends jni$_.JObject { @jni$_.internal MapLibreMap$OnInfoWindowCloseListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$OnInfoWindowCloseListener'); + r'org/maplibre/android/maps/MapLibreMap$OnInfoWindowCloseListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -2701,25 +2666,32 @@ class MapLibreMap$OnInfoWindowCloseListener extends jni$_.JObject { r'(Lorg/maplibre/android/annotations/Marker;)V', ); - static final _onInfoWindowClose = 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 _onInfoWindowClose = + 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 onInfoWindowClose(org.maplibre.android.annotations.Marker marker)` - void onInfoWindowClose( - jni$_.JObject? marker, - ) { - final _$marker = marker?.reference ?? jni$_.jNullReference; - _onInfoWindowClose(reference.pointer, - _id_onInfoWindowClose as jni$_.JMethodIDPtr, _$marker.pointer) - .check(); + void onInfoWindowClose(jni$_.JObject marker) { + final _$marker = marker.reference; + _onInfoWindowClose( + reference.pointer, + _id_onInfoWindowClose as jni$_.JMethodIDPtr, + _$marker.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -2732,19 +2704,16 @@ class MapLibreMap$OnInfoWindowCloseListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -2756,7 +2725,7 @@ class MapLibreMap$OnInfoWindowCloseListener extends jni$_.JObject { if ($d == r'onInfoWindowClose(Lorg/maplibre/android/annotations/Marker;)V') { _$impls[$p]!.onInfoWindowClose( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; } @@ -2807,25 +2776,25 @@ class MapLibreMap$OnInfoWindowCloseListener extends jni$_.JObject { abstract base mixin class $MapLibreMap$OnInfoWindowCloseListener { factory $MapLibreMap$OnInfoWindowCloseListener({ - required void Function(jni$_.JObject? marker) onInfoWindowClose, + required void Function(jni$_.JObject marker) onInfoWindowClose, bool onInfoWindowClose$async, }) = _$MapLibreMap$OnInfoWindowCloseListener; - void onInfoWindowClose(jni$_.JObject? marker); + void onInfoWindowClose(jni$_.JObject marker); bool get onInfoWindowClose$async => false; } final class _$MapLibreMap$OnInfoWindowCloseListener with $MapLibreMap$OnInfoWindowCloseListener { _$MapLibreMap$OnInfoWindowCloseListener({ - required void Function(jni$_.JObject? marker) onInfoWindowClose, + required void Function(jni$_.JObject marker) onInfoWindowClose, this.onInfoWindowClose$async = false, }) : _onInfoWindowClose = onInfoWindowClose; - final void Function(jni$_.JObject? marker) _onInfoWindowClose; + final void Function(jni$_.JObject marker) _onInfoWindowClose; final bool onInfoWindowClose$async; - void onInfoWindowClose(jni$_.JObject? marker) { + void onInfoWindowClose(jni$_.JObject marker) { return _onInfoWindowClose(marker); } } @@ -2843,12 +2812,10 @@ final class $MapLibreMap$OnInfoWindowCloseListener$NullableType @jni$_.internal @core$_.override MapLibreMap$OnInfoWindowCloseListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapLibreMap$OnInfoWindowCloseListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapLibreMap$OnInfoWindowCloseListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2887,10 +2854,8 @@ final class $MapLibreMap$OnInfoWindowCloseListener$Type @jni$_.internal @core$_.override MapLibreMap$OnInfoWindowCloseListener fromReference( - jni$_.JReference reference) => - MapLibreMap$OnInfoWindowCloseListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapLibreMap$OnInfoWindowCloseListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2923,11 +2888,12 @@ class MapLibreMap$OnInfoWindowLongClickListener extends jni$_.JObject { @jni$_.internal MapLibreMap$OnInfoWindowLongClickListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$OnInfoWindowLongClickListener'); + r'org/maplibre/android/maps/MapLibreMap$OnInfoWindowLongClickListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -2938,30 +2904,37 @@ class MapLibreMap$OnInfoWindowLongClickListener extends jni$_.JObject { r'(Lorg/maplibre/android/annotations/Marker;)V', ); - static final _onInfoWindowLongClick = 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 _onInfoWindowLongClick = + 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 onInfoWindowLongClick(org.maplibre.android.annotations.Marker marker)` - void onInfoWindowLongClick( - jni$_.JObject? marker, - ) { - final _$marker = marker?.reference ?? jni$_.jNullReference; - _onInfoWindowLongClick(reference.pointer, - _id_onInfoWindowLongClick as jni$_.JMethodIDPtr, _$marker.pointer) - .check(); + void onInfoWindowLongClick(jni$_.JObject marker) { + final _$marker = marker.reference; + _onInfoWindowLongClick( + reference.pointer, + _id_onInfoWindowLongClick as jni$_.JMethodIDPtr, + _$marker.pointer, + ).check(); } /// Maps a specific port to the implemented interface. static final core$_.Map - _$impls = {}; + _$impls = {}; static jni$_.JObjectPtr _$invoke( int port, jni$_.JObjectPtr descriptor, @@ -2969,19 +2942,16 @@ class MapLibreMap$OnInfoWindowLongClickListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -2993,7 +2963,7 @@ class MapLibreMap$OnInfoWindowLongClickListener extends jni$_.JObject { if ($d == r'onInfoWindowLongClick(Lorg/maplibre/android/annotations/Marker;)V') { _$impls[$p]!.onInfoWindowLongClick( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; } @@ -3044,25 +3014,25 @@ class MapLibreMap$OnInfoWindowLongClickListener extends jni$_.JObject { abstract base mixin class $MapLibreMap$OnInfoWindowLongClickListener { factory $MapLibreMap$OnInfoWindowLongClickListener({ - required void Function(jni$_.JObject? marker) onInfoWindowLongClick, + required void Function(jni$_.JObject marker) onInfoWindowLongClick, bool onInfoWindowLongClick$async, }) = _$MapLibreMap$OnInfoWindowLongClickListener; - void onInfoWindowLongClick(jni$_.JObject? marker); + void onInfoWindowLongClick(jni$_.JObject marker); bool get onInfoWindowLongClick$async => false; } final class _$MapLibreMap$OnInfoWindowLongClickListener with $MapLibreMap$OnInfoWindowLongClickListener { _$MapLibreMap$OnInfoWindowLongClickListener({ - required void Function(jni$_.JObject? marker) onInfoWindowLongClick, + required void Function(jni$_.JObject marker) onInfoWindowLongClick, this.onInfoWindowLongClick$async = false, }) : _onInfoWindowLongClick = onInfoWindowLongClick; - final void Function(jni$_.JObject? marker) _onInfoWindowLongClick; + final void Function(jni$_.JObject marker) _onInfoWindowLongClick; final bool onInfoWindowLongClick$async; - void onInfoWindowLongClick(jni$_.JObject? marker) { + void onInfoWindowLongClick(jni$_.JObject marker) { return _onInfoWindowLongClick(marker); } } @@ -3080,12 +3050,10 @@ final class $MapLibreMap$OnInfoWindowLongClickListener$NullableType @jni$_.internal @core$_.override MapLibreMap$OnInfoWindowLongClickListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapLibreMap$OnInfoWindowLongClickListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapLibreMap$OnInfoWindowLongClickListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -3124,10 +3092,8 @@ final class $MapLibreMap$OnInfoWindowLongClickListener$Type @jni$_.internal @core$_.override MapLibreMap$OnInfoWindowLongClickListener fromReference( - jni$_.JReference reference) => - MapLibreMap$OnInfoWindowLongClickListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapLibreMap$OnInfoWindowLongClickListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -3160,13 +3126,13 @@ class MapLibreMap$OnMapClickListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreMap$OnMapClickListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreMap$OnMapClickListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$OnMapClickListener'); + r'org/maplibre/android/maps/MapLibreMap$OnMapClickListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibreMap$OnMapClickListener$NullableType(); @@ -3176,25 +3142,32 @@ class MapLibreMap$OnMapClickListener extends jni$_.JObject { r'(Lorg/maplibre/android/geometry/LatLng;)Z', ); - static final _onMapClick = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _onMapClick = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract boolean onMapClick(org.maplibre.android.geometry.LatLng latLng)` - bool onMapClick( - latlng$_.LatLng? latLng, - ) { - final _$latLng = latLng?.reference ?? jni$_.jNullReference; - return _onMapClick(reference.pointer, _id_onMapClick as jni$_.JMethodIDPtr, - _$latLng.pointer) - .boolean; + bool onMapClick(latlng$_.LatLng latLng) { + final _$latLng = latLng.reference; + return _onMapClick( + reference.pointer, + _id_onMapClick as jni$_.JMethodIDPtr, + _$latLng.pointer, + ).boolean; } /// Maps a specific port to the implemented interface. @@ -3206,19 +3179,16 @@ class MapLibreMap$OnMapClickListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -3229,7 +3199,7 @@ class MapLibreMap$OnMapClickListener extends jni$_.JObject { final $a = $i.args; if ($d == r'onMapClick(Lorg/maplibre/android/geometry/LatLng;)Z') { final $r = _$impls[$p]!.onMapClick( - $a![0]?.as(const latlng$_.$LatLng$Type(), releaseOriginal: true), + $a![0]!.as(const latlng$_.$LatLng$Type(), releaseOriginal: true), ); return jni$_.JBoolean($r).reference.toPointer(); } @@ -3277,21 +3247,21 @@ class MapLibreMap$OnMapClickListener extends jni$_.JObject { abstract base mixin class $MapLibreMap$OnMapClickListener { factory $MapLibreMap$OnMapClickListener({ - required bool Function(latlng$_.LatLng? latLng) onMapClick, + required bool Function(latlng$_.LatLng latLng) onMapClick, }) = _$MapLibreMap$OnMapClickListener; - bool onMapClick(latlng$_.LatLng? latLng); + bool onMapClick(latlng$_.LatLng latLng); } final class _$MapLibreMap$OnMapClickListener with $MapLibreMap$OnMapClickListener { _$MapLibreMap$OnMapClickListener({ - required bool Function(latlng$_.LatLng? latLng) onMapClick, + required bool Function(latlng$_.LatLng latLng) onMapClick, }) : _onMapClick = onMapClick; - final bool Function(latlng$_.LatLng? latLng) _onMapClick; + final bool Function(latlng$_.LatLng latLng) _onMapClick; - bool onMapClick(latlng$_.LatLng? latLng) { + bool onMapClick(latlng$_.LatLng latLng) { return _onMapClick(latLng); } } @@ -3310,10 +3280,8 @@ final class $MapLibreMap$OnMapClickListener$NullableType @core$_.override MapLibreMap$OnMapClickListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapLibreMap$OnMapClickListener.fromReference( - reference, - ); + ? null + : MapLibreMap$OnMapClickListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -3350,9 +3318,7 @@ final class $MapLibreMap$OnMapClickListener$Type @jni$_.internal @core$_.override MapLibreMap$OnMapClickListener fromReference(jni$_.JReference reference) => - MapLibreMap$OnMapClickListener.fromReference( - reference, - ); + MapLibreMap$OnMapClickListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -3383,13 +3349,13 @@ class MapLibreMap$OnMapLongClickListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreMap$OnMapLongClickListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreMap$OnMapLongClickListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$OnMapLongClickListener'); + r'org/maplibre/android/maps/MapLibreMap$OnMapLongClickListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -3400,25 +3366,32 @@ class MapLibreMap$OnMapLongClickListener extends jni$_.JObject { r'(Lorg/maplibre/android/geometry/LatLng;)Z', ); - static final _onMapLongClick = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _onMapLongClick = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract boolean onMapLongClick(org.maplibre.android.geometry.LatLng latLng)` - bool onMapLongClick( - latlng$_.LatLng? latLng, - ) { - final _$latLng = latLng?.reference ?? jni$_.jNullReference; - return _onMapLongClick(reference.pointer, - _id_onMapLongClick as jni$_.JMethodIDPtr, _$latLng.pointer) - .boolean; + bool onMapLongClick(latlng$_.LatLng latLng) { + final _$latLng = latLng.reference; + return _onMapLongClick( + reference.pointer, + _id_onMapLongClick as jni$_.JMethodIDPtr, + _$latLng.pointer, + ).boolean; } /// Maps a specific port to the implemented interface. @@ -3431,19 +3404,16 @@ class MapLibreMap$OnMapLongClickListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -3454,7 +3424,7 @@ class MapLibreMap$OnMapLongClickListener extends jni$_.JObject { final $a = $i.args; if ($d == r'onMapLongClick(Lorg/maplibre/android/geometry/LatLng;)Z') { final $r = _$impls[$p]!.onMapLongClick( - $a![0]?.as(const latlng$_.$LatLng$Type(), releaseOriginal: true), + $a![0]!.as(const latlng$_.$LatLng$Type(), releaseOriginal: true), ); return jni$_.JBoolean($r).reference.toPointer(); } @@ -3502,21 +3472,21 @@ class MapLibreMap$OnMapLongClickListener extends jni$_.JObject { abstract base mixin class $MapLibreMap$OnMapLongClickListener { factory $MapLibreMap$OnMapLongClickListener({ - required bool Function(latlng$_.LatLng? latLng) onMapLongClick, + required bool Function(latlng$_.LatLng latLng) onMapLongClick, }) = _$MapLibreMap$OnMapLongClickListener; - bool onMapLongClick(latlng$_.LatLng? latLng); + bool onMapLongClick(latlng$_.LatLng latLng); } final class _$MapLibreMap$OnMapLongClickListener with $MapLibreMap$OnMapLongClickListener { _$MapLibreMap$OnMapLongClickListener({ - required bool Function(latlng$_.LatLng? latLng) onMapLongClick, + required bool Function(latlng$_.LatLng latLng) onMapLongClick, }) : _onMapLongClick = onMapLongClick; - final bool Function(latlng$_.LatLng? latLng) _onMapLongClick; + final bool Function(latlng$_.LatLng latLng) _onMapLongClick; - bool onMapLongClick(latlng$_.LatLng? latLng) { + bool onMapLongClick(latlng$_.LatLng latLng) { return _onMapLongClick(latLng); } } @@ -3534,12 +3504,10 @@ final class $MapLibreMap$OnMapLongClickListener$NullableType @jni$_.internal @core$_.override MapLibreMap$OnMapLongClickListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapLibreMap$OnMapLongClickListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapLibreMap$OnMapLongClickListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -3577,10 +3545,8 @@ final class $MapLibreMap$OnMapLongClickListener$Type @jni$_.internal @core$_.override MapLibreMap$OnMapLongClickListener fromReference( - jni$_.JReference reference) => - MapLibreMap$OnMapLongClickListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapLibreMap$OnMapLongClickListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -3611,13 +3577,13 @@ class MapLibreMap$OnMarkerClickListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreMap$OnMarkerClickListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreMap$OnMarkerClickListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$OnMarkerClickListener'); + r'org/maplibre/android/maps/MapLibreMap$OnMarkerClickListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibreMap$OnMarkerClickListener$NullableType(); @@ -3627,25 +3593,32 @@ class MapLibreMap$OnMarkerClickListener extends jni$_.JObject { r'(Lorg/maplibre/android/annotations/Marker;)Z', ); - static final _onMarkerClick = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _onMarkerClick = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract boolean onMarkerClick(org.maplibre.android.annotations.Marker marker)` - bool onMarkerClick( - jni$_.JObject? marker, - ) { - final _$marker = marker?.reference ?? jni$_.jNullReference; - return _onMarkerClick(reference.pointer, - _id_onMarkerClick as jni$_.JMethodIDPtr, _$marker.pointer) - .boolean; + bool onMarkerClick(jni$_.JObject marker) { + final _$marker = marker.reference; + return _onMarkerClick( + reference.pointer, + _id_onMarkerClick as jni$_.JMethodIDPtr, + _$marker.pointer, + ).boolean; } /// Maps a specific port to the implemented interface. @@ -3657,19 +3630,16 @@ class MapLibreMap$OnMarkerClickListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -3680,7 +3650,7 @@ class MapLibreMap$OnMarkerClickListener extends jni$_.JObject { final $a = $i.args; if ($d == r'onMarkerClick(Lorg/maplibre/android/annotations/Marker;)Z') { final $r = _$impls[$p]!.onMarkerClick( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.JBoolean($r).reference.toPointer(); } @@ -3728,21 +3698,21 @@ class MapLibreMap$OnMarkerClickListener extends jni$_.JObject { abstract base mixin class $MapLibreMap$OnMarkerClickListener { factory $MapLibreMap$OnMarkerClickListener({ - required bool Function(jni$_.JObject? marker) onMarkerClick, + required bool Function(jni$_.JObject marker) onMarkerClick, }) = _$MapLibreMap$OnMarkerClickListener; - bool onMarkerClick(jni$_.JObject? marker); + bool onMarkerClick(jni$_.JObject marker); } final class _$MapLibreMap$OnMarkerClickListener with $MapLibreMap$OnMarkerClickListener { _$MapLibreMap$OnMarkerClickListener({ - required bool Function(jni$_.JObject? marker) onMarkerClick, + required bool Function(jni$_.JObject marker) onMarkerClick, }) : _onMarkerClick = onMarkerClick; - final bool Function(jni$_.JObject? marker) _onMarkerClick; + final bool Function(jni$_.JObject marker) _onMarkerClick; - bool onMarkerClick(jni$_.JObject? marker) { + bool onMarkerClick(jni$_.JObject marker) { return _onMarkerClick(marker); } } @@ -3760,12 +3730,10 @@ final class $MapLibreMap$OnMarkerClickListener$NullableType @jni$_.internal @core$_.override MapLibreMap$OnMarkerClickListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapLibreMap$OnMarkerClickListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapLibreMap$OnMarkerClickListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -3803,9 +3771,7 @@ final class $MapLibreMap$OnMarkerClickListener$Type @jni$_.internal @core$_.override MapLibreMap$OnMarkerClickListener fromReference(jni$_.JReference reference) => - MapLibreMap$OnMarkerClickListener.fromReference( - reference, - ); + MapLibreMap$OnMarkerClickListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -3836,13 +3802,13 @@ class MapLibreMap$OnMoveListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreMap$OnMoveListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreMap$OnMoveListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$OnMoveListener'); + r'org/maplibre/android/maps/MapLibreMap$OnMoveListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibreMap$OnMoveListener$NullableType(); @@ -3852,26 +3818,32 @@ class MapLibreMap$OnMoveListener extends jni$_.JObject { r'(Lorg/maplibre/android/gestures/MoveGestureDetector;)V', ); - static final _onMoveBegin = 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 _onMoveBegin = + 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 onMoveBegin(org.maplibre.android.gestures.MoveGestureDetector moveGestureDetector)` - void onMoveBegin( - jni$_.JObject? moveGestureDetector, - ) { - final _$moveGestureDetector = - moveGestureDetector?.reference ?? jni$_.jNullReference; - _onMoveBegin(reference.pointer, _id_onMoveBegin as jni$_.JMethodIDPtr, - _$moveGestureDetector.pointer) - .check(); + void onMoveBegin(jni$_.JObject moveGestureDetector) { + final _$moveGestureDetector = moveGestureDetector.reference; + _onMoveBegin( + reference.pointer, + _id_onMoveBegin as jni$_.JMethodIDPtr, + _$moveGestureDetector.pointer, + ).check(); } static final _id_onMove = _class.instanceMethodId( @@ -3879,26 +3851,32 @@ class MapLibreMap$OnMoveListener extends jni$_.JObject { r'(Lorg/maplibre/android/gestures/MoveGestureDetector;)V', ); - static final _onMove = 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 _onMove = + 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 onMove(org.maplibre.android.gestures.MoveGestureDetector moveGestureDetector)` - void onMove( - jni$_.JObject? moveGestureDetector, - ) { - final _$moveGestureDetector = - moveGestureDetector?.reference ?? jni$_.jNullReference; - _onMove(reference.pointer, _id_onMove as jni$_.JMethodIDPtr, - _$moveGestureDetector.pointer) - .check(); + void onMove(jni$_.JObject moveGestureDetector) { + final _$moveGestureDetector = moveGestureDetector.reference; + _onMove( + reference.pointer, + _id_onMove as jni$_.JMethodIDPtr, + _$moveGestureDetector.pointer, + ).check(); } static final _id_onMoveEnd = _class.instanceMethodId( @@ -3906,26 +3884,32 @@ class MapLibreMap$OnMoveListener extends jni$_.JObject { r'(Lorg/maplibre/android/gestures/MoveGestureDetector;)V', ); - static final _onMoveEnd = 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 _onMoveEnd = + 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 onMoveEnd(org.maplibre.android.gestures.MoveGestureDetector moveGestureDetector)` - void onMoveEnd( - jni$_.JObject? moveGestureDetector, - ) { - final _$moveGestureDetector = - moveGestureDetector?.reference ?? jni$_.jNullReference; - _onMoveEnd(reference.pointer, _id_onMoveEnd as jni$_.JMethodIDPtr, - _$moveGestureDetector.pointer) - .check(); + void onMoveEnd(jni$_.JObject moveGestureDetector) { + final _$moveGestureDetector = moveGestureDetector.reference; + _onMoveEnd( + reference.pointer, + _id_onMoveEnd as jni$_.JMethodIDPtr, + _$moveGestureDetector.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -3937,19 +3921,16 @@ class MapLibreMap$OnMoveListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -3961,21 +3942,21 @@ class MapLibreMap$OnMoveListener extends jni$_.JObject { if ($d == r'onMoveBegin(Lorg/maplibre/android/gestures/MoveGestureDetector;)V') { _$impls[$p]!.onMoveBegin( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; } if ($d == r'onMove(Lorg/maplibre/android/gestures/MoveGestureDetector;)V') { _$impls[$p]!.onMove( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; } if ($d == r'onMoveEnd(Lorg/maplibre/android/gestures/MoveGestureDetector;)V') { _$impls[$p]!.onMoveEnd( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; } @@ -4022,58 +4003,56 @@ class MapLibreMap$OnMoveListener extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return MapLibreMap$OnMoveListener.fromReference( - $i.implementReference(), - ); + return MapLibreMap$OnMoveListener.fromReference($i.implementReference()); } } abstract base mixin class $MapLibreMap$OnMoveListener { factory $MapLibreMap$OnMoveListener({ - required void Function(jni$_.JObject? moveGestureDetector) onMoveBegin, + required void Function(jni$_.JObject moveGestureDetector) onMoveBegin, bool onMoveBegin$async, - required void Function(jni$_.JObject? moveGestureDetector) onMove, + required void Function(jni$_.JObject moveGestureDetector) onMove, bool onMove$async, - required void Function(jni$_.JObject? moveGestureDetector) onMoveEnd, + required void Function(jni$_.JObject moveGestureDetector) onMoveEnd, bool onMoveEnd$async, }) = _$MapLibreMap$OnMoveListener; - void onMoveBegin(jni$_.JObject? moveGestureDetector); + void onMoveBegin(jni$_.JObject moveGestureDetector); bool get onMoveBegin$async => false; - void onMove(jni$_.JObject? moveGestureDetector); + void onMove(jni$_.JObject moveGestureDetector); bool get onMove$async => false; - void onMoveEnd(jni$_.JObject? moveGestureDetector); + void onMoveEnd(jni$_.JObject moveGestureDetector); bool get onMoveEnd$async => false; } final class _$MapLibreMap$OnMoveListener with $MapLibreMap$OnMoveListener { _$MapLibreMap$OnMoveListener({ - required void Function(jni$_.JObject? moveGestureDetector) onMoveBegin, + required void Function(jni$_.JObject moveGestureDetector) onMoveBegin, this.onMoveBegin$async = false, - required void Function(jni$_.JObject? moveGestureDetector) onMove, + required void Function(jni$_.JObject moveGestureDetector) onMove, this.onMove$async = false, - required void Function(jni$_.JObject? moveGestureDetector) onMoveEnd, + required void Function(jni$_.JObject moveGestureDetector) onMoveEnd, this.onMoveEnd$async = false, - }) : _onMoveBegin = onMoveBegin, - _onMove = onMove, - _onMoveEnd = onMoveEnd; + }) : _onMoveBegin = onMoveBegin, + _onMove = onMove, + _onMoveEnd = onMoveEnd; - final void Function(jni$_.JObject? moveGestureDetector) _onMoveBegin; + final void Function(jni$_.JObject moveGestureDetector) _onMoveBegin; final bool onMoveBegin$async; - final void Function(jni$_.JObject? moveGestureDetector) _onMove; + final void Function(jni$_.JObject moveGestureDetector) _onMove; final bool onMove$async; - final void Function(jni$_.JObject? moveGestureDetector) _onMoveEnd; + final void Function(jni$_.JObject moveGestureDetector) _onMoveEnd; final bool onMoveEnd$async; - void onMoveBegin(jni$_.JObject? moveGestureDetector) { + void onMoveBegin(jni$_.JObject moveGestureDetector) { return _onMoveBegin(moveGestureDetector); } - void onMove(jni$_.JObject? moveGestureDetector) { + void onMove(jni$_.JObject moveGestureDetector) { return _onMove(moveGestureDetector); } - void onMoveEnd(jni$_.JObject? moveGestureDetector) { + void onMoveEnd(jni$_.JObject moveGestureDetector) { return _onMoveEnd(moveGestureDetector); } } @@ -4092,10 +4071,8 @@ final class $MapLibreMap$OnMoveListener$NullableType @core$_.override MapLibreMap$OnMoveListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapLibreMap$OnMoveListener.fromReference( - reference, - ); + ? null + : MapLibreMap$OnMoveListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -4131,9 +4108,7 @@ final class $MapLibreMap$OnMoveListener$Type @jni$_.internal @core$_.override MapLibreMap$OnMoveListener fromReference(jni$_.JReference reference) => - MapLibreMap$OnMoveListener.fromReference( - reference, - ); + MapLibreMap$OnMoveListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -4164,13 +4139,13 @@ class MapLibreMap$OnPolygonClickListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreMap$OnPolygonClickListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreMap$OnPolygonClickListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$OnPolygonClickListener'); + r'org/maplibre/android/maps/MapLibreMap$OnPolygonClickListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -4181,25 +4156,32 @@ class MapLibreMap$OnPolygonClickListener extends jni$_.JObject { r'(Lorg/maplibre/android/annotations/Polygon;)V', ); - static final _onPolygonClick = 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 _onPolygonClick = + 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 onPolygonClick(org.maplibre.android.annotations.Polygon polygon)` - void onPolygonClick( - jni$_.JObject? polygon, - ) { - final _$polygon = polygon?.reference ?? jni$_.jNullReference; - _onPolygonClick(reference.pointer, _id_onPolygonClick as jni$_.JMethodIDPtr, - _$polygon.pointer) - .check(); + void onPolygonClick(jni$_.JObject polygon) { + final _$polygon = polygon.reference; + _onPolygonClick( + reference.pointer, + _id_onPolygonClick as jni$_.JMethodIDPtr, + _$polygon.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -4212,19 +4194,16 @@ class MapLibreMap$OnPolygonClickListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -4236,7 +4215,7 @@ class MapLibreMap$OnPolygonClickListener extends jni$_.JObject { if ($d == r'onPolygonClick(Lorg/maplibre/android/annotations/Polygon;)V') { _$impls[$p]!.onPolygonClick( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; } @@ -4287,25 +4266,25 @@ class MapLibreMap$OnPolygonClickListener extends jni$_.JObject { abstract base mixin class $MapLibreMap$OnPolygonClickListener { factory $MapLibreMap$OnPolygonClickListener({ - required void Function(jni$_.JObject? polygon) onPolygonClick, + required void Function(jni$_.JObject polygon) onPolygonClick, bool onPolygonClick$async, }) = _$MapLibreMap$OnPolygonClickListener; - void onPolygonClick(jni$_.JObject? polygon); + void onPolygonClick(jni$_.JObject polygon); bool get onPolygonClick$async => false; } final class _$MapLibreMap$OnPolygonClickListener with $MapLibreMap$OnPolygonClickListener { _$MapLibreMap$OnPolygonClickListener({ - required void Function(jni$_.JObject? polygon) onPolygonClick, + required void Function(jni$_.JObject polygon) onPolygonClick, this.onPolygonClick$async = false, }) : _onPolygonClick = onPolygonClick; - final void Function(jni$_.JObject? polygon) _onPolygonClick; + final void Function(jni$_.JObject polygon) _onPolygonClick; final bool onPolygonClick$async; - void onPolygonClick(jni$_.JObject? polygon) { + void onPolygonClick(jni$_.JObject polygon) { return _onPolygonClick(polygon); } } @@ -4323,12 +4302,10 @@ final class $MapLibreMap$OnPolygonClickListener$NullableType @jni$_.internal @core$_.override MapLibreMap$OnPolygonClickListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapLibreMap$OnPolygonClickListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapLibreMap$OnPolygonClickListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -4366,10 +4343,8 @@ final class $MapLibreMap$OnPolygonClickListener$Type @jni$_.internal @core$_.override MapLibreMap$OnPolygonClickListener fromReference( - jni$_.JReference reference) => - MapLibreMap$OnPolygonClickListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapLibreMap$OnPolygonClickListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -4400,13 +4375,13 @@ class MapLibreMap$OnPolylineClickListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreMap$OnPolylineClickListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreMap$OnPolylineClickListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$OnPolylineClickListener'); + r'org/maplibre/android/maps/MapLibreMap$OnPolylineClickListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -4417,25 +4392,32 @@ class MapLibreMap$OnPolylineClickListener extends jni$_.JObject { r'(Lorg/maplibre/android/annotations/Polyline;)V', ); - static final _onPolylineClick = 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 _onPolylineClick = + 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 onPolylineClick(org.maplibre.android.annotations.Polyline polyline)` - void onPolylineClick( - jni$_.JObject? polyline, - ) { - final _$polyline = polyline?.reference ?? jni$_.jNullReference; - _onPolylineClick(reference.pointer, - _id_onPolylineClick as jni$_.JMethodIDPtr, _$polyline.pointer) - .check(); + void onPolylineClick(jni$_.JObject polyline) { + final _$polyline = polyline.reference; + _onPolylineClick( + reference.pointer, + _id_onPolylineClick as jni$_.JMethodIDPtr, + _$polyline.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -4448,19 +4430,16 @@ class MapLibreMap$OnPolylineClickListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -4472,7 +4451,7 @@ class MapLibreMap$OnPolylineClickListener extends jni$_.JObject { if ($d == r'onPolylineClick(Lorg/maplibre/android/annotations/Polyline;)V') { _$impls[$p]!.onPolylineClick( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; } @@ -4523,25 +4502,25 @@ class MapLibreMap$OnPolylineClickListener extends jni$_.JObject { abstract base mixin class $MapLibreMap$OnPolylineClickListener { factory $MapLibreMap$OnPolylineClickListener({ - required void Function(jni$_.JObject? polyline) onPolylineClick, + required void Function(jni$_.JObject polyline) onPolylineClick, bool onPolylineClick$async, }) = _$MapLibreMap$OnPolylineClickListener; - void onPolylineClick(jni$_.JObject? polyline); + void onPolylineClick(jni$_.JObject polyline); bool get onPolylineClick$async => false; } final class _$MapLibreMap$OnPolylineClickListener with $MapLibreMap$OnPolylineClickListener { _$MapLibreMap$OnPolylineClickListener({ - required void Function(jni$_.JObject? polyline) onPolylineClick, + required void Function(jni$_.JObject polyline) onPolylineClick, this.onPolylineClick$async = false, }) : _onPolylineClick = onPolylineClick; - final void Function(jni$_.JObject? polyline) _onPolylineClick; + final void Function(jni$_.JObject polyline) _onPolylineClick; final bool onPolylineClick$async; - void onPolylineClick(jni$_.JObject? polyline) { + void onPolylineClick(jni$_.JObject polyline) { return _onPolylineClick(polyline); } } @@ -4559,12 +4538,10 @@ final class $MapLibreMap$OnPolylineClickListener$NullableType @jni$_.internal @core$_.override MapLibreMap$OnPolylineClickListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapLibreMap$OnPolylineClickListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapLibreMap$OnPolylineClickListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -4602,10 +4579,8 @@ final class $MapLibreMap$OnPolylineClickListener$Type @jni$_.internal @core$_.override MapLibreMap$OnPolylineClickListener fromReference( - jni$_.JReference reference) => - MapLibreMap$OnPolylineClickListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapLibreMap$OnPolylineClickListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -4636,13 +4611,13 @@ class MapLibreMap$OnRotateListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreMap$OnRotateListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreMap$OnRotateListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$OnRotateListener'); + r'org/maplibre/android/maps/MapLibreMap$OnRotateListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibreMap$OnRotateListener$NullableType(); @@ -4652,26 +4627,32 @@ class MapLibreMap$OnRotateListener extends jni$_.JObject { r'(Lorg/maplibre/android/gestures/RotateGestureDetector;)V', ); - static final _onRotateBegin = 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 _onRotateBegin = + 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 onRotateBegin(org.maplibre.android.gestures.RotateGestureDetector rotateGestureDetector)` - void onRotateBegin( - jni$_.JObject? rotateGestureDetector, - ) { - final _$rotateGestureDetector = - rotateGestureDetector?.reference ?? jni$_.jNullReference; - _onRotateBegin(reference.pointer, _id_onRotateBegin as jni$_.JMethodIDPtr, - _$rotateGestureDetector.pointer) - .check(); + void onRotateBegin(jni$_.JObject rotateGestureDetector) { + final _$rotateGestureDetector = rotateGestureDetector.reference; + _onRotateBegin( + reference.pointer, + _id_onRotateBegin as jni$_.JMethodIDPtr, + _$rotateGestureDetector.pointer, + ).check(); } static final _id_onRotate = _class.instanceMethodId( @@ -4679,26 +4660,32 @@ class MapLibreMap$OnRotateListener extends jni$_.JObject { r'(Lorg/maplibre/android/gestures/RotateGestureDetector;)V', ); - static final _onRotate = 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 _onRotate = + 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 onRotate(org.maplibre.android.gestures.RotateGestureDetector rotateGestureDetector)` - void onRotate( - jni$_.JObject? rotateGestureDetector, - ) { - final _$rotateGestureDetector = - rotateGestureDetector?.reference ?? jni$_.jNullReference; - _onRotate(reference.pointer, _id_onRotate as jni$_.JMethodIDPtr, - _$rotateGestureDetector.pointer) - .check(); + void onRotate(jni$_.JObject rotateGestureDetector) { + final _$rotateGestureDetector = rotateGestureDetector.reference; + _onRotate( + reference.pointer, + _id_onRotate as jni$_.JMethodIDPtr, + _$rotateGestureDetector.pointer, + ).check(); } static final _id_onRotateEnd = _class.instanceMethodId( @@ -4706,26 +4693,32 @@ class MapLibreMap$OnRotateListener extends jni$_.JObject { r'(Lorg/maplibre/android/gestures/RotateGestureDetector;)V', ); - static final _onRotateEnd = 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 _onRotateEnd = + 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 onRotateEnd(org.maplibre.android.gestures.RotateGestureDetector rotateGestureDetector)` - void onRotateEnd( - jni$_.JObject? rotateGestureDetector, - ) { - final _$rotateGestureDetector = - rotateGestureDetector?.reference ?? jni$_.jNullReference; - _onRotateEnd(reference.pointer, _id_onRotateEnd as jni$_.JMethodIDPtr, - _$rotateGestureDetector.pointer) - .check(); + void onRotateEnd(jni$_.JObject rotateGestureDetector) { + final _$rotateGestureDetector = rotateGestureDetector.reference; + _onRotateEnd( + reference.pointer, + _id_onRotateEnd as jni$_.JMethodIDPtr, + _$rotateGestureDetector.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -4737,19 +4730,16 @@ class MapLibreMap$OnRotateListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -4761,21 +4751,21 @@ class MapLibreMap$OnRotateListener extends jni$_.JObject { if ($d == r'onRotateBegin(Lorg/maplibre/android/gestures/RotateGestureDetector;)V') { _$impls[$p]!.onRotateBegin( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; } if ($d == r'onRotate(Lorg/maplibre/android/gestures/RotateGestureDetector;)V') { _$impls[$p]!.onRotate( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; } if ($d == r'onRotateEnd(Lorg/maplibre/android/gestures/RotateGestureDetector;)V') { _$impls[$p]!.onRotateEnd( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; } @@ -4822,58 +4812,56 @@ class MapLibreMap$OnRotateListener extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return MapLibreMap$OnRotateListener.fromReference( - $i.implementReference(), - ); + return MapLibreMap$OnRotateListener.fromReference($i.implementReference()); } } abstract base mixin class $MapLibreMap$OnRotateListener { factory $MapLibreMap$OnRotateListener({ - required void Function(jni$_.JObject? rotateGestureDetector) onRotateBegin, + required void Function(jni$_.JObject rotateGestureDetector) onRotateBegin, bool onRotateBegin$async, - required void Function(jni$_.JObject? rotateGestureDetector) onRotate, + required void Function(jni$_.JObject rotateGestureDetector) onRotate, bool onRotate$async, - required void Function(jni$_.JObject? rotateGestureDetector) onRotateEnd, + required void Function(jni$_.JObject rotateGestureDetector) onRotateEnd, bool onRotateEnd$async, }) = _$MapLibreMap$OnRotateListener; - void onRotateBegin(jni$_.JObject? rotateGestureDetector); + void onRotateBegin(jni$_.JObject rotateGestureDetector); bool get onRotateBegin$async => false; - void onRotate(jni$_.JObject? rotateGestureDetector); + void onRotate(jni$_.JObject rotateGestureDetector); bool get onRotate$async => false; - void onRotateEnd(jni$_.JObject? rotateGestureDetector); + void onRotateEnd(jni$_.JObject rotateGestureDetector); bool get onRotateEnd$async => false; } final class _$MapLibreMap$OnRotateListener with $MapLibreMap$OnRotateListener { _$MapLibreMap$OnRotateListener({ - required void Function(jni$_.JObject? rotateGestureDetector) onRotateBegin, + required void Function(jni$_.JObject rotateGestureDetector) onRotateBegin, this.onRotateBegin$async = false, - required void Function(jni$_.JObject? rotateGestureDetector) onRotate, + required void Function(jni$_.JObject rotateGestureDetector) onRotate, this.onRotate$async = false, - required void Function(jni$_.JObject? rotateGestureDetector) onRotateEnd, + required void Function(jni$_.JObject rotateGestureDetector) onRotateEnd, this.onRotateEnd$async = false, - }) : _onRotateBegin = onRotateBegin, - _onRotate = onRotate, - _onRotateEnd = onRotateEnd; + }) : _onRotateBegin = onRotateBegin, + _onRotate = onRotate, + _onRotateEnd = onRotateEnd; - final void Function(jni$_.JObject? rotateGestureDetector) _onRotateBegin; + final void Function(jni$_.JObject rotateGestureDetector) _onRotateBegin; final bool onRotateBegin$async; - final void Function(jni$_.JObject? rotateGestureDetector) _onRotate; + final void Function(jni$_.JObject rotateGestureDetector) _onRotate; final bool onRotate$async; - final void Function(jni$_.JObject? rotateGestureDetector) _onRotateEnd; + final void Function(jni$_.JObject rotateGestureDetector) _onRotateEnd; final bool onRotateEnd$async; - void onRotateBegin(jni$_.JObject? rotateGestureDetector) { + void onRotateBegin(jni$_.JObject rotateGestureDetector) { return _onRotateBegin(rotateGestureDetector); } - void onRotate(jni$_.JObject? rotateGestureDetector) { + void onRotate(jni$_.JObject rotateGestureDetector) { return _onRotate(rotateGestureDetector); } - void onRotateEnd(jni$_.JObject? rotateGestureDetector) { + void onRotateEnd(jni$_.JObject rotateGestureDetector) { return _onRotateEnd(rotateGestureDetector); } } @@ -4892,10 +4880,8 @@ final class $MapLibreMap$OnRotateListener$NullableType @core$_.override MapLibreMap$OnRotateListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapLibreMap$OnRotateListener.fromReference( - reference, - ); + ? null + : MapLibreMap$OnRotateListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -4931,9 +4917,7 @@ final class $MapLibreMap$OnRotateListener$Type @jni$_.internal @core$_.override MapLibreMap$OnRotateListener fromReference(jni$_.JReference reference) => - MapLibreMap$OnRotateListener.fromReference( - reference, - ); + MapLibreMap$OnRotateListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -4964,13 +4948,13 @@ class MapLibreMap$OnScaleListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreMap$OnScaleListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreMap$OnScaleListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$OnScaleListener'); + r'org/maplibre/android/maps/MapLibreMap$OnScaleListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibreMap$OnScaleListener$NullableType(); @@ -4980,26 +4964,33 @@ class MapLibreMap$OnScaleListener extends jni$_.JObject { r'(Lorg/maplibre/android/gestures/StandardScaleGestureDetector;)V', ); - static final _onScaleBegin = 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 _onScaleBegin = + 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 onScaleBegin(org.maplibre.android.gestures.StandardScaleGestureDetector standardScaleGestureDetector)` - void onScaleBegin( - jni$_.JObject? standardScaleGestureDetector, - ) { + void onScaleBegin(jni$_.JObject standardScaleGestureDetector) { final _$standardScaleGestureDetector = - standardScaleGestureDetector?.reference ?? jni$_.jNullReference; - _onScaleBegin(reference.pointer, _id_onScaleBegin as jni$_.JMethodIDPtr, - _$standardScaleGestureDetector.pointer) - .check(); + standardScaleGestureDetector.reference; + _onScaleBegin( + reference.pointer, + _id_onScaleBegin as jni$_.JMethodIDPtr, + _$standardScaleGestureDetector.pointer, + ).check(); } static final _id_onScale = _class.instanceMethodId( @@ -5007,26 +4998,33 @@ class MapLibreMap$OnScaleListener extends jni$_.JObject { r'(Lorg/maplibre/android/gestures/StandardScaleGestureDetector;)V', ); - static final _onScale = 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 _onScale = + 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 onScale(org.maplibre.android.gestures.StandardScaleGestureDetector standardScaleGestureDetector)` - void onScale( - jni$_.JObject? standardScaleGestureDetector, - ) { + void onScale(jni$_.JObject standardScaleGestureDetector) { final _$standardScaleGestureDetector = - standardScaleGestureDetector?.reference ?? jni$_.jNullReference; - _onScale(reference.pointer, _id_onScale as jni$_.JMethodIDPtr, - _$standardScaleGestureDetector.pointer) - .check(); + standardScaleGestureDetector.reference; + _onScale( + reference.pointer, + _id_onScale as jni$_.JMethodIDPtr, + _$standardScaleGestureDetector.pointer, + ).check(); } static final _id_onScaleEnd = _class.instanceMethodId( @@ -5034,26 +5032,33 @@ class MapLibreMap$OnScaleListener extends jni$_.JObject { r'(Lorg/maplibre/android/gestures/StandardScaleGestureDetector;)V', ); - static final _onScaleEnd = 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 _onScaleEnd = + 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 onScaleEnd(org.maplibre.android.gestures.StandardScaleGestureDetector standardScaleGestureDetector)` - void onScaleEnd( - jni$_.JObject? standardScaleGestureDetector, - ) { + void onScaleEnd(jni$_.JObject standardScaleGestureDetector) { final _$standardScaleGestureDetector = - standardScaleGestureDetector?.reference ?? jni$_.jNullReference; - _onScaleEnd(reference.pointer, _id_onScaleEnd as jni$_.JMethodIDPtr, - _$standardScaleGestureDetector.pointer) - .check(); + standardScaleGestureDetector.reference; + _onScaleEnd( + reference.pointer, + _id_onScaleEnd as jni$_.JMethodIDPtr, + _$standardScaleGestureDetector.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -5065,19 +5070,16 @@ class MapLibreMap$OnScaleListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -5089,21 +5091,21 @@ class MapLibreMap$OnScaleListener extends jni$_.JObject { if ($d == r'onScaleBegin(Lorg/maplibre/android/gestures/StandardScaleGestureDetector;)V') { _$impls[$p]!.onScaleBegin( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; } if ($d == r'onScale(Lorg/maplibre/android/gestures/StandardScaleGestureDetector;)V') { _$impls[$p]!.onScale( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; } if ($d == r'onScaleEnd(Lorg/maplibre/android/gestures/StandardScaleGestureDetector;)V') { _$impls[$p]!.onScaleEnd( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; } @@ -5150,63 +5152,60 @@ class MapLibreMap$OnScaleListener extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return MapLibreMap$OnScaleListener.fromReference( - $i.implementReference(), - ); + return MapLibreMap$OnScaleListener.fromReference($i.implementReference()); } } abstract base mixin class $MapLibreMap$OnScaleListener { factory $MapLibreMap$OnScaleListener({ - required void Function(jni$_.JObject? standardScaleGestureDetector) - onScaleBegin, + required void Function(jni$_.JObject standardScaleGestureDetector) + onScaleBegin, bool onScaleBegin$async, - required void Function(jni$_.JObject? standardScaleGestureDetector) onScale, + required void Function(jni$_.JObject standardScaleGestureDetector) onScale, bool onScale$async, - required void Function(jni$_.JObject? standardScaleGestureDetector) - onScaleEnd, + required void Function(jni$_.JObject standardScaleGestureDetector) + onScaleEnd, bool onScaleEnd$async, }) = _$MapLibreMap$OnScaleListener; - void onScaleBegin(jni$_.JObject? standardScaleGestureDetector); + void onScaleBegin(jni$_.JObject standardScaleGestureDetector); bool get onScaleBegin$async => false; - void onScale(jni$_.JObject? standardScaleGestureDetector); + void onScale(jni$_.JObject standardScaleGestureDetector); bool get onScale$async => false; - void onScaleEnd(jni$_.JObject? standardScaleGestureDetector); + void onScaleEnd(jni$_.JObject standardScaleGestureDetector); bool get onScaleEnd$async => false; } final class _$MapLibreMap$OnScaleListener with $MapLibreMap$OnScaleListener { _$MapLibreMap$OnScaleListener({ - required void Function(jni$_.JObject? standardScaleGestureDetector) - onScaleBegin, + required void Function(jni$_.JObject standardScaleGestureDetector) + onScaleBegin, this.onScaleBegin$async = false, - required void Function(jni$_.JObject? standardScaleGestureDetector) onScale, + required void Function(jni$_.JObject standardScaleGestureDetector) onScale, this.onScale$async = false, - required void Function(jni$_.JObject? standardScaleGestureDetector) - onScaleEnd, + required void Function(jni$_.JObject standardScaleGestureDetector) + onScaleEnd, this.onScaleEnd$async = false, - }) : _onScaleBegin = onScaleBegin, - _onScale = onScale, - _onScaleEnd = onScaleEnd; + }) : _onScaleBegin = onScaleBegin, + _onScale = onScale, + _onScaleEnd = onScaleEnd; - final void Function(jni$_.JObject? standardScaleGestureDetector) - _onScaleBegin; + final void Function(jni$_.JObject standardScaleGestureDetector) _onScaleBegin; final bool onScaleBegin$async; - final void Function(jni$_.JObject? standardScaleGestureDetector) _onScale; + final void Function(jni$_.JObject standardScaleGestureDetector) _onScale; final bool onScale$async; - final void Function(jni$_.JObject? standardScaleGestureDetector) _onScaleEnd; + final void Function(jni$_.JObject standardScaleGestureDetector) _onScaleEnd; final bool onScaleEnd$async; - void onScaleBegin(jni$_.JObject? standardScaleGestureDetector) { + void onScaleBegin(jni$_.JObject standardScaleGestureDetector) { return _onScaleBegin(standardScaleGestureDetector); } - void onScale(jni$_.JObject? standardScaleGestureDetector) { + void onScale(jni$_.JObject standardScaleGestureDetector) { return _onScale(standardScaleGestureDetector); } - void onScaleEnd(jni$_.JObject? standardScaleGestureDetector) { + void onScaleEnd(jni$_.JObject standardScaleGestureDetector) { return _onScaleEnd(standardScaleGestureDetector); } } @@ -5225,10 +5224,8 @@ final class $MapLibreMap$OnScaleListener$NullableType @core$_.override MapLibreMap$OnScaleListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapLibreMap$OnScaleListener.fromReference( - reference, - ); + ? null + : MapLibreMap$OnScaleListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -5264,9 +5261,7 @@ final class $MapLibreMap$OnScaleListener$Type @jni$_.internal @core$_.override MapLibreMap$OnScaleListener fromReference(jni$_.JReference reference) => - MapLibreMap$OnScaleListener.fromReference( - reference, - ); + MapLibreMap$OnScaleListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -5297,13 +5292,13 @@ class MapLibreMap$OnShoveListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreMap$OnShoveListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreMap$OnShoveListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$OnShoveListener'); + r'org/maplibre/android/maps/MapLibreMap$OnShoveListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibreMap$OnShoveListener$NullableType(); @@ -5313,26 +5308,32 @@ class MapLibreMap$OnShoveListener extends jni$_.JObject { r'(Lorg/maplibre/android/gestures/ShoveGestureDetector;)V', ); - static final _onShoveBegin = 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 _onShoveBegin = + 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 onShoveBegin(org.maplibre.android.gestures.ShoveGestureDetector shoveGestureDetector)` - void onShoveBegin( - jni$_.JObject? shoveGestureDetector, - ) { - final _$shoveGestureDetector = - shoveGestureDetector?.reference ?? jni$_.jNullReference; - _onShoveBegin(reference.pointer, _id_onShoveBegin as jni$_.JMethodIDPtr, - _$shoveGestureDetector.pointer) - .check(); + void onShoveBegin(jni$_.JObject shoveGestureDetector) { + final _$shoveGestureDetector = shoveGestureDetector.reference; + _onShoveBegin( + reference.pointer, + _id_onShoveBegin as jni$_.JMethodIDPtr, + _$shoveGestureDetector.pointer, + ).check(); } static final _id_onShove = _class.instanceMethodId( @@ -5340,26 +5341,32 @@ class MapLibreMap$OnShoveListener extends jni$_.JObject { r'(Lorg/maplibre/android/gestures/ShoveGestureDetector;)V', ); - static final _onShove = 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 _onShove = + 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 onShove(org.maplibre.android.gestures.ShoveGestureDetector shoveGestureDetector)` - void onShove( - jni$_.JObject? shoveGestureDetector, - ) { - final _$shoveGestureDetector = - shoveGestureDetector?.reference ?? jni$_.jNullReference; - _onShove(reference.pointer, _id_onShove as jni$_.JMethodIDPtr, - _$shoveGestureDetector.pointer) - .check(); + void onShove(jni$_.JObject shoveGestureDetector) { + final _$shoveGestureDetector = shoveGestureDetector.reference; + _onShove( + reference.pointer, + _id_onShove as jni$_.JMethodIDPtr, + _$shoveGestureDetector.pointer, + ).check(); } static final _id_onShoveEnd = _class.instanceMethodId( @@ -5367,26 +5374,32 @@ class MapLibreMap$OnShoveListener extends jni$_.JObject { r'(Lorg/maplibre/android/gestures/ShoveGestureDetector;)V', ); - static final _onShoveEnd = 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 _onShoveEnd = + 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 onShoveEnd(org.maplibre.android.gestures.ShoveGestureDetector shoveGestureDetector)` - void onShoveEnd( - jni$_.JObject? shoveGestureDetector, - ) { - final _$shoveGestureDetector = - shoveGestureDetector?.reference ?? jni$_.jNullReference; - _onShoveEnd(reference.pointer, _id_onShoveEnd as jni$_.JMethodIDPtr, - _$shoveGestureDetector.pointer) - .check(); + void onShoveEnd(jni$_.JObject shoveGestureDetector) { + final _$shoveGestureDetector = shoveGestureDetector.reference; + _onShoveEnd( + reference.pointer, + _id_onShoveEnd as jni$_.JMethodIDPtr, + _$shoveGestureDetector.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -5398,19 +5411,16 @@ class MapLibreMap$OnShoveListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -5422,21 +5432,21 @@ class MapLibreMap$OnShoveListener extends jni$_.JObject { if ($d == r'onShoveBegin(Lorg/maplibre/android/gestures/ShoveGestureDetector;)V') { _$impls[$p]!.onShoveBegin( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; } if ($d == r'onShove(Lorg/maplibre/android/gestures/ShoveGestureDetector;)V') { _$impls[$p]!.onShove( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; } if ($d == r'onShoveEnd(Lorg/maplibre/android/gestures/ShoveGestureDetector;)V') { _$impls[$p]!.onShoveEnd( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; } @@ -5483,58 +5493,56 @@ class MapLibreMap$OnShoveListener extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return MapLibreMap$OnShoveListener.fromReference( - $i.implementReference(), - ); + return MapLibreMap$OnShoveListener.fromReference($i.implementReference()); } } abstract base mixin class $MapLibreMap$OnShoveListener { factory $MapLibreMap$OnShoveListener({ - required void Function(jni$_.JObject? shoveGestureDetector) onShoveBegin, + required void Function(jni$_.JObject shoveGestureDetector) onShoveBegin, bool onShoveBegin$async, - required void Function(jni$_.JObject? shoveGestureDetector) onShove, + required void Function(jni$_.JObject shoveGestureDetector) onShove, bool onShove$async, - required void Function(jni$_.JObject? shoveGestureDetector) onShoveEnd, + required void Function(jni$_.JObject shoveGestureDetector) onShoveEnd, bool onShoveEnd$async, }) = _$MapLibreMap$OnShoveListener; - void onShoveBegin(jni$_.JObject? shoveGestureDetector); + void onShoveBegin(jni$_.JObject shoveGestureDetector); bool get onShoveBegin$async => false; - void onShove(jni$_.JObject? shoveGestureDetector); + void onShove(jni$_.JObject shoveGestureDetector); bool get onShove$async => false; - void onShoveEnd(jni$_.JObject? shoveGestureDetector); + void onShoveEnd(jni$_.JObject shoveGestureDetector); bool get onShoveEnd$async => false; } final class _$MapLibreMap$OnShoveListener with $MapLibreMap$OnShoveListener { _$MapLibreMap$OnShoveListener({ - required void Function(jni$_.JObject? shoveGestureDetector) onShoveBegin, + required void Function(jni$_.JObject shoveGestureDetector) onShoveBegin, this.onShoveBegin$async = false, - required void Function(jni$_.JObject? shoveGestureDetector) onShove, + required void Function(jni$_.JObject shoveGestureDetector) onShove, this.onShove$async = false, - required void Function(jni$_.JObject? shoveGestureDetector) onShoveEnd, + required void Function(jni$_.JObject shoveGestureDetector) onShoveEnd, this.onShoveEnd$async = false, - }) : _onShoveBegin = onShoveBegin, - _onShove = onShove, - _onShoveEnd = onShoveEnd; + }) : _onShoveBegin = onShoveBegin, + _onShove = onShove, + _onShoveEnd = onShoveEnd; - final void Function(jni$_.JObject? shoveGestureDetector) _onShoveBegin; + final void Function(jni$_.JObject shoveGestureDetector) _onShoveBegin; final bool onShoveBegin$async; - final void Function(jni$_.JObject? shoveGestureDetector) _onShove; + final void Function(jni$_.JObject shoveGestureDetector) _onShove; final bool onShove$async; - final void Function(jni$_.JObject? shoveGestureDetector) _onShoveEnd; + final void Function(jni$_.JObject shoveGestureDetector) _onShoveEnd; final bool onShoveEnd$async; - void onShoveBegin(jni$_.JObject? shoveGestureDetector) { + void onShoveBegin(jni$_.JObject shoveGestureDetector) { return _onShoveBegin(shoveGestureDetector); } - void onShove(jni$_.JObject? shoveGestureDetector) { + void onShove(jni$_.JObject shoveGestureDetector) { return _onShove(shoveGestureDetector); } - void onShoveEnd(jni$_.JObject? shoveGestureDetector) { + void onShoveEnd(jni$_.JObject shoveGestureDetector) { return _onShoveEnd(shoveGestureDetector); } } @@ -5553,10 +5561,8 @@ final class $MapLibreMap$OnShoveListener$NullableType @core$_.override MapLibreMap$OnShoveListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapLibreMap$OnShoveListener.fromReference( - reference, - ); + ? null + : MapLibreMap$OnShoveListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -5592,9 +5598,7 @@ final class $MapLibreMap$OnShoveListener$Type @jni$_.internal @core$_.override MapLibreMap$OnShoveListener fromReference(jni$_.JReference reference) => - MapLibreMap$OnShoveListener.fromReference( - reference, - ); + MapLibreMap$OnShoveListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -5625,13 +5629,13 @@ class MapLibreMap$SnapshotReadyCallback extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreMap$SnapshotReadyCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreMap$SnapshotReadyCallback.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapLibreMap$SnapshotReadyCallback'); + r'org/maplibre/android/maps/MapLibreMap$SnapshotReadyCallback', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibreMap$SnapshotReadyCallback$NullableType(); @@ -5641,25 +5645,32 @@ class MapLibreMap$SnapshotReadyCallback extends jni$_.JObject { r'(Landroid/graphics/Bitmap;)V', ); - static final _onSnapshotReady = 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 _onSnapshotReady = + 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 onSnapshotReady(android.graphics.Bitmap bitmap)` - void onSnapshotReady( - jni$_.JObject? bitmap, - ) { - final _$bitmap = bitmap?.reference ?? jni$_.jNullReference; - _onSnapshotReady(reference.pointer, - _id_onSnapshotReady as jni$_.JMethodIDPtr, _$bitmap.pointer) - .check(); + void onSnapshotReady(jni$_.JObject bitmap) { + final _$bitmap = bitmap.reference; + _onSnapshotReady( + reference.pointer, + _id_onSnapshotReady as jni$_.JMethodIDPtr, + _$bitmap.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -5671,19 +5682,16 @@ class MapLibreMap$SnapshotReadyCallback extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -5694,7 +5702,7 @@ class MapLibreMap$SnapshotReadyCallback extends jni$_.JObject { final $a = $i.args; if ($d == r'onSnapshotReady(Landroid/graphics/Bitmap;)V') { _$impls[$p]!.onSnapshotReady( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), ); return jni$_.nullptr; } @@ -5745,25 +5753,25 @@ class MapLibreMap$SnapshotReadyCallback extends jni$_.JObject { abstract base mixin class $MapLibreMap$SnapshotReadyCallback { factory $MapLibreMap$SnapshotReadyCallback({ - required void Function(jni$_.JObject? bitmap) onSnapshotReady, + required void Function(jni$_.JObject bitmap) onSnapshotReady, bool onSnapshotReady$async, }) = _$MapLibreMap$SnapshotReadyCallback; - void onSnapshotReady(jni$_.JObject? bitmap); + void onSnapshotReady(jni$_.JObject bitmap); bool get onSnapshotReady$async => false; } final class _$MapLibreMap$SnapshotReadyCallback with $MapLibreMap$SnapshotReadyCallback { _$MapLibreMap$SnapshotReadyCallback({ - required void Function(jni$_.JObject? bitmap) onSnapshotReady, + required void Function(jni$_.JObject bitmap) onSnapshotReady, this.onSnapshotReady$async = false, }) : _onSnapshotReady = onSnapshotReady; - final void Function(jni$_.JObject? bitmap) _onSnapshotReady; + final void Function(jni$_.JObject bitmap) _onSnapshotReady; final bool onSnapshotReady$async; - void onSnapshotReady(jni$_.JObject? bitmap) { + void onSnapshotReady(jni$_.JObject bitmap) { return _onSnapshotReady(bitmap); } } @@ -5781,12 +5789,10 @@ final class $MapLibreMap$SnapshotReadyCallback$NullableType @jni$_.internal @core$_.override MapLibreMap$SnapshotReadyCallback? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapLibreMap$SnapshotReadyCallback.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapLibreMap$SnapshotReadyCallback.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -5824,9 +5830,7 @@ final class $MapLibreMap$SnapshotReadyCallback$Type @jni$_.internal @core$_.override MapLibreMap$SnapshotReadyCallback fromReference(jni$_.JReference reference) => - MapLibreMap$SnapshotReadyCallback.fromReference( - reference, - ); + MapLibreMap$SnapshotReadyCallback.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -5857,13 +5861,13 @@ class MapLibreMap extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreMap.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreMap.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/maps/MapLibreMap'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/maps/MapLibreMap', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibreMap$NullableType(); @@ -5873,22 +5877,89 @@ class MapLibreMap extends jni$_.JObject { r'()V', ); - static final _triggerRepaint = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _triggerRepaint = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void triggerRepaint()` void triggerRepaint() { - _triggerRepaint(reference.pointer, _id_triggerRepaint as jni$_.JMethodIDPtr) - .check(); + _triggerRepaint( + reference.pointer, + _id_triggerRepaint as jni$_.JMethodIDPtr, + ).check(); + } + + static final _id_isRenderingStatsViewEnabled = _class.instanceMethodId( + r'isRenderingStatsViewEnabled', + r'()Z', + ); + + static final _isRenderingStatsViewEnabled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public boolean isRenderingStatsViewEnabled()` + bool isRenderingStatsViewEnabled() { + return _isRenderingStatsViewEnabled( + reference.pointer, + _id_isRenderingStatsViewEnabled as jni$_.JMethodIDPtr, + ).boolean; + } + + static final _id_enableRenderingStatsView = _class.instanceMethodId( + r'enableRenderingStatsView', + r'(Z)V', + ); + + static final _enableRenderingStatsView = + 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, + int, + ) + >(); + + /// from: `public void enableRenderingStatsView(boolean z)` + void enableRenderingStatsView(bool z) { + _enableRenderingStatsView( + reference.pointer, + _id_enableRenderingStatsView as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).check(); } static final _id_setSwapBehaviorFlush = _class.instanceMethodId( @@ -5896,23 +5967,31 @@ class MapLibreMap extends jni$_.JObject { r'(Z)V', ); - static final _setSwapBehaviorFlush = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setSwapBehaviorFlush = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void setSwapBehaviorFlush(boolean z)` - void setSwapBehaviorFlush( - bool z, - ) { - _setSwapBehaviorFlush(reference.pointer, - _id_setSwapBehaviorFlush as jni$_.JMethodIDPtr, z ? 1 : 0) - .check(); + void setSwapBehaviorFlush(bool z) { + _setSwapBehaviorFlush( + reference.pointer, + _id_setSwapBehaviorFlush as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).check(); } static final _id_getStyle = _class.instanceMethodId( @@ -5920,25 +5999,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/Style$OnStyleLoaded;)V', ); - static final _getStyle = 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 _getStyle = + 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 getStyle(org.maplibre.android.maps.Style$OnStyleLoaded onStyleLoaded)` - void getStyle( - style$_.Style$OnStyleLoaded? onStyleLoaded, - ) { - final _$onStyleLoaded = onStyleLoaded?.reference ?? jni$_.jNullReference; - _getStyle(reference.pointer, _id_getStyle as jni$_.JMethodIDPtr, - _$onStyleLoaded.pointer) - .check(); + void getStyle(style$_.Style$OnStyleLoaded onStyleLoaded) { + final _$onStyleLoaded = onStyleLoaded.reference; + _getStyle( + reference.pointer, + _id_getStyle as jni$_.JMethodIDPtr, + _$onStyleLoaded.pointer, + ).check(); } static final _id_getStyle$1 = _class.instanceMethodId( @@ -5946,23 +6032,29 @@ class MapLibreMap extends jni$_.JObject { r'()Lorg/maplibre/android/maps/Style;', ); - static final _getStyle$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getStyle$1 = + 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 org.maplibre.android.maps.Style getStyle()` /// The returned object must be released after use, by calling the [release] method. style$_.Style? getStyle$1() { - return _getStyle$1(reference.pointer, _id_getStyle$1 as jni$_.JMethodIDPtr) - .object(const style$_.$Style$NullableType()); + return _getStyle$1( + reference.pointer, + _id_getStyle$1 as jni$_.JMethodIDPtr, + ).object(const style$_.$Style$NullableType()); } static final _id_setPrefetchesTiles = _class.instanceMethodId( @@ -5970,23 +6062,31 @@ class MapLibreMap extends jni$_.JObject { r'(Z)V', ); - static final _setPrefetchesTiles = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setPrefetchesTiles = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void setPrefetchesTiles(boolean z)` - void setPrefetchesTiles( - bool z, - ) { - _setPrefetchesTiles(reference.pointer, - _id_setPrefetchesTiles as jni$_.JMethodIDPtr, z ? 1 : 0) - .check(); + void setPrefetchesTiles(bool z) { + _setPrefetchesTiles( + reference.pointer, + _id_setPrefetchesTiles as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).check(); } static final _id_getPrefetchesTiles = _class.instanceMethodId( @@ -5994,23 +6094,28 @@ class MapLibreMap extends jni$_.JObject { r'()Z', ); - static final _getPrefetchesTiles = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPrefetchesTiles = + 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 getPrefetchesTiles()` bool getPrefetchesTiles() { return _getPrefetchesTiles( - reference.pointer, _id_getPrefetchesTiles as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_getPrefetchesTiles as jni$_.JMethodIDPtr, + ).boolean; } static final _id_setPrefetchZoomDelta = _class.instanceMethodId( @@ -6018,23 +6123,31 @@ class MapLibreMap extends jni$_.JObject { r'(I)V', ); - static final _setPrefetchZoomDelta = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setPrefetchZoomDelta = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void setPrefetchZoomDelta(int i)` - void setPrefetchZoomDelta( - int i, - ) { - _setPrefetchZoomDelta(reference.pointer, - _id_setPrefetchZoomDelta as jni$_.JMethodIDPtr, i) - .check(); + void setPrefetchZoomDelta(int i) { + _setPrefetchZoomDelta( + reference.pointer, + _id_setPrefetchZoomDelta as jni$_.JMethodIDPtr, + i, + ).check(); } static final _id_getPrefetchZoomDelta = _class.instanceMethodId( @@ -6042,23 +6155,28 @@ class MapLibreMap extends jni$_.JObject { r'()I', ); - static final _getPrefetchZoomDelta = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPrefetchZoomDelta = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int getPrefetchZoomDelta()` int getPrefetchZoomDelta() { return _getPrefetchZoomDelta( - reference.pointer, _id_getPrefetchZoomDelta as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_getPrefetchZoomDelta as jni$_.JMethodIDPtr, + ).integer; } static final _id_setTileCacheEnabled = _class.instanceMethodId( @@ -6066,23 +6184,31 @@ class MapLibreMap extends jni$_.JObject { r'(Z)V', ); - static final _setTileCacheEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setTileCacheEnabled = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void setTileCacheEnabled(boolean z)` - void setTileCacheEnabled( - bool z, - ) { - _setTileCacheEnabled(reference.pointer, - _id_setTileCacheEnabled as jni$_.JMethodIDPtr, z ? 1 : 0) - .check(); + void setTileCacheEnabled(bool z) { + _setTileCacheEnabled( + reference.pointer, + _id_setTileCacheEnabled as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).check(); } static final _id_getTileCacheEnabled = _class.instanceMethodId( @@ -6090,47 +6216,304 @@ class MapLibreMap extends jni$_.JObject { r'()Z', ); - static final _getTileCacheEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getTileCacheEnabled = + 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 getTileCacheEnabled()` bool getTileCacheEnabled() { return _getTileCacheEnabled( - reference.pointer, _id_getTileCacheEnabled as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_getTileCacheEnabled as jni$_.JMethodIDPtr, + ).boolean; } - static final _id_setMinZoomPreference = _class.instanceMethodId( - r'setMinZoomPreference', + static final _id_setTileLodMinRadius = _class.instanceMethodId( + r'setTileLodMinRadius', r'(D)V', ); - static final _setMinZoomPreference = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setTileLodMinRadius = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); + + /// from: `public void setTileLodMinRadius(double d)` + void setTileLodMinRadius(double d) { + _setTileLodMinRadius( + reference.pointer, + _id_setTileLodMinRadius as jni$_.JMethodIDPtr, + d, + ).check(); + } + + static final _id_getTileLodMinRadius = _class.instanceMethodId( + r'getTileLodMinRadius', + r'()D', + ); + + static final _getTileLodMinRadius = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public double getTileLodMinRadius()` + double getTileLodMinRadius() { + return _getTileLodMinRadius( + reference.pointer, + _id_getTileLodMinRadius as jni$_.JMethodIDPtr, + ).doubleFloat; + } + + static final _id_setTileLodScale = _class.instanceMethodId( + r'setTileLodScale', + r'(D)V', + ); + + static final _setTileLodScale = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); + + /// from: `public void setTileLodScale(double d)` + void setTileLodScale(double d) { + _setTileLodScale( + reference.pointer, + _id_setTileLodScale as jni$_.JMethodIDPtr, + d, + ).check(); + } + + static final _id_getTileLodScale = _class.instanceMethodId( + r'getTileLodScale', + r'()D', + ); + + static final _getTileLodScale = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public double getTileLodScale()` + double getTileLodScale() { + return _getTileLodScale( + reference.pointer, + _id_getTileLodScale as jni$_.JMethodIDPtr, + ).doubleFloat; + } + + static final _id_setTileLodPitchThreshold = _class.instanceMethodId( + r'setTileLodPitchThreshold', + r'(D)V', + ); + + static final _setTileLodPitchThreshold = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); + + /// from: `public void setTileLodPitchThreshold(double d)` + void setTileLodPitchThreshold(double d) { + _setTileLodPitchThreshold( + reference.pointer, + _id_setTileLodPitchThreshold as jni$_.JMethodIDPtr, + d, + ).check(); + } + + static final _id_getTileLodPitchThreshold = _class.instanceMethodId( + r'getTileLodPitchThreshold', + r'()D', + ); + + static final _getTileLodPitchThreshold = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public double getTileLodPitchThreshold()` + double getTileLodPitchThreshold() { + return _getTileLodPitchThreshold( + reference.pointer, + _id_getTileLodPitchThreshold as jni$_.JMethodIDPtr, + ).doubleFloat; + } + + static final _id_setTileLodZoomShift = _class.instanceMethodId( + r'setTileLodZoomShift', + r'(D)V', + ); + + static final _setTileLodZoomShift = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); + + /// from: `public void setTileLodZoomShift(double d)` + void setTileLodZoomShift(double d) { + _setTileLodZoomShift( + reference.pointer, + _id_setTileLodZoomShift as jni$_.JMethodIDPtr, + d, + ).check(); + } + + static final _id_getTileLodZoomShift = _class.instanceMethodId( + r'getTileLodZoomShift', + r'()D', + ); + + static final _getTileLodZoomShift = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public double getTileLodZoomShift()` + double getTileLodZoomShift() { + return _getTileLodZoomShift( + reference.pointer, + _id_getTileLodZoomShift as jni$_.JMethodIDPtr, + ).doubleFloat; + } + + static final _id_setMinZoomPreference = _class.instanceMethodId( + r'setMinZoomPreference', + r'(D)V', + ); + + static final _setMinZoomPreference = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public void setMinZoomPreference(double d)` - void setMinZoomPreference( - double d, - ) { - _setMinZoomPreference(reference.pointer, - _id_setMinZoomPreference as jni$_.JMethodIDPtr, d) - .check(); + void setMinZoomPreference(double d) { + _setMinZoomPreference( + reference.pointer, + _id_setMinZoomPreference as jni$_.JMethodIDPtr, + d, + ).check(); } static final _id_getMinZoomLevel = _class.instanceMethodId( @@ -6138,23 +6521,28 @@ class MapLibreMap extends jni$_.JObject { r'()D', ); - static final _getMinZoomLevel = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getMinZoomLevel = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public double getMinZoomLevel()` double getMinZoomLevel() { return _getMinZoomLevel( - reference.pointer, _id_getMinZoomLevel as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getMinZoomLevel as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_setMaxZoomPreference = _class.instanceMethodId( @@ -6162,23 +6550,31 @@ class MapLibreMap extends jni$_.JObject { r'(D)V', ); - static final _setMaxZoomPreference = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setMaxZoomPreference = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public void setMaxZoomPreference(double d)` - void setMaxZoomPreference( - double d, - ) { - _setMaxZoomPreference(reference.pointer, - _id_setMaxZoomPreference as jni$_.JMethodIDPtr, d) - .check(); + void setMaxZoomPreference(double d) { + _setMaxZoomPreference( + reference.pointer, + _id_setMaxZoomPreference as jni$_.JMethodIDPtr, + d, + ).check(); } static final _id_getMaxZoomLevel = _class.instanceMethodId( @@ -6186,23 +6582,28 @@ class MapLibreMap extends jni$_.JObject { r'()D', ); - static final _getMaxZoomLevel = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getMaxZoomLevel = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public double getMaxZoomLevel()` double getMaxZoomLevel() { return _getMaxZoomLevel( - reference.pointer, _id_getMaxZoomLevel as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getMaxZoomLevel as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_setMinPitchPreference = _class.instanceMethodId( @@ -6210,23 +6611,31 @@ class MapLibreMap extends jni$_.JObject { r'(D)V', ); - static final _setMinPitchPreference = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setMinPitchPreference = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public void setMinPitchPreference(double d)` - void setMinPitchPreference( - double d, - ) { - _setMinPitchPreference(reference.pointer, - _id_setMinPitchPreference as jni$_.JMethodIDPtr, d) - .check(); + void setMinPitchPreference(double d) { + _setMinPitchPreference( + reference.pointer, + _id_setMinPitchPreference as jni$_.JMethodIDPtr, + d, + ).check(); } static final _id_getMinPitch = _class.instanceMethodId( @@ -6234,23 +6643,28 @@ class MapLibreMap extends jni$_.JObject { r'()D', ); - static final _getMinPitch = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getMinPitch = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public double getMinPitch()` double getMinPitch() { return _getMinPitch( - reference.pointer, _id_getMinPitch as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getMinPitch as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_setMaxPitchPreference = _class.instanceMethodId( @@ -6258,23 +6672,31 @@ class MapLibreMap extends jni$_.JObject { r'(D)V', ); - static final _setMaxPitchPreference = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setMaxPitchPreference = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public void setMaxPitchPreference(double d)` - void setMaxPitchPreference( - double d, - ) { - _setMaxPitchPreference(reference.pointer, - _id_setMaxPitchPreference as jni$_.JMethodIDPtr, d) - .check(); + void setMaxPitchPreference(double d) { + _setMaxPitchPreference( + reference.pointer, + _id_setMaxPitchPreference as jni$_.JMethodIDPtr, + d, + ).check(); } static final _id_getMaxPitch = _class.instanceMethodId( @@ -6282,23 +6704,28 @@ class MapLibreMap extends jni$_.JObject { r'()D', ); - static final _getMaxPitch = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getMaxPitch = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public double getMaxPitch()` double getMaxPitch() { return _getMaxPitch( - reference.pointer, _id_getMaxPitch as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getMaxPitch as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_getUiSettings = _class.instanceMethodId( @@ -6306,25 +6733,29 @@ class MapLibreMap extends jni$_.JObject { r'()Lorg/maplibre/android/maps/UiSettings;', ); - static final _getUiSettings = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getUiSettings = + 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 org.maplibre.android.maps.UiSettings getUiSettings()` /// The returned object must be released after use, by calling the [release] method. - uisettings$_.UiSettings? getUiSettings() { + uisettings$_.UiSettings getUiSettings() { return _getUiSettings( - reference.pointer, _id_getUiSettings as jni$_.JMethodIDPtr) - .object( - const uisettings$_.$UiSettings$NullableType()); + reference.pointer, + _id_getUiSettings as jni$_.JMethodIDPtr, + ).object(const uisettings$_.$UiSettings$Type()); } static final _id_getProjection = _class.instanceMethodId( @@ -6332,25 +6763,29 @@ class MapLibreMap extends jni$_.JObject { r'()Lorg/maplibre/android/maps/Projection;', ); - static final _getProjection = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getProjection = + 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 org.maplibre.android.maps.Projection getProjection()` /// The returned object must be released after use, by calling the [release] method. - projection$_.Projection? getProjection() { + projection$_.Projection getProjection() { return _getProjection( - reference.pointer, _id_getProjection as jni$_.JMethodIDPtr) - .object( - const projection$_.$Projection$NullableType()); + reference.pointer, + _id_getProjection as jni$_.JMethodIDPtr, + ).object(const projection$_.$Projection$Type()); } static final _id_cancelTransitions = _class.instanceMethodId( @@ -6358,23 +6793,28 @@ class MapLibreMap extends jni$_.JObject { r'()V', ); - static final _cancelTransitions = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _cancelTransitions = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void cancelTransitions()` void cancelTransitions() { _cancelTransitions( - reference.pointer, _id_cancelTransitions as jni$_.JMethodIDPtr) - .check(); + reference.pointer, + _id_cancelTransitions as jni$_.JMethodIDPtr, + ).check(); } static final _id_getCameraPosition = _class.instanceMethodId( @@ -6382,25 +6822,31 @@ class MapLibreMap extends jni$_.JObject { r'()Lorg/maplibre/android/camera/CameraPosition;', ); - static final _getCameraPosition = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getCameraPosition = + 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 org.maplibre.android.camera.CameraPosition getCameraPosition()` /// The returned object must be released after use, by calling the [release] method. - cameraposition$_.CameraPosition? getCameraPosition() { + cameraposition$_.CameraPosition getCameraPosition() { return _getCameraPosition( - reference.pointer, _id_getCameraPosition as jni$_.JMethodIDPtr) - .object( - const cameraposition$_.$CameraPosition$NullableType()); + reference.pointer, + _id_getCameraPosition as jni$_.JMethodIDPtr, + ).object( + const cameraposition$_.$CameraPosition$Type(), + ); } static final _id_setCameraPosition = _class.instanceMethodId( @@ -6408,27 +6854,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/camera/CameraPosition;)V', ); - static final _setCameraPosition = 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 _setCameraPosition = + 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 setCameraPosition(org.maplibre.android.camera.CameraPosition cameraPosition)` - void setCameraPosition( - cameraposition$_.CameraPosition? cameraPosition, - ) { - final _$cameraPosition = cameraPosition?.reference ?? jni$_.jNullReference; + void setCameraPosition(cameraposition$_.CameraPosition cameraPosition) { + final _$cameraPosition = cameraPosition.reference; _setCameraPosition( - reference.pointer, - _id_setCameraPosition as jni$_.JMethodIDPtr, - _$cameraPosition.pointer) - .check(); + reference.pointer, + _id_setCameraPosition as jni$_.JMethodIDPtr, + _$cameraPosition.pointer, + ).check(); } static final _id_moveCamera = _class.instanceMethodId( @@ -6436,25 +6887,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/camera/CameraUpdate;)V', ); - static final _moveCamera = 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 _moveCamera = + 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 final void moveCamera(org.maplibre.android.camera.CameraUpdate cameraUpdate)` - void moveCamera( - cameraupdate$_.CameraUpdate? cameraUpdate, - ) { - final _$cameraUpdate = cameraUpdate?.reference ?? jni$_.jNullReference; - _moveCamera(reference.pointer, _id_moveCamera as jni$_.JMethodIDPtr, - _$cameraUpdate.pointer) - .check(); + void moveCamera(cameraupdate$_.CameraUpdate cameraUpdate) { + final _$cameraUpdate = cameraUpdate.reference; + _moveCamera( + reference.pointer, + _id_moveCamera as jni$_.JMethodIDPtr, + _$cameraUpdate.pointer, + ).check(); } static final _id_moveCamera$1 = _class.instanceMethodId( @@ -6462,34 +6920,41 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/camera/CameraUpdate;Lorg/maplibre/android/maps/MapLibreMap$CancelableCallback;)V', ); - static final _moveCamera$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _moveCamera$1 = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final void moveCamera(org.maplibre.android.camera.CameraUpdate cameraUpdate, org.maplibre.android.maps.MapLibreMap$CancelableCallback cancelableCallback)` void moveCamera$1( - cameraupdate$_.CameraUpdate? cameraUpdate, + cameraupdate$_.CameraUpdate cameraUpdate, MapLibreMap$CancelableCallback? cancelableCallback, ) { - final _$cameraUpdate = cameraUpdate?.reference ?? jni$_.jNullReference; + final _$cameraUpdate = cameraUpdate.reference; final _$cancelableCallback = cancelableCallback?.reference ?? jni$_.jNullReference; - _moveCamera$1(reference.pointer, _id_moveCamera$1 as jni$_.JMethodIDPtr, - _$cameraUpdate.pointer, _$cancelableCallback.pointer) - .check(); + _moveCamera$1( + reference.pointer, + _id_moveCamera$1 as jni$_.JMethodIDPtr, + _$cameraUpdate.pointer, + _$cancelableCallback.pointer, + ).check(); } static final _id_easeCamera = _class.instanceMethodId( @@ -6497,25 +6962,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/camera/CameraUpdate;)V', ); - static final _easeCamera = 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 _easeCamera = + 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 final void easeCamera(org.maplibre.android.camera.CameraUpdate cameraUpdate)` - void easeCamera( - cameraupdate$_.CameraUpdate? cameraUpdate, - ) { - final _$cameraUpdate = cameraUpdate?.reference ?? jni$_.jNullReference; - _easeCamera(reference.pointer, _id_easeCamera as jni$_.JMethodIDPtr, - _$cameraUpdate.pointer) - .check(); + void easeCamera(cameraupdate$_.CameraUpdate cameraUpdate) { + final _$cameraUpdate = cameraUpdate.reference; + _easeCamera( + reference.pointer, + _id_easeCamera as jni$_.JMethodIDPtr, + _$cameraUpdate.pointer, + ).check(); } static final _id_easeCamera$1 = _class.instanceMethodId( @@ -6523,34 +6995,41 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/camera/CameraUpdate;Lorg/maplibre/android/maps/MapLibreMap$CancelableCallback;)V', ); - static final _easeCamera$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _easeCamera$1 = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final void easeCamera(org.maplibre.android.camera.CameraUpdate cameraUpdate, org.maplibre.android.maps.MapLibreMap$CancelableCallback cancelableCallback)` void easeCamera$1( - cameraupdate$_.CameraUpdate? cameraUpdate, + cameraupdate$_.CameraUpdate cameraUpdate, MapLibreMap$CancelableCallback? cancelableCallback, ) { - final _$cameraUpdate = cameraUpdate?.reference ?? jni$_.jNullReference; + final _$cameraUpdate = cameraUpdate.reference; final _$cancelableCallback = cancelableCallback?.reference ?? jni$_.jNullReference; - _easeCamera$1(reference.pointer, _id_easeCamera$1 as jni$_.JMethodIDPtr, - _$cameraUpdate.pointer, _$cancelableCallback.pointer) - .check(); + _easeCamera$1( + reference.pointer, + _id_easeCamera$1 as jni$_.JMethodIDPtr, + _$cameraUpdate.pointer, + _$cancelableCallback.pointer, + ).check(); } static final _id_easeCamera$2 = _class.instanceMethodId( @@ -6558,27 +7037,34 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/camera/CameraUpdate;I)V', ); - static final _easeCamera$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _easeCamera$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public final void easeCamera(org.maplibre.android.camera.CameraUpdate cameraUpdate, int i)` - void easeCamera$2( - cameraupdate$_.CameraUpdate? cameraUpdate, - int i, - ) { - final _$cameraUpdate = cameraUpdate?.reference ?? jni$_.jNullReference; - _easeCamera$2(reference.pointer, _id_easeCamera$2 as jni$_.JMethodIDPtr, - _$cameraUpdate.pointer, i) - .check(); + void easeCamera$2(cameraupdate$_.CameraUpdate cameraUpdate, int i) { + final _$cameraUpdate = cameraUpdate.reference; + _easeCamera$2( + reference.pointer, + _id_easeCamera$2 as jni$_.JMethodIDPtr, + _$cameraUpdate.pointer, + i, + ).check(); } static final _id_easeCamera$3 = _class.instanceMethodId( @@ -6586,37 +7072,48 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/camera/CameraUpdate;ILorg/maplibre/android/maps/MapLibreMap$CancelableCallback;)V', ); - static final _easeCamera$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _easeCamera$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final void easeCamera(org.maplibre.android.camera.CameraUpdate cameraUpdate, int i, org.maplibre.android.maps.MapLibreMap$CancelableCallback cancelableCallback)` void easeCamera$3( - cameraupdate$_.CameraUpdate? cameraUpdate, + cameraupdate$_.CameraUpdate cameraUpdate, int i, MapLibreMap$CancelableCallback? cancelableCallback, ) { - final _$cameraUpdate = cameraUpdate?.reference ?? jni$_.jNullReference; + final _$cameraUpdate = cameraUpdate.reference; final _$cancelableCallback = cancelableCallback?.reference ?? jni$_.jNullReference; - _easeCamera$3(reference.pointer, _id_easeCamera$3 as jni$_.JMethodIDPtr, - _$cameraUpdate.pointer, i, _$cancelableCallback.pointer) - .check(); + _easeCamera$3( + reference.pointer, + _id_easeCamera$3 as jni$_.JMethodIDPtr, + _$cameraUpdate.pointer, + i, + _$cancelableCallback.pointer, + ).check(); } static final _id_easeCamera$4 = _class.instanceMethodId( @@ -6624,31 +7121,38 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/camera/CameraUpdate;IZ)V', ); - static final _easeCamera$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _easeCamera$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `public final void easeCamera(org.maplibre.android.camera.CameraUpdate cameraUpdate, int i, boolean z)` - void easeCamera$4( - cameraupdate$_.CameraUpdate? cameraUpdate, - int i, - bool z, - ) { - final _$cameraUpdate = cameraUpdate?.reference ?? jni$_.jNullReference; - _easeCamera$4(reference.pointer, _id_easeCamera$4 as jni$_.JMethodIDPtr, - _$cameraUpdate.pointer, i, z ? 1 : 0) - .check(); + void easeCamera$4(cameraupdate$_.CameraUpdate cameraUpdate, int i, bool z) { + final _$cameraUpdate = cameraUpdate.reference; + _easeCamera$4( + reference.pointer, + _id_easeCamera$4 as jni$_.JMethodIDPtr, + _$cameraUpdate.pointer, + i, + z ? 1 : 0, + ).check(); } static final _id_easeCamera$5 = _class.instanceMethodId( @@ -6656,40 +7160,52 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/camera/CameraUpdate;IZLorg/maplibre/android/maps/MapLibreMap$CancelableCallback;)V', ); - static final _easeCamera$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _easeCamera$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final void easeCamera(org.maplibre.android.camera.CameraUpdate cameraUpdate, int i, boolean z, org.maplibre.android.maps.MapLibreMap$CancelableCallback cancelableCallback)` void easeCamera$5( - cameraupdate$_.CameraUpdate? cameraUpdate, + cameraupdate$_.CameraUpdate cameraUpdate, int i, bool z, MapLibreMap$CancelableCallback? cancelableCallback, ) { - final _$cameraUpdate = cameraUpdate?.reference ?? jni$_.jNullReference; + final _$cameraUpdate = cameraUpdate.reference; final _$cancelableCallback = cancelableCallback?.reference ?? jni$_.jNullReference; - _easeCamera$5(reference.pointer, _id_easeCamera$5 as jni$_.JMethodIDPtr, - _$cameraUpdate.pointer, i, z ? 1 : 0, _$cancelableCallback.pointer) - .check(); + _easeCamera$5( + reference.pointer, + _id_easeCamera$5 as jni$_.JMethodIDPtr, + _$cameraUpdate.pointer, + i, + z ? 1 : 0, + _$cancelableCallback.pointer, + ).check(); } static final _id_animateCamera = _class.instanceMethodId( @@ -6697,25 +7213,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/camera/CameraUpdate;)V', ); - static final _animateCamera = 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 _animateCamera = + 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 final void animateCamera(org.maplibre.android.camera.CameraUpdate cameraUpdate)` - void animateCamera( - cameraupdate$_.CameraUpdate? cameraUpdate, - ) { - final _$cameraUpdate = cameraUpdate?.reference ?? jni$_.jNullReference; - _animateCamera(reference.pointer, _id_animateCamera as jni$_.JMethodIDPtr, - _$cameraUpdate.pointer) - .check(); + void animateCamera(cameraupdate$_.CameraUpdate cameraUpdate) { + final _$cameraUpdate = cameraUpdate.reference; + _animateCamera( + reference.pointer, + _id_animateCamera as jni$_.JMethodIDPtr, + _$cameraUpdate.pointer, + ).check(); } static final _id_animateCamera$1 = _class.instanceMethodId( @@ -6723,37 +7246,41 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/camera/CameraUpdate;Lorg/maplibre/android/maps/MapLibreMap$CancelableCallback;)V', ); - static final _animateCamera$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _animateCamera$1 = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final void animateCamera(org.maplibre.android.camera.CameraUpdate cameraUpdate, org.maplibre.android.maps.MapLibreMap$CancelableCallback cancelableCallback)` void animateCamera$1( - cameraupdate$_.CameraUpdate? cameraUpdate, + cameraupdate$_.CameraUpdate cameraUpdate, MapLibreMap$CancelableCallback? cancelableCallback, ) { - final _$cameraUpdate = cameraUpdate?.reference ?? jni$_.jNullReference; + final _$cameraUpdate = cameraUpdate.reference; final _$cancelableCallback = cancelableCallback?.reference ?? jni$_.jNullReference; _animateCamera$1( - reference.pointer, - _id_animateCamera$1 as jni$_.JMethodIDPtr, - _$cameraUpdate.pointer, - _$cancelableCallback.pointer) - .check(); + reference.pointer, + _id_animateCamera$1 as jni$_.JMethodIDPtr, + _$cameraUpdate.pointer, + _$cancelableCallback.pointer, + ).check(); } static final _id_animateCamera$2 = _class.instanceMethodId( @@ -6761,30 +7288,34 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/camera/CameraUpdate;I)V', ); - static final _animateCamera$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _animateCamera$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public final void animateCamera(org.maplibre.android.camera.CameraUpdate cameraUpdate, int i)` - void animateCamera$2( - cameraupdate$_.CameraUpdate? cameraUpdate, - int i, - ) { - final _$cameraUpdate = cameraUpdate?.reference ?? jni$_.jNullReference; + void animateCamera$2(cameraupdate$_.CameraUpdate cameraUpdate, int i) { + final _$cameraUpdate = cameraUpdate.reference; _animateCamera$2( - reference.pointer, - _id_animateCamera$2 as jni$_.JMethodIDPtr, - _$cameraUpdate.pointer, - i) - .check(); + reference.pointer, + _id_animateCamera$2 as jni$_.JMethodIDPtr, + _$cameraUpdate.pointer, + i, + ).check(); } static final _id_animateCamera$3 = _class.instanceMethodId( @@ -6792,120 +7323,138 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/camera/CameraUpdate;ILorg/maplibre/android/maps/MapLibreMap$CancelableCallback;)V', ); - static final _animateCamera$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _animateCamera$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final void animateCamera(org.maplibre.android.camera.CameraUpdate cameraUpdate, int i, org.maplibre.android.maps.MapLibreMap$CancelableCallback cancelableCallback)` void animateCamera$3( - cameraupdate$_.CameraUpdate? cameraUpdate, + cameraupdate$_.CameraUpdate cameraUpdate, int i, MapLibreMap$CancelableCallback? cancelableCallback, ) { - final _$cameraUpdate = cameraUpdate?.reference ?? jni$_.jNullReference; + final _$cameraUpdate = cameraUpdate.reference; final _$cancelableCallback = cancelableCallback?.reference ?? jni$_.jNullReference; _animateCamera$3( - reference.pointer, - _id_animateCamera$3 as jni$_.JMethodIDPtr, - _$cameraUpdate.pointer, - i, - _$cancelableCallback.pointer) - .check(); - } - - static final _id_scrollBy = _class.instanceMethodId( - r'scrollBy', - r'(FF)V', - ); - - static final _scrollBy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Double, jni$_.Double)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double, double)>(); + reference.pointer, + _id_animateCamera$3 as jni$_.JMethodIDPtr, + _$cameraUpdate.pointer, + i, + _$cancelableCallback.pointer, + ).check(); + } + + static final _id_scrollBy = _class.instanceMethodId(r'scrollBy', r'(FF)V'); + + static final _scrollBy = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double, jni$_.Double)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + double, + ) + >(); /// from: `public void scrollBy(float f, float f1)` - void scrollBy( - double f, - double f1, - ) { - _scrollBy(reference.pointer, _id_scrollBy as jni$_.JMethodIDPtr, f, f1) - .check(); + void scrollBy(double f, double f1) { + _scrollBy( + reference.pointer, + _id_scrollBy as jni$_.JMethodIDPtr, + f, + f1, + ).check(); } - static final _id_scrollBy$1 = _class.instanceMethodId( - r'scrollBy', - r'(FFJ)V', - ); + static final _id_scrollBy$1 = _class.instanceMethodId(r'scrollBy', r'(FFJ)V'); - static final _scrollBy$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _scrollBy$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Double, - jni$_.Int64 - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, double, double, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double, jni$_.Double, jni$_.Int64)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + double, + int, + ) + >(); /// from: `public void scrollBy(float f, float f1, long j)` - void scrollBy$1( - double f, - double f1, - int j, - ) { + void scrollBy$1(double f, double f1, int j) { _scrollBy$1( - reference.pointer, _id_scrollBy$1 as jni$_.JMethodIDPtr, f, f1, j) - .check(); + reference.pointer, + _id_scrollBy$1 as jni$_.JMethodIDPtr, + f, + f1, + j, + ).check(); } - static final _id_getZoom = _class.instanceMethodId( - r'getZoom', - r'()D', - ); + static final _id_getZoom = _class.instanceMethodId(r'getZoom', r'()D'); - static final _getZoom = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getZoom = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public double getZoom()` double getZoom() { - return _getZoom(reference.pointer, _id_getZoom as jni$_.JMethodIDPtr) - .doubleFloat; + return _getZoom( + reference.pointer, + _id_getZoom as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_setZoom = _class.instanceMethodId( @@ -6913,54 +7462,64 @@ class MapLibreMap extends jni$_.JObject { r'(DLandroid/graphics/PointF;J)V', ); - static final _setZoom = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setZoom = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Pointer, - jni$_.Int64 - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, double, jni$_.Pointer, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Double, jni$_.Pointer, jni$_.Int64) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + jni$_.Pointer, + int, + ) + >(); /// from: `public void setZoom(double d, android.graphics.PointF pointF, long j)` - void setZoom( - double d, - pointf$_.PointF? pointF, - int j, - ) { - final _$pointF = pointF?.reference ?? jni$_.jNullReference; - _setZoom(reference.pointer, _id_setZoom as jni$_.JMethodIDPtr, d, - _$pointF.pointer, j) - .check(); + void setZoom(double d, pointf$_.PointF pointF, int j) { + final _$pointF = pointF.reference; + _setZoom( + reference.pointer, + _id_setZoom as jni$_.JMethodIDPtr, + d, + _$pointF.pointer, + j, + ).check(); } - static final _id_resetNorth = _class.instanceMethodId( - r'resetNorth', - r'()V', - ); + static final _id_resetNorth = _class.instanceMethodId(r'resetNorth', r'()V'); - static final _resetNorth = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _resetNorth = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void resetNorth()` void resetNorth() { - _resetNorth(reference.pointer, _id_resetNorth as jni$_.JMethodIDPtr) - .check(); + _resetNorth( + reference.pointer, + _id_resetNorth as jni$_.JMethodIDPtr, + ).check(); } static final _id_setFocalBearing = _class.instanceMethodId( @@ -6968,78 +7527,91 @@ class MapLibreMap extends jni$_.JObject { r'(DFFJ)V', ); - static final _setFocalBearing = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setFocalBearing = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Double, - jni$_.Double, - jni$_.Double, - jni$_.Int64 - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, double, double, double, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Double, jni$_.Double, jni$_.Double, jni$_.Int64) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + double, + double, + int, + ) + >(); /// from: `public void setFocalBearing(double d, float f, float f1, long j)` - void setFocalBearing( - double d, - double f, - double f1, - int j, - ) { - _setFocalBearing(reference.pointer, - _id_setFocalBearing as jni$_.JMethodIDPtr, d, f, f1, j) - .check(); + void setFocalBearing(double d, double f, double f1, int j) { + _setFocalBearing( + reference.pointer, + _id_setFocalBearing as jni$_.JMethodIDPtr, + d, + f, + f1, + j, + ).check(); } - static final _id_getHeight = _class.instanceMethodId( - r'getHeight', - r'()F', - ); + static final _id_getHeight = _class.instanceMethodId(r'getHeight', r'()F'); - static final _getHeight = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getHeight = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float getHeight()` double getHeight() { - return _getHeight(reference.pointer, _id_getHeight as jni$_.JMethodIDPtr) - .float; + return _getHeight( + reference.pointer, + _id_getHeight as jni$_.JMethodIDPtr, + ).float; } - static final _id_getWidth = _class.instanceMethodId( - r'getWidth', - r'()F', - ); + static final _id_getWidth = _class.instanceMethodId(r'getWidth', r'()F'); - static final _getWidth = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getWidth = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float getWidth()` double getWidth() { - return _getWidth(reference.pointer, _id_getWidth as jni$_.JMethodIDPtr) - .float; + return _getWidth( + reference.pointer, + _id_getWidth as jni$_.JMethodIDPtr, + ).float; } static final _id_setOfflineRegionDefinition = _class.instanceMethodId( @@ -7049,27 +7621,32 @@ class MapLibreMap extends jni$_.JObject { static final _setOfflineRegionDefinition = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void setOfflineRegionDefinition(org.maplibre.android.offline.OfflineRegionDefinition offlineRegionDefinition)` void setOfflineRegionDefinition( - offlineregiondefinition$_.OfflineRegionDefinition? offlineRegionDefinition, + offlineregiondefinition$_.OfflineRegionDefinition offlineRegionDefinition, ) { - final _$offlineRegionDefinition = - offlineRegionDefinition?.reference ?? jni$_.jNullReference; + final _$offlineRegionDefinition = offlineRegionDefinition.reference; _setOfflineRegionDefinition( - reference.pointer, - _id_setOfflineRegionDefinition as jni$_.JMethodIDPtr, - _$offlineRegionDefinition.pointer) - .check(); + reference.pointer, + _id_setOfflineRegionDefinition as jni$_.JMethodIDPtr, + _$offlineRegionDefinition.pointer, + ).check(); } static final _id_setOfflineRegionDefinition$1 = _class.instanceMethodId( @@ -7079,36 +7656,38 @@ class MapLibreMap extends jni$_.JObject { static final _setOfflineRegionDefinition$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); + 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 setOfflineRegionDefinition(org.maplibre.android.offline.OfflineRegionDefinition offlineRegionDefinition, org.maplibre.android.maps.Style$OnStyleLoaded onStyleLoaded)` void setOfflineRegionDefinition$1( - offlineregiondefinition$_.OfflineRegionDefinition? offlineRegionDefinition, + offlineregiondefinition$_.OfflineRegionDefinition offlineRegionDefinition, style$_.Style$OnStyleLoaded? onStyleLoaded, ) { - final _$offlineRegionDefinition = - offlineRegionDefinition?.reference ?? jni$_.jNullReference; + final _$offlineRegionDefinition = offlineRegionDefinition.reference; final _$onStyleLoaded = onStyleLoaded?.reference ?? jni$_.jNullReference; _setOfflineRegionDefinition$1( - reference.pointer, - _id_setOfflineRegionDefinition$1 as jni$_.JMethodIDPtr, - _$offlineRegionDefinition.pointer, - _$onStyleLoaded.pointer) - .check(); + reference.pointer, + _id_setOfflineRegionDefinition$1 as jni$_.JMethodIDPtr, + _$offlineRegionDefinition.pointer, + _$onStyleLoaded.pointer, + ).check(); } static final _id_isDebugActive = _class.instanceMethodId( @@ -7116,23 +7695,28 @@ class MapLibreMap extends jni$_.JObject { r'()Z', ); - static final _isDebugActive = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isDebugActive = + 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 isDebugActive()` bool isDebugActive() { return _isDebugActive( - reference.pointer, _id_isDebugActive as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_isDebugActive as jni$_.JMethodIDPtr, + ).boolean; } static final _id_setDebugActive = _class.instanceMethodId( @@ -7140,23 +7724,31 @@ class MapLibreMap extends jni$_.JObject { r'(Z)V', ); - static final _setDebugActive = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setDebugActive = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void setDebugActive(boolean z)` - void setDebugActive( - bool z, - ) { - _setDebugActive(reference.pointer, _id_setDebugActive as jni$_.JMethodIDPtr, - z ? 1 : 0) - .check(); + void setDebugActive(bool z) { + _setDebugActive( + reference.pointer, + _id_setDebugActive as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).check(); } static final _id_cycleDebugOptions = _class.instanceMethodId( @@ -7164,23 +7756,125 @@ class MapLibreMap extends jni$_.JObject { r'()V', ); - static final _cycleDebugOptions = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _cycleDebugOptions = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void cycleDebugOptions()` void cycleDebugOptions() { _cycleDebugOptions( - reference.pointer, _id_cycleDebugOptions as jni$_.JMethodIDPtr) - .check(); + reference.pointer, + _id_cycleDebugOptions as jni$_.JMethodIDPtr, + ).check(); + } + + static final _id_getActionJournalLogFiles = _class.instanceMethodId( + r'getActionJournalLogFiles', + r'()[Ljava/lang/String;', + ); + + static final _getActionJournalLogFiles = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public java.lang.String[] getActionJournalLogFiles()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JArray? getActionJournalLogFiles() { + return _getActionJournalLogFiles( + reference.pointer, + _id_getActionJournalLogFiles as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JArrayNullableType( + jni$_.JStringNullableType(), + ), + ); + } + + static final _id_getActionJournalLog = _class.instanceMethodId( + r'getActionJournalLog', + r'()[Ljava/lang/String;', + ); + + static final _getActionJournalLog = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public java.lang.String[] getActionJournalLog()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JArray? getActionJournalLog() { + return _getActionJournalLog( + reference.pointer, + _id_getActionJournalLog as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JArrayNullableType( + jni$_.JStringNullableType(), + ), + ); + } + + static final _id_clearActionJournalLog = _class.instanceMethodId( + r'clearActionJournalLog', + r'()V', + ); + + static final _clearActionJournalLog = + 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 clearActionJournalLog()` + void clearActionJournalLog() { + _clearActionJournalLog( + reference.pointer, + _id_clearActionJournalLog as jni$_.JMethodIDPtr, + ).check(); } static final _id_setStyle = _class.instanceMethodId( @@ -7188,25 +7882,32 @@ class MapLibreMap extends jni$_.JObject { r'(Ljava/lang/String;)V', ); - static final _setStyle = 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 _setStyle = + 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 setStyle(java.lang.String string)` - void setStyle( - jni$_.JString? string, - ) { + void setStyle(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _setStyle(reference.pointer, _id_setStyle as jni$_.JMethodIDPtr, - _$string.pointer) - .check(); + _setStyle( + reference.pointer, + _id_setStyle as jni$_.JMethodIDPtr, + _$string.pointer, + ).check(); } static final _id_setStyle$1 = _class.instanceMethodId( @@ -7214,22 +7915,26 @@ class MapLibreMap extends jni$_.JObject { r'(Ljava/lang/String;Lorg/maplibre/android/maps/Style$OnStyleLoaded;)V', ); - static final _setStyle$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setStyle$1 = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void setStyle(java.lang.String string, org.maplibre.android.maps.Style$OnStyleLoaded onStyleLoaded)` void setStyle$1( @@ -7238,9 +7943,12 @@ class MapLibreMap extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$onStyleLoaded = onStyleLoaded?.reference ?? jni$_.jNullReference; - _setStyle$1(reference.pointer, _id_setStyle$1 as jni$_.JMethodIDPtr, - _$string.pointer, _$onStyleLoaded.pointer) - .check(); + _setStyle$1( + reference.pointer, + _id_setStyle$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$onStyleLoaded.pointer, + ).check(); } static final _id_setStyle$2 = _class.instanceMethodId( @@ -7248,25 +7956,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/Style$Builder;)V', ); - static final _setStyle$2 = 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 _setStyle$2 = + 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 setStyle(org.maplibre.android.maps.Style$Builder builder)` - void setStyle$2( - style$_.Style$Builder? builder, - ) { + void setStyle$2(style$_.Style$Builder? builder) { final _$builder = builder?.reference ?? jni$_.jNullReference; - _setStyle$2(reference.pointer, _id_setStyle$2 as jni$_.JMethodIDPtr, - _$builder.pointer) - .check(); + _setStyle$2( + reference.pointer, + _id_setStyle$2 as jni$_.JMethodIDPtr, + _$builder.pointer, + ).check(); } static final _id_setStyle$3 = _class.instanceMethodId( @@ -7274,22 +7989,26 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/Style$Builder;Lorg/maplibre/android/maps/Style$OnStyleLoaded;)V', ); - static final _setStyle$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setStyle$3 = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void setStyle(org.maplibre.android.maps.Style$Builder builder, org.maplibre.android.maps.Style$OnStyleLoaded onStyleLoaded)` void setStyle$3( @@ -7298,9 +8017,12 @@ class MapLibreMap extends jni$_.JObject { ) { final _$builder = builder?.reference ?? jni$_.jNullReference; final _$onStyleLoaded = onStyleLoaded?.reference ?? jni$_.jNullReference; - _setStyle$3(reference.pointer, _id_setStyle$3 as jni$_.JMethodIDPtr, - _$builder.pointer, _$onStyleLoaded.pointer) - .check(); + _setStyle$3( + reference.pointer, + _id_setStyle$3 as jni$_.JMethodIDPtr, + _$builder.pointer, + _$onStyleLoaded.pointer, + ).check(); } static final _id_addMarker = _class.instanceMethodId( @@ -7308,26 +8030,33 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/annotations/MarkerOptions;)Lorg/maplibre/android/annotations/Marker;', ); - static final _addMarker = 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)>(); + static final _addMarker = + 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 org.maplibre.android.annotations.Marker addMarker(org.maplibre.android.annotations.MarkerOptions markerOptions)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? addMarker( - jni$_.JObject? markerOptions, - ) { - final _$markerOptions = markerOptions?.reference ?? jni$_.jNullReference; - return _addMarker(reference.pointer, _id_addMarker as jni$_.JMethodIDPtr, - _$markerOptions.pointer) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject addMarker(jni$_.JObject markerOptions) { + final _$markerOptions = markerOptions.reference; + return _addMarker( + reference.pointer, + _id_addMarker as jni$_.JMethodIDPtr, + _$markerOptions.pointer, + ).object(const jni$_.JObjectType()); } static final _id_addMarker$1 = _class.instanceMethodId( @@ -7335,27 +8064,33 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/annotations/BaseMarkerOptions;)Lorg/maplibre/android/annotations/Marker;', ); - static final _addMarker$1 = 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)>(); + static final _addMarker$1 = + 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 org.maplibre.android.annotations.Marker addMarker(org.maplibre.android.annotations.BaseMarkerOptions baseMarkerOptions)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? addMarker$1( - jni$_.JObject? baseMarkerOptions, - ) { - final _$baseMarkerOptions = - baseMarkerOptions?.reference ?? jni$_.jNullReference; - return _addMarker$1(reference.pointer, - _id_addMarker$1 as jni$_.JMethodIDPtr, _$baseMarkerOptions.pointer) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject addMarker$1(jni$_.JObject baseMarkerOptions) { + final _$baseMarkerOptions = baseMarkerOptions.reference; + return _addMarker$1( + reference.pointer, + _id_addMarker$1 as jni$_.JMethodIDPtr, + _$baseMarkerOptions.pointer, + ).object(const jni$_.JObjectType()); } static final _id_addMarkers = _class.instanceMethodId( @@ -7363,28 +8098,35 @@ class MapLibreMap extends jni$_.JObject { r'(Ljava/util/List;)Ljava/util/List;', ); - static final _addMarkers = 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)>(); + static final _addMarkers = + 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 java.util.List addMarkers(java.util.List list)` + /// from: `public java.util.List addMarkers(java.util.List list)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? addMarkers( - jni$_.JList? list, - ) { - final _$list = list?.reference ?? jni$_.jNullReference; - return _addMarkers(reference.pointer, _id_addMarkers as jni$_.JMethodIDPtr, - _$list.pointer) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); + jni$_.JList addMarkers(jni$_.JList list) { + final _$list = list.reference; + return _addMarkers( + reference.pointer, + _id_addMarkers as jni$_.JMethodIDPtr, + _$list.pointer, + ).object>( + const jni$_.JListType(jni$_.JObjectNullableType()), + ); } static final _id_updateMarker = _class.instanceMethodId( @@ -7392,25 +8134,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/annotations/Marker;)V', ); - static final _updateMarker = 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 _updateMarker = + 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 updateMarker(org.maplibre.android.annotations.Marker marker)` - void updateMarker( - jni$_.JObject? marker, - ) { - final _$marker = marker?.reference ?? jni$_.jNullReference; - _updateMarker(reference.pointer, _id_updateMarker as jni$_.JMethodIDPtr, - _$marker.pointer) - .check(); + void updateMarker(jni$_.JObject marker) { + final _$marker = marker.reference; + _updateMarker( + reference.pointer, + _id_updateMarker as jni$_.JMethodIDPtr, + _$marker.pointer, + ).check(); } static final _id_addPolyline = _class.instanceMethodId( @@ -7418,27 +8167,33 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/annotations/PolylineOptions;)Lorg/maplibre/android/annotations/Polyline;', ); - static final _addPolyline = 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)>(); + static final _addPolyline = + 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 org.maplibre.android.annotations.Polyline addPolyline(org.maplibre.android.annotations.PolylineOptions polylineOptions)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? addPolyline( - jni$_.JObject? polylineOptions, - ) { - final _$polylineOptions = - polylineOptions?.reference ?? jni$_.jNullReference; - return _addPolyline(reference.pointer, - _id_addPolyline as jni$_.JMethodIDPtr, _$polylineOptions.pointer) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject addPolyline(jni$_.JObject polylineOptions) { + final _$polylineOptions = polylineOptions.reference; + return _addPolyline( + reference.pointer, + _id_addPolyline as jni$_.JMethodIDPtr, + _$polylineOptions.pointer, + ).object(const jni$_.JObjectType()); } static final _id_addPolylines = _class.instanceMethodId( @@ -7446,28 +8201,35 @@ class MapLibreMap extends jni$_.JObject { r'(Ljava/util/List;)Ljava/util/List;', ); - static final _addPolylines = 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)>(); + static final _addPolylines = + 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 java.util.List addPolylines(java.util.List list)` + /// from: `public java.util.List addPolylines(java.util.List list)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? addPolylines( - jni$_.JList? list, - ) { - final _$list = list?.reference ?? jni$_.jNullReference; - return _addPolylines(reference.pointer, - _id_addPolylines as jni$_.JMethodIDPtr, _$list.pointer) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); + jni$_.JList addPolylines(jni$_.JList list) { + final _$list = list.reference; + return _addPolylines( + reference.pointer, + _id_addPolylines as jni$_.JMethodIDPtr, + _$list.pointer, + ).object>( + const jni$_.JListType(jni$_.JObjectNullableType()), + ); } static final _id_updatePolyline = _class.instanceMethodId( @@ -7475,25 +8237,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/annotations/Polyline;)V', ); - static final _updatePolyline = 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 _updatePolyline = + 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 updatePolyline(org.maplibre.android.annotations.Polyline polyline)` - void updatePolyline( - jni$_.JObject? polyline, - ) { - final _$polyline = polyline?.reference ?? jni$_.jNullReference; - _updatePolyline(reference.pointer, _id_updatePolyline as jni$_.JMethodIDPtr, - _$polyline.pointer) - .check(); + void updatePolyline(jni$_.JObject polyline) { + final _$polyline = polyline.reference; + _updatePolyline( + reference.pointer, + _id_updatePolyline as jni$_.JMethodIDPtr, + _$polyline.pointer, + ).check(); } static final _id_addPolygon = _class.instanceMethodId( @@ -7501,26 +8270,33 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/annotations/PolygonOptions;)Lorg/maplibre/android/annotations/Polygon;', ); - static final _addPolygon = 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)>(); + static final _addPolygon = + 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 org.maplibre.android.annotations.Polygon addPolygon(org.maplibre.android.annotations.PolygonOptions polygonOptions)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? addPolygon( - jni$_.JObject? polygonOptions, - ) { - final _$polygonOptions = polygonOptions?.reference ?? jni$_.jNullReference; - return _addPolygon(reference.pointer, _id_addPolygon as jni$_.JMethodIDPtr, - _$polygonOptions.pointer) - .object(const jni$_.JObjectNullableType()); + jni$_.JObject addPolygon(jni$_.JObject polygonOptions) { + final _$polygonOptions = polygonOptions.reference; + return _addPolygon( + reference.pointer, + _id_addPolygon as jni$_.JMethodIDPtr, + _$polygonOptions.pointer, + ).object(const jni$_.JObjectType()); } static final _id_addPolygons = _class.instanceMethodId( @@ -7528,28 +8304,35 @@ class MapLibreMap extends jni$_.JObject { r'(Ljava/util/List;)Ljava/util/List;', ); - static final _addPolygons = 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)>(); + static final _addPolygons = + 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 java.util.List addPolygons(java.util.List list)` + /// from: `public java.util.List addPolygons(java.util.List list)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? addPolygons( - jni$_.JList? list, - ) { - final _$list = list?.reference ?? jni$_.jNullReference; - return _addPolygons(reference.pointer, - _id_addPolygons as jni$_.JMethodIDPtr, _$list.pointer) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); + jni$_.JList addPolygons(jni$_.JList list) { + final _$list = list.reference; + return _addPolygons( + reference.pointer, + _id_addPolygons as jni$_.JMethodIDPtr, + _$list.pointer, + ).object>( + const jni$_.JListType(jni$_.JObjectNullableType()), + ); } static final _id_updatePolygon = _class.instanceMethodId( @@ -7557,25 +8340,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/annotations/Polygon;)V', ); - static final _updatePolygon = 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 _updatePolygon = + 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 updatePolygon(org.maplibre.android.annotations.Polygon polygon)` - void updatePolygon( - jni$_.JObject? polygon, - ) { - final _$polygon = polygon?.reference ?? jni$_.jNullReference; - _updatePolygon(reference.pointer, _id_updatePolygon as jni$_.JMethodIDPtr, - _$polygon.pointer) - .check(); + void updatePolygon(jni$_.JObject polygon) { + final _$polygon = polygon.reference; + _updatePolygon( + reference.pointer, + _id_updatePolygon as jni$_.JMethodIDPtr, + _$polygon.pointer, + ).check(); } static final _id_removeMarker = _class.instanceMethodId( @@ -7583,25 +8373,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/annotations/Marker;)V', ); - static final _removeMarker = 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 _removeMarker = + 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 removeMarker(org.maplibre.android.annotations.Marker marker)` - void removeMarker( - jni$_.JObject? marker, - ) { - final _$marker = marker?.reference ?? jni$_.jNullReference; - _removeMarker(reference.pointer, _id_removeMarker as jni$_.JMethodIDPtr, - _$marker.pointer) - .check(); + void removeMarker(jni$_.JObject marker) { + final _$marker = marker.reference; + _removeMarker( + reference.pointer, + _id_removeMarker as jni$_.JMethodIDPtr, + _$marker.pointer, + ).check(); } static final _id_removePolyline = _class.instanceMethodId( @@ -7609,25 +8406,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/annotations/Polyline;)V', ); - static final _removePolyline = 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 _removePolyline = + 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 removePolyline(org.maplibre.android.annotations.Polyline polyline)` - void removePolyline( - jni$_.JObject? polyline, - ) { - final _$polyline = polyline?.reference ?? jni$_.jNullReference; - _removePolyline(reference.pointer, _id_removePolyline as jni$_.JMethodIDPtr, - _$polyline.pointer) - .check(); + void removePolyline(jni$_.JObject polyline) { + final _$polyline = polyline.reference; + _removePolyline( + reference.pointer, + _id_removePolyline as jni$_.JMethodIDPtr, + _$polyline.pointer, + ).check(); } static final _id_removePolygon = _class.instanceMethodId( @@ -7635,25 +8439,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/annotations/Polygon;)V', ); - static final _removePolygon = 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 _removePolygon = + 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 removePolygon(org.maplibre.android.annotations.Polygon polygon)` - void removePolygon( - jni$_.JObject? polygon, - ) { - final _$polygon = polygon?.reference ?? jni$_.jNullReference; - _removePolygon(reference.pointer, _id_removePolygon as jni$_.JMethodIDPtr, - _$polygon.pointer) - .check(); + void removePolygon(jni$_.JObject polygon) { + final _$polygon = polygon.reference; + _removePolygon( + reference.pointer, + _id_removePolygon as jni$_.JMethodIDPtr, + _$polygon.pointer, + ).check(); } static final _id_removeAnnotation = _class.instanceMethodId( @@ -7661,25 +8472,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/annotations/Annotation;)V', ); - static final _removeAnnotation = 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 _removeAnnotation = + 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 removeAnnotation(org.maplibre.android.annotations.Annotation annotation)` - void removeAnnotation( - jni$_.JObject? annotation, - ) { - final _$annotation = annotation?.reference ?? jni$_.jNullReference; - _removeAnnotation(reference.pointer, - _id_removeAnnotation as jni$_.JMethodIDPtr, _$annotation.pointer) - .check(); + void removeAnnotation(jni$_.JObject annotation) { + final _$annotation = annotation.reference; + _removeAnnotation( + reference.pointer, + _id_removeAnnotation as jni$_.JMethodIDPtr, + _$annotation.pointer, + ).check(); } static final _id_removeAnnotation$1 = _class.instanceMethodId( @@ -7687,23 +8505,31 @@ class MapLibreMap extends jni$_.JObject { r'(J)V', ); - static final _removeAnnotation$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _removeAnnotation$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void removeAnnotation(long j)` - void removeAnnotation$1( - int j, - ) { + void removeAnnotation$1(int j) { _removeAnnotation$1( - reference.pointer, _id_removeAnnotation$1 as jni$_.JMethodIDPtr, j) - .check(); + reference.pointer, + _id_removeAnnotation$1 as jni$_.JMethodIDPtr, + j, + ).check(); } static final _id_removeAnnotations = _class.instanceMethodId( @@ -7711,25 +8537,32 @@ class MapLibreMap extends jni$_.JObject { r'(Ljava/util/List;)V', ); - static final _removeAnnotations = 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 _removeAnnotations = + 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 removeAnnotations(java.util.List list)` - void removeAnnotations( - jni$_.JList? list, - ) { - final _$list = list?.reference ?? jni$_.jNullReference; - _removeAnnotations(reference.pointer, - _id_removeAnnotations as jni$_.JMethodIDPtr, _$list.pointer) - .check(); + /// from: `public void removeAnnotations(java.util.List list)` + void removeAnnotations(jni$_.JList list) { + final _$list = list.reference; + _removeAnnotations( + reference.pointer, + _id_removeAnnotations as jni$_.JMethodIDPtr, + _$list.pointer, + ).check(); } static final _id_removeAnnotations$1 = _class.instanceMethodId( @@ -7737,41 +8570,47 @@ class MapLibreMap extends jni$_.JObject { r'()V', ); - static final _removeAnnotations$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _removeAnnotations$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void removeAnnotations()` void removeAnnotations$1() { _removeAnnotations$1( - reference.pointer, _id_removeAnnotations$1 as jni$_.JMethodIDPtr) - .check(); + reference.pointer, + _id_removeAnnotations$1 as jni$_.JMethodIDPtr, + ).check(); } - static final _id_clear = _class.instanceMethodId( - r'clear', - r'()V', - ); + static final _id_clear = _class.instanceMethodId(r'clear', r'()V'); - static final _clear = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _clear = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void clear()` void clear() { @@ -7783,24 +8622,32 @@ class MapLibreMap extends jni$_.JObject { r'(J)Lorg/maplibre/android/annotations/Annotation;', ); - static final _getAnnotation = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAnnotation = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.annotations.Annotation getAnnotation(long j)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getAnnotation( - int j, - ) { + jni$_.JObject? getAnnotation(int j) { return _getAnnotation( - reference.pointer, _id_getAnnotation as jni$_.JMethodIDPtr, j) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getAnnotation as jni$_.JMethodIDPtr, + j, + ).object(const jni$_.JObjectNullableType()); } static final _id_getAnnotations = _class.instanceMethodId( @@ -7808,26 +8655,31 @@ class MapLibreMap extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _getAnnotations = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAnnotations = + 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 getAnnotations()` + /// from: `public java.util.List getAnnotations()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? getAnnotations() { + jni$_.JList getAnnotations() { return _getAnnotations( - reference.pointer, _id_getAnnotations as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); + reference.pointer, + _id_getAnnotations as jni$_.JMethodIDPtr, + ).object>( + const jni$_.JListType(jni$_.JObjectNullableType()), + ); } static final _id_getMarkers = _class.instanceMethodId( @@ -7835,25 +8687,31 @@ class MapLibreMap extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _getMarkers = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getMarkers = + 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 getMarkers()` + /// from: `public java.util.List getMarkers()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? getMarkers() { - return _getMarkers(reference.pointer, _id_getMarkers as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); + jni$_.JList getMarkers() { + return _getMarkers( + reference.pointer, + _id_getMarkers as jni$_.JMethodIDPtr, + ).object>( + const jni$_.JListType(jni$_.JObjectNullableType()), + ); } static final _id_getPolygons = _class.instanceMethodId( @@ -7861,26 +8719,31 @@ class MapLibreMap extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _getPolygons = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPolygons = + 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 getPolygons()` + /// from: `public java.util.List getPolygons()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? getPolygons() { + jni$_.JList getPolygons() { return _getPolygons( - reference.pointer, _id_getPolygons as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); + reference.pointer, + _id_getPolygons as jni$_.JMethodIDPtr, + ).object>( + const jni$_.JListType(jni$_.JObjectNullableType()), + ); } static final _id_getPolylines = _class.instanceMethodId( @@ -7888,26 +8751,31 @@ class MapLibreMap extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _getPolylines = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPolylines = + 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 getPolylines()` + /// from: `public java.util.List getPolylines()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? getPolylines() { + jni$_.JList getPolylines() { return _getPolylines( - reference.pointer, _id_getPolylines as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); + reference.pointer, + _id_getPolylines as jni$_.JMethodIDPtr, + ).object>( + const jni$_.JListType(jni$_.JObjectNullableType()), + ); } static final _id_setOnMarkerClickListener = _class.instanceMethodId( @@ -7915,16 +8783,23 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$OnMarkerClickListener;)V', ); - static final _setOnMarkerClickListener = 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 _setOnMarkerClickListener = + 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 setOnMarkerClickListener(org.maplibre.android.maps.MapLibreMap$OnMarkerClickListener onMarkerClickListener)` void setOnMarkerClickListener( @@ -7933,10 +8808,10 @@ class MapLibreMap extends jni$_.JObject { final _$onMarkerClickListener = onMarkerClickListener?.reference ?? jni$_.jNullReference; _setOnMarkerClickListener( - reference.pointer, - _id_setOnMarkerClickListener as jni$_.JMethodIDPtr, - _$onMarkerClickListener.pointer) - .check(); + reference.pointer, + _id_setOnMarkerClickListener as jni$_.JMethodIDPtr, + _$onMarkerClickListener.pointer, + ).check(); } static final _id_setOnPolygonClickListener = _class.instanceMethodId( @@ -7944,16 +8819,23 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$OnPolygonClickListener;)V', ); - static final _setOnPolygonClickListener = 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 _setOnPolygonClickListener = + 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 setOnPolygonClickListener(org.maplibre.android.maps.MapLibreMap$OnPolygonClickListener onPolygonClickListener)` void setOnPolygonClickListener( @@ -7962,10 +8844,10 @@ class MapLibreMap extends jni$_.JObject { final _$onPolygonClickListener = onPolygonClickListener?.reference ?? jni$_.jNullReference; _setOnPolygonClickListener( - reference.pointer, - _id_setOnPolygonClickListener as jni$_.JMethodIDPtr, - _$onPolygonClickListener.pointer) - .check(); + reference.pointer, + _id_setOnPolygonClickListener as jni$_.JMethodIDPtr, + _$onPolygonClickListener.pointer, + ).check(); } static final _id_setOnPolylineClickListener = _class.instanceMethodId( @@ -7975,15 +8857,21 @@ class MapLibreMap extends jni$_.JObject { static final _setOnPolylineClickListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void setOnPolylineClickListener(org.maplibre.android.maps.MapLibreMap$OnPolylineClickListener onPolylineClickListener)` void setOnPolylineClickListener( @@ -7992,10 +8880,10 @@ class MapLibreMap extends jni$_.JObject { final _$onPolylineClickListener = onPolylineClickListener?.reference ?? jni$_.jNullReference; _setOnPolylineClickListener( - reference.pointer, - _id_setOnPolylineClickListener as jni$_.JMethodIDPtr, - _$onPolylineClickListener.pointer) - .check(); + reference.pointer, + _id_setOnPolylineClickListener as jni$_.JMethodIDPtr, + _$onPolylineClickListener.pointer, + ).check(); } static final _id_selectMarker = _class.instanceMethodId( @@ -8003,25 +8891,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/annotations/Marker;)V', ); - static final _selectMarker = 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 _selectMarker = + 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 selectMarker(org.maplibre.android.annotations.Marker marker)` - void selectMarker( - jni$_.JObject? marker, - ) { - final _$marker = marker?.reference ?? jni$_.jNullReference; - _selectMarker(reference.pointer, _id_selectMarker as jni$_.JMethodIDPtr, - _$marker.pointer) - .check(); + void selectMarker(jni$_.JObject marker) { + final _$marker = marker.reference; + _selectMarker( + reference.pointer, + _id_selectMarker as jni$_.JMethodIDPtr, + _$marker.pointer, + ).check(); } static final _id_deselectMarkers = _class.instanceMethodId( @@ -8029,23 +8924,28 @@ class MapLibreMap extends jni$_.JObject { r'()V', ); - static final _deselectMarkers = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _deselectMarkers = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void deselectMarkers()` void deselectMarkers() { _deselectMarkers( - reference.pointer, _id_deselectMarkers as jni$_.JMethodIDPtr) - .check(); + reference.pointer, + _id_deselectMarkers as jni$_.JMethodIDPtr, + ).check(); } static final _id_deselectMarker = _class.instanceMethodId( @@ -8053,25 +8953,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/annotations/Marker;)V', ); - static final _deselectMarker = 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 _deselectMarker = + 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 deselectMarker(org.maplibre.android.annotations.Marker marker)` - void deselectMarker( - jni$_.JObject? marker, - ) { - final _$marker = marker?.reference ?? jni$_.jNullReference; - _deselectMarker(reference.pointer, _id_deselectMarker as jni$_.JMethodIDPtr, - _$marker.pointer) - .check(); + void deselectMarker(jni$_.JObject marker) { + final _$marker = marker.reference; + _deselectMarker( + reference.pointer, + _id_deselectMarker as jni$_.JMethodIDPtr, + _$marker.pointer, + ).check(); } static final _id_getSelectedMarkers = _class.instanceMethodId( @@ -8079,26 +8986,31 @@ class MapLibreMap extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _getSelectedMarkers = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getSelectedMarkers = + 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 getSelectedMarkers()` + /// from: `public java.util.List getSelectedMarkers()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? getSelectedMarkers() { + jni$_.JList getSelectedMarkers() { return _getSelectedMarkers( - reference.pointer, _id_getSelectedMarkers as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); + reference.pointer, + _id_getSelectedMarkers as jni$_.JMethodIDPtr, + ).object>( + const jni$_.JListType(jni$_.JObjectNullableType()), + ); } static final _id_setInfoWindowAdapter = _class.instanceMethodId( @@ -8106,28 +9018,33 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$InfoWindowAdapter;)V', ); - static final _setInfoWindowAdapter = 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 _setInfoWindowAdapter = + 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 setInfoWindowAdapter(org.maplibre.android.maps.MapLibreMap$InfoWindowAdapter infoWindowAdapter)` - void setInfoWindowAdapter( - MapLibreMap$InfoWindowAdapter? infoWindowAdapter, - ) { + void setInfoWindowAdapter(MapLibreMap$InfoWindowAdapter? infoWindowAdapter) { final _$infoWindowAdapter = infoWindowAdapter?.reference ?? jni$_.jNullReference; _setInfoWindowAdapter( - reference.pointer, - _id_setInfoWindowAdapter as jni$_.JMethodIDPtr, - _$infoWindowAdapter.pointer) - .check(); + reference.pointer, + _id_setInfoWindowAdapter as jni$_.JMethodIDPtr, + _$infoWindowAdapter.pointer, + ).check(); } static final _id_getInfoWindowAdapter = _class.instanceMethodId( @@ -8135,78 +9052,88 @@ class MapLibreMap extends jni$_.JObject { r'()Lorg/maplibre/android/maps/MapLibreMap$InfoWindowAdapter;', ); - static final _getInfoWindowAdapter = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInfoWindowAdapter = + 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 org.maplibre.android.maps.MapLibreMap$InfoWindowAdapter getInfoWindowAdapter()` /// The returned object must be released after use, by calling the [release] method. MapLibreMap$InfoWindowAdapter? getInfoWindowAdapter() { return _getInfoWindowAdapter( - reference.pointer, _id_getInfoWindowAdapter as jni$_.JMethodIDPtr) - .object( - const $MapLibreMap$InfoWindowAdapter$NullableType()); + reference.pointer, + _id_getInfoWindowAdapter as jni$_.JMethodIDPtr, + ).object( + const $MapLibreMap$InfoWindowAdapter$NullableType(), + ); } - static final _id_setAllowConcurrentMultipleOpenInfoWindows = - _class.instanceMethodId( - r'setAllowConcurrentMultipleOpenInfoWindows', - r'(Z)V', - ); + static final _id_setAllowConcurrentMultipleOpenInfoWindows = _class + .instanceMethodId(r'setAllowConcurrentMultipleOpenInfoWindows', r'(Z)V'); static final _setAllowConcurrentMultipleOpenInfoWindows = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void setAllowConcurrentMultipleOpenInfoWindows(boolean z)` - void setAllowConcurrentMultipleOpenInfoWindows( - bool z, - ) { + void setAllowConcurrentMultipleOpenInfoWindows(bool z) { _setAllowConcurrentMultipleOpenInfoWindows( - reference.pointer, - _id_setAllowConcurrentMultipleOpenInfoWindows as jni$_.JMethodIDPtr, - z ? 1 : 0) - .check(); + reference.pointer, + _id_setAllowConcurrentMultipleOpenInfoWindows as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).check(); } - static final _id_isAllowConcurrentMultipleOpenInfoWindows = - _class.instanceMethodId( - r'isAllowConcurrentMultipleOpenInfoWindows', - r'()Z', - ); + static final _id_isAllowConcurrentMultipleOpenInfoWindows = _class + .instanceMethodId(r'isAllowConcurrentMultipleOpenInfoWindows', r'()Z'); static final _isAllowConcurrentMultipleOpenInfoWindows = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public boolean isAllowConcurrentMultipleOpenInfoWindows()` bool isAllowConcurrentMultipleOpenInfoWindows() { - return _isAllowConcurrentMultipleOpenInfoWindows(reference.pointer, - _id_isAllowConcurrentMultipleOpenInfoWindows as jni$_.JMethodIDPtr) - .boolean; + return _isAllowConcurrentMultipleOpenInfoWindows( + reference.pointer, + _id_isAllowConcurrentMultipleOpenInfoWindows as jni$_.JMethodIDPtr, + ).boolean; } static final _id_setLatLngBoundsForCameraTarget = _class.instanceMethodId( @@ -8216,15 +9143,21 @@ class MapLibreMap extends jni$_.JObject { static final _setLatLngBoundsForCameraTarget = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void setLatLngBoundsForCameraTarget(org.maplibre.android.geometry.LatLngBounds latLngBounds)` void setLatLngBoundsForCameraTarget( @@ -8232,10 +9165,10 @@ class MapLibreMap extends jni$_.JObject { ) { final _$latLngBounds = latLngBounds?.reference ?? jni$_.jNullReference; _setLatLngBoundsForCameraTarget( - reference.pointer, - _id_setLatLngBoundsForCameraTarget as jni$_.JMethodIDPtr, - _$latLngBounds.pointer) - .check(); + reference.pointer, + _id_setLatLngBoundsForCameraTarget as jni$_.JMethodIDPtr, + _$latLngBounds.pointer, + ).check(); } static final _id_getCameraForLatLngBounds = _class.instanceMethodId( @@ -8243,29 +9176,37 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/geometry/LatLngBounds;)Lorg/maplibre/android/camera/CameraPosition;', ); - static final _getCameraForLatLngBounds = 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)>(); + static final _getCameraForLatLngBounds = + 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 org.maplibre.android.camera.CameraPosition getCameraForLatLngBounds(org.maplibre.android.geometry.LatLngBounds latLngBounds)` /// The returned object must be released after use, by calling the [release] method. cameraposition$_.CameraPosition? getCameraForLatLngBounds( - latlngbounds$_.LatLngBounds? latLngBounds, + latlngbounds$_.LatLngBounds latLngBounds, ) { - final _$latLngBounds = latLngBounds?.reference ?? jni$_.jNullReference; + final _$latLngBounds = latLngBounds.reference; return _getCameraForLatLngBounds( - reference.pointer, - _id_getCameraForLatLngBounds as jni$_.JMethodIDPtr, - _$latLngBounds.pointer) - .object( - const cameraposition$_.$CameraPosition$NullableType()); + reference.pointer, + _id_getCameraForLatLngBounds as jni$_.JMethodIDPtr, + _$latLngBounds.pointer, + ).object( + const cameraposition$_.$CameraPosition$NullableType(), + ); } static final _id_getCameraForLatLngBounds$1 = _class.instanceMethodId( @@ -8275,37 +9216,41 @@ class MapLibreMap extends jni$_.JObject { static final _getCameraForLatLngBounds$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); + 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 org.maplibre.android.camera.CameraPosition getCameraForLatLngBounds(org.maplibre.android.geometry.LatLngBounds latLngBounds, int[] is)` /// The returned object must be released after use, by calling the [release] method. cameraposition$_.CameraPosition? getCameraForLatLngBounds$1( - latlngbounds$_.LatLngBounds? latLngBounds, - jni$_.JIntArray? is$, + latlngbounds$_.LatLngBounds latLngBounds, + jni$_.JIntArray is$, ) { - final _$latLngBounds = latLngBounds?.reference ?? jni$_.jNullReference; - final _$is$ = is$?.reference ?? jni$_.jNullReference; + final _$latLngBounds = latLngBounds.reference; + final _$is$ = is$.reference; return _getCameraForLatLngBounds$1( - reference.pointer, - _id_getCameraForLatLngBounds$1 as jni$_.JMethodIDPtr, - _$latLngBounds.pointer, - _$is$.pointer) - .object( - const cameraposition$_.$CameraPosition$NullableType()); + reference.pointer, + _id_getCameraForLatLngBounds$1 as jni$_.JMethodIDPtr, + _$latLngBounds.pointer, + _$is$.pointer, + ).object( + const cameraposition$_.$CameraPosition$NullableType(), + ); } static final _id_getCameraForLatLngBounds$2 = _class.instanceMethodId( @@ -8315,40 +9260,43 @@ class MapLibreMap extends jni$_.JObject { static final _getCameraForLatLngBounds$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Double, - jni$_.Double - )>)>>('globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - double, - double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Double, jni$_.Double) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + double, + double, + ) + >(); /// from: `public org.maplibre.android.camera.CameraPosition getCameraForLatLngBounds(org.maplibre.android.geometry.LatLngBounds latLngBounds, double d, double d1)` /// The returned object must be released after use, by calling the [release] method. cameraposition$_.CameraPosition? getCameraForLatLngBounds$2( - latlngbounds$_.LatLngBounds? latLngBounds, + latlngbounds$_.LatLngBounds latLngBounds, double d, double d1, ) { - final _$latLngBounds = latLngBounds?.reference ?? jni$_.jNullReference; + final _$latLngBounds = latLngBounds.reference; return _getCameraForLatLngBounds$2( - reference.pointer, - _id_getCameraForLatLngBounds$2 as jni$_.JMethodIDPtr, - _$latLngBounds.pointer, - d, - d1) - .object( - const cameraposition$_.$CameraPosition$NullableType()); + reference.pointer, + _id_getCameraForLatLngBounds$2 as jni$_.JMethodIDPtr, + _$latLngBounds.pointer, + d, + d1, + ).object( + const cameraposition$_.$CameraPosition$NullableType(), + ); } static final _id_getCameraForLatLngBounds$3 = _class.instanceMethodId( @@ -8358,45 +9306,52 @@ class MapLibreMap extends jni$_.JObject { static final _getCameraForLatLngBounds$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Double, - jni$_.Double - )>)>>('globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer, - double, - double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Double, + jni$_.Double, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + double, + double, + ) + >(); /// from: `public org.maplibre.android.camera.CameraPosition getCameraForLatLngBounds(org.maplibre.android.geometry.LatLngBounds latLngBounds, int[] is, double d, double d1)` /// The returned object must be released after use, by calling the [release] method. cameraposition$_.CameraPosition? getCameraForLatLngBounds$3( - latlngbounds$_.LatLngBounds? latLngBounds, - jni$_.JIntArray? is$, + latlngbounds$_.LatLngBounds latLngBounds, + jni$_.JIntArray is$, double d, double d1, ) { - final _$latLngBounds = latLngBounds?.reference ?? jni$_.jNullReference; - final _$is$ = is$?.reference ?? jni$_.jNullReference; + final _$latLngBounds = latLngBounds.reference; + final _$is$ = is$.reference; return _getCameraForLatLngBounds$3( - reference.pointer, - _id_getCameraForLatLngBounds$3 as jni$_.JMethodIDPtr, - _$latLngBounds.pointer, - _$is$.pointer, - d, - d1) - .object( - const cameraposition$_.$CameraPosition$NullableType()); + reference.pointer, + _id_getCameraForLatLngBounds$3 as jni$_.JMethodIDPtr, + _$latLngBounds.pointer, + _$is$.pointer, + d, + d1, + ).object( + const cameraposition$_.$CameraPosition$NullableType(), + ); } static final _id_getCameraForGeometry = _class.instanceMethodId( @@ -8404,27 +9359,37 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/geojson/Geometry;)Lorg/maplibre/android/camera/CameraPosition;', ); - static final _getCameraForGeometry = 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)>(); + static final _getCameraForGeometry = + 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 org.maplibre.android.camera.CameraPosition getCameraForGeometry(org.maplibre.geojson.Geometry geometry)` /// The returned object must be released after use, by calling the [release] method. cameraposition$_.CameraPosition? getCameraForGeometry( - jni$_.JObject? geometry, - ) { - final _$geometry = geometry?.reference ?? jni$_.jNullReference; - return _getCameraForGeometry(reference.pointer, - _id_getCameraForGeometry as jni$_.JMethodIDPtr, _$geometry.pointer) - .object( - const cameraposition$_.$CameraPosition$NullableType()); + jni$_.JObject geometry, + ) { + final _$geometry = geometry.reference; + return _getCameraForGeometry( + reference.pointer, + _id_getCameraForGeometry as jni$_.JMethodIDPtr, + _$geometry.pointer, + ).object( + const cameraposition$_.$CameraPosition$NullableType(), + ); } static final _id_getCameraForGeometry$1 = _class.instanceMethodId( @@ -8432,38 +9397,43 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/geojson/Geometry;[I)Lorg/maplibre/android/camera/CameraPosition;', ); - static final _getCameraForGeometry$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getCameraForGeometry$1 = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public org.maplibre.android.camera.CameraPosition getCameraForGeometry(org.maplibre.geojson.Geometry geometry, int[] is)` /// The returned object must be released after use, by calling the [release] method. cameraposition$_.CameraPosition? getCameraForGeometry$1( - jni$_.JObject? geometry, - jni$_.JIntArray? is$, + jni$_.JObject geometry, + jni$_.JIntArray is$, ) { - final _$geometry = geometry?.reference ?? jni$_.jNullReference; - final _$is$ = is$?.reference ?? jni$_.jNullReference; + final _$geometry = geometry.reference; + final _$is$ = is$.reference; return _getCameraForGeometry$1( - reference.pointer, - _id_getCameraForGeometry$1 as jni$_.JMethodIDPtr, - _$geometry.pointer, - _$is$.pointer) - .object( - const cameraposition$_.$CameraPosition$NullableType()); + reference.pointer, + _id_getCameraForGeometry$1 as jni$_.JMethodIDPtr, + _$geometry.pointer, + _$is$.pointer, + ).object( + const cameraposition$_.$CameraPosition$NullableType(), + ); } static final _id_getCameraForGeometry$2 = _class.instanceMethodId( @@ -8471,37 +9441,45 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/geojson/Geometry;DD)Lorg/maplibre/android/camera/CameraPosition;', ); - static final _getCameraForGeometry$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getCameraForGeometry$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Double, - jni$_.Double - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, double, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Double, jni$_.Double) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + double, + double, + ) + >(); /// from: `public org.maplibre.android.camera.CameraPosition getCameraForGeometry(org.maplibre.geojson.Geometry geometry, double d, double d1)` /// The returned object must be released after use, by calling the [release] method. cameraposition$_.CameraPosition? getCameraForGeometry$2( - jni$_.JObject? geometry, + jni$_.JObject geometry, double d, double d1, ) { - final _$geometry = geometry?.reference ?? jni$_.jNullReference; + final _$geometry = geometry.reference; return _getCameraForGeometry$2( - reference.pointer, - _id_getCameraForGeometry$2 as jni$_.JMethodIDPtr, - _$geometry.pointer, - d, - d1) - .object( - const cameraposition$_.$CameraPosition$NullableType()); + reference.pointer, + _id_getCameraForGeometry$2 as jni$_.JMethodIDPtr, + _$geometry.pointer, + d, + d1, + ).object( + const cameraposition$_.$CameraPosition$NullableType(), + ); } static final _id_getCameraForGeometry$3 = _class.instanceMethodId( @@ -8509,46 +9487,54 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/geojson/Geometry;[IDD)Lorg/maplibre/android/camera/CameraPosition;', ); - static final _getCameraForGeometry$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getCameraForGeometry$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Double, - jni$_.Double - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Double, + jni$_.Double, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, double, - double)>(); + double, + ) + >(); /// from: `public org.maplibre.android.camera.CameraPosition getCameraForGeometry(org.maplibre.geojson.Geometry geometry, int[] is, double d, double d1)` /// The returned object must be released after use, by calling the [release] method. cameraposition$_.CameraPosition? getCameraForGeometry$3( - jni$_.JObject? geometry, - jni$_.JIntArray? is$, + jni$_.JObject geometry, + jni$_.JIntArray is$, double d, double d1, ) { - final _$geometry = geometry?.reference ?? jni$_.jNullReference; - final _$is$ = is$?.reference ?? jni$_.jNullReference; + final _$geometry = geometry.reference; + final _$is$ = is$.reference; return _getCameraForGeometry$3( - reference.pointer, - _id_getCameraForGeometry$3 as jni$_.JMethodIDPtr, - _$geometry.pointer, - _$is$.pointer, - d, - d1) - .object( - const cameraposition$_.$CameraPosition$NullableType()); + reference.pointer, + _id_getCameraForGeometry$3 as jni$_.JMethodIDPtr, + _$geometry.pointer, + _$is$.pointer, + d, + d1, + ).object( + const cameraposition$_.$CameraPosition$NullableType(), + ); } static final _id_setPadding = _class.instanceMethodId( @@ -8556,56 +9542,66 @@ class MapLibreMap extends jni$_.JObject { r'(IIII)V', ); - static final _setPadding = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setPadding = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Int32, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, int, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Int32, jni$_.Int32, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + int, + int, + int, + ) + >(); /// from: `public void setPadding(int i, int i1, int i2, int i3)` - void setPadding( - int i, - int i1, - int i2, - int i3, - ) { - _setPadding(reference.pointer, _id_setPadding as jni$_.JMethodIDPtr, i, i1, - i2, i3) - .check(); + void setPadding(int i, int i1, int i2, int i3) { + _setPadding( + reference.pointer, + _id_setPadding as jni$_.JMethodIDPtr, + i, + i1, + i2, + i3, + ).check(); } - static final _id_getPadding = _class.instanceMethodId( - r'getPadding', - r'()[I', - ); + static final _id_getPadding = _class.instanceMethodId(r'getPadding', r'()[I'); - static final _getPadding = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPadding = + 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 int[] getPadding()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JIntArray? getPadding() { - return _getPadding(reference.pointer, _id_getPadding as jni$_.JMethodIDPtr) - .object(const jni$_.JIntArrayNullableType()); + jni$_.JIntArray getPadding() { + return _getPadding( + reference.pointer, + _id_getPadding as jni$_.JMethodIDPtr, + ).object(const jni$_.JIntArrayType()); } static final _id_addOnCameraIdleListener = _class.instanceMethodId( @@ -8613,28 +9609,34 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$OnCameraIdleListener;)V', ); - static final _addOnCameraIdleListener = 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 _addOnCameraIdleListener = + 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 addOnCameraIdleListener(org.maplibre.android.maps.MapLibreMap$OnCameraIdleListener onCameraIdleListener)` void addOnCameraIdleListener( - MapLibreMap$OnCameraIdleListener? onCameraIdleListener, + MapLibreMap$OnCameraIdleListener onCameraIdleListener, ) { - final _$onCameraIdleListener = - onCameraIdleListener?.reference ?? jni$_.jNullReference; + final _$onCameraIdleListener = onCameraIdleListener.reference; _addOnCameraIdleListener( - reference.pointer, - _id_addOnCameraIdleListener as jni$_.JMethodIDPtr, - _$onCameraIdleListener.pointer) - .check(); + reference.pointer, + _id_addOnCameraIdleListener as jni$_.JMethodIDPtr, + _$onCameraIdleListener.pointer, + ).check(); } static final _id_removeOnCameraIdleListener = _class.instanceMethodId( @@ -8644,27 +9646,32 @@ class MapLibreMap extends jni$_.JObject { static final _removeOnCameraIdleListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnCameraIdleListener(org.maplibre.android.maps.MapLibreMap$OnCameraIdleListener onCameraIdleListener)` void removeOnCameraIdleListener( - MapLibreMap$OnCameraIdleListener? onCameraIdleListener, + MapLibreMap$OnCameraIdleListener onCameraIdleListener, ) { - final _$onCameraIdleListener = - onCameraIdleListener?.reference ?? jni$_.jNullReference; + final _$onCameraIdleListener = onCameraIdleListener.reference; _removeOnCameraIdleListener( - reference.pointer, - _id_removeOnCameraIdleListener as jni$_.JMethodIDPtr, - _$onCameraIdleListener.pointer) - .check(); + reference.pointer, + _id_removeOnCameraIdleListener as jni$_.JMethodIDPtr, + _$onCameraIdleListener.pointer, + ).check(); } static final _id_addOnCameraMoveCancelListener = _class.instanceMethodId( @@ -8674,27 +9681,33 @@ class MapLibreMap extends jni$_.JObject { static final _addOnCameraMoveCancelListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnCameraMoveCancelListener(org.maplibre.android.maps.MapLibreMap$OnCameraMoveCanceledListener onCameraMoveCanceledListener)` void addOnCameraMoveCancelListener( - MapLibreMap$OnCameraMoveCanceledListener? onCameraMoveCanceledListener, + MapLibreMap$OnCameraMoveCanceledListener onCameraMoveCanceledListener, ) { final _$onCameraMoveCanceledListener = - onCameraMoveCanceledListener?.reference ?? jni$_.jNullReference; + onCameraMoveCanceledListener.reference; _addOnCameraMoveCancelListener( - reference.pointer, - _id_addOnCameraMoveCancelListener as jni$_.JMethodIDPtr, - _$onCameraMoveCanceledListener.pointer) - .check(); + reference.pointer, + _id_addOnCameraMoveCancelListener as jni$_.JMethodIDPtr, + _$onCameraMoveCanceledListener.pointer, + ).check(); } static final _id_removeOnCameraMoveCancelListener = _class.instanceMethodId( @@ -8704,27 +9717,33 @@ class MapLibreMap extends jni$_.JObject { static final _removeOnCameraMoveCancelListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnCameraMoveCancelListener(org.maplibre.android.maps.MapLibreMap$OnCameraMoveCanceledListener onCameraMoveCanceledListener)` void removeOnCameraMoveCancelListener( - MapLibreMap$OnCameraMoveCanceledListener? onCameraMoveCanceledListener, + MapLibreMap$OnCameraMoveCanceledListener onCameraMoveCanceledListener, ) { final _$onCameraMoveCanceledListener = - onCameraMoveCanceledListener?.reference ?? jni$_.jNullReference; + onCameraMoveCanceledListener.reference; _removeOnCameraMoveCancelListener( - reference.pointer, - _id_removeOnCameraMoveCancelListener as jni$_.JMethodIDPtr, - _$onCameraMoveCanceledListener.pointer) - .check(); + reference.pointer, + _id_removeOnCameraMoveCancelListener as jni$_.JMethodIDPtr, + _$onCameraMoveCanceledListener.pointer, + ).check(); } static final _id_addOnCameraMoveStartedListener = _class.instanceMethodId( @@ -8734,27 +9753,32 @@ class MapLibreMap extends jni$_.JObject { static final _addOnCameraMoveStartedListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnCameraMoveStartedListener(org.maplibre.android.maps.MapLibreMap$OnCameraMoveStartedListener onCameraMoveStartedListener)` void addOnCameraMoveStartedListener( - MapLibreMap$OnCameraMoveStartedListener? onCameraMoveStartedListener, + MapLibreMap$OnCameraMoveStartedListener onCameraMoveStartedListener, ) { - final _$onCameraMoveStartedListener = - onCameraMoveStartedListener?.reference ?? jni$_.jNullReference; + final _$onCameraMoveStartedListener = onCameraMoveStartedListener.reference; _addOnCameraMoveStartedListener( - reference.pointer, - _id_addOnCameraMoveStartedListener as jni$_.JMethodIDPtr, - _$onCameraMoveStartedListener.pointer) - .check(); + reference.pointer, + _id_addOnCameraMoveStartedListener as jni$_.JMethodIDPtr, + _$onCameraMoveStartedListener.pointer, + ).check(); } static final _id_removeOnCameraMoveStartedListener = _class.instanceMethodId( @@ -8764,27 +9788,32 @@ class MapLibreMap extends jni$_.JObject { static final _removeOnCameraMoveStartedListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnCameraMoveStartedListener(org.maplibre.android.maps.MapLibreMap$OnCameraMoveStartedListener onCameraMoveStartedListener)` void removeOnCameraMoveStartedListener( - MapLibreMap$OnCameraMoveStartedListener? onCameraMoveStartedListener, + MapLibreMap$OnCameraMoveStartedListener onCameraMoveStartedListener, ) { - final _$onCameraMoveStartedListener = - onCameraMoveStartedListener?.reference ?? jni$_.jNullReference; + final _$onCameraMoveStartedListener = onCameraMoveStartedListener.reference; _removeOnCameraMoveStartedListener( - reference.pointer, - _id_removeOnCameraMoveStartedListener as jni$_.JMethodIDPtr, - _$onCameraMoveStartedListener.pointer) - .check(); + reference.pointer, + _id_removeOnCameraMoveStartedListener as jni$_.JMethodIDPtr, + _$onCameraMoveStartedListener.pointer, + ).check(); } static final _id_addOnCameraMoveListener = _class.instanceMethodId( @@ -8792,28 +9821,34 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$OnCameraMoveListener;)V', ); - static final _addOnCameraMoveListener = 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 _addOnCameraMoveListener = + 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 addOnCameraMoveListener(org.maplibre.android.maps.MapLibreMap$OnCameraMoveListener onCameraMoveListener)` void addOnCameraMoveListener( - MapLibreMap$OnCameraMoveListener? onCameraMoveListener, + MapLibreMap$OnCameraMoveListener onCameraMoveListener, ) { - final _$onCameraMoveListener = - onCameraMoveListener?.reference ?? jni$_.jNullReference; + final _$onCameraMoveListener = onCameraMoveListener.reference; _addOnCameraMoveListener( - reference.pointer, - _id_addOnCameraMoveListener as jni$_.JMethodIDPtr, - _$onCameraMoveListener.pointer) - .check(); + reference.pointer, + _id_addOnCameraMoveListener as jni$_.JMethodIDPtr, + _$onCameraMoveListener.pointer, + ).check(); } static final _id_removeOnCameraMoveListener = _class.instanceMethodId( @@ -8823,27 +9858,32 @@ class MapLibreMap extends jni$_.JObject { static final _removeOnCameraMoveListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnCameraMoveListener(org.maplibre.android.maps.MapLibreMap$OnCameraMoveListener onCameraMoveListener)` void removeOnCameraMoveListener( - MapLibreMap$OnCameraMoveListener? onCameraMoveListener, + MapLibreMap$OnCameraMoveListener onCameraMoveListener, ) { - final _$onCameraMoveListener = - onCameraMoveListener?.reference ?? jni$_.jNullReference; + final _$onCameraMoveListener = onCameraMoveListener.reference; _removeOnCameraMoveListener( - reference.pointer, - _id_removeOnCameraMoveListener as jni$_.JMethodIDPtr, - _$onCameraMoveListener.pointer) - .check(); + reference.pointer, + _id_removeOnCameraMoveListener as jni$_.JMethodIDPtr, + _$onCameraMoveListener.pointer, + ).check(); } static final _id_setOnFpsChangedListener = _class.instanceMethodId( @@ -8851,16 +9891,23 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$OnFpsChangedListener;)V', ); - static final _setOnFpsChangedListener = 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 _setOnFpsChangedListener = + 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 setOnFpsChangedListener(org.maplibre.android.maps.MapLibreMap$OnFpsChangedListener onFpsChangedListener)` void setOnFpsChangedListener( @@ -8869,10 +9916,10 @@ class MapLibreMap extends jni$_.JObject { final _$onFpsChangedListener = onFpsChangedListener?.reference ?? jni$_.jNullReference; _setOnFpsChangedListener( - reference.pointer, - _id_setOnFpsChangedListener as jni$_.JMethodIDPtr, - _$onFpsChangedListener.pointer) - .check(); + reference.pointer, + _id_setOnFpsChangedListener as jni$_.JMethodIDPtr, + _$onFpsChangedListener.pointer, + ).check(); } static final _id_addOnFlingListener = _class.instanceMethodId( @@ -8880,28 +9927,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$OnFlingListener;)V', ); - static final _addOnFlingListener = 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 _addOnFlingListener = + 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 addOnFlingListener(org.maplibre.android.maps.MapLibreMap$OnFlingListener onFlingListener)` - void addOnFlingListener( - MapLibreMap$OnFlingListener? onFlingListener, - ) { - final _$onFlingListener = - onFlingListener?.reference ?? jni$_.jNullReference; + void addOnFlingListener(MapLibreMap$OnFlingListener onFlingListener) { + final _$onFlingListener = onFlingListener.reference; _addOnFlingListener( - reference.pointer, - _id_addOnFlingListener as jni$_.JMethodIDPtr, - _$onFlingListener.pointer) - .check(); + reference.pointer, + _id_addOnFlingListener as jni$_.JMethodIDPtr, + _$onFlingListener.pointer, + ).check(); } static final _id_removeOnFlingListener = _class.instanceMethodId( @@ -8909,28 +9960,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$OnFlingListener;)V', ); - static final _removeOnFlingListener = 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 _removeOnFlingListener = + 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 removeOnFlingListener(org.maplibre.android.maps.MapLibreMap$OnFlingListener onFlingListener)` - void removeOnFlingListener( - MapLibreMap$OnFlingListener? onFlingListener, - ) { - final _$onFlingListener = - onFlingListener?.reference ?? jni$_.jNullReference; + void removeOnFlingListener(MapLibreMap$OnFlingListener onFlingListener) { + final _$onFlingListener = onFlingListener.reference; _removeOnFlingListener( - reference.pointer, - _id_removeOnFlingListener as jni$_.JMethodIDPtr, - _$onFlingListener.pointer) - .check(); + reference.pointer, + _id_removeOnFlingListener as jni$_.JMethodIDPtr, + _$onFlingListener.pointer, + ).check(); } static final _id_addOnMoveListener = _class.instanceMethodId( @@ -8938,27 +9993,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$OnMoveListener;)V', ); - static final _addOnMoveListener = 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 _addOnMoveListener = + 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 addOnMoveListener(org.maplibre.android.maps.MapLibreMap$OnMoveListener onMoveListener)` - void addOnMoveListener( - MapLibreMap$OnMoveListener? onMoveListener, - ) { - final _$onMoveListener = onMoveListener?.reference ?? jni$_.jNullReference; + void addOnMoveListener(MapLibreMap$OnMoveListener onMoveListener) { + final _$onMoveListener = onMoveListener.reference; _addOnMoveListener( - reference.pointer, - _id_addOnMoveListener as jni$_.JMethodIDPtr, - _$onMoveListener.pointer) - .check(); + reference.pointer, + _id_addOnMoveListener as jni$_.JMethodIDPtr, + _$onMoveListener.pointer, + ).check(); } static final _id_removeOnMoveListener = _class.instanceMethodId( @@ -8966,27 +10026,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$OnMoveListener;)V', ); - static final _removeOnMoveListener = 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 _removeOnMoveListener = + 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 removeOnMoveListener(org.maplibre.android.maps.MapLibreMap$OnMoveListener onMoveListener)` - void removeOnMoveListener( - MapLibreMap$OnMoveListener? onMoveListener, - ) { - final _$onMoveListener = onMoveListener?.reference ?? jni$_.jNullReference; + void removeOnMoveListener(MapLibreMap$OnMoveListener onMoveListener) { + final _$onMoveListener = onMoveListener.reference; _removeOnMoveListener( - reference.pointer, - _id_removeOnMoveListener as jni$_.JMethodIDPtr, - _$onMoveListener.pointer) - .check(); + reference.pointer, + _id_removeOnMoveListener as jni$_.JMethodIDPtr, + _$onMoveListener.pointer, + ).check(); } static final _id_addOnRotateListener = _class.instanceMethodId( @@ -8994,28 +10059,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$OnRotateListener;)V', ); - static final _addOnRotateListener = 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 _addOnRotateListener = + 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 addOnRotateListener(org.maplibre.android.maps.MapLibreMap$OnRotateListener onRotateListener)` - void addOnRotateListener( - MapLibreMap$OnRotateListener? onRotateListener, - ) { - final _$onRotateListener = - onRotateListener?.reference ?? jni$_.jNullReference; + void addOnRotateListener(MapLibreMap$OnRotateListener onRotateListener) { + final _$onRotateListener = onRotateListener.reference; _addOnRotateListener( - reference.pointer, - _id_addOnRotateListener as jni$_.JMethodIDPtr, - _$onRotateListener.pointer) - .check(); + reference.pointer, + _id_addOnRotateListener as jni$_.JMethodIDPtr, + _$onRotateListener.pointer, + ).check(); } static final _id_removeOnRotateListener = _class.instanceMethodId( @@ -9023,28 +10092,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$OnRotateListener;)V', ); - static final _removeOnRotateListener = 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 _removeOnRotateListener = + 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 removeOnRotateListener(org.maplibre.android.maps.MapLibreMap$OnRotateListener onRotateListener)` - void removeOnRotateListener( - MapLibreMap$OnRotateListener? onRotateListener, - ) { - final _$onRotateListener = - onRotateListener?.reference ?? jni$_.jNullReference; + void removeOnRotateListener(MapLibreMap$OnRotateListener onRotateListener) { + final _$onRotateListener = onRotateListener.reference; _removeOnRotateListener( - reference.pointer, - _id_removeOnRotateListener as jni$_.JMethodIDPtr, - _$onRotateListener.pointer) - .check(); + reference.pointer, + _id_removeOnRotateListener as jni$_.JMethodIDPtr, + _$onRotateListener.pointer, + ).check(); } static final _id_addOnScaleListener = _class.instanceMethodId( @@ -9052,28 +10125,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$OnScaleListener;)V', ); - static final _addOnScaleListener = 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 _addOnScaleListener = + 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 addOnScaleListener(org.maplibre.android.maps.MapLibreMap$OnScaleListener onScaleListener)` - void addOnScaleListener( - MapLibreMap$OnScaleListener? onScaleListener, - ) { - final _$onScaleListener = - onScaleListener?.reference ?? jni$_.jNullReference; + void addOnScaleListener(MapLibreMap$OnScaleListener onScaleListener) { + final _$onScaleListener = onScaleListener.reference; _addOnScaleListener( - reference.pointer, - _id_addOnScaleListener as jni$_.JMethodIDPtr, - _$onScaleListener.pointer) - .check(); + reference.pointer, + _id_addOnScaleListener as jni$_.JMethodIDPtr, + _$onScaleListener.pointer, + ).check(); } static final _id_removeOnScaleListener = _class.instanceMethodId( @@ -9081,28 +10158,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$OnScaleListener;)V', ); - static final _removeOnScaleListener = 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 _removeOnScaleListener = + 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 removeOnScaleListener(org.maplibre.android.maps.MapLibreMap$OnScaleListener onScaleListener)` - void removeOnScaleListener( - MapLibreMap$OnScaleListener? onScaleListener, - ) { - final _$onScaleListener = - onScaleListener?.reference ?? jni$_.jNullReference; + void removeOnScaleListener(MapLibreMap$OnScaleListener onScaleListener) { + final _$onScaleListener = onScaleListener.reference; _removeOnScaleListener( - reference.pointer, - _id_removeOnScaleListener as jni$_.JMethodIDPtr, - _$onScaleListener.pointer) - .check(); + reference.pointer, + _id_removeOnScaleListener as jni$_.JMethodIDPtr, + _$onScaleListener.pointer, + ).check(); } static final _id_addOnShoveListener = _class.instanceMethodId( @@ -9110,28 +10191,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$OnShoveListener;)V', ); - static final _addOnShoveListener = 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 _addOnShoveListener = + 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 addOnShoveListener(org.maplibre.android.maps.MapLibreMap$OnShoveListener onShoveListener)` - void addOnShoveListener( - MapLibreMap$OnShoveListener? onShoveListener, - ) { - final _$onShoveListener = - onShoveListener?.reference ?? jni$_.jNullReference; + void addOnShoveListener(MapLibreMap$OnShoveListener onShoveListener) { + final _$onShoveListener = onShoveListener.reference; _addOnShoveListener( - reference.pointer, - _id_addOnShoveListener as jni$_.JMethodIDPtr, - _$onShoveListener.pointer) - .check(); + reference.pointer, + _id_addOnShoveListener as jni$_.JMethodIDPtr, + _$onShoveListener.pointer, + ).check(); } static final _id_removeOnShoveListener = _class.instanceMethodId( @@ -9139,28 +10224,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$OnShoveListener;)V', ); - static final _removeOnShoveListener = 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 _removeOnShoveListener = + 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 removeOnShoveListener(org.maplibre.android.maps.MapLibreMap$OnShoveListener onShoveListener)` - void removeOnShoveListener( - MapLibreMap$OnShoveListener? onShoveListener, - ) { - final _$onShoveListener = - onShoveListener?.reference ?? jni$_.jNullReference; + void removeOnShoveListener(MapLibreMap$OnShoveListener onShoveListener) { + final _$onShoveListener = onShoveListener.reference; _removeOnShoveListener( - reference.pointer, - _id_removeOnShoveListener as jni$_.JMethodIDPtr, - _$onShoveListener.pointer) - .check(); + reference.pointer, + _id_removeOnShoveListener as jni$_.JMethodIDPtr, + _$onShoveListener.pointer, + ).check(); } static final _id_setGesturesManager = _class.instanceMethodId( @@ -9168,36 +10257,42 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/gestures/AndroidGesturesManager;ZZ)V', ); - static final _setGesturesManager = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setGesturesManager = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `public void setGesturesManager(org.maplibre.android.gestures.AndroidGesturesManager androidGesturesManager, boolean z, boolean z1)` void setGesturesManager( - jni$_.JObject? androidGesturesManager, + jni$_.JObject androidGesturesManager, bool z, bool z1, ) { - final _$androidGesturesManager = - androidGesturesManager?.reference ?? jni$_.jNullReference; + final _$androidGesturesManager = androidGesturesManager.reference; _setGesturesManager( - reference.pointer, - _id_setGesturesManager as jni$_.JMethodIDPtr, - _$androidGesturesManager.pointer, - z ? 1 : 0, - z1 ? 1 : 0) - .check(); + reference.pointer, + _id_setGesturesManager as jni$_.JMethodIDPtr, + _$androidGesturesManager.pointer, + z ? 1 : 0, + z1 ? 1 : 0, + ).check(); } static final _id_getGesturesManager = _class.instanceMethodId( @@ -9205,24 +10300,29 @@ class MapLibreMap extends jni$_.JObject { r'()Lorg/maplibre/android/gestures/AndroidGesturesManager;', ); - static final _getGesturesManager = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getGesturesManager = + 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 org.maplibre.android.gestures.AndroidGesturesManager getGesturesManager()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getGesturesManager() { + jni$_.JObject getGesturesManager() { return _getGesturesManager( - reference.pointer, _id_getGesturesManager as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getGesturesManager as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } static final _id_cancelAllVelocityAnimations = _class.instanceMethodId( @@ -9232,22 +10332,26 @@ class MapLibreMap extends jni$_.JObject { static final _cancelAllVelocityAnimations = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void cancelAllVelocityAnimations()` void cancelAllVelocityAnimations() { - _cancelAllVelocityAnimations(reference.pointer, - _id_cancelAllVelocityAnimations as jni$_.JMethodIDPtr) - .check(); + _cancelAllVelocityAnimations( + reference.pointer, + _id_cancelAllVelocityAnimations as jni$_.JMethodIDPtr, + ).check(); } static final _id_addOnMapClickListener = _class.instanceMethodId( @@ -9255,28 +10359,34 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$OnMapClickListener;)V', ); - static final _addOnMapClickListener = 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 _addOnMapClickListener = + 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 addOnMapClickListener(org.maplibre.android.maps.MapLibreMap$OnMapClickListener onMapClickListener)` void addOnMapClickListener( - MapLibreMap$OnMapClickListener? onMapClickListener, + MapLibreMap$OnMapClickListener onMapClickListener, ) { - final _$onMapClickListener = - onMapClickListener?.reference ?? jni$_.jNullReference; + final _$onMapClickListener = onMapClickListener.reference; _addOnMapClickListener( - reference.pointer, - _id_addOnMapClickListener as jni$_.JMethodIDPtr, - _$onMapClickListener.pointer) - .check(); + reference.pointer, + _id_addOnMapClickListener as jni$_.JMethodIDPtr, + _$onMapClickListener.pointer, + ).check(); } static final _id_removeOnMapClickListener = _class.instanceMethodId( @@ -9284,28 +10394,34 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$OnMapClickListener;)V', ); - static final _removeOnMapClickListener = 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 _removeOnMapClickListener = + 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 removeOnMapClickListener(org.maplibre.android.maps.MapLibreMap$OnMapClickListener onMapClickListener)` void removeOnMapClickListener( - MapLibreMap$OnMapClickListener? onMapClickListener, + MapLibreMap$OnMapClickListener onMapClickListener, ) { - final _$onMapClickListener = - onMapClickListener?.reference ?? jni$_.jNullReference; + final _$onMapClickListener = onMapClickListener.reference; _removeOnMapClickListener( - reference.pointer, - _id_removeOnMapClickListener as jni$_.JMethodIDPtr, - _$onMapClickListener.pointer) - .check(); + reference.pointer, + _id_removeOnMapClickListener as jni$_.JMethodIDPtr, + _$onMapClickListener.pointer, + ).check(); } static final _id_addOnMapLongClickListener = _class.instanceMethodId( @@ -9313,28 +10429,34 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$OnMapLongClickListener;)V', ); - static final _addOnMapLongClickListener = 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 _addOnMapLongClickListener = + 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 addOnMapLongClickListener(org.maplibre.android.maps.MapLibreMap$OnMapLongClickListener onMapLongClickListener)` void addOnMapLongClickListener( - MapLibreMap$OnMapLongClickListener? onMapLongClickListener, + MapLibreMap$OnMapLongClickListener onMapLongClickListener, ) { - final _$onMapLongClickListener = - onMapLongClickListener?.reference ?? jni$_.jNullReference; + final _$onMapLongClickListener = onMapLongClickListener.reference; _addOnMapLongClickListener( - reference.pointer, - _id_addOnMapLongClickListener as jni$_.JMethodIDPtr, - _$onMapLongClickListener.pointer) - .check(); + reference.pointer, + _id_addOnMapLongClickListener as jni$_.JMethodIDPtr, + _$onMapLongClickListener.pointer, + ).check(); } static final _id_removeOnMapLongClickListener = _class.instanceMethodId( @@ -9344,27 +10466,32 @@ class MapLibreMap extends jni$_.JObject { static final _removeOnMapLongClickListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnMapLongClickListener(org.maplibre.android.maps.MapLibreMap$OnMapLongClickListener onMapLongClickListener)` void removeOnMapLongClickListener( - MapLibreMap$OnMapLongClickListener? onMapLongClickListener, + MapLibreMap$OnMapLongClickListener onMapLongClickListener, ) { - final _$onMapLongClickListener = - onMapLongClickListener?.reference ?? jni$_.jNullReference; + final _$onMapLongClickListener = onMapLongClickListener.reference; _removeOnMapLongClickListener( - reference.pointer, - _id_removeOnMapLongClickListener as jni$_.JMethodIDPtr, - _$onMapLongClickListener.pointer) - .check(); + reference.pointer, + _id_removeOnMapLongClickListener as jni$_.JMethodIDPtr, + _$onMapLongClickListener.pointer, + ).check(); } static final _id_setOnInfoWindowClickListener = _class.instanceMethodId( @@ -9374,15 +10501,21 @@ class MapLibreMap extends jni$_.JObject { static final _setOnInfoWindowClickListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void setOnInfoWindowClickListener(org.maplibre.android.maps.MapLibreMap$OnInfoWindowClickListener onInfoWindowClickListener)` void setOnInfoWindowClickListener( @@ -9391,10 +10524,10 @@ class MapLibreMap extends jni$_.JObject { final _$onInfoWindowClickListener = onInfoWindowClickListener?.reference ?? jni$_.jNullReference; _setOnInfoWindowClickListener( - reference.pointer, - _id_setOnInfoWindowClickListener as jni$_.JMethodIDPtr, - _$onInfoWindowClickListener.pointer) - .check(); + reference.pointer, + _id_setOnInfoWindowClickListener as jni$_.JMethodIDPtr, + _$onInfoWindowClickListener.pointer, + ).check(); } static final _id_getOnInfoWindowClickListener = _class.instanceMethodId( @@ -9404,24 +10537,29 @@ class MapLibreMap extends jni$_.JObject { static final _getOnInfoWindowClickListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMap$OnInfoWindowClickListener getOnInfoWindowClickListener()` /// The returned object must be released after use, by calling the [release] method. MapLibreMap$OnInfoWindowClickListener? getOnInfoWindowClickListener() { - return _getOnInfoWindowClickListener(reference.pointer, - _id_getOnInfoWindowClickListener as jni$_.JMethodIDPtr) - .object( - const $MapLibreMap$OnInfoWindowClickListener$NullableType()); + return _getOnInfoWindowClickListener( + reference.pointer, + _id_getOnInfoWindowClickListener as jni$_.JMethodIDPtr, + ).object( + const $MapLibreMap$OnInfoWindowClickListener$NullableType(), + ); } static final _id_setOnInfoWindowLongClickListener = _class.instanceMethodId( @@ -9431,15 +10569,21 @@ class MapLibreMap extends jni$_.JObject { static final _setOnInfoWindowLongClickListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void setOnInfoWindowLongClickListener(org.maplibre.android.maps.MapLibreMap$OnInfoWindowLongClickListener onInfoWindowLongClickListener)` void setOnInfoWindowLongClickListener( @@ -9448,10 +10592,10 @@ class MapLibreMap extends jni$_.JObject { final _$onInfoWindowLongClickListener = onInfoWindowLongClickListener?.reference ?? jni$_.jNullReference; _setOnInfoWindowLongClickListener( - reference.pointer, - _id_setOnInfoWindowLongClickListener as jni$_.JMethodIDPtr, - _$onInfoWindowLongClickListener.pointer) - .check(); + reference.pointer, + _id_setOnInfoWindowLongClickListener as jni$_.JMethodIDPtr, + _$onInfoWindowLongClickListener.pointer, + ).check(); } static final _id_getOnInfoWindowLongClickListener = _class.instanceMethodId( @@ -9461,25 +10605,30 @@ class MapLibreMap extends jni$_.JObject { static final _getOnInfoWindowLongClickListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMap$OnInfoWindowLongClickListener getOnInfoWindowLongClickListener()` /// The returned object must be released after use, by calling the [release] method. MapLibreMap$OnInfoWindowLongClickListener? - getOnInfoWindowLongClickListener() { - return _getOnInfoWindowLongClickListener(reference.pointer, - _id_getOnInfoWindowLongClickListener as jni$_.JMethodIDPtr) - .object( - const $MapLibreMap$OnInfoWindowLongClickListener$NullableType()); + getOnInfoWindowLongClickListener() { + return _getOnInfoWindowLongClickListener( + reference.pointer, + _id_getOnInfoWindowLongClickListener as jni$_.JMethodIDPtr, + ).object( + const $MapLibreMap$OnInfoWindowLongClickListener$NullableType(), + ); } static final _id_setOnInfoWindowCloseListener = _class.instanceMethodId( @@ -9489,15 +10638,21 @@ class MapLibreMap extends jni$_.JObject { static final _setOnInfoWindowCloseListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void setOnInfoWindowCloseListener(org.maplibre.android.maps.MapLibreMap$OnInfoWindowCloseListener onInfoWindowCloseListener)` void setOnInfoWindowCloseListener( @@ -9506,10 +10661,10 @@ class MapLibreMap extends jni$_.JObject { final _$onInfoWindowCloseListener = onInfoWindowCloseListener?.reference ?? jni$_.jNullReference; _setOnInfoWindowCloseListener( - reference.pointer, - _id_setOnInfoWindowCloseListener as jni$_.JMethodIDPtr, - _$onInfoWindowCloseListener.pointer) - .check(); + reference.pointer, + _id_setOnInfoWindowCloseListener as jni$_.JMethodIDPtr, + _$onInfoWindowCloseListener.pointer, + ).check(); } static final _id_getOnInfoWindowCloseListener = _class.instanceMethodId( @@ -9519,24 +10674,29 @@ class MapLibreMap extends jni$_.JObject { static final _getOnInfoWindowCloseListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMap$OnInfoWindowCloseListener getOnInfoWindowCloseListener()` /// The returned object must be released after use, by calling the [release] method. MapLibreMap$OnInfoWindowCloseListener? getOnInfoWindowCloseListener() { - return _getOnInfoWindowCloseListener(reference.pointer, - _id_getOnInfoWindowCloseListener as jni$_.JMethodIDPtr) - .object( - const $MapLibreMap$OnInfoWindowCloseListener$NullableType()); + return _getOnInfoWindowCloseListener( + reference.pointer, + _id_getOnInfoWindowCloseListener as jni$_.JMethodIDPtr, + ).object( + const $MapLibreMap$OnInfoWindowCloseListener$NullableType(), + ); } static final _id_snapshot = _class.instanceMethodId( @@ -9544,26 +10704,32 @@ class MapLibreMap extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap$SnapshotReadyCallback;)V', ); - static final _snapshot = 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 _snapshot = + 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 snapshot(org.maplibre.android.maps.MapLibreMap$SnapshotReadyCallback snapshotReadyCallback)` - void snapshot( - MapLibreMap$SnapshotReadyCallback? snapshotReadyCallback, - ) { - final _$snapshotReadyCallback = - snapshotReadyCallback?.reference ?? jni$_.jNullReference; - _snapshot(reference.pointer, _id_snapshot as jni$_.JMethodIDPtr, - _$snapshotReadyCallback.pointer) - .check(); + void snapshot(MapLibreMap$SnapshotReadyCallback snapshotReadyCallback) { + final _$snapshotReadyCallback = snapshotReadyCallback.reference; + _snapshot( + reference.pointer, + _id_snapshot as jni$_.JMethodIDPtr, + _$snapshotReadyCallback.pointer, + ).check(); } static final _id_queryRenderedFeatures = _class.instanceMethodId( @@ -9571,39 +10737,45 @@ class MapLibreMap extends jni$_.JObject { r'(Landroid/graphics/PointF;[Ljava/lang/String;)Ljava/util/List;', ); - static final _queryRenderedFeatures = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _queryRenderedFeatures = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); - /// from: `public java.util.List queryRenderedFeatures(android.graphics.PointF pointF, java.lang.Object[] strings)` + /// from: `public java.util.List queryRenderedFeatures(android.graphics.PointF pointF, java.lang.String[] strings)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? queryRenderedFeatures( - pointf$_.PointF? pointF, + jni$_.JList queryRenderedFeatures( + pointf$_.PointF pointF, jni$_.JArray? strings, ) { - final _$pointF = pointF?.reference ?? jni$_.jNullReference; + final _$pointF = pointF.reference; final _$strings = strings?.reference ?? jni$_.jNullReference; return _queryRenderedFeatures( - reference.pointer, - _id_queryRenderedFeatures as jni$_.JMethodIDPtr, - _$pointF.pointer, - _$strings.pointer) - .object?>( - const jni$_.JListNullableType( - feature$_.$Feature$NullableType())); + reference.pointer, + _id_queryRenderedFeatures as jni$_.JMethodIDPtr, + _$pointF.pointer, + _$strings.pointer, + ).object>( + const jni$_.JListType( + feature$_.$Feature$NullableType(), + ), + ); } static final _id_queryRenderedFeatures$1 = _class.instanceMethodId( @@ -9611,44 +10783,53 @@ class MapLibreMap extends jni$_.JObject { r'(Landroid/graphics/PointF;Lorg/maplibre/android/style/expressions/Expression;[Ljava/lang/String;)Ljava/util/List;', ); - static final _queryRenderedFeatures$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _queryRenderedFeatures$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); - /// from: `public java.util.List queryRenderedFeatures(android.graphics.PointF pointF, org.maplibre.android.style.expressions.Expression expression, java.lang.Object[] strings)` + /// from: `public java.util.List queryRenderedFeatures(android.graphics.PointF pointF, org.maplibre.android.style.expressions.Expression expression, java.lang.String[] strings)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? queryRenderedFeatures$1( - pointf$_.PointF? pointF, + jni$_.JList queryRenderedFeatures$1( + pointf$_.PointF pointF, jni$_.JObject? expression, jni$_.JArray? strings, ) { - final _$pointF = pointF?.reference ?? jni$_.jNullReference; + final _$pointF = pointF.reference; final _$expression = expression?.reference ?? jni$_.jNullReference; final _$strings = strings?.reference ?? jni$_.jNullReference; return _queryRenderedFeatures$1( - reference.pointer, - _id_queryRenderedFeatures$1 as jni$_.JMethodIDPtr, - _$pointF.pointer, - _$expression.pointer, - _$strings.pointer) - .object?>( - const jni$_.JListNullableType( - feature$_.$Feature$NullableType())); + reference.pointer, + _id_queryRenderedFeatures$1 as jni$_.JMethodIDPtr, + _$pointF.pointer, + _$expression.pointer, + _$strings.pointer, + ).object>( + const jni$_.JListType( + feature$_.$Feature$NullableType(), + ), + ); } static final _id_queryRenderedFeatures$2 = _class.instanceMethodId( @@ -9656,39 +10837,45 @@ class MapLibreMap extends jni$_.JObject { r'(Landroid/graphics/RectF;[Ljava/lang/String;)Ljava/util/List;', ); - static final _queryRenderedFeatures$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _queryRenderedFeatures$2 = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); - /// from: `public java.util.List queryRenderedFeatures(android.graphics.RectF rectF, java.lang.Object[] strings)` + /// from: `public java.util.List queryRenderedFeatures(android.graphics.RectF rectF, java.lang.String[] strings)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? queryRenderedFeatures$2( - jni$_.JObject? rectF, + jni$_.JList queryRenderedFeatures$2( + jni$_.JObject rectF, jni$_.JArray? strings, ) { - final _$rectF = rectF?.reference ?? jni$_.jNullReference; + final _$rectF = rectF.reference; final _$strings = strings?.reference ?? jni$_.jNullReference; return _queryRenderedFeatures$2( - reference.pointer, - _id_queryRenderedFeatures$2 as jni$_.JMethodIDPtr, - _$rectF.pointer, - _$strings.pointer) - .object?>( - const jni$_.JListNullableType( - feature$_.$Feature$NullableType())); + reference.pointer, + _id_queryRenderedFeatures$2 as jni$_.JMethodIDPtr, + _$rectF.pointer, + _$strings.pointer, + ).object>( + const jni$_.JListType( + feature$_.$Feature$NullableType(), + ), + ); } static final _id_queryRenderedFeatures$3 = _class.instanceMethodId( @@ -9696,44 +10883,53 @@ class MapLibreMap extends jni$_.JObject { r'(Landroid/graphics/RectF;Lorg/maplibre/android/style/expressions/Expression;[Ljava/lang/String;)Ljava/util/List;', ); - static final _queryRenderedFeatures$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _queryRenderedFeatures$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); - /// from: `public java.util.List queryRenderedFeatures(android.graphics.RectF rectF, org.maplibre.android.style.expressions.Expression expression, java.lang.Object[] strings)` + /// from: `public java.util.List queryRenderedFeatures(android.graphics.RectF rectF, org.maplibre.android.style.expressions.Expression expression, java.lang.String[] strings)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? queryRenderedFeatures$3( - jni$_.JObject? rectF, + jni$_.JList queryRenderedFeatures$3( + jni$_.JObject rectF, jni$_.JObject? expression, jni$_.JArray? strings, ) { - final _$rectF = rectF?.reference ?? jni$_.jNullReference; + final _$rectF = rectF.reference; final _$expression = expression?.reference ?? jni$_.jNullReference; final _$strings = strings?.reference ?? jni$_.jNullReference; return _queryRenderedFeatures$3( - reference.pointer, - _id_queryRenderedFeatures$3 as jni$_.JMethodIDPtr, - _$rectF.pointer, - _$expression.pointer, - _$strings.pointer) - .object?>( - const jni$_.JListNullableType( - feature$_.$Feature$NullableType())); + reference.pointer, + _id_queryRenderedFeatures$3 as jni$_.JMethodIDPtr, + _$rectF.pointer, + _$expression.pointer, + _$strings.pointer, + ).object>( + const jni$_.JListType( + feature$_.$Feature$NullableType(), + ), + ); } static final _id_getLocationComponent = _class.instanceMethodId( @@ -9741,25 +10937,31 @@ class MapLibreMap extends jni$_.JObject { r'()Lorg/maplibre/android/location/LocationComponent;', ); - static final _getLocationComponent = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLocationComponent = + 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 org.maplibre.android.location.LocationComponent getLocationComponent()` /// The returned object must be released after use, by calling the [release] method. - locationcomponent$_.LocationComponent? getLocationComponent() { + locationcomponent$_.LocationComponent getLocationComponent() { return _getLocationComponent( - reference.pointer, _id_getLocationComponent as jni$_.JMethodIDPtr) - .object( - const locationcomponent$_.$LocationComponent$NullableType()); + reference.pointer, + _id_getLocationComponent as jni$_.JMethodIDPtr, + ).object( + const locationcomponent$_.$LocationComponent$Type(), + ); } } @@ -9773,11 +10975,8 @@ final class $MapLibreMap$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - MapLibreMap? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapLibreMap.fromReference( - reference, - ); + MapLibreMap? fromReference(jni$_.JReference reference) => + reference.isNull ? null : MapLibreMap.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -9811,9 +11010,7 @@ final class $MapLibreMap$Type extends jni$_.JObjType { @jni$_.internal @core$_.override MapLibreMap fromReference(jni$_.JReference reference) => - MapLibreMap.fromReference( - reference, - ); + MapLibreMap.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/maps/MapLibreMapOptions.dart b/lib/src/platform/android/jni/org/maplibre/android/maps/MapLibreMapOptions.dart index 7272168d..62687920 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/maps/MapLibreMapOptions.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/maps/MapLibreMapOptions.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -59,13 +47,13 @@ class MapLibreMapOptions extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapLibreMapOptions.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapLibreMapOptions.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/maps/MapLibreMapOptions'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/maps/MapLibreMapOptions', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapLibreMapOptions$NullableType(); @@ -75,33 +63,35 @@ class MapLibreMapOptions extends jni$_.JObject { r'Landroid/os/Parcelable$Creator;', ); - /// from: `static public final android.os.Parcelable$Creator CREATOR` + /// 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()); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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, - )>(); + ) + > + >('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 MapLibreMapOptions() { return MapLibreMapOptions.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } static final _id_createFromAttributes = _class.staticMethodId( @@ -109,26 +99,33 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Landroid/content/Context;)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _createFromAttributes = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _createFromAttributes = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public org.maplibre.android.maps.MapLibreMapOptions createFromAttributes(android.content.Context context)` /// The returned object must be released after use, by calling the [release] method. - static MapLibreMapOptions? createFromAttributes( - jni$_.JObject? context, - ) { - final _$context = context?.reference ?? jni$_.jNullReference; - return _createFromAttributes(_class.reference.pointer, - _id_createFromAttributes as jni$_.JMethodIDPtr, _$context.pointer) - .object(const $MapLibreMapOptions$NullableType()); + static MapLibreMapOptions createFromAttributes(jni$_.JObject context) { + final _$context = context.reference; + return _createFromAttributes( + _class.reference.pointer, + _id_createFromAttributes as jni$_.JMethodIDPtr, + _$context.pointer, + ).object(const $MapLibreMapOptions$Type()); } static final _id_createFromAttributes$1 = _class.staticMethodId( @@ -136,37 +133,41 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Landroid/content/Context;Landroid/util/AttributeSet;)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _createFromAttributes$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _createFromAttributes$1 = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public org.maplibre.android.maps.MapLibreMapOptions createFromAttributes(android.content.Context context, android.util.AttributeSet attributeSet)` /// The returned object must be released after use, by calling the [release] method. - static MapLibreMapOptions? createFromAttributes$1( - jni$_.JObject? context, + static MapLibreMapOptions createFromAttributes$1( + jni$_.JObject context, jni$_.JObject? attributeSet, ) { - final _$context = context?.reference ?? jni$_.jNullReference; + final _$context = context.reference; final _$attributeSet = attributeSet?.reference ?? jni$_.jNullReference; return _createFromAttributes$1( - _class.reference.pointer, - _id_createFromAttributes$1 as jni$_.JMethodIDPtr, - _$context.pointer, - _$attributeSet.pointer) - .object(const $MapLibreMapOptions$NullableType()); + _class.reference.pointer, + _id_createFromAttributes$1 as jni$_.JMethodIDPtr, + _$context.pointer, + _$attributeSet.pointer, + ).object(const $MapLibreMapOptions$Type()); } static final _id_apiBaseUrl = _class.instanceMethodId( @@ -174,26 +175,33 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Ljava/lang/String;)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _apiBaseUrl = 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)>(); + static final _apiBaseUrl = + 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 org.maplibre.android.maps.MapLibreMapOptions apiBaseUrl(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? apiBaseUrl( - jni$_.JString? string, - ) { + MapLibreMapOptions apiBaseUrl(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _apiBaseUrl(reference.pointer, _id_apiBaseUrl as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $MapLibreMapOptions$NullableType()); + return _apiBaseUrl( + reference.pointer, + _id_apiBaseUrl as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $MapLibreMapOptions$Type()); } static final _id_apiBaseUri = _class.instanceMethodId( @@ -201,26 +209,33 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Ljava/lang/String;)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _apiBaseUri = 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)>(); + static final _apiBaseUri = + 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 org.maplibre.android.maps.MapLibreMapOptions apiBaseUri(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? apiBaseUri( - jni$_.JString? string, - ) { + MapLibreMapOptions apiBaseUri(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _apiBaseUri(reference.pointer, _id_apiBaseUri as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $MapLibreMapOptions$NullableType()); + return _apiBaseUri( + reference.pointer, + _id_apiBaseUri as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $MapLibreMapOptions$Type()); } static final _id_camera = _class.instanceMethodId( @@ -228,26 +243,33 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Lorg/maplibre/android/camera/CameraPosition;)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _camera = 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)>(); + static final _camera = + 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 org.maplibre.android.maps.MapLibreMapOptions camera(org.maplibre.android.camera.CameraPosition cameraPosition)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? camera( - cameraposition$_.CameraPosition? cameraPosition, - ) { + MapLibreMapOptions camera(cameraposition$_.CameraPosition? cameraPosition) { final _$cameraPosition = cameraPosition?.reference ?? jni$_.jNullReference; - return _camera(reference.pointer, _id_camera as jni$_.JMethodIDPtr, - _$cameraPosition.pointer) - .object(const $MapLibreMapOptions$NullableType()); + return _camera( + reference.pointer, + _id_camera as jni$_.JMethodIDPtr, + _$cameraPosition.pointer, + ).object(const $MapLibreMapOptions$Type()); } static final _id_debugActive = _class.instanceMethodId( @@ -255,24 +277,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Z)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _debugActive = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _debugActive = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions debugActive(boolean z)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? debugActive( - bool z, - ) { + MapLibreMapOptions debugActive(bool z) { return _debugActive( - reference.pointer, _id_debugActive as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $MapLibreMapOptions$NullableType()); + reference.pointer, + _id_debugActive as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $MapLibreMapOptions$Type()); } static final _id_minZoomPreference = _class.instanceMethodId( @@ -280,25 +310,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(D)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _minZoomPreference = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _minZoomPreference = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Double,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions minZoomPreference(double d)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? minZoomPreference( - double d, - ) { + MapLibreMapOptions minZoomPreference(double d) { return _minZoomPreference( - reference.pointer, _id_minZoomPreference as jni$_.JMethodIDPtr, d) - .object(const $MapLibreMapOptions$NullableType()); + reference.pointer, + _id_minZoomPreference as jni$_.JMethodIDPtr, + d, + ).object(const $MapLibreMapOptions$Type()); } static final _id_maxZoomPreference = _class.instanceMethodId( @@ -306,25 +343,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(D)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _maxZoomPreference = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _maxZoomPreference = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Double,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions maxZoomPreference(double d)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? maxZoomPreference( - double d, - ) { + MapLibreMapOptions maxZoomPreference(double d) { return _maxZoomPreference( - reference.pointer, _id_maxZoomPreference as jni$_.JMethodIDPtr, d) - .object(const $MapLibreMapOptions$NullableType()); + reference.pointer, + _id_maxZoomPreference as jni$_.JMethodIDPtr, + d, + ).object(const $MapLibreMapOptions$Type()); } static final _id_minPitchPreference = _class.instanceMethodId( @@ -332,25 +376,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(D)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _minPitchPreference = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _minPitchPreference = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Double,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions minPitchPreference(double d)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? minPitchPreference( - double d, - ) { + MapLibreMapOptions minPitchPreference(double d) { return _minPitchPreference( - reference.pointer, _id_minPitchPreference as jni$_.JMethodIDPtr, d) - .object(const $MapLibreMapOptions$NullableType()); + reference.pointer, + _id_minPitchPreference as jni$_.JMethodIDPtr, + d, + ).object(const $MapLibreMapOptions$Type()); } static final _id_maxPitchPreference = _class.instanceMethodId( @@ -358,25 +409,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(D)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _maxPitchPreference = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _maxPitchPreference = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Double,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions maxPitchPreference(double d)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? maxPitchPreference( - double d, - ) { + MapLibreMapOptions maxPitchPreference(double d) { return _maxPitchPreference( - reference.pointer, _id_maxPitchPreference as jni$_.JMethodIDPtr, d) - .object(const $MapLibreMapOptions$NullableType()); + reference.pointer, + _id_maxPitchPreference as jni$_.JMethodIDPtr, + d, + ).object(const $MapLibreMapOptions$Type()); } static final _id_compassEnabled = _class.instanceMethodId( @@ -384,24 +442,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Z)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _compassEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compassEnabled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions compassEnabled(boolean z)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? compassEnabled( - bool z, - ) { - return _compassEnabled(reference.pointer, - _id_compassEnabled as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $MapLibreMapOptions$NullableType()); + MapLibreMapOptions compassEnabled(bool z) { + return _compassEnabled( + reference.pointer, + _id_compassEnabled as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $MapLibreMapOptions$Type()); } static final _id_compassGravity = _class.instanceMethodId( @@ -409,24 +475,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(I)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _compassGravity = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compassGravity = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions compassGravity(int i)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? compassGravity( - int i, - ) { + MapLibreMapOptions compassGravity(int i) { return _compassGravity( - reference.pointer, _id_compassGravity as jni$_.JMethodIDPtr, i) - .object(const $MapLibreMapOptions$NullableType()); + reference.pointer, + _id_compassGravity as jni$_.JMethodIDPtr, + i, + ).object(const $MapLibreMapOptions$Type()); } static final _id_compassMargins = _class.instanceMethodId( @@ -434,26 +508,33 @@ class MapLibreMapOptions extends jni$_.JObject { r'([I)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _compassMargins = 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)>(); + static final _compassMargins = + 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 org.maplibre.android.maps.MapLibreMapOptions compassMargins(int[] is)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? compassMargins( - jni$_.JIntArray? is$, - ) { + MapLibreMapOptions compassMargins(jni$_.JIntArray? is$) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _compassMargins(reference.pointer, - _id_compassMargins as jni$_.JMethodIDPtr, _$is$.pointer) - .object(const $MapLibreMapOptions$NullableType()); + return _compassMargins( + reference.pointer, + _id_compassMargins as jni$_.JMethodIDPtr, + _$is$.pointer, + ).object(const $MapLibreMapOptions$Type()); } static final _id_compassFadesWhenFacingNorth = _class.instanceMethodId( @@ -463,22 +544,30 @@ class MapLibreMapOptions extends jni$_.JObject { static final _compassFadesWhenFacingNorth = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions compassFadesWhenFacingNorth(boolean z)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? compassFadesWhenFacingNorth( - bool z, - ) { - return _compassFadesWhenFacingNorth(reference.pointer, - _id_compassFadesWhenFacingNorth as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $MapLibreMapOptions$NullableType()); + MapLibreMapOptions compassFadesWhenFacingNorth(bool z) { + return _compassFadesWhenFacingNorth( + reference.pointer, + _id_compassFadesWhenFacingNorth as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $MapLibreMapOptions$Type()); } static final _id_compassImage = _class.instanceMethodId( @@ -486,26 +575,33 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Landroid/graphics/drawable/Drawable;)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _compassImage = 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)>(); + static final _compassImage = + 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 org.maplibre.android.maps.MapLibreMapOptions compassImage(android.graphics.drawable.Drawable drawable)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? compassImage( - jni$_.JObject? drawable, - ) { + MapLibreMapOptions compassImage(jni$_.JObject? drawable) { final _$drawable = drawable?.reference ?? jni$_.jNullReference; - return _compassImage(reference.pointer, - _id_compassImage as jni$_.JMethodIDPtr, _$drawable.pointer) - .object(const $MapLibreMapOptions$NullableType()); + return _compassImage( + reference.pointer, + _id_compassImage as jni$_.JMethodIDPtr, + _$drawable.pointer, + ).object(const $MapLibreMapOptions$Type()); } static final _id_logoEnabled = _class.instanceMethodId( @@ -513,24 +609,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Z)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _logoEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _logoEnabled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions logoEnabled(boolean z)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? logoEnabled( - bool z, - ) { + MapLibreMapOptions logoEnabled(bool z) { return _logoEnabled( - reference.pointer, _id_logoEnabled as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $MapLibreMapOptions$NullableType()); + reference.pointer, + _id_logoEnabled as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $MapLibreMapOptions$Type()); } static final _id_logoGravity = _class.instanceMethodId( @@ -538,24 +642,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(I)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _logoGravity = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _logoGravity = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions logoGravity(int i)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? logoGravity( - int i, - ) { + MapLibreMapOptions logoGravity(int i) { return _logoGravity( - reference.pointer, _id_logoGravity as jni$_.JMethodIDPtr, i) - .object(const $MapLibreMapOptions$NullableType()); + reference.pointer, + _id_logoGravity as jni$_.JMethodIDPtr, + i, + ).object(const $MapLibreMapOptions$Type()); } static final _id_logoMargins = _class.instanceMethodId( @@ -563,26 +675,33 @@ class MapLibreMapOptions extends jni$_.JObject { r'([I)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _logoMargins = 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)>(); + static final _logoMargins = + 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 org.maplibre.android.maps.MapLibreMapOptions logoMargins(int[] is)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? logoMargins( - jni$_.JIntArray? is$, - ) { + MapLibreMapOptions logoMargins(jni$_.JIntArray? is$) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _logoMargins(reference.pointer, - _id_logoMargins as jni$_.JMethodIDPtr, _$is$.pointer) - .object(const $MapLibreMapOptions$NullableType()); + return _logoMargins( + reference.pointer, + _id_logoMargins as jni$_.JMethodIDPtr, + _$is$.pointer, + ).object(const $MapLibreMapOptions$Type()); } static final _id_attributionEnabled = _class.instanceMethodId( @@ -590,24 +709,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Z)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _attributionEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _attributionEnabled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions attributionEnabled(boolean z)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? attributionEnabled( - bool z, - ) { - return _attributionEnabled(reference.pointer, - _id_attributionEnabled as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $MapLibreMapOptions$NullableType()); + MapLibreMapOptions attributionEnabled(bool z) { + return _attributionEnabled( + reference.pointer, + _id_attributionEnabled as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $MapLibreMapOptions$Type()); } static final _id_attributionGravity = _class.instanceMethodId( @@ -615,24 +742,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(I)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _attributionGravity = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _attributionGravity = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions attributionGravity(int i)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? attributionGravity( - int i, - ) { + MapLibreMapOptions attributionGravity(int i) { return _attributionGravity( - reference.pointer, _id_attributionGravity as jni$_.JMethodIDPtr, i) - .object(const $MapLibreMapOptions$NullableType()); + reference.pointer, + _id_attributionGravity as jni$_.JMethodIDPtr, + i, + ).object(const $MapLibreMapOptions$Type()); } static final _id_attributionMargins = _class.instanceMethodId( @@ -640,26 +775,33 @@ class MapLibreMapOptions extends jni$_.JObject { r'([I)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _attributionMargins = 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)>(); + static final _attributionMargins = + 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 org.maplibre.android.maps.MapLibreMapOptions attributionMargins(int[] is)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? attributionMargins( - jni$_.JIntArray? is$, - ) { + MapLibreMapOptions attributionMargins(jni$_.JIntArray? is$) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _attributionMargins(reference.pointer, - _id_attributionMargins as jni$_.JMethodIDPtr, _$is$.pointer) - .object(const $MapLibreMapOptions$NullableType()); + return _attributionMargins( + reference.pointer, + _id_attributionMargins as jni$_.JMethodIDPtr, + _$is$.pointer, + ).object(const $MapLibreMapOptions$Type()); } static final _id_attributionTintColor = _class.instanceMethodId( @@ -667,24 +809,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(I)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _attributionTintColor = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _attributionTintColor = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions attributionTintColor(int i)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? attributionTintColor( - int i, - ) { - return _attributionTintColor(reference.pointer, - _id_attributionTintColor as jni$_.JMethodIDPtr, i) - .object(const $MapLibreMapOptions$NullableType()); + MapLibreMapOptions attributionTintColor(int i) { + return _attributionTintColor( + reference.pointer, + _id_attributionTintColor as jni$_.JMethodIDPtr, + i, + ).object(const $MapLibreMapOptions$Type()); } static final _id_rotateGesturesEnabled = _class.instanceMethodId( @@ -692,24 +842,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Z)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _rotateGesturesEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _rotateGesturesEnabled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions rotateGesturesEnabled(boolean z)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? rotateGesturesEnabled( - bool z, - ) { - return _rotateGesturesEnabled(reference.pointer, - _id_rotateGesturesEnabled as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $MapLibreMapOptions$NullableType()); + MapLibreMapOptions rotateGesturesEnabled(bool z) { + return _rotateGesturesEnabled( + reference.pointer, + _id_rotateGesturesEnabled as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $MapLibreMapOptions$Type()); } static final _id_scrollGesturesEnabled = _class.instanceMethodId( @@ -717,24 +875,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Z)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _scrollGesturesEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _scrollGesturesEnabled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions scrollGesturesEnabled(boolean z)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? scrollGesturesEnabled( - bool z, - ) { - return _scrollGesturesEnabled(reference.pointer, - _id_scrollGesturesEnabled as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $MapLibreMapOptions$NullableType()); + MapLibreMapOptions scrollGesturesEnabled(bool z) { + return _scrollGesturesEnabled( + reference.pointer, + _id_scrollGesturesEnabled as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $MapLibreMapOptions$Type()); } static final _id_horizontalScrollGesturesEnabled = _class.instanceMethodId( @@ -744,24 +910,30 @@ class MapLibreMapOptions extends jni$_.JObject { static final _horizontalScrollGesturesEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions horizontalScrollGesturesEnabled(boolean z)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? horizontalScrollGesturesEnabled( - bool z, - ) { + MapLibreMapOptions horizontalScrollGesturesEnabled(bool z) { return _horizontalScrollGesturesEnabled( - reference.pointer, - _id_horizontalScrollGesturesEnabled as jni$_.JMethodIDPtr, - z ? 1 : 0) - .object(const $MapLibreMapOptions$NullableType()); + reference.pointer, + _id_horizontalScrollGesturesEnabled as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $MapLibreMapOptions$Type()); } static final _id_tiltGesturesEnabled = _class.instanceMethodId( @@ -769,24 +941,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Z)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _tiltGesturesEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _tiltGesturesEnabled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions tiltGesturesEnabled(boolean z)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? tiltGesturesEnabled( - bool z, - ) { - return _tiltGesturesEnabled(reference.pointer, - _id_tiltGesturesEnabled as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $MapLibreMapOptions$NullableType()); + MapLibreMapOptions tiltGesturesEnabled(bool z) { + return _tiltGesturesEnabled( + reference.pointer, + _id_tiltGesturesEnabled as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $MapLibreMapOptions$Type()); } static final _id_zoomGesturesEnabled = _class.instanceMethodId( @@ -794,24 +974,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Z)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _zoomGesturesEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _zoomGesturesEnabled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions zoomGesturesEnabled(boolean z)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? zoomGesturesEnabled( - bool z, - ) { - return _zoomGesturesEnabled(reference.pointer, - _id_zoomGesturesEnabled as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $MapLibreMapOptions$NullableType()); + MapLibreMapOptions zoomGesturesEnabled(bool z) { + return _zoomGesturesEnabled( + reference.pointer, + _id_zoomGesturesEnabled as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $MapLibreMapOptions$Type()); } static final _id_doubleTapGesturesEnabled = _class.instanceMethodId( @@ -819,24 +1007,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Z)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _doubleTapGesturesEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _doubleTapGesturesEnabled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions doubleTapGesturesEnabled(boolean z)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? doubleTapGesturesEnabled( - bool z, - ) { - return _doubleTapGesturesEnabled(reference.pointer, - _id_doubleTapGesturesEnabled as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $MapLibreMapOptions$NullableType()); + MapLibreMapOptions doubleTapGesturesEnabled(bool z) { + return _doubleTapGesturesEnabled( + reference.pointer, + _id_doubleTapGesturesEnabled as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $MapLibreMapOptions$Type()); } static final _id_quickZoomGesturesEnabled = _class.instanceMethodId( @@ -844,24 +1040,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Z)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _quickZoomGesturesEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _quickZoomGesturesEnabled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions quickZoomGesturesEnabled(boolean z)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? quickZoomGesturesEnabled( - bool z, - ) { - return _quickZoomGesturesEnabled(reference.pointer, - _id_quickZoomGesturesEnabled as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $MapLibreMapOptions$NullableType()); + MapLibreMapOptions quickZoomGesturesEnabled(bool z) { + return _quickZoomGesturesEnabled( + reference.pointer, + _id_quickZoomGesturesEnabled as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $MapLibreMapOptions$Type()); } static final _id_textureMode = _class.instanceMethodId( @@ -869,24 +1073,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Z)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _textureMode = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _textureMode = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions textureMode(boolean z)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? textureMode( - bool z, - ) { + MapLibreMapOptions textureMode(bool z) { return _textureMode( - reference.pointer, _id_textureMode as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $MapLibreMapOptions$NullableType()); + reference.pointer, + _id_textureMode as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $MapLibreMapOptions$Type()); } static final _id_translucentTextureSurface = _class.instanceMethodId( @@ -894,24 +1106,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Z)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _translucentTextureSurface = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _translucentTextureSurface = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions translucentTextureSurface(boolean z)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? translucentTextureSurface( - bool z, - ) { - return _translucentTextureSurface(reference.pointer, - _id_translucentTextureSurface as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $MapLibreMapOptions$NullableType()); + MapLibreMapOptions translucentTextureSurface(bool z) { + return _translucentTextureSurface( + reference.pointer, + _id_translucentTextureSurface as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $MapLibreMapOptions$Type()); } static final _id_foregroundLoadColor = _class.instanceMethodId( @@ -919,24 +1139,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(I)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _foregroundLoadColor = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _foregroundLoadColor = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions foregroundLoadColor(int i)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? foregroundLoadColor( - int i, - ) { + MapLibreMapOptions foregroundLoadColor(int i) { return _foregroundLoadColor( - reference.pointer, _id_foregroundLoadColor as jni$_.JMethodIDPtr, i) - .object(const $MapLibreMapOptions$NullableType()); + reference.pointer, + _id_foregroundLoadColor as jni$_.JMethodIDPtr, + i, + ).object(const $MapLibreMapOptions$Type()); } static final _id_setPrefetchesTiles = _class.instanceMethodId( @@ -944,24 +1172,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Z)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _setPrefetchesTiles = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setPrefetchesTiles = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions setPrefetchesTiles(boolean z)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? setPrefetchesTiles( - bool z, - ) { - return _setPrefetchesTiles(reference.pointer, - _id_setPrefetchesTiles as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $MapLibreMapOptions$NullableType()); + MapLibreMapOptions setPrefetchesTiles(bool z) { + return _setPrefetchesTiles( + reference.pointer, + _id_setPrefetchesTiles as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $MapLibreMapOptions$Type()); } static final _id_setPrefetchZoomDelta = _class.instanceMethodId( @@ -969,24 +1205,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(I)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _setPrefetchZoomDelta = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setPrefetchZoomDelta = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions setPrefetchZoomDelta(int i)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? setPrefetchZoomDelta( - int i, - ) { - return _setPrefetchZoomDelta(reference.pointer, - _id_setPrefetchZoomDelta as jni$_.JMethodIDPtr, i) - .object(const $MapLibreMapOptions$NullableType()); + MapLibreMapOptions setPrefetchZoomDelta(int i) { + return _setPrefetchZoomDelta( + reference.pointer, + _id_setPrefetchZoomDelta as jni$_.JMethodIDPtr, + i, + ).object(const $MapLibreMapOptions$Type()); } static final _id_crossSourceCollisions = _class.instanceMethodId( @@ -994,24 +1238,165 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Z)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _crossSourceCollisions = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _crossSourceCollisions = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions crossSourceCollisions(boolean z)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? crossSourceCollisions( - bool z, - ) { - return _crossSourceCollisions(reference.pointer, - _id_crossSourceCollisions as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $MapLibreMapOptions$NullableType()); + MapLibreMapOptions crossSourceCollisions(bool z) { + return _crossSourceCollisions( + reference.pointer, + _id_crossSourceCollisions as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $MapLibreMapOptions$Type()); + } + + static final _id_actionJournalEnabled = _class.instanceMethodId( + r'actionJournalEnabled', + r'(Z)Lorg/maplibre/android/maps/MapLibreMapOptions;', + ); + + static final _actionJournalEnabled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); + + /// from: `public org.maplibre.android.maps.MapLibreMapOptions actionJournalEnabled(boolean z)` + /// The returned object must be released after use, by calling the [release] method. + MapLibreMapOptions actionJournalEnabled(bool z) { + return _actionJournalEnabled( + reference.pointer, + _id_actionJournalEnabled as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $MapLibreMapOptions$Type()); + } + + static final _id_actionJournalPath = _class.instanceMethodId( + r'actionJournalPath', + r'(Ljava/lang/String;)Lorg/maplibre/android/maps/MapLibreMapOptions;', + ); + + static final _actionJournalPath = + 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 org.maplibre.android.maps.MapLibreMapOptions actionJournalPath(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + MapLibreMapOptions actionJournalPath(jni$_.JString string) { + final _$string = string.reference; + return _actionJournalPath( + reference.pointer, + _id_actionJournalPath as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $MapLibreMapOptions$Type()); + } + + static final _id_actionJournalLogFileSize = _class.instanceMethodId( + r'actionJournalLogFileSize', + r'(J)Lorg/maplibre/android/maps/MapLibreMapOptions;', + ); + + static final _actionJournalLogFileSize = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); + + /// from: `public org.maplibre.android.maps.MapLibreMapOptions actionJournalLogFileSize(long j)` + /// The returned object must be released after use, by calling the [release] method. + MapLibreMapOptions actionJournalLogFileSize(int j) { + return _actionJournalLogFileSize( + reference.pointer, + _id_actionJournalLogFileSize as jni$_.JMethodIDPtr, + j, + ).object(const $MapLibreMapOptions$Type()); + } + + static final _id_actionJournalLogFileCount = _class.instanceMethodId( + r'actionJournalLogFileCount', + r'(J)Lorg/maplibre/android/maps/MapLibreMapOptions;', + ); + + static final _actionJournalLogFileCount = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); + + /// from: `public org.maplibre.android.maps.MapLibreMapOptions actionJournalLogFileCount(long j)` + /// The returned object must be released after use, by calling the [release] method. + MapLibreMapOptions actionJournalLogFileCount(int j) { + return _actionJournalLogFileCount( + reference.pointer, + _id_actionJournalLogFileCount as jni$_.JMethodIDPtr, + j, + ).object(const $MapLibreMapOptions$Type()); } static final _id_localIdeographFontFamilyEnabled = _class.instanceMethodId( @@ -1021,24 +1406,30 @@ class MapLibreMapOptions extends jni$_.JObject { static final _localIdeographFontFamilyEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions localIdeographFontFamilyEnabled(boolean z)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? localIdeographFontFamilyEnabled( - bool z, - ) { + MapLibreMapOptions localIdeographFontFamilyEnabled(bool z) { return _localIdeographFontFamilyEnabled( - reference.pointer, - _id_localIdeographFontFamilyEnabled as jni$_.JMethodIDPtr, - z ? 1 : 0) - .object(const $MapLibreMapOptions$NullableType()); + reference.pointer, + _id_localIdeographFontFamilyEnabled as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $MapLibreMapOptions$Type()); } static final _id_localIdeographFontFamily = _class.instanceMethodId( @@ -1046,28 +1437,33 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Ljava/lang/String;)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _localIdeographFontFamily = 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)>(); + static final _localIdeographFontFamily = + 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 org.maplibre.android.maps.MapLibreMapOptions localIdeographFontFamily(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? localIdeographFontFamily( - jni$_.JString? string, - ) { + MapLibreMapOptions localIdeographFontFamily(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; return _localIdeographFontFamily( - reference.pointer, - _id_localIdeographFontFamily as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $MapLibreMapOptions$NullableType()); + reference.pointer, + _id_localIdeographFontFamily as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $MapLibreMapOptions$Type()); } static final _id_localIdeographFontFamily$1 = _class.instanceMethodId( @@ -1077,27 +1473,33 @@ class MapLibreMapOptions extends jni$_.JObject { static final _localIdeographFontFamily$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') + 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)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions localIdeographFontFamily(java.lang.String[] strings)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? localIdeographFontFamily$1( + MapLibreMapOptions localIdeographFontFamily$1( jni$_.JArray? strings, ) { final _$strings = strings?.reference ?? jni$_.jNullReference; return _localIdeographFontFamily$1( - reference.pointer, - _id_localIdeographFontFamily$1 as jni$_.JMethodIDPtr, - _$strings.pointer) - .object(const $MapLibreMapOptions$NullableType()); + reference.pointer, + _id_localIdeographFontFamily$1 as jni$_.JMethodIDPtr, + _$strings.pointer, + ).object(const $MapLibreMapOptions$Type()); } static final _id_pixelRatio = _class.instanceMethodId( @@ -1105,25 +1507,32 @@ class MapLibreMapOptions extends jni$_.JObject { r'(F)Lorg/maplibre/android/maps/MapLibreMapOptions;', ); - static final _pixelRatio = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _pixelRatio = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Double,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public org.maplibre.android.maps.MapLibreMapOptions pixelRatio(float f)` /// The returned object must be released after use, by calling the [release] method. - MapLibreMapOptions? pixelRatio( - double f, - ) { + MapLibreMapOptions pixelRatio(double f) { return _pixelRatio( - reference.pointer, _id_pixelRatio as jni$_.JMethodIDPtr, f) - .object(const $MapLibreMapOptions$NullableType()); + reference.pointer, + _id_pixelRatio as jni$_.JMethodIDPtr, + f, + ).object(const $MapLibreMapOptions$Type()); } static final _id_getPrefetchesTiles = _class.instanceMethodId( @@ -1131,23 +1540,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()Z', ); - static final _getPrefetchesTiles = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPrefetchesTiles = + 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 getPrefetchesTiles()` bool getPrefetchesTiles() { return _getPrefetchesTiles( - reference.pointer, _id_getPrefetchesTiles as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_getPrefetchesTiles as jni$_.JMethodIDPtr, + ).boolean; } static final _id_getPrefetchZoomDelta = _class.instanceMethodId( @@ -1155,23 +1569,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()I', ); - static final _getPrefetchZoomDelta = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPrefetchZoomDelta = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int getPrefetchZoomDelta()` int getPrefetchZoomDelta() { return _getPrefetchZoomDelta( - reference.pointer, _id_getPrefetchZoomDelta as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_getPrefetchZoomDelta as jni$_.JMethodIDPtr, + ).integer; } static final _id_getCrossSourceCollisions = _class.instanceMethodId( @@ -1179,23 +1598,145 @@ class MapLibreMapOptions extends jni$_.JObject { r'()Z', ); - static final _getCrossSourceCollisions = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getCrossSourceCollisions = + 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 getCrossSourceCollisions()` bool getCrossSourceCollisions() { - return _getCrossSourceCollisions(reference.pointer, - _id_getCrossSourceCollisions as jni$_.JMethodIDPtr) - .boolean; + return _getCrossSourceCollisions( + reference.pointer, + _id_getCrossSourceCollisions as jni$_.JMethodIDPtr, + ).boolean; + } + + static final _id_getActionJournalEnabled = _class.instanceMethodId( + r'getActionJournalEnabled', + r'()Z', + ); + + static final _getActionJournalEnabled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public boolean getActionJournalEnabled()` + bool getActionJournalEnabled() { + return _getActionJournalEnabled( + reference.pointer, + _id_getActionJournalEnabled as jni$_.JMethodIDPtr, + ).boolean; + } + + static final _id_getActionJournalPath = _class.instanceMethodId( + r'getActionJournalPath', + r'()Ljava/lang/String;', + ); + + static final _getActionJournalPath = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public java.lang.String getActionJournalPath()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JString? getActionJournalPath() { + return _getActionJournalPath( + reference.pointer, + _id_getActionJournalPath as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); + } + + static final _id_getActionJournalLogFileSize = _class.instanceMethodId( + r'getActionJournalLogFileSize', + r'()J', + ); + + static final _getActionJournalLogFileSize = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public long getActionJournalLogFileSize()` + int getActionJournalLogFileSize() { + return _getActionJournalLogFileSize( + reference.pointer, + _id_getActionJournalLogFileSize as jni$_.JMethodIDPtr, + ).long; + } + + static final _id_getActionJournalLogFileCount = _class.instanceMethodId( + r'getActionJournalLogFileCount', + r'()J', + ); + + static final _getActionJournalLogFileCount = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public long getActionJournalLogFileCount()` + int getActionJournalLogFileCount() { + return _getActionJournalLogFileCount( + reference.pointer, + _id_getActionJournalLogFileCount as jni$_.JMethodIDPtr, + ).long; } static final _id_renderSurfaceOnTop = _class.instanceMethodId( @@ -1203,23 +1744,31 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Z)V', ); - static final _renderSurfaceOnTop = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _renderSurfaceOnTop = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void renderSurfaceOnTop(boolean z)` - void renderSurfaceOnTop( - bool z, - ) { - _renderSurfaceOnTop(reference.pointer, - _id_renderSurfaceOnTop as jni$_.JMethodIDPtr, z ? 1 : 0) - .check(); + void renderSurfaceOnTop(bool z) { + _renderSurfaceOnTop( + reference.pointer, + _id_renderSurfaceOnTop as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).check(); } static final _id_getRenderSurfaceOnTop = _class.instanceMethodId( @@ -1227,23 +1776,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()Z', ); - static final _getRenderSurfaceOnTop = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getRenderSurfaceOnTop = + 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 getRenderSurfaceOnTop()` bool getRenderSurfaceOnTop() { return _getRenderSurfaceOnTop( - reference.pointer, _id_getRenderSurfaceOnTop as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_getRenderSurfaceOnTop as jni$_.JMethodIDPtr, + ).boolean; } static final _id_getApiBaseUrl = _class.instanceMethodId( @@ -1251,24 +1805,29 @@ class MapLibreMapOptions extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getApiBaseUrl = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getApiBaseUrl = + 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 getApiBaseUrl()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getApiBaseUrl() { return _getApiBaseUrl( - reference.pointer, _id_getApiBaseUrl as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getApiBaseUrl as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getApiBaseUri = _class.instanceMethodId( @@ -1276,24 +1835,29 @@ class MapLibreMapOptions extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getApiBaseUri = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getApiBaseUri = + 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 getApiBaseUri()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getApiBaseUri() { return _getApiBaseUri( - reference.pointer, _id_getApiBaseUri as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getApiBaseUri as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getCamera = _class.instanceMethodId( @@ -1301,24 +1865,31 @@ class MapLibreMapOptions extends jni$_.JObject { r'()Lorg/maplibre/android/camera/CameraPosition;', ); - static final _getCamera = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getCamera = + 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 org.maplibre.android.camera.CameraPosition getCamera()` /// The returned object must be released after use, by calling the [release] method. cameraposition$_.CameraPosition? getCamera() { - return _getCamera(reference.pointer, _id_getCamera as jni$_.JMethodIDPtr) - .object( - const cameraposition$_.$CameraPosition$NullableType()); + return _getCamera( + reference.pointer, + _id_getCamera as jni$_.JMethodIDPtr, + ).object( + const cameraposition$_.$CameraPosition$NullableType(), + ); } static final _id_getMinZoomPreference = _class.instanceMethodId( @@ -1326,23 +1897,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()D', ); - static final _getMinZoomPreference = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getMinZoomPreference = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public double getMinZoomPreference()` double getMinZoomPreference() { return _getMinZoomPreference( - reference.pointer, _id_getMinZoomPreference as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getMinZoomPreference as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_getMaxZoomPreference = _class.instanceMethodId( @@ -1350,23 +1926,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()D', ); - static final _getMaxZoomPreference = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getMaxZoomPreference = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public double getMaxZoomPreference()` double getMaxZoomPreference() { return _getMaxZoomPreference( - reference.pointer, _id_getMaxZoomPreference as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getMaxZoomPreference as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_getMinPitchPreference = _class.instanceMethodId( @@ -1374,23 +1955,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()D', ); - static final _getMinPitchPreference = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getMinPitchPreference = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public double getMinPitchPreference()` double getMinPitchPreference() { return _getMinPitchPreference( - reference.pointer, _id_getMinPitchPreference as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getMinPitchPreference as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_getMaxPitchPreference = _class.instanceMethodId( @@ -1398,23 +1984,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()D', ); - static final _getMaxPitchPreference = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getMaxPitchPreference = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public double getMaxPitchPreference()` double getMaxPitchPreference() { return _getMaxPitchPreference( - reference.pointer, _id_getMaxPitchPreference as jni$_.JMethodIDPtr) - .doubleFloat; + reference.pointer, + _id_getMaxPitchPreference as jni$_.JMethodIDPtr, + ).doubleFloat; } static final _id_getCompassEnabled = _class.instanceMethodId( @@ -1422,23 +2013,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()Z', ); - static final _getCompassEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getCompassEnabled = + 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 getCompassEnabled()` bool getCompassEnabled() { return _getCompassEnabled( - reference.pointer, _id_getCompassEnabled as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_getCompassEnabled as jni$_.JMethodIDPtr, + ).boolean; } static final _id_getCompassGravity = _class.instanceMethodId( @@ -1446,23 +2042,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()I', ); - static final _getCompassGravity = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getCompassGravity = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int getCompassGravity()` int getCompassGravity() { return _getCompassGravity( - reference.pointer, _id_getCompassGravity as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_getCompassGravity as jni$_.JMethodIDPtr, + ).integer; } static final _id_getCompassMargins = _class.instanceMethodId( @@ -1470,24 +2071,29 @@ class MapLibreMapOptions extends jni$_.JObject { r'()[I', ); - static final _getCompassMargins = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getCompassMargins = + 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 int[] getCompassMargins()` /// The returned object must be released after use, by calling the [release] method. jni$_.JIntArray? getCompassMargins() { return _getCompassMargins( - reference.pointer, _id_getCompassMargins as jni$_.JMethodIDPtr) - .object(const jni$_.JIntArrayNullableType()); + reference.pointer, + _id_getCompassMargins as jni$_.JMethodIDPtr, + ).object(const jni$_.JIntArrayNullableType()); } static final _id_getCompassFadeFacingNorth = _class.instanceMethodId( @@ -1495,23 +2101,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()Z', ); - static final _getCompassFadeFacingNorth = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getCompassFadeFacingNorth = + 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 getCompassFadeFacingNorth()` bool getCompassFadeFacingNorth() { - return _getCompassFadeFacingNorth(reference.pointer, - _id_getCompassFadeFacingNorth as jni$_.JMethodIDPtr) - .boolean; + return _getCompassFadeFacingNorth( + reference.pointer, + _id_getCompassFadeFacingNorth as jni$_.JMethodIDPtr, + ).boolean; } static final _id_getCompassImage = _class.instanceMethodId( @@ -1519,24 +2130,29 @@ class MapLibreMapOptions extends jni$_.JObject { r'()Landroid/graphics/drawable/Drawable;', ); - static final _getCompassImage = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getCompassImage = + 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 android.graphics.drawable.Drawable getCompassImage()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getCompassImage() { return _getCompassImage( - reference.pointer, _id_getCompassImage as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getCompassImage as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_getLogoEnabled = _class.instanceMethodId( @@ -1544,23 +2160,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()Z', ); - static final _getLogoEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLogoEnabled = + 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 getLogoEnabled()` bool getLogoEnabled() { return _getLogoEnabled( - reference.pointer, _id_getLogoEnabled as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_getLogoEnabled as jni$_.JMethodIDPtr, + ).boolean; } static final _id_getLogoGravity = _class.instanceMethodId( @@ -1568,23 +2189,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()I', ); - static final _getLogoGravity = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLogoGravity = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int getLogoGravity()` int getLogoGravity() { return _getLogoGravity( - reference.pointer, _id_getLogoGravity as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_getLogoGravity as jni$_.JMethodIDPtr, + ).integer; } static final _id_getLogoMargins = _class.instanceMethodId( @@ -1592,24 +2218,29 @@ class MapLibreMapOptions extends jni$_.JObject { r'()[I', ); - static final _getLogoMargins = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLogoMargins = + 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 int[] getLogoMargins()` /// The returned object must be released after use, by calling the [release] method. jni$_.JIntArray? getLogoMargins() { return _getLogoMargins( - reference.pointer, _id_getLogoMargins as jni$_.JMethodIDPtr) - .object(const jni$_.JIntArrayNullableType()); + reference.pointer, + _id_getLogoMargins as jni$_.JMethodIDPtr, + ).object(const jni$_.JIntArrayNullableType()); } static final _id_getRotateGesturesEnabled = _class.instanceMethodId( @@ -1617,23 +2248,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()Z', ); - static final _getRotateGesturesEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getRotateGesturesEnabled = + 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 getRotateGesturesEnabled()` bool getRotateGesturesEnabled() { - return _getRotateGesturesEnabled(reference.pointer, - _id_getRotateGesturesEnabled as jni$_.JMethodIDPtr) - .boolean; + return _getRotateGesturesEnabled( + reference.pointer, + _id_getRotateGesturesEnabled as jni$_.JMethodIDPtr, + ).boolean; } static final _id_getScrollGesturesEnabled = _class.instanceMethodId( @@ -1641,23 +2277,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()Z', ); - static final _getScrollGesturesEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getScrollGesturesEnabled = + 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 getScrollGesturesEnabled()` bool getScrollGesturesEnabled() { - return _getScrollGesturesEnabled(reference.pointer, - _id_getScrollGesturesEnabled as jni$_.JMethodIDPtr) - .boolean; + return _getScrollGesturesEnabled( + reference.pointer, + _id_getScrollGesturesEnabled as jni$_.JMethodIDPtr, + ).boolean; } static final _id_getHorizontalScrollGesturesEnabled = _class.instanceMethodId( @@ -1667,22 +2308,26 @@ class MapLibreMapOptions extends jni$_.JObject { static final _getHorizontalScrollGesturesEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public boolean getHorizontalScrollGesturesEnabled()` bool getHorizontalScrollGesturesEnabled() { - return _getHorizontalScrollGesturesEnabled(reference.pointer, - _id_getHorizontalScrollGesturesEnabled as jni$_.JMethodIDPtr) - .boolean; + return _getHorizontalScrollGesturesEnabled( + reference.pointer, + _id_getHorizontalScrollGesturesEnabled as jni$_.JMethodIDPtr, + ).boolean; } static final _id_getTiltGesturesEnabled = _class.instanceMethodId( @@ -1690,23 +2335,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()Z', ); - static final _getTiltGesturesEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getTiltGesturesEnabled = + 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 getTiltGesturesEnabled()` bool getTiltGesturesEnabled() { return _getTiltGesturesEnabled( - reference.pointer, _id_getTiltGesturesEnabled as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_getTiltGesturesEnabled as jni$_.JMethodIDPtr, + ).boolean; } static final _id_getZoomGesturesEnabled = _class.instanceMethodId( @@ -1714,23 +2364,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()Z', ); - static final _getZoomGesturesEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getZoomGesturesEnabled = + 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 getZoomGesturesEnabled()` bool getZoomGesturesEnabled() { return _getZoomGesturesEnabled( - reference.pointer, _id_getZoomGesturesEnabled as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_getZoomGesturesEnabled as jni$_.JMethodIDPtr, + ).boolean; } static final _id_getDoubleTapGesturesEnabled = _class.instanceMethodId( @@ -1740,22 +2395,26 @@ class MapLibreMapOptions extends jni$_.JObject { static final _getDoubleTapGesturesEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public boolean getDoubleTapGesturesEnabled()` bool getDoubleTapGesturesEnabled() { - return _getDoubleTapGesturesEnabled(reference.pointer, - _id_getDoubleTapGesturesEnabled as jni$_.JMethodIDPtr) - .boolean; + return _getDoubleTapGesturesEnabled( + reference.pointer, + _id_getDoubleTapGesturesEnabled as jni$_.JMethodIDPtr, + ).boolean; } static final _id_getQuickZoomGesturesEnabled = _class.instanceMethodId( @@ -1765,22 +2424,26 @@ class MapLibreMapOptions extends jni$_.JObject { static final _getQuickZoomGesturesEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public boolean getQuickZoomGesturesEnabled()` bool getQuickZoomGesturesEnabled() { - return _getQuickZoomGesturesEnabled(reference.pointer, - _id_getQuickZoomGesturesEnabled as jni$_.JMethodIDPtr) - .boolean; + return _getQuickZoomGesturesEnabled( + reference.pointer, + _id_getQuickZoomGesturesEnabled as jni$_.JMethodIDPtr, + ).boolean; } static final _id_getAttributionEnabled = _class.instanceMethodId( @@ -1788,23 +2451,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()Z', ); - static final _getAttributionEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAttributionEnabled = + 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 getAttributionEnabled()` bool getAttributionEnabled() { return _getAttributionEnabled( - reference.pointer, _id_getAttributionEnabled as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_getAttributionEnabled as jni$_.JMethodIDPtr, + ).boolean; } static final _id_getAttributionGravity = _class.instanceMethodId( @@ -1812,23 +2480,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()I', ); - static final _getAttributionGravity = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAttributionGravity = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int getAttributionGravity()` int getAttributionGravity() { return _getAttributionGravity( - reference.pointer, _id_getAttributionGravity as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_getAttributionGravity as jni$_.JMethodIDPtr, + ).integer; } static final _id_getAttributionMargins = _class.instanceMethodId( @@ -1836,24 +2509,29 @@ class MapLibreMapOptions extends jni$_.JObject { r'()[I', ); - static final _getAttributionMargins = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAttributionMargins = + 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 int[] getAttributionMargins()` /// The returned object must be released after use, by calling the [release] method. jni$_.JIntArray? getAttributionMargins() { return _getAttributionMargins( - reference.pointer, _id_getAttributionMargins as jni$_.JMethodIDPtr) - .object(const jni$_.JIntArrayNullableType()); + reference.pointer, + _id_getAttributionMargins as jni$_.JMethodIDPtr, + ).object(const jni$_.JIntArrayNullableType()); } static final _id_getAttributionTintColor = _class.instanceMethodId( @@ -1861,23 +2539,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()I', ); - static final _getAttributionTintColor = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAttributionTintColor = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int getAttributionTintColor()` int getAttributionTintColor() { - return _getAttributionTintColor(reference.pointer, - _id_getAttributionTintColor as jni$_.JMethodIDPtr) - .integer; + return _getAttributionTintColor( + reference.pointer, + _id_getAttributionTintColor as jni$_.JMethodIDPtr, + ).integer; } static final _id_getDebugActive = _class.instanceMethodId( @@ -1885,23 +2568,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()Z', ); - static final _getDebugActive = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getDebugActive = + 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 getDebugActive()` bool getDebugActive() { return _getDebugActive( - reference.pointer, _id_getDebugActive as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_getDebugActive as jni$_.JMethodIDPtr, + ).boolean; } static final _id_getTextureMode = _class.instanceMethodId( @@ -1909,23 +2597,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()Z', ); - static final _getTextureMode = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getTextureMode = + 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 getTextureMode()` bool getTextureMode() { return _getTextureMode( - reference.pointer, _id_getTextureMode as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_getTextureMode as jni$_.JMethodIDPtr, + ).boolean; } static final _id_getTranslucentTextureSurface = _class.instanceMethodId( @@ -1935,22 +2628,26 @@ class MapLibreMapOptions extends jni$_.JObject { static final _getTranslucentTextureSurface = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public boolean getTranslucentTextureSurface()` bool getTranslucentTextureSurface() { - return _getTranslucentTextureSurface(reference.pointer, - _id_getTranslucentTextureSurface as jni$_.JMethodIDPtr) - .boolean; + return _getTranslucentTextureSurface( + reference.pointer, + _id_getTranslucentTextureSurface as jni$_.JMethodIDPtr, + ).boolean; } static final _id_getForegroundLoadColor = _class.instanceMethodId( @@ -1958,23 +2655,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()I', ); - static final _getForegroundLoadColor = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getForegroundLoadColor = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int getForegroundLoadColor()` int getForegroundLoadColor() { return _getForegroundLoadColor( - reference.pointer, _id_getForegroundLoadColor as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_getForegroundLoadColor as jni$_.JMethodIDPtr, + ).integer; } static final _id_getLocalIdeographFontFamily = _class.instanceMethodId( @@ -1984,23 +2686,27 @@ class MapLibreMapOptions extends jni$_.JObject { static final _getLocalIdeographFontFamily = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.lang.String getLocalIdeographFontFamily()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getLocalIdeographFontFamily() { - return _getLocalIdeographFontFamily(reference.pointer, - _id_getLocalIdeographFontFamily as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getLocalIdeographFontFamily( + reference.pointer, + _id_getLocalIdeographFontFamily as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_isLocalIdeographFontFamilyEnabled = _class.instanceMethodId( @@ -2010,22 +2716,26 @@ class MapLibreMapOptions extends jni$_.JObject { static final _isLocalIdeographFontFamilyEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public boolean isLocalIdeographFontFamilyEnabled()` bool isLocalIdeographFontFamilyEnabled() { - return _isLocalIdeographFontFamilyEnabled(reference.pointer, - _id_isLocalIdeographFontFamilyEnabled as jni$_.JMethodIDPtr) - .boolean; + return _isLocalIdeographFontFamilyEnabled( + reference.pointer, + _id_isLocalIdeographFontFamilyEnabled as jni$_.JMethodIDPtr, + ).boolean; } static final _id_getPixelRatio = _class.instanceMethodId( @@ -2033,23 +2743,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()F', ); - static final _getPixelRatio = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPixelRatio = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float getPixelRatio()` double getPixelRatio() { return _getPixelRatio( - reference.pointer, _id_getPixelRatio as jni$_.JMethodIDPtr) - .float; + reference.pointer, + _id_getPixelRatio as jni$_.JMethodIDPtr, + ).float; } static final _id_describeContents = _class.instanceMethodId( @@ -2057,23 +2772,28 @@ class MapLibreMapOptions extends jni$_.JObject { r'()I', ); - static final _describeContents = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _describeContents = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int describeContents()` int describeContents() { return _describeContents( - reference.pointer, _id_describeContents as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_describeContents as jni$_.JMethodIDPtr, + ).integer; } static final _id_writeToParcel = _class.instanceMethodId( @@ -2081,27 +2801,34 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Landroid/os/Parcel;I)V', ); - static final _writeToParcel = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _writeToParcel = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public void writeToParcel(android.os.Parcel parcel, int i)` - void writeToParcel( - jni$_.JObject? parcel, - int i, - ) { - final _$parcel = parcel?.reference ?? jni$_.jNullReference; - _writeToParcel(reference.pointer, _id_writeToParcel as jni$_.JMethodIDPtr, - _$parcel.pointer, i) - .check(); + void writeToParcel(jni$_.JObject parcel, int i) { + final _$parcel = parcel.reference; + _writeToParcel( + reference.pointer, + _id_writeToParcel as jni$_.JMethodIDPtr, + _$parcel.pointer, + i, + ).check(); } static final _id_equals = _class.instanceMethodId( @@ -2109,48 +2836,58 @@ class MapLibreMapOptions extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } } @@ -2166,11 +2903,7 @@ final class $MapLibreMapOptions$NullableType @jni$_.internal @core$_.override MapLibreMapOptions? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : MapLibreMapOptions.fromReference( - reference, - ); + reference.isNull ? null : MapLibreMapOptions.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2205,9 +2938,7 @@ final class $MapLibreMapOptions$Type @jni$_.internal @core$_.override MapLibreMapOptions fromReference(jni$_.JReference reference) => - MapLibreMapOptions.fromReference( - reference, - ); + MapLibreMapOptions.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/maps/MapView.dart b/lib/src/platform/android/jni/org/maplibre/android/maps/MapView.dart index 632f29c6..84bca49d 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/maps/MapView.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/maps/MapView.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -54,6 +42,8 @@ import 'MapLibreMapOptions.dart' as maplibremapoptions$_; import 'OnMapReadyCallback.dart' as onmapreadycallback$_; +import 'RenderingStats.dart' as renderingstats$_; + import 'renderer/MapRenderer.dart' as maprenderer$_; /// from: `org.maplibre.android.maps.MapView$OnCameraDidChangeListener` @@ -63,13 +53,13 @@ class MapView$OnCameraDidChangeListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapView$OnCameraDidChangeListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapView$OnCameraDidChangeListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnCameraDidChangeListener'); + r'org/maplibre/android/maps/MapView$OnCameraDidChangeListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapView$OnCameraDidChangeListener$NullableType(); @@ -79,23 +69,31 @@ class MapView$OnCameraDidChangeListener extends jni$_.JObject { r'(Z)V', ); - static final _onCameraDidChange = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onCameraDidChange = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public abstract void onCameraDidChange(boolean z)` - void onCameraDidChange( - bool z, - ) { - _onCameraDidChange(reference.pointer, - _id_onCameraDidChange as jni$_.JMethodIDPtr, z ? 1 : 0) - .check(); + void onCameraDidChange(bool z) { + _onCameraDidChange( + reference.pointer, + _id_onCameraDidChange as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).check(); } /// Maps a specific port to the implemented interface. @@ -107,19 +105,16 @@ class MapView$OnCameraDidChangeListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -161,9 +156,7 @@ class MapView$OnCameraDidChangeListener extends jni$_.JObject { r'org.maplibre.android.maps.MapView$OnCameraDidChangeListener', $p, _$invokePointer, - [ - if ($impl.onCameraDidChange$async) r'onCameraDidChange(Z)V', - ], + [if ($impl.onCameraDidChange$async) r'onCameraDidChange(Z)V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; @@ -218,12 +211,10 @@ final class $MapView$OnCameraDidChangeListener$NullableType @jni$_.internal @core$_.override MapView$OnCameraDidChangeListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapView$OnCameraDidChangeListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapView$OnCameraDidChangeListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -261,9 +252,7 @@ final class $MapView$OnCameraDidChangeListener$Type @jni$_.internal @core$_.override MapView$OnCameraDidChangeListener fromReference(jni$_.JReference reference) => - MapView$OnCameraDidChangeListener.fromReference( - reference, - ); + MapView$OnCameraDidChangeListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -294,13 +283,13 @@ class MapView$OnCameraIsChangingListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapView$OnCameraIsChangingListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapView$OnCameraIsChangingListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnCameraIsChangingListener'); + r'org/maplibre/android/maps/MapView$OnCameraIsChangingListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -311,23 +300,28 @@ class MapView$OnCameraIsChangingListener extends jni$_.JObject { r'()V', ); - static final _onCameraIsChanging = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onCameraIsChanging = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onCameraIsChanging()` void onCameraIsChanging() { _onCameraIsChanging( - reference.pointer, _id_onCameraIsChanging as jni$_.JMethodIDPtr) - .check(); + reference.pointer, + _id_onCameraIsChanging as jni$_.JMethodIDPtr, + ).check(); } /// Maps a specific port to the implemented interface. @@ -340,19 +334,16 @@ class MapView$OnCameraIsChangingListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -390,9 +381,7 @@ class MapView$OnCameraIsChangingListener extends jni$_.JObject { r'org.maplibre.android.maps.MapView$OnCameraIsChangingListener', $p, _$invokePointer, - [ - if ($impl.onCameraIsChanging$async) r'onCameraIsChanging()V', - ], + [if ($impl.onCameraIsChanging$async) r'onCameraIsChanging()V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; @@ -447,12 +436,10 @@ final class $MapView$OnCameraIsChangingListener$NullableType @jni$_.internal @core$_.override MapView$OnCameraIsChangingListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapView$OnCameraIsChangingListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapView$OnCameraIsChangingListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -490,10 +477,8 @@ final class $MapView$OnCameraIsChangingListener$Type @jni$_.internal @core$_.override MapView$OnCameraIsChangingListener fromReference( - jni$_.JReference reference) => - MapView$OnCameraIsChangingListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapView$OnCameraIsChangingListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -524,13 +509,13 @@ class MapView$OnCameraWillChangeListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapView$OnCameraWillChangeListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapView$OnCameraWillChangeListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnCameraWillChangeListener'); + r'org/maplibre/android/maps/MapView$OnCameraWillChangeListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -541,23 +526,31 @@ class MapView$OnCameraWillChangeListener extends jni$_.JObject { r'(Z)V', ); - static final _onCameraWillChange = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onCameraWillChange = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public abstract void onCameraWillChange(boolean z)` - void onCameraWillChange( - bool z, - ) { - _onCameraWillChange(reference.pointer, - _id_onCameraWillChange as jni$_.JMethodIDPtr, z ? 1 : 0) - .check(); + void onCameraWillChange(bool z) { + _onCameraWillChange( + reference.pointer, + _id_onCameraWillChange as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).check(); } /// Maps a specific port to the implemented interface. @@ -570,19 +563,16 @@ class MapView$OnCameraWillChangeListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -624,9 +614,7 @@ class MapView$OnCameraWillChangeListener extends jni$_.JObject { r'org.maplibre.android.maps.MapView$OnCameraWillChangeListener', $p, _$invokePointer, - [ - if ($impl.onCameraWillChange$async) r'onCameraWillChange(Z)V', - ], + [if ($impl.onCameraWillChange$async) r'onCameraWillChange(Z)V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; @@ -681,12 +669,10 @@ final class $MapView$OnCameraWillChangeListener$NullableType @jni$_.internal @core$_.override MapView$OnCameraWillChangeListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapView$OnCameraWillChangeListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapView$OnCameraWillChangeListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -724,10 +710,8 @@ final class $MapView$OnCameraWillChangeListener$Type @jni$_.internal @core$_.override MapView$OnCameraWillChangeListener fromReference( - jni$_.JReference reference) => - MapView$OnCameraWillChangeListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapView$OnCameraWillChangeListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -760,11 +744,12 @@ class MapView$OnCanRemoveUnusedStyleImageListener extends jni$_.JObject { @jni$_.internal MapView$OnCanRemoveUnusedStyleImageListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnCanRemoveUnusedStyleImageListener'); + r'org/maplibre/android/maps/MapView$OnCanRemoveUnusedStyleImageListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -777,31 +762,35 @@ class MapView$OnCanRemoveUnusedStyleImageListener extends jni$_.JObject { static final _onCanRemoveUnusedStyleImage = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract boolean onCanRemoveUnusedStyleImage(java.lang.String string)` - bool onCanRemoveUnusedStyleImage( - jni$_.JString? string, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; + bool onCanRemoveUnusedStyleImage(jni$_.JString string) { + final _$string = string.reference; return _onCanRemoveUnusedStyleImage( - reference.pointer, - _id_onCanRemoveUnusedStyleImage as jni$_.JMethodIDPtr, - _$string.pointer) - .boolean; + reference.pointer, + _id_onCanRemoveUnusedStyleImage as jni$_.JMethodIDPtr, + _$string.pointer, + ).boolean; } /// Maps a specific port to the implemented interface. static final core$_.Map - _$impls = {}; + _$impls = {}; static jni$_.JObjectPtr _$invoke( int port, jni$_.JObjectPtr descriptor, @@ -809,19 +798,16 @@ class MapView$OnCanRemoveUnusedStyleImageListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -832,7 +818,7 @@ class MapView$OnCanRemoveUnusedStyleImageListener extends jni$_.JObject { final $a = $i.args; if ($d == r'onCanRemoveUnusedStyleImage(Ljava/lang/String;)Z') { final $r = _$impls[$p]!.onCanRemoveUnusedStyleImage( - $a![0]?.as(const jni$_.JStringType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JStringType(), releaseOriginal: true), ); return jni$_.JBoolean($r).reference.toPointer(); } @@ -880,21 +866,21 @@ class MapView$OnCanRemoveUnusedStyleImageListener extends jni$_.JObject { abstract base mixin class $MapView$OnCanRemoveUnusedStyleImageListener { factory $MapView$OnCanRemoveUnusedStyleImageListener({ - required bool Function(jni$_.JString? string) onCanRemoveUnusedStyleImage, + required bool Function(jni$_.JString string) onCanRemoveUnusedStyleImage, }) = _$MapView$OnCanRemoveUnusedStyleImageListener; - bool onCanRemoveUnusedStyleImage(jni$_.JString? string); + bool onCanRemoveUnusedStyleImage(jni$_.JString string); } final class _$MapView$OnCanRemoveUnusedStyleImageListener with $MapView$OnCanRemoveUnusedStyleImageListener { _$MapView$OnCanRemoveUnusedStyleImageListener({ - required bool Function(jni$_.JString? string) onCanRemoveUnusedStyleImage, + required bool Function(jni$_.JString string) onCanRemoveUnusedStyleImage, }) : _onCanRemoveUnusedStyleImage = onCanRemoveUnusedStyleImage; - final bool Function(jni$_.JString? string) _onCanRemoveUnusedStyleImage; + final bool Function(jni$_.JString string) _onCanRemoveUnusedStyleImage; - bool onCanRemoveUnusedStyleImage(jni$_.JString? string) { + bool onCanRemoveUnusedStyleImage(jni$_.JString string) { return _onCanRemoveUnusedStyleImage(string); } } @@ -912,12 +898,10 @@ final class $MapView$OnCanRemoveUnusedStyleImageListener$NullableType @jni$_.internal @core$_.override MapView$OnCanRemoveUnusedStyleImageListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapView$OnCanRemoveUnusedStyleImageListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapView$OnCanRemoveUnusedStyleImageListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -925,7 +909,7 @@ final class $MapView$OnCanRemoveUnusedStyleImageListener$NullableType @jni$_.internal @core$_.override jni$_.JObjType - get nullableType => this; + get nullableType => this; @jni$_.internal @core$_.override @@ -956,10 +940,8 @@ final class $MapView$OnCanRemoveUnusedStyleImageListener$Type @jni$_.internal @core$_.override MapView$OnCanRemoveUnusedStyleImageListener fromReference( - jni$_.JReference reference) => - MapView$OnCanRemoveUnusedStyleImageListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapView$OnCanRemoveUnusedStyleImageListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -967,8 +949,8 @@ final class $MapView$OnCanRemoveUnusedStyleImageListener$Type @jni$_.internal @core$_.override jni$_.JObjType - get nullableType => - const $MapView$OnCanRemoveUnusedStyleImageListener$NullableType(); + get nullableType => + const $MapView$OnCanRemoveUnusedStyleImageListener$NullableType(); @jni$_.internal @core$_.override @@ -993,13 +975,13 @@ class MapView$OnDidBecomeIdleListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapView$OnDidBecomeIdleListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapView$OnDidBecomeIdleListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnDidBecomeIdleListener'); + r'org/maplibre/android/maps/MapView$OnDidBecomeIdleListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapView$OnDidBecomeIdleListener$NullableType(); @@ -1009,23 +991,28 @@ class MapView$OnDidBecomeIdleListener extends jni$_.JObject { r'()V', ); - static final _onDidBecomeIdle = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onDidBecomeIdle = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onDidBecomeIdle()` void onDidBecomeIdle() { _onDidBecomeIdle( - reference.pointer, _id_onDidBecomeIdle as jni$_.JMethodIDPtr) - .check(); + reference.pointer, + _id_onDidBecomeIdle as jni$_.JMethodIDPtr, + ).check(); } /// Maps a specific port to the implemented interface. @@ -1037,19 +1024,16 @@ class MapView$OnDidBecomeIdleListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -1087,9 +1071,7 @@ class MapView$OnDidBecomeIdleListener extends jni$_.JObject { r'org.maplibre.android.maps.MapView$OnDidBecomeIdleListener', $p, _$invokePointer, - [ - if ($impl.onDidBecomeIdle$async) r'onDidBecomeIdle()V', - ], + [if ($impl.onDidBecomeIdle$async) r'onDidBecomeIdle()V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; @@ -1145,10 +1127,8 @@ final class $MapView$OnDidBecomeIdleListener$NullableType @core$_.override MapView$OnDidBecomeIdleListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapView$OnDidBecomeIdleListener.fromReference( - reference, - ); + ? null + : MapView$OnDidBecomeIdleListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1185,9 +1165,7 @@ final class $MapView$OnDidBecomeIdleListener$Type @jni$_.internal @core$_.override MapView$OnDidBecomeIdleListener fromReference(jni$_.JReference reference) => - MapView$OnDidBecomeIdleListener.fromReference( - reference, - ); + MapView$OnDidBecomeIdleListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1218,13 +1196,13 @@ class MapView$OnDidFailLoadingMapListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapView$OnDidFailLoadingMapListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapView$OnDidFailLoadingMapListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnDidFailLoadingMapListener'); + r'org/maplibre/android/maps/MapView$OnDidFailLoadingMapListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -1235,25 +1213,32 @@ class MapView$OnDidFailLoadingMapListener extends jni$_.JObject { r'(Ljava/lang/String;)V', ); - static final _onDidFailLoadingMap = 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 _onDidFailLoadingMap = + 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 onDidFailLoadingMap(java.lang.String string)` - void onDidFailLoadingMap( - jni$_.JString? string, - ) { + void onDidFailLoadingMap(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _onDidFailLoadingMap(reference.pointer, - _id_onDidFailLoadingMap as jni$_.JMethodIDPtr, _$string.pointer) - .check(); + _onDidFailLoadingMap( + reference.pointer, + _id_onDidFailLoadingMap as jni$_.JMethodIDPtr, + _$string.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -1266,19 +1251,16 @@ class MapView$OnDidFailLoadingMapListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -1376,12 +1358,10 @@ final class $MapView$OnDidFailLoadingMapListener$NullableType @jni$_.internal @core$_.override MapView$OnDidFailLoadingMapListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapView$OnDidFailLoadingMapListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapView$OnDidFailLoadingMapListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1419,10 +1399,8 @@ final class $MapView$OnDidFailLoadingMapListener$Type @jni$_.internal @core$_.override MapView$OnDidFailLoadingMapListener fromReference( - jni$_.JReference reference) => - MapView$OnDidFailLoadingMapListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapView$OnDidFailLoadingMapListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1455,11 +1433,12 @@ class MapView$OnDidFinishLoadingMapListener extends jni$_.JObject { @jni$_.internal MapView$OnDidFinishLoadingMapListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnDidFinishLoadingMapListener'); + r'org/maplibre/android/maps/MapView$OnDidFinishLoadingMapListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -1470,23 +1449,28 @@ class MapView$OnDidFinishLoadingMapListener extends jni$_.JObject { r'()V', ); - static final _onDidFinishLoadingMap = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onDidFinishLoadingMap = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onDidFinishLoadingMap()` void onDidFinishLoadingMap() { _onDidFinishLoadingMap( - reference.pointer, _id_onDidFinishLoadingMap as jni$_.JMethodIDPtr) - .check(); + reference.pointer, + _id_onDidFinishLoadingMap as jni$_.JMethodIDPtr, + ).check(); } /// Maps a specific port to the implemented interface. @@ -1499,19 +1483,16 @@ class MapView$OnDidFinishLoadingMapListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -1549,9 +1530,7 @@ class MapView$OnDidFinishLoadingMapListener extends jni$_.JObject { r'org.maplibre.android.maps.MapView$OnDidFinishLoadingMapListener', $p, _$invokePointer, - [ - if ($impl.onDidFinishLoadingMap$async) r'onDidFinishLoadingMap()V', - ], + [if ($impl.onDidFinishLoadingMap$async) r'onDidFinishLoadingMap()V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; @@ -1606,12 +1585,10 @@ final class $MapView$OnDidFinishLoadingMapListener$NullableType @jni$_.internal @core$_.override MapView$OnDidFinishLoadingMapListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapView$OnDidFinishLoadingMapListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapView$OnDidFinishLoadingMapListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1650,10 +1627,8 @@ final class $MapView$OnDidFinishLoadingMapListener$Type @jni$_.internal @core$_.override MapView$OnDidFinishLoadingMapListener fromReference( - jni$_.JReference reference) => - MapView$OnDidFinishLoadingMapListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapView$OnDidFinishLoadingMapListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1686,11 +1661,12 @@ class MapView$OnDidFinishLoadingStyleListener extends jni$_.JObject { @jni$_.internal MapView$OnDidFinishLoadingStyleListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnDidFinishLoadingStyleListener'); + r'org/maplibre/android/maps/MapView$OnDidFinishLoadingStyleListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -1701,28 +1677,33 @@ class MapView$OnDidFinishLoadingStyleListener extends jni$_.JObject { r'()V', ); - static final _onDidFinishLoadingStyle = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onDidFinishLoadingStyle = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onDidFinishLoadingStyle()` void onDidFinishLoadingStyle() { - _onDidFinishLoadingStyle(reference.pointer, - _id_onDidFinishLoadingStyle as jni$_.JMethodIDPtr) - .check(); + _onDidFinishLoadingStyle( + reference.pointer, + _id_onDidFinishLoadingStyle as jni$_.JMethodIDPtr, + ).check(); } /// Maps a specific port to the implemented interface. static final core$_.Map - _$impls = {}; + _$impls = {}; static jni$_.JObjectPtr _$invoke( int port, jni$_.JObjectPtr descriptor, @@ -1730,19 +1711,16 @@ class MapView$OnDidFinishLoadingStyleListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -1780,9 +1758,7 @@ class MapView$OnDidFinishLoadingStyleListener extends jni$_.JObject { r'org.maplibre.android.maps.MapView$OnDidFinishLoadingStyleListener', $p, _$invokePointer, - [ - if ($impl.onDidFinishLoadingStyle$async) r'onDidFinishLoadingStyle()V', - ], + [if ($impl.onDidFinishLoadingStyle$async) r'onDidFinishLoadingStyle()V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; @@ -1837,12 +1813,10 @@ final class $MapView$OnDidFinishLoadingStyleListener$NullableType @jni$_.internal @core$_.override MapView$OnDidFinishLoadingStyleListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapView$OnDidFinishLoadingStyleListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapView$OnDidFinishLoadingStyleListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1881,10 +1855,8 @@ final class $MapView$OnDidFinishLoadingStyleListener$Type @jni$_.internal @core$_.override MapView$OnDidFinishLoadingStyleListener fromReference( - jni$_.JReference reference) => - MapView$OnDidFinishLoadingStyleListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapView$OnDidFinishLoadingStyleListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1918,11 +1890,12 @@ class MapView$OnDidFinishRenderingFrameListener extends jni$_.JObject { @jni$_.internal MapView$OnDidFinishRenderingFrameListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnDidFinishRenderingFrameListener'); + r'org/maplibre/android/maps/MapView$OnDidFinishRenderingFrameListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -1933,39 +1906,40 @@ class MapView$OnDidFinishRenderingFrameListener extends jni$_.JObject { r'(ZDD)V', ); - static final _onDidFinishRenderingFrame = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onDidFinishRenderingFrame = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Int32, - jni$_.Double, - jni$_.Double - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, double, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32, jni$_.Double, jni$_.Double)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + double, + double, + ) + >(); /// from: `public abstract void onDidFinishRenderingFrame(boolean z, double d, double d1)` - void onDidFinishRenderingFrame( - bool z, - double d, - double d1, - ) { + void onDidFinishRenderingFrame(bool z, double d, double d1) { _onDidFinishRenderingFrame( - reference.pointer, - _id_onDidFinishRenderingFrame as jni$_.JMethodIDPtr, - z ? 1 : 0, - d, - d1) - .check(); + reference.pointer, + _id_onDidFinishRenderingFrame as jni$_.JMethodIDPtr, + z ? 1 : 0, + d, + d1, + ).check(); } /// Maps a specific port to the implemented interface. static final core$_.Map - _$impls = {}; + _$impls = {}; static jni$_.JObjectPtr _$invoke( int port, jni$_.JObjectPtr descriptor, @@ -1973,19 +1947,16 @@ class MapView$OnDidFinishRenderingFrameListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -2056,7 +2027,7 @@ class MapView$OnDidFinishRenderingFrameListener extends jni$_.JObject { abstract base mixin class $MapView$OnDidFinishRenderingFrameListener { factory $MapView$OnDidFinishRenderingFrameListener({ required void Function(bool z, double d, double d1) - onDidFinishRenderingFrame, + onDidFinishRenderingFrame, bool onDidFinishRenderingFrame$async, }) = _$MapView$OnDidFinishRenderingFrameListener; @@ -2068,7 +2039,7 @@ final class _$MapView$OnDidFinishRenderingFrameListener with $MapView$OnDidFinishRenderingFrameListener { _$MapView$OnDidFinishRenderingFrameListener({ required void Function(bool z, double d, double d1) - onDidFinishRenderingFrame, + onDidFinishRenderingFrame, this.onDidFinishRenderingFrame$async = false, }) : _onDidFinishRenderingFrame = onDidFinishRenderingFrame; @@ -2093,12 +2064,10 @@ final class $MapView$OnDidFinishRenderingFrameListener$NullableType @jni$_.internal @core$_.override MapView$OnDidFinishRenderingFrameListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapView$OnDidFinishRenderingFrameListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapView$OnDidFinishRenderingFrameListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2137,10 +2106,8 @@ final class $MapView$OnDidFinishRenderingFrameListener$Type @jni$_.internal @core$_.override MapView$OnDidFinishRenderingFrameListener fromReference( - jni$_.JReference reference) => - MapView$OnDidFinishRenderingFrameListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapView$OnDidFinishRenderingFrameListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2166,52 +2133,72 @@ final class $MapView$OnDidFinishRenderingFrameListener$Type } } -/// from: `org.maplibre.android.maps.MapView$OnDidFinishRenderingMapListener` -class MapView$OnDidFinishRenderingMapListener extends jni$_.JObject { +/// from: `org.maplibre.android.maps.MapView$OnDidFinishRenderingFrameWithStatsListener` +class MapView$OnDidFinishRenderingFrameWithStatsListener extends jni$_.JObject { @jni$_.internal @core$_.override - final jni$_.JObjType $type; + final jni$_.JObjType + $type; @jni$_.internal - MapView$OnDidFinishRenderingMapListener.fromReference( + MapView$OnDidFinishRenderingFrameWithStatsListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnDidFinishRenderingMapListener'); + r'org/maplibre/android/maps/MapView$OnDidFinishRenderingFrameWithStatsListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = - $MapView$OnDidFinishRenderingMapListener$NullableType(); - static const type = $MapView$OnDidFinishRenderingMapListener$Type(); - static final _id_onDidFinishRenderingMap = _class.instanceMethodId( - r'onDidFinishRenderingMap', - r'(Z)V', + $MapView$OnDidFinishRenderingFrameWithStatsListener$NullableType(); + static const type = + $MapView$OnDidFinishRenderingFrameWithStatsListener$Type(); + static final _id_onDidFinishRenderingFrame = _class.instanceMethodId( + r'onDidFinishRenderingFrame', + r'(ZLorg/maplibre/android/maps/RenderingStats;)V', ); - static final _onDidFinishRenderingMap = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onDidFinishRenderingFrame = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32, jni$_.Pointer)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + ) + >(); - /// from: `public abstract void onDidFinishRenderingMap(boolean z)` - void onDidFinishRenderingMap( + /// from: `public abstract void onDidFinishRenderingFrame(boolean z, org.maplibre.android.maps.RenderingStats renderingStats)` + void onDidFinishRenderingFrame( bool z, + renderingstats$_.RenderingStats? renderingStats, ) { - _onDidFinishRenderingMap(reference.pointer, - _id_onDidFinishRenderingMap as jni$_.JMethodIDPtr, z ? 1 : 0) - .check(); + final _$renderingStats = renderingStats?.reference ?? jni$_.jNullReference; + _onDidFinishRenderingFrame( + reference.pointer, + _id_onDidFinishRenderingFrame as jni$_.JMethodIDPtr, + z ? 1 : 0, + _$renderingStats.pointer, + ).check(); } /// Maps a specific port to the implemented interface. - static final core$_.Map - _$impls = {}; + static final core$_.Map< + int, + $MapView$OnDidFinishRenderingFrameWithStatsListener + > + _$impls = {}; static jni$_.JObjectPtr _$invoke( int port, jni$_.JObjectPtr descriptor, @@ -2219,19 +2206,16 @@ class MapView$OnDidFinishRenderingMapListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -2240,11 +2224,16 @@ class MapView$OnDidFinishRenderingMapListener extends jni$_.JObject { try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; - if ($d == r'onDidFinishRenderingMap(Z)V') { - _$impls[$p]!.onDidFinishRenderingMap( + if ($d == + r'onDidFinishRenderingFrame(ZLorg/maplibre/android/maps/RenderingStats;)V') { + _$impls[$p]!.onDidFinishRenderingFrame( $a![0]! .as(const jni$_.JBooleanType(), releaseOriginal: true) .booleanValue(releaseOriginal: true), + $a![1]?.as( + const renderingstats$_.$RenderingStats$Type(), + releaseOriginal: true, + ), ); return jni$_.nullptr; } @@ -2256,7 +2245,7 @@ class MapView$OnDidFinishRenderingMapListener extends jni$_.JObject { static void implementIn( jni$_.JImplementer implementer, - $MapView$OnDidFinishRenderingMapListener $impl, + $MapView$OnDidFinishRenderingFrameWithStatsListener $impl, ) { late final jni$_.RawReceivePort $p; $p = jni$_.RawReceivePort(($m) { @@ -2270,80 +2259,97 @@ class MapView$OnDidFinishRenderingMapListener extends jni$_.JObject { jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( - r'org.maplibre.android.maps.MapView$OnDidFinishRenderingMapListener', + r'org.maplibre.android.maps.MapView$OnDidFinishRenderingFrameWithStatsListener', $p, _$invokePointer, [ - if ($impl.onDidFinishRenderingMap$async) r'onDidFinishRenderingMap(Z)V', + if ($impl.onDidFinishRenderingFrame$async) + r'onDidFinishRenderingFrame(ZLorg/maplibre/android/maps/RenderingStats;)V', ], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory MapView$OnDidFinishRenderingMapListener.implement( - $MapView$OnDidFinishRenderingMapListener $impl, + factory MapView$OnDidFinishRenderingFrameWithStatsListener.implement( + $MapView$OnDidFinishRenderingFrameWithStatsListener $impl, ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return MapView$OnDidFinishRenderingMapListener.fromReference( + return MapView$OnDidFinishRenderingFrameWithStatsListener.fromReference( $i.implementReference(), ); } } -abstract base mixin class $MapView$OnDidFinishRenderingMapListener { - factory $MapView$OnDidFinishRenderingMapListener({ - required void Function(bool z) onDidFinishRenderingMap, - bool onDidFinishRenderingMap$async, - }) = _$MapView$OnDidFinishRenderingMapListener; +abstract base mixin class $MapView$OnDidFinishRenderingFrameWithStatsListener { + factory $MapView$OnDidFinishRenderingFrameWithStatsListener({ + required void Function( + bool z, + renderingstats$_.RenderingStats? renderingStats, + ) + onDidFinishRenderingFrame, + bool onDidFinishRenderingFrame$async, + }) = _$MapView$OnDidFinishRenderingFrameWithStatsListener; - void onDidFinishRenderingMap(bool z); - bool get onDidFinishRenderingMap$async => false; + void onDidFinishRenderingFrame( + bool z, + renderingstats$_.RenderingStats? renderingStats, + ); + bool get onDidFinishRenderingFrame$async => false; } -final class _$MapView$OnDidFinishRenderingMapListener - with $MapView$OnDidFinishRenderingMapListener { - _$MapView$OnDidFinishRenderingMapListener({ - required void Function(bool z) onDidFinishRenderingMap, - this.onDidFinishRenderingMap$async = false, - }) : _onDidFinishRenderingMap = onDidFinishRenderingMap; +final class _$MapView$OnDidFinishRenderingFrameWithStatsListener + with $MapView$OnDidFinishRenderingFrameWithStatsListener { + _$MapView$OnDidFinishRenderingFrameWithStatsListener({ + required void Function( + bool z, + renderingstats$_.RenderingStats? renderingStats, + ) + onDidFinishRenderingFrame, + this.onDidFinishRenderingFrame$async = false, + }) : _onDidFinishRenderingFrame = onDidFinishRenderingFrame; - final void Function(bool z) _onDidFinishRenderingMap; - final bool onDidFinishRenderingMap$async; + final void Function(bool z, renderingstats$_.RenderingStats? renderingStats) + _onDidFinishRenderingFrame; + final bool onDidFinishRenderingFrame$async; - void onDidFinishRenderingMap(bool z) { - return _onDidFinishRenderingMap(z); + void onDidFinishRenderingFrame( + bool z, + renderingstats$_.RenderingStats? renderingStats, + ) { + return _onDidFinishRenderingFrame(z, renderingStats); } } -final class $MapView$OnDidFinishRenderingMapListener$NullableType - extends jni$_.JObjType { +final class $MapView$OnDidFinishRenderingFrameWithStatsListener$NullableType + extends + jni$_.JObjType { @jni$_.internal - const $MapView$OnDidFinishRenderingMapListener$NullableType(); + const $MapView$OnDidFinishRenderingFrameWithStatsListener$NullableType(); @jni$_.internal @core$_.override String get signature => - r'Lorg/maplibre/android/maps/MapView$OnDidFinishRenderingMapListener;'; + r'Lorg/maplibre/android/maps/MapView$OnDidFinishRenderingFrameWithStatsListener;'; @jni$_.internal @core$_.override - MapView$OnDidFinishRenderingMapListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapView$OnDidFinishRenderingMapListener.fromReference( - reference, - ); + MapView$OnDidFinishRenderingFrameWithStatsListener? fromReference( + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapView$OnDidFinishRenderingFrameWithStatsListener.fromReference( + reference, + ); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @jni$_.internal @core$_.override - jni$_.JObjType get nullableType => - this; + jni$_.JObjType + get nullableType => this; @jni$_.internal @core$_.override @@ -2351,105 +2357,352 @@ final class $MapView$OnDidFinishRenderingMapListener$NullableType @core$_.override int get hashCode => - ($MapView$OnDidFinishRenderingMapListener$NullableType).hashCode; + ($MapView$OnDidFinishRenderingFrameWithStatsListener$NullableType) + .hashCode; @core$_.override bool operator ==(Object other) { return other.runtimeType == - ($MapView$OnDidFinishRenderingMapListener$NullableType) && - other is $MapView$OnDidFinishRenderingMapListener$NullableType; + ($MapView$OnDidFinishRenderingFrameWithStatsListener$NullableType) && + other + is $MapView$OnDidFinishRenderingFrameWithStatsListener$NullableType; } } -final class $MapView$OnDidFinishRenderingMapListener$Type - extends jni$_.JObjType { +final class $MapView$OnDidFinishRenderingFrameWithStatsListener$Type + extends jni$_.JObjType { @jni$_.internal - const $MapView$OnDidFinishRenderingMapListener$Type(); + const $MapView$OnDidFinishRenderingFrameWithStatsListener$Type(); @jni$_.internal @core$_.override String get signature => - r'Lorg/maplibre/android/maps/MapView$OnDidFinishRenderingMapListener;'; + r'Lorg/maplibre/android/maps/MapView$OnDidFinishRenderingFrameWithStatsListener;'; @jni$_.internal @core$_.override - MapView$OnDidFinishRenderingMapListener fromReference( - jni$_.JReference reference) => - MapView$OnDidFinishRenderingMapListener.fromReference( - reference, - ); + MapView$OnDidFinishRenderingFrameWithStatsListener fromReference( + jni$_.JReference reference, + ) => MapView$OnDidFinishRenderingFrameWithStatsListener.fromReference( + reference, + ); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @jni$_.internal @core$_.override - jni$_.JObjType get nullableType => - const $MapView$OnDidFinishRenderingMapListener$NullableType(); + jni$_.JObjType + get nullableType => + const $MapView$OnDidFinishRenderingFrameWithStatsListener$NullableType(); @jni$_.internal @core$_.override final superCount = 1; @core$_.override - int get hashCode => ($MapView$OnDidFinishRenderingMapListener$Type).hashCode; + int get hashCode => + ($MapView$OnDidFinishRenderingFrameWithStatsListener$Type).hashCode; @core$_.override bool operator ==(Object other) { return other.runtimeType == - ($MapView$OnDidFinishRenderingMapListener$Type) && - other is $MapView$OnDidFinishRenderingMapListener$Type; + ($MapView$OnDidFinishRenderingFrameWithStatsListener$Type) && + other is $MapView$OnDidFinishRenderingFrameWithStatsListener$Type; } } -/// from: `org.maplibre.android.maps.MapView$OnGlyphsErrorListener` -class MapView$OnGlyphsErrorListener extends jni$_.JObject { +/// from: `org.maplibre.android.maps.MapView$OnDidFinishRenderingMapListener` +class MapView$OnDidFinishRenderingMapListener extends jni$_.JObject { @jni$_.internal @core$_.override - final jni$_.JObjType $type; + final jni$_.JObjType $type; @jni$_.internal - MapView$OnGlyphsErrorListener.fromReference( + MapView$OnDidFinishRenderingMapListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnGlyphsErrorListener'); + r'org/maplibre/android/maps/MapView$OnDidFinishRenderingMapListener', + ); /// The type which includes information such as the signature of this class. - static const nullableType = $MapView$OnGlyphsErrorListener$NullableType(); - static const type = $MapView$OnGlyphsErrorListener$Type(); - static final _id_onGlyphsError = _class.instanceMethodId( - r'onGlyphsError', - r'([Ljava/lang/String;II)V', + static const nullableType = + $MapView$OnDidFinishRenderingMapListener$NullableType(); + static const type = $MapView$OnDidFinishRenderingMapListener$Type(); + static final _id_onDidFinishRenderingMap = _class.instanceMethodId( + r'onDidFinishRenderingMap', + r'(Z)V', ); - static final _onGlyphsError = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onDidFinishRenderingMap = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); - /// from: `public abstract void onGlyphsError(java.lang.String[] strings, int i, int i1)` - void onGlyphsError( - jni$_.JArray? strings, - int i, - int i1, + /// from: `public abstract void onDidFinishRenderingMap(boolean z)` + void onDidFinishRenderingMap(bool z) { + _onDidFinishRenderingMap( + reference.pointer, + _id_onDidFinishRenderingMap as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).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'onDidFinishRenderingMap(Z)V') { + _$impls[$p]!.onDidFinishRenderingMap( + $a![0]! + .as(const jni$_.JBooleanType(), releaseOriginal: true) + .booleanValue(releaseOriginal: true), + ); + return jni$_.nullptr; + } + } catch (e) { + return jni$_.ProtectedJniExtensions.newDartException(e); + } + return jni$_.nullptr; + } + + static void implementIn( + jni$_.JImplementer implementer, + $MapView$OnDidFinishRenderingMapListener $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'org.maplibre.android.maps.MapView$OnDidFinishRenderingMapListener', + $p, + _$invokePointer, + [if ($impl.onDidFinishRenderingMap$async) r'onDidFinishRenderingMap(Z)V'], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; + } + + factory MapView$OnDidFinishRenderingMapListener.implement( + $MapView$OnDidFinishRenderingMapListener $impl, ) { - final _$strings = strings?.reference ?? jni$_.jNullReference; - _onGlyphsError(reference.pointer, _id_onGlyphsError as jni$_.JMethodIDPtr, - _$strings.pointer, i, i1) - .check(); + final $i = jni$_.JImplementer(); + implementIn($i, $impl); + return MapView$OnDidFinishRenderingMapListener.fromReference( + $i.implementReference(), + ); + } +} + +abstract base mixin class $MapView$OnDidFinishRenderingMapListener { + factory $MapView$OnDidFinishRenderingMapListener({ + required void Function(bool z) onDidFinishRenderingMap, + bool onDidFinishRenderingMap$async, + }) = _$MapView$OnDidFinishRenderingMapListener; + + void onDidFinishRenderingMap(bool z); + bool get onDidFinishRenderingMap$async => false; +} + +final class _$MapView$OnDidFinishRenderingMapListener + with $MapView$OnDidFinishRenderingMapListener { + _$MapView$OnDidFinishRenderingMapListener({ + required void Function(bool z) onDidFinishRenderingMap, + this.onDidFinishRenderingMap$async = false, + }) : _onDidFinishRenderingMap = onDidFinishRenderingMap; + + final void Function(bool z) _onDidFinishRenderingMap; + final bool onDidFinishRenderingMap$async; + + void onDidFinishRenderingMap(bool z) { + return _onDidFinishRenderingMap(z); + } +} + +final class $MapView$OnDidFinishRenderingMapListener$NullableType + extends jni$_.JObjType { + @jni$_.internal + const $MapView$OnDidFinishRenderingMapListener$NullableType(); + + @jni$_.internal + @core$_.override + String get signature => + r'Lorg/maplibre/android/maps/MapView$OnDidFinishRenderingMapListener;'; + + @jni$_.internal + @core$_.override + MapView$OnDidFinishRenderingMapListener? fromReference( + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapView$OnDidFinishRenderingMapListener.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 => + ($MapView$OnDidFinishRenderingMapListener$NullableType).hashCode; + + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == + ($MapView$OnDidFinishRenderingMapListener$NullableType) && + other is $MapView$OnDidFinishRenderingMapListener$NullableType; + } +} + +final class $MapView$OnDidFinishRenderingMapListener$Type + extends jni$_.JObjType { + @jni$_.internal + const $MapView$OnDidFinishRenderingMapListener$Type(); + + @jni$_.internal + @core$_.override + String get signature => + r'Lorg/maplibre/android/maps/MapView$OnDidFinishRenderingMapListener;'; + + @jni$_.internal + @core$_.override + MapView$OnDidFinishRenderingMapListener fromReference( + jni$_.JReference reference, + ) => MapView$OnDidFinishRenderingMapListener.fromReference(reference); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => + const $MapView$OnDidFinishRenderingMapListener$NullableType(); + + @jni$_.internal + @core$_.override + final superCount = 1; + + @core$_.override + int get hashCode => ($MapView$OnDidFinishRenderingMapListener$Type).hashCode; + + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == + ($MapView$OnDidFinishRenderingMapListener$Type) && + other is $MapView$OnDidFinishRenderingMapListener$Type; + } +} + +/// from: `org.maplibre.android.maps.MapView$OnGlyphsErrorListener` +class MapView$OnGlyphsErrorListener extends jni$_.JObject { + @jni$_.internal + @core$_.override + final jni$_.JObjType $type; + + @jni$_.internal + MapView$OnGlyphsErrorListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); + + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/maps/MapView$OnGlyphsErrorListener', + ); + + /// The type which includes information such as the signature of this class. + static const nullableType = $MapView$OnGlyphsErrorListener$NullableType(); + static const type = $MapView$OnGlyphsErrorListener$Type(); + static final _id_onGlyphsError = _class.instanceMethodId( + r'onGlyphsError', + r'([Ljava/lang/String;II)V', + ); + + static final _onGlyphsError = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); + + /// from: `public abstract void onGlyphsError(java.lang.String[] strings, int i, int i1)` + void onGlyphsError(jni$_.JArray strings, int i, int i1) { + final _$strings = strings.reference; + _onGlyphsError( + reference.pointer, + _id_onGlyphsError as jni$_.JMethodIDPtr, + _$strings.pointer, + i, + i1, + ).check(); } /// Maps a specific port to the implemented interface. @@ -2461,19 +2714,16 @@ class MapView$OnGlyphsErrorListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -2484,10 +2734,10 @@ class MapView$OnGlyphsErrorListener extends jni$_.JObject { final $a = $i.args; if ($d == r'onGlyphsError([Ljava/lang/String;II)V') { _$impls[$p]!.onGlyphsError( - $a![0]?.as( - const jni$_.JArrayType( - jni$_.JStringNullableType()), - releaseOriginal: true), + $a![0]!.as( + const jni$_.JArrayType(jni$_.JStringNullableType()), + releaseOriginal: true, + ), $a![1]! .as(const jni$_.JIntegerType(), releaseOriginal: true) .intValue(releaseOriginal: true), @@ -2522,9 +2772,7 @@ class MapView$OnGlyphsErrorListener extends jni$_.JObject { r'org.maplibre.android.maps.MapView$OnGlyphsErrorListener', $p, _$invokePointer, - [ - if ($impl.onGlyphsError$async) r'onGlyphsError([Ljava/lang/String;II)V', - ], + [if ($impl.onGlyphsError$async) r'onGlyphsError([Ljava/lang/String;II)V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; @@ -2535,36 +2783,34 @@ class MapView$OnGlyphsErrorListener extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return MapView$OnGlyphsErrorListener.fromReference( - $i.implementReference(), - ); + return MapView$OnGlyphsErrorListener.fromReference($i.implementReference()); } } abstract base mixin class $MapView$OnGlyphsErrorListener { factory $MapView$OnGlyphsErrorListener({ - required void Function(jni$_.JArray? strings, int i, int i1) - onGlyphsError, + required void Function(jni$_.JArray strings, int i, int i1) + onGlyphsError, bool onGlyphsError$async, }) = _$MapView$OnGlyphsErrorListener; - void onGlyphsError(jni$_.JArray? strings, int i, int i1); + void onGlyphsError(jni$_.JArray strings, int i, int i1); bool get onGlyphsError$async => false; } final class _$MapView$OnGlyphsErrorListener with $MapView$OnGlyphsErrorListener { _$MapView$OnGlyphsErrorListener({ - required void Function(jni$_.JArray? strings, int i, int i1) - onGlyphsError, + required void Function(jni$_.JArray strings, int i, int i1) + onGlyphsError, this.onGlyphsError$async = false, }) : _onGlyphsError = onGlyphsError; - final void Function(jni$_.JArray? strings, int i, int i1) - _onGlyphsError; + final void Function(jni$_.JArray strings, int i, int i1) + _onGlyphsError; final bool onGlyphsError$async; - void onGlyphsError(jni$_.JArray? strings, int i, int i1) { + void onGlyphsError(jni$_.JArray strings, int i, int i1) { return _onGlyphsError(strings, i, i1); } } @@ -2583,10 +2829,8 @@ final class $MapView$OnGlyphsErrorListener$NullableType @core$_.override MapView$OnGlyphsErrorListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapView$OnGlyphsErrorListener.fromReference( - reference, - ); + ? null + : MapView$OnGlyphsErrorListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2622,9 +2866,7 @@ final class $MapView$OnGlyphsErrorListener$Type @jni$_.internal @core$_.override MapView$OnGlyphsErrorListener fromReference(jni$_.JReference reference) => - MapView$OnGlyphsErrorListener.fromReference( - reference, - ); + MapView$OnGlyphsErrorListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2655,13 +2897,13 @@ class MapView$OnGlyphsLoadedListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapView$OnGlyphsLoadedListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapView$OnGlyphsLoadedListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnGlyphsLoadedListener'); + r'org/maplibre/android/maps/MapView$OnGlyphsLoadedListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapView$OnGlyphsLoadedListener$NullableType(); @@ -2671,31 +2913,38 @@ class MapView$OnGlyphsLoadedListener extends jni$_.JObject { r'([Ljava/lang/String;II)V', ); - static final _onGlyphsLoaded = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onGlyphsLoaded = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `public abstract void onGlyphsLoaded(java.lang.String[] strings, int i, int i1)` - void onGlyphsLoaded( - jni$_.JArray? strings, - int i, - int i1, - ) { - final _$strings = strings?.reference ?? jni$_.jNullReference; - _onGlyphsLoaded(reference.pointer, _id_onGlyphsLoaded as jni$_.JMethodIDPtr, - _$strings.pointer, i, i1) - .check(); + void onGlyphsLoaded(jni$_.JArray strings, int i, int i1) { + final _$strings = strings.reference; + _onGlyphsLoaded( + reference.pointer, + _id_onGlyphsLoaded as jni$_.JMethodIDPtr, + _$strings.pointer, + i, + i1, + ).check(); } /// Maps a specific port to the implemented interface. @@ -2707,19 +2956,16 @@ class MapView$OnGlyphsLoadedListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -2730,10 +2976,10 @@ class MapView$OnGlyphsLoadedListener extends jni$_.JObject { final $a = $i.args; if ($d == r'onGlyphsLoaded([Ljava/lang/String;II)V') { _$impls[$p]!.onGlyphsLoaded( - $a![0]?.as( - const jni$_.JArrayType( - jni$_.JStringNullableType()), - releaseOriginal: true), + $a![0]!.as( + const jni$_.JArrayType(jni$_.JStringNullableType()), + releaseOriginal: true, + ), $a![1]! .as(const jni$_.JIntegerType(), releaseOriginal: true) .intValue(releaseOriginal: true), @@ -2790,28 +3036,28 @@ class MapView$OnGlyphsLoadedListener extends jni$_.JObject { abstract base mixin class $MapView$OnGlyphsLoadedListener { factory $MapView$OnGlyphsLoadedListener({ - required void Function(jni$_.JArray? strings, int i, int i1) - onGlyphsLoaded, + required void Function(jni$_.JArray strings, int i, int i1) + onGlyphsLoaded, bool onGlyphsLoaded$async, }) = _$MapView$OnGlyphsLoadedListener; - void onGlyphsLoaded(jni$_.JArray? strings, int i, int i1); + void onGlyphsLoaded(jni$_.JArray strings, int i, int i1); bool get onGlyphsLoaded$async => false; } final class _$MapView$OnGlyphsLoadedListener with $MapView$OnGlyphsLoadedListener { _$MapView$OnGlyphsLoadedListener({ - required void Function(jni$_.JArray? strings, int i, int i1) - onGlyphsLoaded, + required void Function(jni$_.JArray strings, int i, int i1) + onGlyphsLoaded, this.onGlyphsLoaded$async = false, }) : _onGlyphsLoaded = onGlyphsLoaded; - final void Function(jni$_.JArray? strings, int i, int i1) - _onGlyphsLoaded; + final void Function(jni$_.JArray strings, int i, int i1) + _onGlyphsLoaded; final bool onGlyphsLoaded$async; - void onGlyphsLoaded(jni$_.JArray? strings, int i, int i1) { + void onGlyphsLoaded(jni$_.JArray strings, int i, int i1) { return _onGlyphsLoaded(strings, i, i1); } } @@ -2830,10 +3076,8 @@ final class $MapView$OnGlyphsLoadedListener$NullableType @core$_.override MapView$OnGlyphsLoadedListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapView$OnGlyphsLoadedListener.fromReference( - reference, - ); + ? null + : MapView$OnGlyphsLoadedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2870,9 +3114,7 @@ final class $MapView$OnGlyphsLoadedListener$Type @jni$_.internal @core$_.override MapView$OnGlyphsLoadedListener fromReference(jni$_.JReference reference) => - MapView$OnGlyphsLoadedListener.fromReference( - reference, - ); + MapView$OnGlyphsLoadedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2903,13 +3145,13 @@ class MapView$OnGlyphsRequestedListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapView$OnGlyphsRequestedListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapView$OnGlyphsRequestedListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnGlyphsRequestedListener'); + r'org/maplibre/android/maps/MapView$OnGlyphsRequestedListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapView$OnGlyphsRequestedListener$NullableType(); @@ -2919,35 +3161,38 @@ class MapView$OnGlyphsRequestedListener extends jni$_.JObject { r'([Ljava/lang/String;II)V', ); - static final _onGlyphsRequested = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onGlyphsRequested = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `public abstract void onGlyphsRequested(java.lang.String[] strings, int i, int i1)` - void onGlyphsRequested( - jni$_.JArray? strings, - int i, - int i1, - ) { - final _$strings = strings?.reference ?? jni$_.jNullReference; + void onGlyphsRequested(jni$_.JArray strings, int i, int i1) { + final _$strings = strings.reference; _onGlyphsRequested( - reference.pointer, - _id_onGlyphsRequested as jni$_.JMethodIDPtr, - _$strings.pointer, - i, - i1) - .check(); + reference.pointer, + _id_onGlyphsRequested as jni$_.JMethodIDPtr, + _$strings.pointer, + i, + i1, + ).check(); } /// Maps a specific port to the implemented interface. @@ -2959,19 +3204,16 @@ class MapView$OnGlyphsRequestedListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -2982,10 +3224,10 @@ class MapView$OnGlyphsRequestedListener extends jni$_.JObject { final $a = $i.args; if ($d == r'onGlyphsRequested([Ljava/lang/String;II)V') { _$impls[$p]!.onGlyphsRequested( - $a![0]?.as( - const jni$_.JArrayType( - jni$_.JStringNullableType()), - releaseOriginal: true), + $a![0]!.as( + const jni$_.JArrayType(jni$_.JStringNullableType()), + releaseOriginal: true, + ), $a![1]! .as(const jni$_.JIntegerType(), releaseOriginal: true) .intValue(releaseOriginal: true), @@ -3042,28 +3284,28 @@ class MapView$OnGlyphsRequestedListener extends jni$_.JObject { abstract base mixin class $MapView$OnGlyphsRequestedListener { factory $MapView$OnGlyphsRequestedListener({ - required void Function(jni$_.JArray? strings, int i, int i1) - onGlyphsRequested, + required void Function(jni$_.JArray strings, int i, int i1) + onGlyphsRequested, bool onGlyphsRequested$async, }) = _$MapView$OnGlyphsRequestedListener; - void onGlyphsRequested(jni$_.JArray? strings, int i, int i1); + void onGlyphsRequested(jni$_.JArray strings, int i, int i1); bool get onGlyphsRequested$async => false; } final class _$MapView$OnGlyphsRequestedListener with $MapView$OnGlyphsRequestedListener { _$MapView$OnGlyphsRequestedListener({ - required void Function(jni$_.JArray? strings, int i, int i1) - onGlyphsRequested, + required void Function(jni$_.JArray strings, int i, int i1) + onGlyphsRequested, this.onGlyphsRequested$async = false, }) : _onGlyphsRequested = onGlyphsRequested; - final void Function(jni$_.JArray? strings, int i, int i1) - _onGlyphsRequested; + final void Function(jni$_.JArray strings, int i, int i1) + _onGlyphsRequested; final bool onGlyphsRequested$async; - void onGlyphsRequested(jni$_.JArray? strings, int i, int i1) { + void onGlyphsRequested(jni$_.JArray strings, int i, int i1) { return _onGlyphsRequested(strings, i, i1); } } @@ -3081,12 +3323,10 @@ final class $MapView$OnGlyphsRequestedListener$NullableType @jni$_.internal @core$_.override MapView$OnGlyphsRequestedListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapView$OnGlyphsRequestedListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapView$OnGlyphsRequestedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -3124,9 +3364,7 @@ final class $MapView$OnGlyphsRequestedListener$Type @jni$_.internal @core$_.override MapView$OnGlyphsRequestedListener fromReference(jni$_.JReference reference) => - MapView$OnGlyphsRequestedListener.fromReference( - reference, - ); + MapView$OnGlyphsRequestedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -3157,13 +3395,13 @@ class MapView$OnPostCompileShaderListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapView$OnPostCompileShaderListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapView$OnPostCompileShaderListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnPostCompileShaderListener'); + r'org/maplibre/android/maps/MapView$OnPostCompileShaderListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -3174,35 +3412,38 @@ class MapView$OnPostCompileShaderListener extends jni$_.JObject { r'(IILjava/lang/String;)V', ); - static final _onPostCompileShader = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onPostCompileShader = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, int, jni$_.Pointer)>(); - - /// from: `public abstract void onPostCompileShader(int i, int i1, java.lang.String string)` - void onPostCompileShader( - int i, - int i1, - jni$_.JString? string, - ) { + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Int32, jni$_.Int32, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + int, + jni$_.Pointer, + ) + >(); + + /// from: `public abstract void onPostCompileShader(int i, int i1, java.lang.String string)` + void onPostCompileShader(int i, int i1, jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; _onPostCompileShader( - reference.pointer, - _id_onPostCompileShader as jni$_.JMethodIDPtr, - i, - i1, - _$string.pointer) - .check(); + reference.pointer, + _id_onPostCompileShader as jni$_.JMethodIDPtr, + i, + i1, + _$string.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -3215,19 +3456,16 @@ class MapView$OnPostCompileShaderListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -3296,7 +3534,7 @@ class MapView$OnPostCompileShaderListener extends jni$_.JObject { abstract base mixin class $MapView$OnPostCompileShaderListener { factory $MapView$OnPostCompileShaderListener({ required void Function(int i, int i1, jni$_.JString? string) - onPostCompileShader, + onPostCompileShader, bool onPostCompileShader$async, }) = _$MapView$OnPostCompileShaderListener; @@ -3308,12 +3546,12 @@ final class _$MapView$OnPostCompileShaderListener with $MapView$OnPostCompileShaderListener { _$MapView$OnPostCompileShaderListener({ required void Function(int i, int i1, jni$_.JString? string) - onPostCompileShader, + onPostCompileShader, this.onPostCompileShader$async = false, }) : _onPostCompileShader = onPostCompileShader; final void Function(int i, int i1, jni$_.JString? string) - _onPostCompileShader; + _onPostCompileShader; final bool onPostCompileShader$async; void onPostCompileShader(int i, int i1, jni$_.JString? string) { @@ -3334,12 +3572,10 @@ final class $MapView$OnPostCompileShaderListener$NullableType @jni$_.internal @core$_.override MapView$OnPostCompileShaderListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapView$OnPostCompileShaderListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapView$OnPostCompileShaderListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -3377,10 +3613,8 @@ final class $MapView$OnPostCompileShaderListener$Type @jni$_.internal @core$_.override MapView$OnPostCompileShaderListener fromReference( - jni$_.JReference reference) => - MapView$OnPostCompileShaderListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapView$OnPostCompileShaderListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -3411,13 +3645,13 @@ class MapView$OnPreCompileShaderListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapView$OnPreCompileShaderListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapView$OnPreCompileShaderListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnPreCompileShaderListener'); + r'org/maplibre/android/maps/MapView$OnPreCompileShaderListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -3428,35 +3662,38 @@ class MapView$OnPreCompileShaderListener extends jni$_.JObject { r'(IILjava/lang/String;)V', ); - static final _onPreCompileShader = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onPreCompileShader = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, int, jni$_.Pointer)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Int32, jni$_.Int32, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + int, + jni$_.Pointer, + ) + >(); /// from: `public abstract void onPreCompileShader(int i, int i1, java.lang.String string)` - void onPreCompileShader( - int i, - int i1, - jni$_.JString? string, - ) { + void onPreCompileShader(int i, int i1, jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; _onPreCompileShader( - reference.pointer, - _id_onPreCompileShader as jni$_.JMethodIDPtr, - i, - i1, - _$string.pointer) - .check(); + reference.pointer, + _id_onPreCompileShader as jni$_.JMethodIDPtr, + i, + i1, + _$string.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -3469,19 +3706,16 @@ class MapView$OnPreCompileShaderListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -3550,7 +3784,7 @@ class MapView$OnPreCompileShaderListener extends jni$_.JObject { abstract base mixin class $MapView$OnPreCompileShaderListener { factory $MapView$OnPreCompileShaderListener({ required void Function(int i, int i1, jni$_.JString? string) - onPreCompileShader, + onPreCompileShader, bool onPreCompileShader$async, }) = _$MapView$OnPreCompileShaderListener; @@ -3562,7 +3796,7 @@ final class _$MapView$OnPreCompileShaderListener with $MapView$OnPreCompileShaderListener { _$MapView$OnPreCompileShaderListener({ required void Function(int i, int i1, jni$_.JString? string) - onPreCompileShader, + onPreCompileShader, this.onPreCompileShader$async = false, }) : _onPreCompileShader = onPreCompileShader; @@ -3587,12 +3821,10 @@ final class $MapView$OnPreCompileShaderListener$NullableType @jni$_.internal @core$_.override MapView$OnPreCompileShaderListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapView$OnPreCompileShaderListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapView$OnPreCompileShaderListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -3630,10 +3862,8 @@ final class $MapView$OnPreCompileShaderListener$Type @jni$_.internal @core$_.override MapView$OnPreCompileShaderListener fromReference( - jni$_.JReference reference) => - MapView$OnPreCompileShaderListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapView$OnPreCompileShaderListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -3666,11 +3896,12 @@ class MapView$OnShaderCompileFailedListener extends jni$_.JObject { @jni$_.internal MapView$OnShaderCompileFailedListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnShaderCompileFailedListener'); + r'org/maplibre/android/maps/MapView$OnShaderCompileFailedListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -3681,35 +3912,38 @@ class MapView$OnShaderCompileFailedListener extends jni$_.JObject { r'(IILjava/lang/String;)V', ); - static final _onShaderCompileFailed = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onShaderCompileFailed = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, int, jni$_.Pointer)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Int32, jni$_.Int32, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + int, + jni$_.Pointer, + ) + >(); /// from: `public abstract void onShaderCompileFailed(int i, int i1, java.lang.String string)` - void onShaderCompileFailed( - int i, - int i1, - jni$_.JString? string, - ) { + void onShaderCompileFailed(int i, int i1, jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; _onShaderCompileFailed( - reference.pointer, - _id_onShaderCompileFailed as jni$_.JMethodIDPtr, - i, - i1, - _$string.pointer) - .check(); + reference.pointer, + _id_onShaderCompileFailed as jni$_.JMethodIDPtr, + i, + i1, + _$string.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -3722,19 +3956,16 @@ class MapView$OnShaderCompileFailedListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -3803,7 +4034,7 @@ class MapView$OnShaderCompileFailedListener extends jni$_.JObject { abstract base mixin class $MapView$OnShaderCompileFailedListener { factory $MapView$OnShaderCompileFailedListener({ required void Function(int i, int i1, jni$_.JString? string) - onShaderCompileFailed, + onShaderCompileFailed, bool onShaderCompileFailed$async, }) = _$MapView$OnShaderCompileFailedListener; @@ -3815,12 +4046,12 @@ final class _$MapView$OnShaderCompileFailedListener with $MapView$OnShaderCompileFailedListener { _$MapView$OnShaderCompileFailedListener({ required void Function(int i, int i1, jni$_.JString? string) - onShaderCompileFailed, + onShaderCompileFailed, this.onShaderCompileFailed$async = false, }) : _onShaderCompileFailed = onShaderCompileFailed; final void Function(int i, int i1, jni$_.JString? string) - _onShaderCompileFailed; + _onShaderCompileFailed; final bool onShaderCompileFailed$async; void onShaderCompileFailed(int i, int i1, jni$_.JString? string) { @@ -3841,12 +4072,10 @@ final class $MapView$OnShaderCompileFailedListener$NullableType @jni$_.internal @core$_.override MapView$OnShaderCompileFailedListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapView$OnShaderCompileFailedListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapView$OnShaderCompileFailedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -3885,10 +4114,8 @@ final class $MapView$OnShaderCompileFailedListener$Type @jni$_.internal @core$_.override MapView$OnShaderCompileFailedListener fromReference( - jni$_.JReference reference) => - MapView$OnShaderCompileFailedListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapView$OnShaderCompileFailedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -3919,13 +4146,13 @@ class MapView$OnSourceChangedListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapView$OnSourceChangedListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapView$OnSourceChangedListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnSourceChangedListener'); + r'org/maplibre/android/maps/MapView$OnSourceChangedListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapView$OnSourceChangedListener$NullableType(); @@ -3935,25 +4162,32 @@ class MapView$OnSourceChangedListener extends jni$_.JObject { r'(Ljava/lang/String;)V', ); - static final _onSourceChangedListener = 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 _onSourceChangedListener = + 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 onSourceChangedListener(java.lang.String string)` - void onSourceChangedListener( - jni$_.JString? string, - ) { + void onSourceChangedListener(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _onSourceChangedListener(reference.pointer, - _id_onSourceChangedListener as jni$_.JMethodIDPtr, _$string.pointer) - .check(); + _onSourceChangedListener( + reference.pointer, + _id_onSourceChangedListener as jni$_.JMethodIDPtr, + _$string.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -3965,19 +4199,16 @@ class MapView$OnSourceChangedListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -4076,10 +4307,8 @@ final class $MapView$OnSourceChangedListener$NullableType @core$_.override MapView$OnSourceChangedListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapView$OnSourceChangedListener.fromReference( - reference, - ); + ? null + : MapView$OnSourceChangedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -4116,9 +4345,7 @@ final class $MapView$OnSourceChangedListener$Type @jni$_.internal @core$_.override MapView$OnSourceChangedListener fromReference(jni$_.JReference reference) => - MapView$OnSourceChangedListener.fromReference( - reference, - ); + MapView$OnSourceChangedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -4149,13 +4376,13 @@ class MapView$OnSpriteErrorListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapView$OnSpriteErrorListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapView$OnSpriteErrorListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnSpriteErrorListener'); + r'org/maplibre/android/maps/MapView$OnSpriteErrorListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapView$OnSpriteErrorListener$NullableType(); @@ -4165,33 +4392,37 @@ class MapView$OnSpriteErrorListener extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)V', ); - static final _onSpriteError = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onSpriteError = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void onSpriteError(java.lang.String string, java.lang.String string1)` - void onSpriteError( - jni$_.JString? string, - jni$_.JString? string1, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; - final _$string1 = string1?.reference ?? jni$_.jNullReference; - _onSpriteError(reference.pointer, _id_onSpriteError as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) - .check(); + void onSpriteError(jni$_.JString string, jni$_.JString string1) { + final _$string = string.reference; + final _$string1 = string1.reference; + _onSpriteError( + reference.pointer, + _id_onSpriteError as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -4203,19 +4434,16 @@ class MapView$OnSpriteErrorListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -4226,8 +4454,8 @@ class MapView$OnSpriteErrorListener extends jni$_.JObject { final $a = $i.args; if ($d == r'onSpriteError(Ljava/lang/String;Ljava/lang/String;)V') { _$impls[$p]!.onSpriteError( - $a![0]?.as(const jni$_.JStringType(), releaseOriginal: true), - $a![1]?.as(const jni$_.JStringType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JStringType(), releaseOriginal: true), + $a![1]!.as(const jni$_.JStringType(), releaseOriginal: true), ); return jni$_.nullptr; } @@ -4270,36 +4498,34 @@ class MapView$OnSpriteErrorListener extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return MapView$OnSpriteErrorListener.fromReference( - $i.implementReference(), - ); + return MapView$OnSpriteErrorListener.fromReference($i.implementReference()); } } abstract base mixin class $MapView$OnSpriteErrorListener { factory $MapView$OnSpriteErrorListener({ - required void Function(jni$_.JString? string, jni$_.JString? string1) - onSpriteError, + required void Function(jni$_.JString string, jni$_.JString string1) + onSpriteError, bool onSpriteError$async, }) = _$MapView$OnSpriteErrorListener; - void onSpriteError(jni$_.JString? string, jni$_.JString? string1); + void onSpriteError(jni$_.JString string, jni$_.JString string1); bool get onSpriteError$async => false; } final class _$MapView$OnSpriteErrorListener with $MapView$OnSpriteErrorListener { _$MapView$OnSpriteErrorListener({ - required void Function(jni$_.JString? string, jni$_.JString? string1) - onSpriteError, + required void Function(jni$_.JString string, jni$_.JString string1) + onSpriteError, this.onSpriteError$async = false, }) : _onSpriteError = onSpriteError; - final void Function(jni$_.JString? string, jni$_.JString? string1) - _onSpriteError; + final void Function(jni$_.JString string, jni$_.JString string1) + _onSpriteError; final bool onSpriteError$async; - void onSpriteError(jni$_.JString? string, jni$_.JString? string1) { + void onSpriteError(jni$_.JString string, jni$_.JString string1) { return _onSpriteError(string, string1); } } @@ -4318,10 +4544,8 @@ final class $MapView$OnSpriteErrorListener$NullableType @core$_.override MapView$OnSpriteErrorListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapView$OnSpriteErrorListener.fromReference( - reference, - ); + ? null + : MapView$OnSpriteErrorListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -4357,9 +4581,7 @@ final class $MapView$OnSpriteErrorListener$Type @jni$_.internal @core$_.override MapView$OnSpriteErrorListener fromReference(jni$_.JReference reference) => - MapView$OnSpriteErrorListener.fromReference( - reference, - ); + MapView$OnSpriteErrorListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -4390,13 +4612,13 @@ class MapView$OnSpriteLoadedListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapView$OnSpriteLoadedListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapView$OnSpriteLoadedListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnSpriteLoadedListener'); + r'org/maplibre/android/maps/MapView$OnSpriteLoadedListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapView$OnSpriteLoadedListener$NullableType(); @@ -4406,33 +4628,37 @@ class MapView$OnSpriteLoadedListener extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)V', ); - static final _onSpriteLoaded = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onSpriteLoaded = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void onSpriteLoaded(java.lang.String string, java.lang.String string1)` - void onSpriteLoaded( - jni$_.JString? string, - jni$_.JString? string1, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; - final _$string1 = string1?.reference ?? jni$_.jNullReference; - _onSpriteLoaded(reference.pointer, _id_onSpriteLoaded as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) - .check(); + void onSpriteLoaded(jni$_.JString string, jni$_.JString string1) { + final _$string = string.reference; + final _$string1 = string1.reference; + _onSpriteLoaded( + reference.pointer, + _id_onSpriteLoaded as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -4444,19 +4670,16 @@ class MapView$OnSpriteLoadedListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -4467,8 +4690,8 @@ class MapView$OnSpriteLoadedListener extends jni$_.JObject { final $a = $i.args; if ($d == r'onSpriteLoaded(Ljava/lang/String;Ljava/lang/String;)V') { _$impls[$p]!.onSpriteLoaded( - $a![0]?.as(const jni$_.JStringType(), releaseOriginal: true), - $a![1]?.as(const jni$_.JStringType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JStringType(), releaseOriginal: true), + $a![1]!.as(const jni$_.JStringType(), releaseOriginal: true), ); return jni$_.nullptr; } @@ -4519,28 +4742,28 @@ class MapView$OnSpriteLoadedListener extends jni$_.JObject { abstract base mixin class $MapView$OnSpriteLoadedListener { factory $MapView$OnSpriteLoadedListener({ - required void Function(jni$_.JString? string, jni$_.JString? string1) - onSpriteLoaded, + required void Function(jni$_.JString string, jni$_.JString string1) + onSpriteLoaded, bool onSpriteLoaded$async, }) = _$MapView$OnSpriteLoadedListener; - void onSpriteLoaded(jni$_.JString? string, jni$_.JString? string1); + void onSpriteLoaded(jni$_.JString string, jni$_.JString string1); bool get onSpriteLoaded$async => false; } final class _$MapView$OnSpriteLoadedListener with $MapView$OnSpriteLoadedListener { _$MapView$OnSpriteLoadedListener({ - required void Function(jni$_.JString? string, jni$_.JString? string1) - onSpriteLoaded, + required void Function(jni$_.JString string, jni$_.JString string1) + onSpriteLoaded, this.onSpriteLoaded$async = false, }) : _onSpriteLoaded = onSpriteLoaded; - final void Function(jni$_.JString? string, jni$_.JString? string1) - _onSpriteLoaded; + final void Function(jni$_.JString string, jni$_.JString string1) + _onSpriteLoaded; final bool onSpriteLoaded$async; - void onSpriteLoaded(jni$_.JString? string, jni$_.JString? string1) { + void onSpriteLoaded(jni$_.JString string, jni$_.JString string1) { return _onSpriteLoaded(string, string1); } } @@ -4559,10 +4782,8 @@ final class $MapView$OnSpriteLoadedListener$NullableType @core$_.override MapView$OnSpriteLoadedListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapView$OnSpriteLoadedListener.fromReference( - reference, - ); + ? null + : MapView$OnSpriteLoadedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -4599,9 +4820,7 @@ final class $MapView$OnSpriteLoadedListener$Type @jni$_.internal @core$_.override MapView$OnSpriteLoadedListener fromReference(jni$_.JReference reference) => - MapView$OnSpriteLoadedListener.fromReference( - reference, - ); + MapView$OnSpriteLoadedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -4632,13 +4851,13 @@ class MapView$OnSpriteRequestedListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapView$OnSpriteRequestedListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapView$OnSpriteRequestedListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnSpriteRequestedListener'); + r'org/maplibre/android/maps/MapView$OnSpriteRequestedListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapView$OnSpriteRequestedListener$NullableType(); @@ -4648,36 +4867,37 @@ class MapView$OnSpriteRequestedListener extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)V', ); - static final _onSpriteRequested = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onSpriteRequested = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void onSpriteRequested(java.lang.String string, java.lang.String string1)` - void onSpriteRequested( - jni$_.JString? string, - jni$_.JString? string1, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; - final _$string1 = string1?.reference ?? jni$_.jNullReference; + void onSpriteRequested(jni$_.JString string, jni$_.JString string1) { + final _$string = string.reference; + final _$string1 = string1.reference; _onSpriteRequested( - reference.pointer, - _id_onSpriteRequested as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer) - .check(); + reference.pointer, + _id_onSpriteRequested as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -4689,19 +4909,16 @@ class MapView$OnSpriteRequestedListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -4712,8 +4929,8 @@ class MapView$OnSpriteRequestedListener extends jni$_.JObject { final $a = $i.args; if ($d == r'onSpriteRequested(Ljava/lang/String;Ljava/lang/String;)V') { _$impls[$p]!.onSpriteRequested( - $a![0]?.as(const jni$_.JStringType(), releaseOriginal: true), - $a![1]?.as(const jni$_.JStringType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JStringType(), releaseOriginal: true), + $a![1]!.as(const jni$_.JStringType(), releaseOriginal: true), ); return jni$_.nullptr; } @@ -4764,28 +4981,28 @@ class MapView$OnSpriteRequestedListener extends jni$_.JObject { abstract base mixin class $MapView$OnSpriteRequestedListener { factory $MapView$OnSpriteRequestedListener({ - required void Function(jni$_.JString? string, jni$_.JString? string1) - onSpriteRequested, + required void Function(jni$_.JString string, jni$_.JString string1) + onSpriteRequested, bool onSpriteRequested$async, }) = _$MapView$OnSpriteRequestedListener; - void onSpriteRequested(jni$_.JString? string, jni$_.JString? string1); + void onSpriteRequested(jni$_.JString string, jni$_.JString string1); bool get onSpriteRequested$async => false; } final class _$MapView$OnSpriteRequestedListener with $MapView$OnSpriteRequestedListener { _$MapView$OnSpriteRequestedListener({ - required void Function(jni$_.JString? string, jni$_.JString? string1) - onSpriteRequested, + required void Function(jni$_.JString string, jni$_.JString string1) + onSpriteRequested, this.onSpriteRequested$async = false, }) : _onSpriteRequested = onSpriteRequested; - final void Function(jni$_.JString? string, jni$_.JString? string1) - _onSpriteRequested; + final void Function(jni$_.JString string, jni$_.JString string1) + _onSpriteRequested; final bool onSpriteRequested$async; - void onSpriteRequested(jni$_.JString? string, jni$_.JString? string1) { + void onSpriteRequested(jni$_.JString string, jni$_.JString string1) { return _onSpriteRequested(string, string1); } } @@ -4803,12 +5020,10 @@ final class $MapView$OnSpriteRequestedListener$NullableType @jni$_.internal @core$_.override MapView$OnSpriteRequestedListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapView$OnSpriteRequestedListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapView$OnSpriteRequestedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -4846,9 +5061,7 @@ final class $MapView$OnSpriteRequestedListener$Type @jni$_.internal @core$_.override MapView$OnSpriteRequestedListener fromReference(jni$_.JReference reference) => - MapView$OnSpriteRequestedListener.fromReference( - reference, - ); + MapView$OnSpriteRequestedListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -4879,13 +5092,13 @@ class MapView$OnStyleImageMissingListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapView$OnStyleImageMissingListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapView$OnStyleImageMissingListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnStyleImageMissingListener'); + r'org/maplibre/android/maps/MapView$OnStyleImageMissingListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -4896,25 +5109,32 @@ class MapView$OnStyleImageMissingListener extends jni$_.JObject { r'(Ljava/lang/String;)V', ); - static final _onStyleImageMissing = 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 _onStyleImageMissing = + 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 onStyleImageMissing(java.lang.String string)` - void onStyleImageMissing( - jni$_.JString? string, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; - _onStyleImageMissing(reference.pointer, - _id_onStyleImageMissing as jni$_.JMethodIDPtr, _$string.pointer) - .check(); + void onStyleImageMissing(jni$_.JString string) { + final _$string = string.reference; + _onStyleImageMissing( + reference.pointer, + _id_onStyleImageMissing as jni$_.JMethodIDPtr, + _$string.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -4927,19 +5147,16 @@ class MapView$OnStyleImageMissingListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -4950,7 +5167,7 @@ class MapView$OnStyleImageMissingListener extends jni$_.JObject { final $a = $i.args; if ($d == r'onStyleImageMissing(Ljava/lang/String;)V') { _$impls[$p]!.onStyleImageMissing( - $a![0]?.as(const jni$_.JStringType(), releaseOriginal: true), + $a![0]!.as(const jni$_.JStringType(), releaseOriginal: true), ); return jni$_.nullptr; } @@ -5001,25 +5218,25 @@ class MapView$OnStyleImageMissingListener extends jni$_.JObject { abstract base mixin class $MapView$OnStyleImageMissingListener { factory $MapView$OnStyleImageMissingListener({ - required void Function(jni$_.JString? string) onStyleImageMissing, + required void Function(jni$_.JString string) onStyleImageMissing, bool onStyleImageMissing$async, }) = _$MapView$OnStyleImageMissingListener; - void onStyleImageMissing(jni$_.JString? string); + void onStyleImageMissing(jni$_.JString string); bool get onStyleImageMissing$async => false; } final class _$MapView$OnStyleImageMissingListener with $MapView$OnStyleImageMissingListener { _$MapView$OnStyleImageMissingListener({ - required void Function(jni$_.JString? string) onStyleImageMissing, + required void Function(jni$_.JString string) onStyleImageMissing, this.onStyleImageMissing$async = false, }) : _onStyleImageMissing = onStyleImageMissing; - final void Function(jni$_.JString? string) _onStyleImageMissing; + final void Function(jni$_.JString string) _onStyleImageMissing; final bool onStyleImageMissing$async; - void onStyleImageMissing(jni$_.JString? string) { + void onStyleImageMissing(jni$_.JString string) { return _onStyleImageMissing(string); } } @@ -5037,12 +5254,10 @@ final class $MapView$OnStyleImageMissingListener$NullableType @jni$_.internal @core$_.override MapView$OnStyleImageMissingListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapView$OnStyleImageMissingListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapView$OnStyleImageMissingListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -5080,10 +5295,8 @@ final class $MapView$OnStyleImageMissingListener$Type @jni$_.internal @core$_.override MapView$OnStyleImageMissingListener fromReference( - jni$_.JReference reference) => - MapView$OnStyleImageMissingListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapView$OnStyleImageMissingListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -5114,13 +5327,13 @@ class MapView$OnTileActionListener extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapView$OnTileActionListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapView$OnTileActionListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnTileActionListener'); + r'org/maplibre/android/maps/MapView$OnTileActionListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapView$OnTileActionListener$NullableType(); @@ -5130,23 +5343,28 @@ class MapView$OnTileActionListener extends jni$_.JObject { r'(Lorg/maplibre/android/tile/TileOperation;IIIIILjava/lang/String;)V', ); - static final _onTileAction = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onTileAction = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -5155,7 +5373,9 @@ class MapView$OnTileActionListener extends jni$_.JObject { int, int, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void onTileAction(org.maplibre.android.tile.TileOperation tileOperation, int i, int i1, int i2, int i3, int i4, java.lang.String string)` void onTileAction( @@ -5169,9 +5389,17 @@ class MapView$OnTileActionListener extends jni$_.JObject { ) { final _$tileOperation = tileOperation?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; - _onTileAction(reference.pointer, _id_onTileAction as jni$_.JMethodIDPtr, - _$tileOperation.pointer, i, i1, i2, i3, i4, _$string.pointer) - .check(); + _onTileAction( + reference.pointer, + _id_onTileAction as jni$_.JMethodIDPtr, + _$tileOperation.pointer, + i, + i1, + i2, + i3, + i4, + _$string.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -5183,19 +5411,16 @@ class MapView$OnTileActionListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -5266,39 +5491,73 @@ class MapView$OnTileActionListener extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return MapView$OnTileActionListener.fromReference( - $i.implementReference(), - ); + return MapView$OnTileActionListener.fromReference($i.implementReference()); } } abstract base mixin class $MapView$OnTileActionListener { factory $MapView$OnTileActionListener({ - required void Function(jni$_.JObject? tileOperation, int i, int i1, int i2, - int i3, int i4, jni$_.JString? string) - onTileAction, + required void Function( + jni$_.JObject? tileOperation, + int i, + int i1, + int i2, + int i3, + int i4, + jni$_.JString? string, + ) + onTileAction, bool onTileAction$async, }) = _$MapView$OnTileActionListener; - void onTileAction(jni$_.JObject? tileOperation, int i, int i1, int i2, int i3, - int i4, jni$_.JString? string); + void onTileAction( + jni$_.JObject? tileOperation, + int i, + int i1, + int i2, + int i3, + int i4, + jni$_.JString? string, + ); bool get onTileAction$async => false; } final class _$MapView$OnTileActionListener with $MapView$OnTileActionListener { _$MapView$OnTileActionListener({ - required void Function(jni$_.JObject? tileOperation, int i, int i1, int i2, - int i3, int i4, jni$_.JString? string) - onTileAction, + required void Function( + jni$_.JObject? tileOperation, + int i, + int i1, + int i2, + int i3, + int i4, + jni$_.JString? string, + ) + onTileAction, this.onTileAction$async = false, }) : _onTileAction = onTileAction; - final void Function(jni$_.JObject? tileOperation, int i, int i1, int i2, - int i3, int i4, jni$_.JString? string) _onTileAction; + final void Function( + jni$_.JObject? tileOperation, + int i, + int i1, + int i2, + int i3, + int i4, + jni$_.JString? string, + ) + _onTileAction; final bool onTileAction$async; - void onTileAction(jni$_.JObject? tileOperation, int i, int i1, int i2, int i3, - int i4, jni$_.JString? string) { + void onTileAction( + jni$_.JObject? tileOperation, + int i, + int i1, + int i2, + int i3, + int i4, + jni$_.JString? string, + ) { return _onTileAction(tileOperation, i, i1, i2, i3, i4, string); } } @@ -5317,10 +5576,8 @@ final class $MapView$OnTileActionListener$NullableType @core$_.override MapView$OnTileActionListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapView$OnTileActionListener.fromReference( - reference, - ); + ? null + : MapView$OnTileActionListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -5356,9 +5613,7 @@ final class $MapView$OnTileActionListener$Type @jni$_.internal @core$_.override MapView$OnTileActionListener fromReference(jni$_.JReference reference) => - MapView$OnTileActionListener.fromReference( - reference, - ); + MapView$OnTileActionListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -5391,11 +5646,12 @@ class MapView$OnWillStartLoadingMapListener extends jni$_.JObject { @jni$_.internal MapView$OnWillStartLoadingMapListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnWillStartLoadingMapListener'); + r'org/maplibre/android/maps/MapView$OnWillStartLoadingMapListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -5406,23 +5662,28 @@ class MapView$OnWillStartLoadingMapListener extends jni$_.JObject { r'()V', ); - static final _onWillStartLoadingMap = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onWillStartLoadingMap = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onWillStartLoadingMap()` void onWillStartLoadingMap() { _onWillStartLoadingMap( - reference.pointer, _id_onWillStartLoadingMap as jni$_.JMethodIDPtr) - .check(); + reference.pointer, + _id_onWillStartLoadingMap as jni$_.JMethodIDPtr, + ).check(); } /// Maps a specific port to the implemented interface. @@ -5435,19 +5696,16 @@ class MapView$OnWillStartLoadingMapListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -5485,9 +5743,7 @@ class MapView$OnWillStartLoadingMapListener extends jni$_.JObject { r'org.maplibre.android.maps.MapView$OnWillStartLoadingMapListener', $p, _$invokePointer, - [ - if ($impl.onWillStartLoadingMap$async) r'onWillStartLoadingMap()V', - ], + [if ($impl.onWillStartLoadingMap$async) r'onWillStartLoadingMap()V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; @@ -5542,12 +5798,10 @@ final class $MapView$OnWillStartLoadingMapListener$NullableType @jni$_.internal @core$_.override MapView$OnWillStartLoadingMapListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapView$OnWillStartLoadingMapListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapView$OnWillStartLoadingMapListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -5586,10 +5840,8 @@ final class $MapView$OnWillStartLoadingMapListener$Type @jni$_.internal @core$_.override MapView$OnWillStartLoadingMapListener fromReference( - jni$_.JReference reference) => - MapView$OnWillStartLoadingMapListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapView$OnWillStartLoadingMapListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -5622,11 +5874,12 @@ class MapView$OnWillStartRenderingFrameListener extends jni$_.JObject { @jni$_.internal MapView$OnWillStartRenderingFrameListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnWillStartRenderingFrameListener'); + r'org/maplibre/android/maps/MapView$OnWillStartRenderingFrameListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -5637,28 +5890,33 @@ class MapView$OnWillStartRenderingFrameListener extends jni$_.JObject { r'()V', ); - static final _onWillStartRenderingFrame = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onWillStartRenderingFrame = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onWillStartRenderingFrame()` void onWillStartRenderingFrame() { - _onWillStartRenderingFrame(reference.pointer, - _id_onWillStartRenderingFrame as jni$_.JMethodIDPtr) - .check(); + _onWillStartRenderingFrame( + reference.pointer, + _id_onWillStartRenderingFrame as jni$_.JMethodIDPtr, + ).check(); } /// Maps a specific port to the implemented interface. static final core$_.Map - _$impls = {}; + _$impls = {}; static jni$_.JObjectPtr _$invoke( int port, jni$_.JObjectPtr descriptor, @@ -5666,19 +5924,16 @@ class MapView$OnWillStartRenderingFrameListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -5774,12 +6029,10 @@ final class $MapView$OnWillStartRenderingFrameListener$NullableType @jni$_.internal @core$_.override MapView$OnWillStartRenderingFrameListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapView$OnWillStartRenderingFrameListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapView$OnWillStartRenderingFrameListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -5818,10 +6071,8 @@ final class $MapView$OnWillStartRenderingFrameListener$Type @jni$_.internal @core$_.override MapView$OnWillStartRenderingFrameListener fromReference( - jni$_.JReference reference) => - MapView$OnWillStartRenderingFrameListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapView$OnWillStartRenderingFrameListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -5856,11 +6107,12 @@ class MapView$OnWillStartRenderingMapListener extends jni$_.JObject { @jni$_.internal MapView$OnWillStartRenderingMapListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/MapView$OnWillStartRenderingMapListener'); + r'org/maplibre/android/maps/MapView$OnWillStartRenderingMapListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -5871,28 +6123,33 @@ class MapView$OnWillStartRenderingMapListener extends jni$_.JObject { r'()V', ); - static final _onWillStartRenderingMap = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onWillStartRenderingMap = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onWillStartRenderingMap()` void onWillStartRenderingMap() { - _onWillStartRenderingMap(reference.pointer, - _id_onWillStartRenderingMap as jni$_.JMethodIDPtr) - .check(); + _onWillStartRenderingMap( + reference.pointer, + _id_onWillStartRenderingMap as jni$_.JMethodIDPtr, + ).check(); } /// Maps a specific port to the implemented interface. static final core$_.Map - _$impls = {}; + _$impls = {}; static jni$_.JObjectPtr _$invoke( int port, jni$_.JObjectPtr descriptor, @@ -5900,19 +6157,16 @@ class MapView$OnWillStartRenderingMapListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -5950,9 +6204,7 @@ class MapView$OnWillStartRenderingMapListener extends jni$_.JObject { r'org.maplibre.android.maps.MapView$OnWillStartRenderingMapListener', $p, _$invokePointer, - [ - if ($impl.onWillStartRenderingMap$async) r'onWillStartRenderingMap()V', - ], + [if ($impl.onWillStartRenderingMap$async) r'onWillStartRenderingMap()V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; @@ -6007,12 +6259,10 @@ final class $MapView$OnWillStartRenderingMapListener$NullableType @jni$_.internal @core$_.override MapView$OnWillStartRenderingMapListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : MapView$OnWillStartRenderingMapListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : MapView$OnWillStartRenderingMapListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -6051,10 +6301,8 @@ final class $MapView$OnWillStartRenderingMapListener$Type @jni$_.internal @core$_.override MapView$OnWillStartRenderingMapListener fromReference( - jni$_.JReference reference) => - MapView$OnWillStartRenderingMapListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => MapView$OnWillStartRenderingMapListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -6086,157 +6334,182 @@ class MapView extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - MapView.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + MapView.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/maps/MapView'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/maps/MapView', + ); /// The type which includes information such as the signature of this class. static const nullableType = $MapView$NullableType(); static const type = $MapView$Type(); - static final _id_new$ = _class.constructorId( - r'(Landroid/content/Context;)V', - ); + static final _id_new$ = _class.constructorId(r'(Landroid/content/Context;)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)>(); + 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: `public void (android.content.Context context)` /// The returned object must be released after use, by calling the [release] method. - factory MapView( - jni$_.JObject? context, - ) { - final _$context = context?.reference ?? jni$_.jNullReference; - return MapView.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$context.pointer) - .reference); + factory MapView(jni$_.JObject context) { + final _$context = context.reference; + return MapView.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$context.pointer, + ).reference, + ); } static final _id_new$1 = _class.constructorId( r'(Landroid/content/Context;Landroid/util/AttributeSet;)V', ); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (android.content.Context context, android.util.AttributeSet attributeSet)` /// The returned object must be released after use, by calling the [release] method. - factory MapView.new$1( - jni$_.JObject? context, - jni$_.JObject? attributeSet, - ) { - final _$context = context?.reference ?? jni$_.jNullReference; + factory MapView.new$1(jni$_.JObject context, jni$_.JObject? attributeSet) { + final _$context = context.reference; final _$attributeSet = attributeSet?.reference ?? jni$_.jNullReference; - return MapView.fromReference(_new$1( - _class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, - _$context.pointer, - _$attributeSet.pointer) - .reference); + return MapView.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$context.pointer, + _$attributeSet.pointer, + ).reference, + ); } static final _id_new$2 = _class.constructorId( r'(Landroid/content/Context;Landroid/util/AttributeSet;I)V', ); - static final _new$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32 - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + int, + ) + >(); /// from: `public void (android.content.Context context, android.util.AttributeSet attributeSet, int i)` /// The returned object must be released after use, by calling the [release] method. factory MapView.new$2( - jni$_.JObject? context, + jni$_.JObject context, jni$_.JObject? attributeSet, int i, ) { - final _$context = context?.reference ?? jni$_.jNullReference; + final _$context = context.reference; final _$attributeSet = attributeSet?.reference ?? jni$_.jNullReference; - return MapView.fromReference(_new$2( - _class.reference.pointer, - _id_new$2 as jni$_.JMethodIDPtr, - _$context.pointer, - _$attributeSet.pointer, - i) - .reference); + return MapView.fromReference( + _new$2( + _class.reference.pointer, + _id_new$2 as jni$_.JMethodIDPtr, + _$context.pointer, + _$attributeSet.pointer, + i, + ).reference, + ); } static final _id_new$3 = _class.constructorId( r'(Landroid/content/Context;Lorg/maplibre/android/maps/MapLibreMapOptions;)V', ); - static final _new$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (android.content.Context context, org.maplibre.android.maps.MapLibreMapOptions mapLibreMapOptions)` /// The returned object must be released after use, by calling the [release] method. factory MapView.new$3( - jni$_.JObject? context, + jni$_.JObject context, maplibremapoptions$_.MapLibreMapOptions? mapLibreMapOptions, ) { - final _$context = context?.reference ?? jni$_.jNullReference; + final _$context = context.reference; final _$mapLibreMapOptions = mapLibreMapOptions?.reference ?? jni$_.jNullReference; - return MapView.fromReference(_new$3( - _class.reference.pointer, - _id_new$3 as jni$_.JMethodIDPtr, - _$context.pointer, - _$mapLibreMapOptions.pointer) - .reference); + return MapView.fromReference( + _new$3( + _class.reference.pointer, + _id_new$3 as jni$_.JMethodIDPtr, + _$context.pointer, + _$mapLibreMapOptions.pointer, + ).reference, + ); } static final _id_onCreate = _class.instanceMethodId( @@ -6244,25 +6517,32 @@ class MapView extends jni$_.JObject { r'(Landroid/os/Bundle;)V', ); - static final _onCreate = 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 _onCreate = + 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 onCreate(android.os.Bundle bundle)` - void onCreate( - jni$_.JObject? bundle, - ) { + void onCreate(jni$_.JObject? bundle) { final _$bundle = bundle?.reference ?? jni$_.jNullReference; - _onCreate(reference.pointer, _id_onCreate as jni$_.JMethodIDPtr, - _$bundle.pointer) - .check(); + _onCreate( + reference.pointer, + _id_onCreate as jni$_.JMethodIDPtr, + _$bundle.pointer, + ).check(); } static final _id_onSaveInstanceState = _class.instanceMethodId( @@ -6270,131 +6550,143 @@ class MapView extends jni$_.JObject { r'(Landroid/os/Bundle;)V', ); - static final _onSaveInstanceState = 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 _onSaveInstanceState = + 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 onSaveInstanceState(android.os.Bundle bundle)` - void onSaveInstanceState( - jni$_.JObject? bundle, - ) { - final _$bundle = bundle?.reference ?? jni$_.jNullReference; - _onSaveInstanceState(reference.pointer, - _id_onSaveInstanceState as jni$_.JMethodIDPtr, _$bundle.pointer) - .check(); + void onSaveInstanceState(jni$_.JObject bundle) { + final _$bundle = bundle.reference; + _onSaveInstanceState( + reference.pointer, + _id_onSaveInstanceState as jni$_.JMethodIDPtr, + _$bundle.pointer, + ).check(); } - static final _id_onStart = _class.instanceMethodId( - r'onStart', - r'()V', - ); + static final _id_onStart = _class.instanceMethodId(r'onStart', r'()V'); - static final _onStart = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onStart = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void onStart()` void onStart() { _onStart(reference.pointer, _id_onStart as jni$_.JMethodIDPtr).check(); } - static final _id_onResume = _class.instanceMethodId( - r'onResume', - r'()V', - ); + static final _id_onResume = _class.instanceMethodId(r'onResume', r'()V'); - static final _onResume = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onResume = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void onResume()` void onResume() { _onResume(reference.pointer, _id_onResume as jni$_.JMethodIDPtr).check(); } - static final _id_onPause = _class.instanceMethodId( - r'onPause', - r'()V', - ); + static final _id_onPause = _class.instanceMethodId(r'onPause', r'()V'); - static final _onPause = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onPause = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void onPause()` void onPause() { _onPause(reference.pointer, _id_onPause as jni$_.JMethodIDPtr).check(); } - static final _id_onStop = _class.instanceMethodId( - r'onStop', - r'()V', - ); + static final _id_onStop = _class.instanceMethodId(r'onStop', r'()V'); - static final _onStop = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onStop = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void onStop()` void onStop() { _onStop(reference.pointer, _id_onStop as jni$_.JMethodIDPtr).check(); } - static final _id_onDestroy = _class.instanceMethodId( - r'onDestroy', - r'()V', - ); + static final _id_onDestroy = _class.instanceMethodId(r'onDestroy', r'()V'); - static final _onDestroy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onDestroy = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void onDestroy()` void onDestroy() { @@ -6406,25 +6698,32 @@ class MapView extends jni$_.JObject { r'(Ljava/lang/Runnable;)V', ); - static final _queueEvent = 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 _queueEvent = + 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 queueEvent(java.lang.Runnable runnable)` - void queueEvent( - jni$_.JObject? runnable, - ) { - final _$runnable = runnable?.reference ?? jni$_.jNullReference; - _queueEvent(reference.pointer, _id_queueEvent as jni$_.JMethodIDPtr, - _$runnable.pointer) - .check(); + void queueEvent(jni$_.JObject runnable) { + final _$runnable = runnable.reference; + _queueEvent( + reference.pointer, + _id_queueEvent as jni$_.JMethodIDPtr, + _$runnable.pointer, + ).check(); } static final _id_setMaximumFps = _class.instanceMethodId( @@ -6432,23 +6731,31 @@ class MapView extends jni$_.JObject { r'(I)V', ); - static final _setMaximumFps = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setMaximumFps = + 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, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void setMaximumFps(int i)` - void setMaximumFps( - int i, - ) { + void setMaximumFps(int i) { _setMaximumFps( - reference.pointer, _id_setMaximumFps as jni$_.JMethodIDPtr, i) - .check(); + reference.pointer, + _id_setMaximumFps as jni$_.JMethodIDPtr, + i, + ).check(); } static final _id_setRenderingRefreshMode = _class.instanceMethodId( @@ -6456,16 +6763,23 @@ class MapView extends jni$_.JObject { r'(Lorg/maplibre/android/maps/renderer/MapRenderer$RenderingRefreshMode;)V', ); - static final _setRenderingRefreshMode = 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 _setRenderingRefreshMode = + 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 setRenderingRefreshMode(org.maplibre.android.maps.renderer.MapRenderer$RenderingRefreshMode renderingRefreshMode)` void setRenderingRefreshMode( @@ -6474,10 +6788,10 @@ class MapView extends jni$_.JObject { final _$renderingRefreshMode = renderingRefreshMode?.reference ?? jni$_.jNullReference; _setRenderingRefreshMode( - reference.pointer, - _id_setRenderingRefreshMode as jni$_.JMethodIDPtr, - _$renderingRefreshMode.pointer) - .check(); + reference.pointer, + _id_setRenderingRefreshMode as jni$_.JMethodIDPtr, + _$renderingRefreshMode.pointer, + ).check(); } static final _id_getRenderingRefreshMode = _class.instanceMethodId( @@ -6485,26 +6799,31 @@ class MapView extends jni$_.JObject { r'()Lorg/maplibre/android/maps/renderer/MapRenderer$RenderingRefreshMode;', ); - static final _getRenderingRefreshMode = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getRenderingRefreshMode = + 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 org.maplibre.android.maps.renderer.MapRenderer$RenderingRefreshMode getRenderingRefreshMode()` /// The returned object must be released after use, by calling the [release] method. maprenderer$_.MapRenderer$RenderingRefreshMode? getRenderingRefreshMode() { - return _getRenderingRefreshMode(reference.pointer, - _id_getRenderingRefreshMode as jni$_.JMethodIDPtr) - .object( - const maprenderer$_ - .$MapRenderer$RenderingRefreshMode$NullableType()); + return _getRenderingRefreshMode( + reference.pointer, + _id_getRenderingRefreshMode as jni$_.JMethodIDPtr, + ).object( + const maprenderer$_.$MapRenderer$RenderingRefreshMode$NullableType(), + ); } static final _id_isDestroyed = _class.instanceMethodId( @@ -6512,23 +6831,28 @@ class MapView extends jni$_.JObject { r'()Z', ); - static final _isDestroyed = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isDestroyed = + 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 isDestroyed()` bool isDestroyed() { return _isDestroyed( - reference.pointer, _id_isDestroyed as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_isDestroyed as jni$_.JMethodIDPtr, + ).boolean; } static final _id_getRenderView = _class.instanceMethodId( @@ -6536,24 +6860,29 @@ class MapView extends jni$_.JObject { r'()Landroid/view/View;', ); - static final _getRenderView = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getRenderView = + 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 android.view.View getRenderView()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getRenderView() { + jni$_.JObject getRenderView() { return _getRenderView( - reference.pointer, _id_getRenderView as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getRenderView as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } static final _id_onTouchEvent = _class.instanceMethodId( @@ -6561,25 +6890,32 @@ class MapView extends jni$_.JObject { r'(Landroid/view/MotionEvent;)Z', ); - static final _onTouchEvent = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _onTouchEvent = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean onTouchEvent(android.view.MotionEvent motionEvent)` - bool onTouchEvent( - jni$_.JObject? motionEvent, - ) { + bool onTouchEvent(jni$_.JObject? motionEvent) { final _$motionEvent = motionEvent?.reference ?? jni$_.jNullReference; - return _onTouchEvent(reference.pointer, - _id_onTouchEvent as jni$_.JMethodIDPtr, _$motionEvent.pointer) - .boolean; + return _onTouchEvent( + reference.pointer, + _id_onTouchEvent as jni$_.JMethodIDPtr, + _$motionEvent.pointer, + ).boolean; } static final _id_onKeyDown = _class.instanceMethodId( @@ -6587,27 +6923,34 @@ class MapView extends jni$_.JObject { r'(ILandroid/view/KeyEvent;)Z', ); - static final _onKeyDown = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int32, jni$_.Pointer)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + static final _onKeyDown = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32, jni$_.Pointer)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + ) + >(); /// from: `public boolean onKeyDown(int i, android.view.KeyEvent keyEvent)` - bool onKeyDown( - int i, - jni$_.JObject? keyEvent, - ) { - final _$keyEvent = keyEvent?.reference ?? jni$_.jNullReference; - return _onKeyDown(reference.pointer, _id_onKeyDown as jni$_.JMethodIDPtr, i, - _$keyEvent.pointer) - .boolean; + bool onKeyDown(int i, jni$_.JObject keyEvent) { + final _$keyEvent = keyEvent.reference; + return _onKeyDown( + reference.pointer, + _id_onKeyDown as jni$_.JMethodIDPtr, + i, + _$keyEvent.pointer, + ).boolean; } static final _id_onKeyLongPress = _class.instanceMethodId( @@ -6615,27 +6958,34 @@ class MapView extends jni$_.JObject { r'(ILandroid/view/KeyEvent;)Z', ); - static final _onKeyLongPress = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int32, jni$_.Pointer)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + static final _onKeyLongPress = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32, jni$_.Pointer)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + ) + >(); /// from: `public boolean onKeyLongPress(int i, android.view.KeyEvent keyEvent)` - bool onKeyLongPress( - int i, - jni$_.JObject? keyEvent, - ) { + bool onKeyLongPress(int i, jni$_.JObject? keyEvent) { final _$keyEvent = keyEvent?.reference ?? jni$_.jNullReference; - return _onKeyLongPress(reference.pointer, - _id_onKeyLongPress as jni$_.JMethodIDPtr, i, _$keyEvent.pointer) - .boolean; + return _onKeyLongPress( + reference.pointer, + _id_onKeyLongPress as jni$_.JMethodIDPtr, + i, + _$keyEvent.pointer, + ).boolean; } static final _id_onKeyUp = _class.instanceMethodId( @@ -6643,27 +6993,34 @@ class MapView extends jni$_.JObject { r'(ILandroid/view/KeyEvent;)Z', ); - static final _onKeyUp = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int32, jni$_.Pointer)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + static final _onKeyUp = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32, jni$_.Pointer)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + ) + >(); /// from: `public boolean onKeyUp(int i, android.view.KeyEvent keyEvent)` - bool onKeyUp( - int i, - jni$_.JObject? keyEvent, - ) { - final _$keyEvent = keyEvent?.reference ?? jni$_.jNullReference; - return _onKeyUp(reference.pointer, _id_onKeyUp as jni$_.JMethodIDPtr, i, - _$keyEvent.pointer) - .boolean; + bool onKeyUp(int i, jni$_.JObject keyEvent) { + final _$keyEvent = keyEvent.reference; + return _onKeyUp( + reference.pointer, + _id_onKeyUp as jni$_.JMethodIDPtr, + i, + _$keyEvent.pointer, + ).boolean; } static final _id_onTrackballEvent = _class.instanceMethodId( @@ -6671,25 +7028,32 @@ class MapView extends jni$_.JObject { r'(Landroid/view/MotionEvent;)Z', ); - static final _onTrackballEvent = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _onTrackballEvent = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean onTrackballEvent(android.view.MotionEvent motionEvent)` - bool onTrackballEvent( - jni$_.JObject? motionEvent, - ) { - final _$motionEvent = motionEvent?.reference ?? jni$_.jNullReference; - return _onTrackballEvent(reference.pointer, - _id_onTrackballEvent as jni$_.JMethodIDPtr, _$motionEvent.pointer) - .boolean; + bool onTrackballEvent(jni$_.JObject motionEvent) { + final _$motionEvent = motionEvent.reference; + return _onTrackballEvent( + reference.pointer, + _id_onTrackballEvent as jni$_.JMethodIDPtr, + _$motionEvent.pointer, + ).boolean; } static final _id_onGenericMotionEvent = _class.instanceMethodId( @@ -6697,27 +7061,32 @@ class MapView extends jni$_.JObject { r'(Landroid/view/MotionEvent;)Z', ); - static final _onGenericMotionEvent = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _onGenericMotionEvent = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean onGenericMotionEvent(android.view.MotionEvent motionEvent)` - bool onGenericMotionEvent( - jni$_.JObject? motionEvent, - ) { - final _$motionEvent = motionEvent?.reference ?? jni$_.jNullReference; + bool onGenericMotionEvent(jni$_.JObject motionEvent) { + final _$motionEvent = motionEvent.reference; return _onGenericMotionEvent( - reference.pointer, - _id_onGenericMotionEvent as jni$_.JMethodIDPtr, - _$motionEvent.pointer) - .boolean; + reference.pointer, + _id_onGenericMotionEvent as jni$_.JMethodIDPtr, + _$motionEvent.pointer, + ).boolean; } static final _id_onLowMemory = _class.instanceMethodId( @@ -6725,22 +7094,28 @@ class MapView extends jni$_.JObject { r'()V', ); - static final _onLowMemory = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onLowMemory = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void onLowMemory()` void onLowMemory() { - _onLowMemory(reference.pointer, _id_onLowMemory as jni$_.JMethodIDPtr) - .check(); + _onLowMemory( + reference.pointer, + _id_onLowMemory as jni$_.JMethodIDPtr, + ).check(); } static final _id_getPixelRatio = _class.instanceMethodId( @@ -6748,23 +7123,28 @@ class MapView extends jni$_.JObject { r'()F', ); - static final _getPixelRatio = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPixelRatio = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallFloatMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public float getPixelRatio()` double getPixelRatio() { return _getPixelRatio( - reference.pointer, _id_getPixelRatio as jni$_.JMethodIDPtr) - .float; + reference.pointer, + _id_getPixelRatio as jni$_.JMethodIDPtr, + ).float; } static final _id_getViewContent = _class.instanceMethodId( @@ -6772,24 +7152,29 @@ class MapView extends jni$_.JObject { r'()Landroid/graphics/Bitmap;', ); - static final _getViewContent = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getViewContent = + 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 android.graphics.Bitmap getViewContent()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getViewContent() { return _getViewContent( - reference.pointer, _id_getViewContent as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getViewContent as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_addOnCameraWillChangeListener = _class.instanceMethodId( @@ -6799,27 +7184,32 @@ class MapView extends jni$_.JObject { static final _addOnCameraWillChangeListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnCameraWillChangeListener(org.maplibre.android.maps.MapView$OnCameraWillChangeListener onCameraWillChangeListener)` void addOnCameraWillChangeListener( - MapView$OnCameraWillChangeListener? onCameraWillChangeListener, + MapView$OnCameraWillChangeListener onCameraWillChangeListener, ) { - final _$onCameraWillChangeListener = - onCameraWillChangeListener?.reference ?? jni$_.jNullReference; + final _$onCameraWillChangeListener = onCameraWillChangeListener.reference; _addOnCameraWillChangeListener( - reference.pointer, - _id_addOnCameraWillChangeListener as jni$_.JMethodIDPtr, - _$onCameraWillChangeListener.pointer) - .check(); + reference.pointer, + _id_addOnCameraWillChangeListener as jni$_.JMethodIDPtr, + _$onCameraWillChangeListener.pointer, + ).check(); } static final _id_removeOnCameraWillChangeListener = _class.instanceMethodId( @@ -6829,27 +7219,32 @@ class MapView extends jni$_.JObject { static final _removeOnCameraWillChangeListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnCameraWillChangeListener(org.maplibre.android.maps.MapView$OnCameraWillChangeListener onCameraWillChangeListener)` void removeOnCameraWillChangeListener( - MapView$OnCameraWillChangeListener? onCameraWillChangeListener, + MapView$OnCameraWillChangeListener onCameraWillChangeListener, ) { - final _$onCameraWillChangeListener = - onCameraWillChangeListener?.reference ?? jni$_.jNullReference; + final _$onCameraWillChangeListener = onCameraWillChangeListener.reference; _removeOnCameraWillChangeListener( - reference.pointer, - _id_removeOnCameraWillChangeListener as jni$_.JMethodIDPtr, - _$onCameraWillChangeListener.pointer) - .check(); + reference.pointer, + _id_removeOnCameraWillChangeListener as jni$_.JMethodIDPtr, + _$onCameraWillChangeListener.pointer, + ).check(); } static final _id_addOnCameraIsChangingListener = _class.instanceMethodId( @@ -6859,27 +7254,32 @@ class MapView extends jni$_.JObject { static final _addOnCameraIsChangingListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnCameraIsChangingListener(org.maplibre.android.maps.MapView$OnCameraIsChangingListener onCameraIsChangingListener)` void addOnCameraIsChangingListener( - MapView$OnCameraIsChangingListener? onCameraIsChangingListener, + MapView$OnCameraIsChangingListener onCameraIsChangingListener, ) { - final _$onCameraIsChangingListener = - onCameraIsChangingListener?.reference ?? jni$_.jNullReference; + final _$onCameraIsChangingListener = onCameraIsChangingListener.reference; _addOnCameraIsChangingListener( - reference.pointer, - _id_addOnCameraIsChangingListener as jni$_.JMethodIDPtr, - _$onCameraIsChangingListener.pointer) - .check(); + reference.pointer, + _id_addOnCameraIsChangingListener as jni$_.JMethodIDPtr, + _$onCameraIsChangingListener.pointer, + ).check(); } static final _id_removeOnCameraIsChangingListener = _class.instanceMethodId( @@ -6889,27 +7289,32 @@ class MapView extends jni$_.JObject { static final _removeOnCameraIsChangingListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnCameraIsChangingListener(org.maplibre.android.maps.MapView$OnCameraIsChangingListener onCameraIsChangingListener)` void removeOnCameraIsChangingListener( - MapView$OnCameraIsChangingListener? onCameraIsChangingListener, + MapView$OnCameraIsChangingListener onCameraIsChangingListener, ) { - final _$onCameraIsChangingListener = - onCameraIsChangingListener?.reference ?? jni$_.jNullReference; + final _$onCameraIsChangingListener = onCameraIsChangingListener.reference; _removeOnCameraIsChangingListener( - reference.pointer, - _id_removeOnCameraIsChangingListener as jni$_.JMethodIDPtr, - _$onCameraIsChangingListener.pointer) - .check(); + reference.pointer, + _id_removeOnCameraIsChangingListener as jni$_.JMethodIDPtr, + _$onCameraIsChangingListener.pointer, + ).check(); } static final _id_addOnCameraDidChangeListener = _class.instanceMethodId( @@ -6919,27 +7324,32 @@ class MapView extends jni$_.JObject { static final _addOnCameraDidChangeListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnCameraDidChangeListener(org.maplibre.android.maps.MapView$OnCameraDidChangeListener onCameraDidChangeListener)` void addOnCameraDidChangeListener( - MapView$OnCameraDidChangeListener? onCameraDidChangeListener, + MapView$OnCameraDidChangeListener onCameraDidChangeListener, ) { - final _$onCameraDidChangeListener = - onCameraDidChangeListener?.reference ?? jni$_.jNullReference; + final _$onCameraDidChangeListener = onCameraDidChangeListener.reference; _addOnCameraDidChangeListener( - reference.pointer, - _id_addOnCameraDidChangeListener as jni$_.JMethodIDPtr, - _$onCameraDidChangeListener.pointer) - .check(); + reference.pointer, + _id_addOnCameraDidChangeListener as jni$_.JMethodIDPtr, + _$onCameraDidChangeListener.pointer, + ).check(); } static final _id_removeOnCameraDidChangeListener = _class.instanceMethodId( @@ -6949,27 +7359,32 @@ class MapView extends jni$_.JObject { static final _removeOnCameraDidChangeListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnCameraDidChangeListener(org.maplibre.android.maps.MapView$OnCameraDidChangeListener onCameraDidChangeListener)` void removeOnCameraDidChangeListener( - MapView$OnCameraDidChangeListener? onCameraDidChangeListener, + MapView$OnCameraDidChangeListener onCameraDidChangeListener, ) { - final _$onCameraDidChangeListener = - onCameraDidChangeListener?.reference ?? jni$_.jNullReference; + final _$onCameraDidChangeListener = onCameraDidChangeListener.reference; _removeOnCameraDidChangeListener( - reference.pointer, - _id_removeOnCameraDidChangeListener as jni$_.JMethodIDPtr, - _$onCameraDidChangeListener.pointer) - .check(); + reference.pointer, + _id_removeOnCameraDidChangeListener as jni$_.JMethodIDPtr, + _$onCameraDidChangeListener.pointer, + ).check(); } static final _id_addOnWillStartLoadingMapListener = _class.instanceMethodId( @@ -6979,58 +7394,70 @@ class MapView extends jni$_.JObject { static final _addOnWillStartLoadingMapListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnWillStartLoadingMapListener(org.maplibre.android.maps.MapView$OnWillStartLoadingMapListener onWillStartLoadingMapListener)` void addOnWillStartLoadingMapListener( - MapView$OnWillStartLoadingMapListener? onWillStartLoadingMapListener, + MapView$OnWillStartLoadingMapListener onWillStartLoadingMapListener, ) { final _$onWillStartLoadingMapListener = - onWillStartLoadingMapListener?.reference ?? jni$_.jNullReference; + onWillStartLoadingMapListener.reference; _addOnWillStartLoadingMapListener( - reference.pointer, - _id_addOnWillStartLoadingMapListener as jni$_.JMethodIDPtr, - _$onWillStartLoadingMapListener.pointer) - .check(); + reference.pointer, + _id_addOnWillStartLoadingMapListener as jni$_.JMethodIDPtr, + _$onWillStartLoadingMapListener.pointer, + ).check(); } - static final _id_removeOnWillStartLoadingMapListener = - _class.instanceMethodId( - r'removeOnWillStartLoadingMapListener', - r'(Lorg/maplibre/android/maps/MapView$OnWillStartLoadingMapListener;)V', - ); + static final _id_removeOnWillStartLoadingMapListener = _class + .instanceMethodId( + r'removeOnWillStartLoadingMapListener', + r'(Lorg/maplibre/android/maps/MapView$OnWillStartLoadingMapListener;)V', + ); static final _removeOnWillStartLoadingMapListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnWillStartLoadingMapListener(org.maplibre.android.maps.MapView$OnWillStartLoadingMapListener onWillStartLoadingMapListener)` void removeOnWillStartLoadingMapListener( - MapView$OnWillStartLoadingMapListener? onWillStartLoadingMapListener, + MapView$OnWillStartLoadingMapListener onWillStartLoadingMapListener, ) { final _$onWillStartLoadingMapListener = - onWillStartLoadingMapListener?.reference ?? jni$_.jNullReference; + onWillStartLoadingMapListener.reference; _removeOnWillStartLoadingMapListener( - reference.pointer, - _id_removeOnWillStartLoadingMapListener as jni$_.JMethodIDPtr, - _$onWillStartLoadingMapListener.pointer) - .check(); + reference.pointer, + _id_removeOnWillStartLoadingMapListener as jni$_.JMethodIDPtr, + _$onWillStartLoadingMapListener.pointer, + ).check(); } static final _id_addOnDidFinishLoadingMapListener = _class.instanceMethodId( @@ -7040,58 +7467,70 @@ class MapView extends jni$_.JObject { static final _addOnDidFinishLoadingMapListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnDidFinishLoadingMapListener(org.maplibre.android.maps.MapView$OnDidFinishLoadingMapListener onDidFinishLoadingMapListener)` void addOnDidFinishLoadingMapListener( - MapView$OnDidFinishLoadingMapListener? onDidFinishLoadingMapListener, + MapView$OnDidFinishLoadingMapListener onDidFinishLoadingMapListener, ) { final _$onDidFinishLoadingMapListener = - onDidFinishLoadingMapListener?.reference ?? jni$_.jNullReference; + onDidFinishLoadingMapListener.reference; _addOnDidFinishLoadingMapListener( - reference.pointer, - _id_addOnDidFinishLoadingMapListener as jni$_.JMethodIDPtr, - _$onDidFinishLoadingMapListener.pointer) - .check(); + reference.pointer, + _id_addOnDidFinishLoadingMapListener as jni$_.JMethodIDPtr, + _$onDidFinishLoadingMapListener.pointer, + ).check(); } - static final _id_removeOnDidFinishLoadingMapListener = - _class.instanceMethodId( - r'removeOnDidFinishLoadingMapListener', - r'(Lorg/maplibre/android/maps/MapView$OnDidFinishLoadingMapListener;)V', - ); + static final _id_removeOnDidFinishLoadingMapListener = _class + .instanceMethodId( + r'removeOnDidFinishLoadingMapListener', + r'(Lorg/maplibre/android/maps/MapView$OnDidFinishLoadingMapListener;)V', + ); static final _removeOnDidFinishLoadingMapListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnDidFinishLoadingMapListener(org.maplibre.android.maps.MapView$OnDidFinishLoadingMapListener onDidFinishLoadingMapListener)` void removeOnDidFinishLoadingMapListener( - MapView$OnDidFinishLoadingMapListener? onDidFinishLoadingMapListener, + MapView$OnDidFinishLoadingMapListener onDidFinishLoadingMapListener, ) { final _$onDidFinishLoadingMapListener = - onDidFinishLoadingMapListener?.reference ?? jni$_.jNullReference; + onDidFinishLoadingMapListener.reference; _removeOnDidFinishLoadingMapListener( - reference.pointer, - _id_removeOnDidFinishLoadingMapListener as jni$_.JMethodIDPtr, - _$onDidFinishLoadingMapListener.pointer) - .check(); + reference.pointer, + _id_removeOnDidFinishLoadingMapListener as jni$_.JMethodIDPtr, + _$onDidFinishLoadingMapListener.pointer, + ).check(); } static final _id_addOnDidFailLoadingMapListener = _class.instanceMethodId( @@ -7101,27 +7540,32 @@ class MapView extends jni$_.JObject { static final _addOnDidFailLoadingMapListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnDidFailLoadingMapListener(org.maplibre.android.maps.MapView$OnDidFailLoadingMapListener onDidFailLoadingMapListener)` void addOnDidFailLoadingMapListener( - MapView$OnDidFailLoadingMapListener? onDidFailLoadingMapListener, + MapView$OnDidFailLoadingMapListener onDidFailLoadingMapListener, ) { - final _$onDidFailLoadingMapListener = - onDidFailLoadingMapListener?.reference ?? jni$_.jNullReference; + final _$onDidFailLoadingMapListener = onDidFailLoadingMapListener.reference; _addOnDidFailLoadingMapListener( - reference.pointer, - _id_addOnDidFailLoadingMapListener as jni$_.JMethodIDPtr, - _$onDidFailLoadingMapListener.pointer) - .check(); + reference.pointer, + _id_addOnDidFailLoadingMapListener as jni$_.JMethodIDPtr, + _$onDidFailLoadingMapListener.pointer, + ).check(); } static final _id_removeOnDidFailLoadingMapListener = _class.instanceMethodId( @@ -7131,155 +7575,253 @@ class MapView extends jni$_.JObject { static final _removeOnDidFailLoadingMapListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnDidFailLoadingMapListener(org.maplibre.android.maps.MapView$OnDidFailLoadingMapListener onDidFailLoadingMapListener)` void removeOnDidFailLoadingMapListener( - MapView$OnDidFailLoadingMapListener? onDidFailLoadingMapListener, + MapView$OnDidFailLoadingMapListener onDidFailLoadingMapListener, ) { - final _$onDidFailLoadingMapListener = - onDidFailLoadingMapListener?.reference ?? jni$_.jNullReference; + final _$onDidFailLoadingMapListener = onDidFailLoadingMapListener.reference; _removeOnDidFailLoadingMapListener( - reference.pointer, - _id_removeOnDidFailLoadingMapListener as jni$_.JMethodIDPtr, - _$onDidFailLoadingMapListener.pointer) - .check(); + reference.pointer, + _id_removeOnDidFailLoadingMapListener as jni$_.JMethodIDPtr, + _$onDidFailLoadingMapListener.pointer, + ).check(); } - static final _id_addOnWillStartRenderingFrameListener = - _class.instanceMethodId( + static final _id_addOnWillStartRenderingFrameListener = _class.instanceMethodId( r'addOnWillStartRenderingFrameListener', r'(Lorg/maplibre/android/maps/MapView$OnWillStartRenderingFrameListener;)V', ); static final _addOnWillStartRenderingFrameListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnWillStartRenderingFrameListener(org.maplibre.android.maps.MapView$OnWillStartRenderingFrameListener onWillStartRenderingFrameListener)` void addOnWillStartRenderingFrameListener( - MapView$OnWillStartRenderingFrameListener? - onWillStartRenderingFrameListener, + MapView$OnWillStartRenderingFrameListener onWillStartRenderingFrameListener, ) { final _$onWillStartRenderingFrameListener = - onWillStartRenderingFrameListener?.reference ?? jni$_.jNullReference; + onWillStartRenderingFrameListener.reference; _addOnWillStartRenderingFrameListener( - reference.pointer, - _id_addOnWillStartRenderingFrameListener as jni$_.JMethodIDPtr, - _$onWillStartRenderingFrameListener.pointer) - .check(); + reference.pointer, + _id_addOnWillStartRenderingFrameListener as jni$_.JMethodIDPtr, + _$onWillStartRenderingFrameListener.pointer, + ).check(); } - static final _id_removeOnWillStartRenderingFrameListener = - _class.instanceMethodId( - r'removeOnWillStartRenderingFrameListener', - r'(Lorg/maplibre/android/maps/MapView$OnWillStartRenderingFrameListener;)V', - ); + static final _id_removeOnWillStartRenderingFrameListener = _class + .instanceMethodId( + r'removeOnWillStartRenderingFrameListener', + r'(Lorg/maplibre/android/maps/MapView$OnWillStartRenderingFrameListener;)V', + ); static final _removeOnWillStartRenderingFrameListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnWillStartRenderingFrameListener(org.maplibre.android.maps.MapView$OnWillStartRenderingFrameListener onWillStartRenderingFrameListener)` void removeOnWillStartRenderingFrameListener( - MapView$OnWillStartRenderingFrameListener? - onWillStartRenderingFrameListener, + MapView$OnWillStartRenderingFrameListener onWillStartRenderingFrameListener, ) { final _$onWillStartRenderingFrameListener = - onWillStartRenderingFrameListener?.reference ?? jni$_.jNullReference; + onWillStartRenderingFrameListener.reference; _removeOnWillStartRenderingFrameListener( - reference.pointer, - _id_removeOnWillStartRenderingFrameListener as jni$_.JMethodIDPtr, - _$onWillStartRenderingFrameListener.pointer) - .check(); + reference.pointer, + _id_removeOnWillStartRenderingFrameListener as jni$_.JMethodIDPtr, + _$onWillStartRenderingFrameListener.pointer, + ).check(); } - static final _id_addOnDidFinishRenderingFrameListener = - _class.instanceMethodId( + static final _id_addOnDidFinishRenderingFrameListener = _class.instanceMethodId( r'addOnDidFinishRenderingFrameListener', r'(Lorg/maplibre/android/maps/MapView$OnDidFinishRenderingFrameListener;)V', ); static final _addOnDidFinishRenderingFrameListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnDidFinishRenderingFrameListener(org.maplibre.android.maps.MapView$OnDidFinishRenderingFrameListener onDidFinishRenderingFrameListener)` void addOnDidFinishRenderingFrameListener( - MapView$OnDidFinishRenderingFrameListener? - onDidFinishRenderingFrameListener, + MapView$OnDidFinishRenderingFrameListener onDidFinishRenderingFrameListener, ) { final _$onDidFinishRenderingFrameListener = - onDidFinishRenderingFrameListener?.reference ?? jni$_.jNullReference; + onDidFinishRenderingFrameListener.reference; _addOnDidFinishRenderingFrameListener( - reference.pointer, - _id_addOnDidFinishRenderingFrameListener as jni$_.JMethodIDPtr, - _$onDidFinishRenderingFrameListener.pointer) - .check(); + reference.pointer, + _id_addOnDidFinishRenderingFrameListener as jni$_.JMethodIDPtr, + _$onDidFinishRenderingFrameListener.pointer, + ).check(); } - static final _id_removeOnDidFinishRenderingFrameListener = - _class.instanceMethodId( - r'removeOnDidFinishRenderingFrameListener', - r'(Lorg/maplibre/android/maps/MapView$OnDidFinishRenderingFrameListener;)V', - ); + static final _id_removeOnDidFinishRenderingFrameListener = _class + .instanceMethodId( + r'removeOnDidFinishRenderingFrameListener', + r'(Lorg/maplibre/android/maps/MapView$OnDidFinishRenderingFrameListener;)V', + ); static final _removeOnDidFinishRenderingFrameListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnDidFinishRenderingFrameListener(org.maplibre.android.maps.MapView$OnDidFinishRenderingFrameListener onDidFinishRenderingFrameListener)` void removeOnDidFinishRenderingFrameListener( - MapView$OnDidFinishRenderingFrameListener? - onDidFinishRenderingFrameListener, + MapView$OnDidFinishRenderingFrameListener onDidFinishRenderingFrameListener, + ) { + final _$onDidFinishRenderingFrameListener = + onDidFinishRenderingFrameListener.reference; + _removeOnDidFinishRenderingFrameListener( + reference.pointer, + _id_removeOnDidFinishRenderingFrameListener as jni$_.JMethodIDPtr, + _$onDidFinishRenderingFrameListener.pointer, + ).check(); + } + + static final _id_addOnDidFinishRenderingFrameListener$1 = _class.instanceMethodId( + r'addOnDidFinishRenderingFrameListener', + r'(Lorg/maplibre/android/maps/MapView$OnDidFinishRenderingFrameWithStatsListener;)V', + ); + + static final _addOnDidFinishRenderingFrameListener$1 = + 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 addOnDidFinishRenderingFrameListener(org.maplibre.android.maps.MapView$OnDidFinishRenderingFrameWithStatsListener onDidFinishRenderingFrameWithStatsListener)` + void addOnDidFinishRenderingFrameListener$1( + MapView$OnDidFinishRenderingFrameWithStatsListener + onDidFinishRenderingFrameWithStatsListener, + ) { + final _$onDidFinishRenderingFrameWithStatsListener = + onDidFinishRenderingFrameWithStatsListener.reference; + _addOnDidFinishRenderingFrameListener$1( + reference.pointer, + _id_addOnDidFinishRenderingFrameListener$1 as jni$_.JMethodIDPtr, + _$onDidFinishRenderingFrameWithStatsListener.pointer, + ).check(); + } + + static final _id_removeOnDidFinishRenderingFrameListener$1 = _class + .instanceMethodId( + r'removeOnDidFinishRenderingFrameListener', + r'(Lorg/maplibre/android/maps/MapView$OnDidFinishRenderingFrameWithStatsListener;)V', + ); + + static final _removeOnDidFinishRenderingFrameListener$1 = + 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 removeOnDidFinishRenderingFrameListener(org.maplibre.android.maps.MapView$OnDidFinishRenderingFrameWithStatsListener onDidFinishRenderingFrameWithStatsListener)` + void removeOnDidFinishRenderingFrameListener$1( + MapView$OnDidFinishRenderingFrameWithStatsListener + onDidFinishRenderingFrameWithStatsListener, ) { - final _$onDidFinishRenderingFrameListener = - onDidFinishRenderingFrameListener?.reference ?? jni$_.jNullReference; - _removeOnDidFinishRenderingFrameListener( - reference.pointer, - _id_removeOnDidFinishRenderingFrameListener as jni$_.JMethodIDPtr, - _$onDidFinishRenderingFrameListener.pointer) - .check(); + final _$onDidFinishRenderingFrameWithStatsListener = + onDidFinishRenderingFrameWithStatsListener.reference; + _removeOnDidFinishRenderingFrameListener$1( + reference.pointer, + _id_removeOnDidFinishRenderingFrameListener$1 as jni$_.JMethodIDPtr, + _$onDidFinishRenderingFrameWithStatsListener.pointer, + ).check(); } static final _id_addOnWillStartRenderingMapListener = _class.instanceMethodId( @@ -7289,58 +7831,70 @@ class MapView extends jni$_.JObject { static final _addOnWillStartRenderingMapListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnWillStartRenderingMapListener(org.maplibre.android.maps.MapView$OnWillStartRenderingMapListener onWillStartRenderingMapListener)` void addOnWillStartRenderingMapListener( - MapView$OnWillStartRenderingMapListener? onWillStartRenderingMapListener, + MapView$OnWillStartRenderingMapListener onWillStartRenderingMapListener, ) { final _$onWillStartRenderingMapListener = - onWillStartRenderingMapListener?.reference ?? jni$_.jNullReference; + onWillStartRenderingMapListener.reference; _addOnWillStartRenderingMapListener( - reference.pointer, - _id_addOnWillStartRenderingMapListener as jni$_.JMethodIDPtr, - _$onWillStartRenderingMapListener.pointer) - .check(); + reference.pointer, + _id_addOnWillStartRenderingMapListener as jni$_.JMethodIDPtr, + _$onWillStartRenderingMapListener.pointer, + ).check(); } - static final _id_removeOnWillStartRenderingMapListener = - _class.instanceMethodId( - r'removeOnWillStartRenderingMapListener', - r'(Lorg/maplibre/android/maps/MapView$OnWillStartRenderingMapListener;)V', - ); + static final _id_removeOnWillStartRenderingMapListener = _class + .instanceMethodId( + r'removeOnWillStartRenderingMapListener', + r'(Lorg/maplibre/android/maps/MapView$OnWillStartRenderingMapListener;)V', + ); static final _removeOnWillStartRenderingMapListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnWillStartRenderingMapListener(org.maplibre.android.maps.MapView$OnWillStartRenderingMapListener onWillStartRenderingMapListener)` void removeOnWillStartRenderingMapListener( - MapView$OnWillStartRenderingMapListener? onWillStartRenderingMapListener, + MapView$OnWillStartRenderingMapListener onWillStartRenderingMapListener, ) { final _$onWillStartRenderingMapListener = - onWillStartRenderingMapListener?.reference ?? jni$_.jNullReference; + onWillStartRenderingMapListener.reference; _removeOnWillStartRenderingMapListener( - reference.pointer, - _id_removeOnWillStartRenderingMapListener as jni$_.JMethodIDPtr, - _$onWillStartRenderingMapListener.pointer) - .check(); + reference.pointer, + _id_removeOnWillStartRenderingMapListener as jni$_.JMethodIDPtr, + _$onWillStartRenderingMapListener.pointer, + ).check(); } static final _id_addOnDidFinishRenderingMapListener = _class.instanceMethodId( @@ -7350,46 +7904,58 @@ class MapView extends jni$_.JObject { static final _addOnDidFinishRenderingMapListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnDidFinishRenderingMapListener(org.maplibre.android.maps.MapView$OnDidFinishRenderingMapListener onDidFinishRenderingMapListener)` void addOnDidFinishRenderingMapListener( - MapView$OnDidFinishRenderingMapListener? onDidFinishRenderingMapListener, + MapView$OnDidFinishRenderingMapListener onDidFinishRenderingMapListener, ) { final _$onDidFinishRenderingMapListener = - onDidFinishRenderingMapListener?.reference ?? jni$_.jNullReference; + onDidFinishRenderingMapListener.reference; _addOnDidFinishRenderingMapListener( - reference.pointer, - _id_addOnDidFinishRenderingMapListener as jni$_.JMethodIDPtr, - _$onDidFinishRenderingMapListener.pointer) - .check(); + reference.pointer, + _id_addOnDidFinishRenderingMapListener as jni$_.JMethodIDPtr, + _$onDidFinishRenderingMapListener.pointer, + ).check(); } - static final _id_removeOnDidFinishRenderingMapListener = - _class.instanceMethodId( - r'removeOnDidFinishRenderingMapListener', - r'(Lorg/maplibre/android/maps/MapView$OnDidFinishRenderingMapListener;)V', - ); + static final _id_removeOnDidFinishRenderingMapListener = _class + .instanceMethodId( + r'removeOnDidFinishRenderingMapListener', + r'(Lorg/maplibre/android/maps/MapView$OnDidFinishRenderingMapListener;)V', + ); static final _removeOnDidFinishRenderingMapListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnDidFinishRenderingMapListener(org.maplibre.android.maps.MapView$OnDidFinishRenderingMapListener onDidFinishRenderingMapListener)` void removeOnDidFinishRenderingMapListener( @@ -7398,10 +7964,10 @@ class MapView extends jni$_.JObject { final _$onDidFinishRenderingMapListener = onDidFinishRenderingMapListener?.reference ?? jni$_.jNullReference; _removeOnDidFinishRenderingMapListener( - reference.pointer, - _id_removeOnDidFinishRenderingMapListener as jni$_.JMethodIDPtr, - _$onDidFinishRenderingMapListener.pointer) - .check(); + reference.pointer, + _id_removeOnDidFinishRenderingMapListener as jni$_.JMethodIDPtr, + _$onDidFinishRenderingMapListener.pointer, + ).check(); } static final _id_addOnDidBecomeIdleListener = _class.instanceMethodId( @@ -7411,27 +7977,32 @@ class MapView extends jni$_.JObject { static final _addOnDidBecomeIdleListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnDidBecomeIdleListener(org.maplibre.android.maps.MapView$OnDidBecomeIdleListener onDidBecomeIdleListener)` void addOnDidBecomeIdleListener( - MapView$OnDidBecomeIdleListener? onDidBecomeIdleListener, + MapView$OnDidBecomeIdleListener onDidBecomeIdleListener, ) { - final _$onDidBecomeIdleListener = - onDidBecomeIdleListener?.reference ?? jni$_.jNullReference; + final _$onDidBecomeIdleListener = onDidBecomeIdleListener.reference; _addOnDidBecomeIdleListener( - reference.pointer, - _id_addOnDidBecomeIdleListener as jni$_.JMethodIDPtr, - _$onDidBecomeIdleListener.pointer) - .check(); + reference.pointer, + _id_addOnDidBecomeIdleListener as jni$_.JMethodIDPtr, + _$onDidBecomeIdleListener.pointer, + ).check(); } static final _id_removeOnDidBecomeIdleListener = _class.instanceMethodId( @@ -7441,27 +8012,32 @@ class MapView extends jni$_.JObject { static final _removeOnDidBecomeIdleListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnDidBecomeIdleListener(org.maplibre.android.maps.MapView$OnDidBecomeIdleListener onDidBecomeIdleListener)` void removeOnDidBecomeIdleListener( - MapView$OnDidBecomeIdleListener? onDidBecomeIdleListener, + MapView$OnDidBecomeIdleListener onDidBecomeIdleListener, ) { - final _$onDidBecomeIdleListener = - onDidBecomeIdleListener?.reference ?? jni$_.jNullReference; + final _$onDidBecomeIdleListener = onDidBecomeIdleListener.reference; _removeOnDidBecomeIdleListener( - reference.pointer, - _id_removeOnDidBecomeIdleListener as jni$_.JMethodIDPtr, - _$onDidBecomeIdleListener.pointer) - .check(); + reference.pointer, + _id_removeOnDidBecomeIdleListener as jni$_.JMethodIDPtr, + _$onDidBecomeIdleListener.pointer, + ).check(); } static final _id_addOnDidFinishLoadingStyleListener = _class.instanceMethodId( @@ -7471,58 +8047,70 @@ class MapView extends jni$_.JObject { static final _addOnDidFinishLoadingStyleListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnDidFinishLoadingStyleListener(org.maplibre.android.maps.MapView$OnDidFinishLoadingStyleListener onDidFinishLoadingStyleListener)` void addOnDidFinishLoadingStyleListener( - MapView$OnDidFinishLoadingStyleListener? onDidFinishLoadingStyleListener, + MapView$OnDidFinishLoadingStyleListener onDidFinishLoadingStyleListener, ) { final _$onDidFinishLoadingStyleListener = - onDidFinishLoadingStyleListener?.reference ?? jni$_.jNullReference; + onDidFinishLoadingStyleListener.reference; _addOnDidFinishLoadingStyleListener( - reference.pointer, - _id_addOnDidFinishLoadingStyleListener as jni$_.JMethodIDPtr, - _$onDidFinishLoadingStyleListener.pointer) - .check(); + reference.pointer, + _id_addOnDidFinishLoadingStyleListener as jni$_.JMethodIDPtr, + _$onDidFinishLoadingStyleListener.pointer, + ).check(); } - static final _id_removeOnDidFinishLoadingStyleListener = - _class.instanceMethodId( - r'removeOnDidFinishLoadingStyleListener', - r'(Lorg/maplibre/android/maps/MapView$OnDidFinishLoadingStyleListener;)V', - ); + static final _id_removeOnDidFinishLoadingStyleListener = _class + .instanceMethodId( + r'removeOnDidFinishLoadingStyleListener', + r'(Lorg/maplibre/android/maps/MapView$OnDidFinishLoadingStyleListener;)V', + ); static final _removeOnDidFinishLoadingStyleListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnDidFinishLoadingStyleListener(org.maplibre.android.maps.MapView$OnDidFinishLoadingStyleListener onDidFinishLoadingStyleListener)` void removeOnDidFinishLoadingStyleListener( - MapView$OnDidFinishLoadingStyleListener? onDidFinishLoadingStyleListener, + MapView$OnDidFinishLoadingStyleListener onDidFinishLoadingStyleListener, ) { final _$onDidFinishLoadingStyleListener = - onDidFinishLoadingStyleListener?.reference ?? jni$_.jNullReference; + onDidFinishLoadingStyleListener.reference; _removeOnDidFinishLoadingStyleListener( - reference.pointer, - _id_removeOnDidFinishLoadingStyleListener as jni$_.JMethodIDPtr, - _$onDidFinishLoadingStyleListener.pointer) - .check(); + reference.pointer, + _id_removeOnDidFinishLoadingStyleListener as jni$_.JMethodIDPtr, + _$onDidFinishLoadingStyleListener.pointer, + ).check(); } static final _id_addOnSourceChangedListener = _class.instanceMethodId( @@ -7532,27 +8120,32 @@ class MapView extends jni$_.JObject { static final _addOnSourceChangedListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnSourceChangedListener(org.maplibre.android.maps.MapView$OnSourceChangedListener onSourceChangedListener)` void addOnSourceChangedListener( - MapView$OnSourceChangedListener? onSourceChangedListener, + MapView$OnSourceChangedListener onSourceChangedListener, ) { - final _$onSourceChangedListener = - onSourceChangedListener?.reference ?? jni$_.jNullReference; + final _$onSourceChangedListener = onSourceChangedListener.reference; _addOnSourceChangedListener( - reference.pointer, - _id_addOnSourceChangedListener as jni$_.JMethodIDPtr, - _$onSourceChangedListener.pointer) - .check(); + reference.pointer, + _id_addOnSourceChangedListener as jni$_.JMethodIDPtr, + _$onSourceChangedListener.pointer, + ).check(); } static final _id_removeOnSourceChangedListener = _class.instanceMethodId( @@ -7562,27 +8155,32 @@ class MapView extends jni$_.JObject { static final _removeOnSourceChangedListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnSourceChangedListener(org.maplibre.android.maps.MapView$OnSourceChangedListener onSourceChangedListener)` void removeOnSourceChangedListener( - MapView$OnSourceChangedListener? onSourceChangedListener, + MapView$OnSourceChangedListener onSourceChangedListener, ) { - final _$onSourceChangedListener = - onSourceChangedListener?.reference ?? jni$_.jNullReference; + final _$onSourceChangedListener = onSourceChangedListener.reference; _removeOnSourceChangedListener( - reference.pointer, - _id_removeOnSourceChangedListener as jni$_.JMethodIDPtr, - _$onSourceChangedListener.pointer) - .check(); + reference.pointer, + _id_removeOnSourceChangedListener as jni$_.JMethodIDPtr, + _$onSourceChangedListener.pointer, + ).check(); } static final _id_addOnStyleImageMissingListener = _class.instanceMethodId( @@ -7592,27 +8190,32 @@ class MapView extends jni$_.JObject { static final _addOnStyleImageMissingListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnStyleImageMissingListener(org.maplibre.android.maps.MapView$OnStyleImageMissingListener onStyleImageMissingListener)` void addOnStyleImageMissingListener( - MapView$OnStyleImageMissingListener? onStyleImageMissingListener, + MapView$OnStyleImageMissingListener onStyleImageMissingListener, ) { - final _$onStyleImageMissingListener = - onStyleImageMissingListener?.reference ?? jni$_.jNullReference; + final _$onStyleImageMissingListener = onStyleImageMissingListener.reference; _addOnStyleImageMissingListener( - reference.pointer, - _id_addOnStyleImageMissingListener as jni$_.JMethodIDPtr, - _$onStyleImageMissingListener.pointer) - .check(); + reference.pointer, + _id_addOnStyleImageMissingListener as jni$_.JMethodIDPtr, + _$onStyleImageMissingListener.pointer, + ).check(); } static final _id_removeOnStyleImageMissingListener = _class.instanceMethodId( @@ -7622,91 +8225,107 @@ class MapView extends jni$_.JObject { static final _removeOnStyleImageMissingListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnStyleImageMissingListener(org.maplibre.android.maps.MapView$OnStyleImageMissingListener onStyleImageMissingListener)` void removeOnStyleImageMissingListener( - MapView$OnStyleImageMissingListener? onStyleImageMissingListener, + MapView$OnStyleImageMissingListener onStyleImageMissingListener, ) { - final _$onStyleImageMissingListener = - onStyleImageMissingListener?.reference ?? jni$_.jNullReference; + final _$onStyleImageMissingListener = onStyleImageMissingListener.reference; _removeOnStyleImageMissingListener( - reference.pointer, - _id_removeOnStyleImageMissingListener as jni$_.JMethodIDPtr, - _$onStyleImageMissingListener.pointer) - .check(); + reference.pointer, + _id_removeOnStyleImageMissingListener as jni$_.JMethodIDPtr, + _$onStyleImageMissingListener.pointer, + ).check(); } - static final _id_addOnCanRemoveUnusedStyleImageListener = - _class.instanceMethodId( + static final _id_addOnCanRemoveUnusedStyleImageListener = _class.instanceMethodId( r'addOnCanRemoveUnusedStyleImageListener', r'(Lorg/maplibre/android/maps/MapView$OnCanRemoveUnusedStyleImageListener;)V', ); static final _addOnCanRemoveUnusedStyleImageListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnCanRemoveUnusedStyleImageListener(org.maplibre.android.maps.MapView$OnCanRemoveUnusedStyleImageListener onCanRemoveUnusedStyleImageListener)` void addOnCanRemoveUnusedStyleImageListener( - MapView$OnCanRemoveUnusedStyleImageListener? - onCanRemoveUnusedStyleImageListener, + MapView$OnCanRemoveUnusedStyleImageListener + onCanRemoveUnusedStyleImageListener, ) { final _$onCanRemoveUnusedStyleImageListener = - onCanRemoveUnusedStyleImageListener?.reference ?? jni$_.jNullReference; + onCanRemoveUnusedStyleImageListener.reference; _addOnCanRemoveUnusedStyleImageListener( - reference.pointer, - _id_addOnCanRemoveUnusedStyleImageListener as jni$_.JMethodIDPtr, - _$onCanRemoveUnusedStyleImageListener.pointer) - .check(); + reference.pointer, + _id_addOnCanRemoveUnusedStyleImageListener as jni$_.JMethodIDPtr, + _$onCanRemoveUnusedStyleImageListener.pointer, + ).check(); } - static final _id_removeOnCanRemoveUnusedStyleImageListener = - _class.instanceMethodId( - r'removeOnCanRemoveUnusedStyleImageListener', - r'(Lorg/maplibre/android/maps/MapView$OnCanRemoveUnusedStyleImageListener;)V', - ); + static final _id_removeOnCanRemoveUnusedStyleImageListener = _class + .instanceMethodId( + r'removeOnCanRemoveUnusedStyleImageListener', + r'(Lorg/maplibre/android/maps/MapView$OnCanRemoveUnusedStyleImageListener;)V', + ); static final _removeOnCanRemoveUnusedStyleImageListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnCanRemoveUnusedStyleImageListener(org.maplibre.android.maps.MapView$OnCanRemoveUnusedStyleImageListener onCanRemoveUnusedStyleImageListener)` void removeOnCanRemoveUnusedStyleImageListener( - MapView$OnCanRemoveUnusedStyleImageListener? - onCanRemoveUnusedStyleImageListener, + MapView$OnCanRemoveUnusedStyleImageListener + onCanRemoveUnusedStyleImageListener, ) { final _$onCanRemoveUnusedStyleImageListener = - onCanRemoveUnusedStyleImageListener?.reference ?? jni$_.jNullReference; + onCanRemoveUnusedStyleImageListener.reference; _removeOnCanRemoveUnusedStyleImageListener( - reference.pointer, - _id_removeOnCanRemoveUnusedStyleImageListener as jni$_.JMethodIDPtr, - _$onCanRemoveUnusedStyleImageListener.pointer) - .check(); + reference.pointer, + _id_removeOnCanRemoveUnusedStyleImageListener as jni$_.JMethodIDPtr, + _$onCanRemoveUnusedStyleImageListener.pointer, + ).check(); } static final _id_addOnPreCompileShaderListener = _class.instanceMethodId( @@ -7716,15 +8335,21 @@ class MapView extends jni$_.JObject { static final _addOnPreCompileShaderListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnPreCompileShaderListener(org.maplibre.android.maps.MapView$OnPreCompileShaderListener onPreCompileShaderListener)` void addOnPreCompileShaderListener( @@ -7733,10 +8358,10 @@ class MapView extends jni$_.JObject { final _$onPreCompileShaderListener = onPreCompileShaderListener?.reference ?? jni$_.jNullReference; _addOnPreCompileShaderListener( - reference.pointer, - _id_addOnPreCompileShaderListener as jni$_.JMethodIDPtr, - _$onPreCompileShaderListener.pointer) - .check(); + reference.pointer, + _id_addOnPreCompileShaderListener as jni$_.JMethodIDPtr, + _$onPreCompileShaderListener.pointer, + ).check(); } static final _id_removeOnPreCompileShaderListener = _class.instanceMethodId( @@ -7746,15 +8371,21 @@ class MapView extends jni$_.JObject { static final _removeOnPreCompileShaderListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnPreCompileShaderListener(org.maplibre.android.maps.MapView$OnPreCompileShaderListener onPreCompileShaderListener)` void removeOnPreCompileShaderListener( @@ -7763,10 +8394,10 @@ class MapView extends jni$_.JObject { final _$onPreCompileShaderListener = onPreCompileShaderListener?.reference ?? jni$_.jNullReference; _removeOnPreCompileShaderListener( - reference.pointer, - _id_removeOnPreCompileShaderListener as jni$_.JMethodIDPtr, - _$onPreCompileShaderListener.pointer) - .check(); + reference.pointer, + _id_removeOnPreCompileShaderListener as jni$_.JMethodIDPtr, + _$onPreCompileShaderListener.pointer, + ).check(); } static final _id_addOnPostCompileShaderListener = _class.instanceMethodId( @@ -7776,15 +8407,21 @@ class MapView extends jni$_.JObject { static final _addOnPostCompileShaderListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnPostCompileShaderListener(org.maplibre.android.maps.MapView$OnPostCompileShaderListener onPostCompileShaderListener)` void addOnPostCompileShaderListener( @@ -7793,10 +8430,10 @@ class MapView extends jni$_.JObject { final _$onPostCompileShaderListener = onPostCompileShaderListener?.reference ?? jni$_.jNullReference; _addOnPostCompileShaderListener( - reference.pointer, - _id_addOnPostCompileShaderListener as jni$_.JMethodIDPtr, - _$onPostCompileShaderListener.pointer) - .check(); + reference.pointer, + _id_addOnPostCompileShaderListener as jni$_.JMethodIDPtr, + _$onPostCompileShaderListener.pointer, + ).check(); } static final _id_removeOnPostCompileShaderListener = _class.instanceMethodId( @@ -7806,15 +8443,21 @@ class MapView extends jni$_.JObject { static final _removeOnPostCompileShaderListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnPostCompileShaderListener(org.maplibre.android.maps.MapView$OnPostCompileShaderListener onPostCompileShaderListener)` void removeOnPostCompileShaderListener( @@ -7823,10 +8466,10 @@ class MapView extends jni$_.JObject { final _$onPostCompileShaderListener = onPostCompileShaderListener?.reference ?? jni$_.jNullReference; _removeOnPostCompileShaderListener( - reference.pointer, - _id_removeOnPostCompileShaderListener as jni$_.JMethodIDPtr, - _$onPostCompileShaderListener.pointer) - .check(); + reference.pointer, + _id_removeOnPostCompileShaderListener as jni$_.JMethodIDPtr, + _$onPostCompileShaderListener.pointer, + ).check(); } static final _id_addOnShaderCompileFailedListener = _class.instanceMethodId( @@ -7836,15 +8479,21 @@ class MapView extends jni$_.JObject { static final _addOnShaderCompileFailedListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnShaderCompileFailedListener(org.maplibre.android.maps.MapView$OnShaderCompileFailedListener onShaderCompileFailedListener)` void addOnShaderCompileFailedListener( @@ -7853,29 +8502,35 @@ class MapView extends jni$_.JObject { final _$onShaderCompileFailedListener = onShaderCompileFailedListener?.reference ?? jni$_.jNullReference; _addOnShaderCompileFailedListener( - reference.pointer, - _id_addOnShaderCompileFailedListener as jni$_.JMethodIDPtr, - _$onShaderCompileFailedListener.pointer) - .check(); + reference.pointer, + _id_addOnShaderCompileFailedListener as jni$_.JMethodIDPtr, + _$onShaderCompileFailedListener.pointer, + ).check(); } - static final _id_removeOnShaderCompileFailedListener = - _class.instanceMethodId( - r'removeOnShaderCompileFailedListener', - r'(Lorg/maplibre/android/maps/MapView$OnShaderCompileFailedListener;)V', - ); + static final _id_removeOnShaderCompileFailedListener = _class + .instanceMethodId( + r'removeOnShaderCompileFailedListener', + r'(Lorg/maplibre/android/maps/MapView$OnShaderCompileFailedListener;)V', + ); static final _removeOnShaderCompileFailedListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnShaderCompileFailedListener(org.maplibre.android.maps.MapView$OnShaderCompileFailedListener onShaderCompileFailedListener)` void removeOnShaderCompileFailedListener( @@ -7884,10 +8539,10 @@ class MapView extends jni$_.JObject { final _$onShaderCompileFailedListener = onShaderCompileFailedListener?.reference ?? jni$_.jNullReference; _removeOnShaderCompileFailedListener( - reference.pointer, - _id_removeOnShaderCompileFailedListener as jni$_.JMethodIDPtr, - _$onShaderCompileFailedListener.pointer) - .check(); + reference.pointer, + _id_removeOnShaderCompileFailedListener as jni$_.JMethodIDPtr, + _$onShaderCompileFailedListener.pointer, + ).check(); } static final _id_addOnGlyphsLoadedListener = _class.instanceMethodId( @@ -7895,16 +8550,23 @@ class MapView extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapView$OnGlyphsLoadedListener;)V', ); - static final _addOnGlyphsLoadedListener = 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 _addOnGlyphsLoadedListener = + 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 addOnGlyphsLoadedListener(org.maplibre.android.maps.MapView$OnGlyphsLoadedListener onGlyphsLoadedListener)` void addOnGlyphsLoadedListener( @@ -7913,10 +8575,10 @@ class MapView extends jni$_.JObject { final _$onGlyphsLoadedListener = onGlyphsLoadedListener?.reference ?? jni$_.jNullReference; _addOnGlyphsLoadedListener( - reference.pointer, - _id_addOnGlyphsLoadedListener as jni$_.JMethodIDPtr, - _$onGlyphsLoadedListener.pointer) - .check(); + reference.pointer, + _id_addOnGlyphsLoadedListener as jni$_.JMethodIDPtr, + _$onGlyphsLoadedListener.pointer, + ).check(); } static final _id_removeOnGlyphsLoadedListener = _class.instanceMethodId( @@ -7926,15 +8588,21 @@ class MapView extends jni$_.JObject { static final _removeOnGlyphsLoadedListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnGlyphsLoadedListener(org.maplibre.android.maps.MapView$OnGlyphsLoadedListener onGlyphsLoadedListener)` void removeOnGlyphsLoadedListener( @@ -7943,10 +8611,10 @@ class MapView extends jni$_.JObject { final _$onGlyphsLoadedListener = onGlyphsLoadedListener?.reference ?? jni$_.jNullReference; _removeOnGlyphsLoadedListener( - reference.pointer, - _id_removeOnGlyphsLoadedListener as jni$_.JMethodIDPtr, - _$onGlyphsLoadedListener.pointer) - .check(); + reference.pointer, + _id_removeOnGlyphsLoadedListener as jni$_.JMethodIDPtr, + _$onGlyphsLoadedListener.pointer, + ).check(); } static final _id_addOnGlyphsErrorListener = _class.instanceMethodId( @@ -7954,16 +8622,23 @@ class MapView extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapView$OnGlyphsErrorListener;)V', ); - static final _addOnGlyphsErrorListener = 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 _addOnGlyphsErrorListener = + 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 addOnGlyphsErrorListener(org.maplibre.android.maps.MapView$OnGlyphsErrorListener onGlyphsErrorListener)` void addOnGlyphsErrorListener( @@ -7972,10 +8647,10 @@ class MapView extends jni$_.JObject { final _$onGlyphsErrorListener = onGlyphsErrorListener?.reference ?? jni$_.jNullReference; _addOnGlyphsErrorListener( - reference.pointer, - _id_addOnGlyphsErrorListener as jni$_.JMethodIDPtr, - _$onGlyphsErrorListener.pointer) - .check(); + reference.pointer, + _id_addOnGlyphsErrorListener as jni$_.JMethodIDPtr, + _$onGlyphsErrorListener.pointer, + ).check(); } static final _id_removeOnGlyphsErrorListener = _class.instanceMethodId( @@ -7985,15 +8660,21 @@ class MapView extends jni$_.JObject { static final _removeOnGlyphsErrorListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnGlyphsErrorListener(org.maplibre.android.maps.MapView$OnGlyphsErrorListener onGlyphsErrorListener)` void removeOnGlyphsErrorListener( @@ -8002,10 +8683,10 @@ class MapView extends jni$_.JObject { final _$onGlyphsErrorListener = onGlyphsErrorListener?.reference ?? jni$_.jNullReference; _removeOnGlyphsErrorListener( - reference.pointer, - _id_removeOnGlyphsErrorListener as jni$_.JMethodIDPtr, - _$onGlyphsErrorListener.pointer) - .check(); + reference.pointer, + _id_removeOnGlyphsErrorListener as jni$_.JMethodIDPtr, + _$onGlyphsErrorListener.pointer, + ).check(); } static final _id_addOnGlyphsRequestedListener = _class.instanceMethodId( @@ -8015,15 +8696,21 @@ class MapView extends jni$_.JObject { static final _addOnGlyphsRequestedListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnGlyphsRequestedListener(org.maplibre.android.maps.MapView$OnGlyphsRequestedListener onGlyphsRequestedListener)` void addOnGlyphsRequestedListener( @@ -8032,10 +8719,10 @@ class MapView extends jni$_.JObject { final _$onGlyphsRequestedListener = onGlyphsRequestedListener?.reference ?? jni$_.jNullReference; _addOnGlyphsRequestedListener( - reference.pointer, - _id_addOnGlyphsRequestedListener as jni$_.JMethodIDPtr, - _$onGlyphsRequestedListener.pointer) - .check(); + reference.pointer, + _id_addOnGlyphsRequestedListener as jni$_.JMethodIDPtr, + _$onGlyphsRequestedListener.pointer, + ).check(); } static final _id_removeOnGlyphsRequestedListener = _class.instanceMethodId( @@ -8045,15 +8732,21 @@ class MapView extends jni$_.JObject { static final _removeOnGlyphsRequestedListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnGlyphsRequestedListener(org.maplibre.android.maps.MapView$OnGlyphsRequestedListener onGlyphsRequestedListener)` void removeOnGlyphsRequestedListener( @@ -8062,10 +8755,10 @@ class MapView extends jni$_.JObject { final _$onGlyphsRequestedListener = onGlyphsRequestedListener?.reference ?? jni$_.jNullReference; _removeOnGlyphsRequestedListener( - reference.pointer, - _id_removeOnGlyphsRequestedListener as jni$_.JMethodIDPtr, - _$onGlyphsRequestedListener.pointer) - .check(); + reference.pointer, + _id_removeOnGlyphsRequestedListener as jni$_.JMethodIDPtr, + _$onGlyphsRequestedListener.pointer, + ).check(); } static final _id_addOnTileActionListener = _class.instanceMethodId( @@ -8073,16 +8766,23 @@ class MapView extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapView$OnTileActionListener;)V', ); - static final _addOnTileActionListener = 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 _addOnTileActionListener = + 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 addOnTileActionListener(org.maplibre.android.maps.MapView$OnTileActionListener onTileActionListener)` void addOnTileActionListener( @@ -8091,10 +8791,10 @@ class MapView extends jni$_.JObject { final _$onTileActionListener = onTileActionListener?.reference ?? jni$_.jNullReference; _addOnTileActionListener( - reference.pointer, - _id_addOnTileActionListener as jni$_.JMethodIDPtr, - _$onTileActionListener.pointer) - .check(); + reference.pointer, + _id_addOnTileActionListener as jni$_.JMethodIDPtr, + _$onTileActionListener.pointer, + ).check(); } static final _id_removeOnTileActionListener = _class.instanceMethodId( @@ -8104,15 +8804,21 @@ class MapView extends jni$_.JObject { static final _removeOnTileActionListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnTileActionListener(org.maplibre.android.maps.MapView$OnTileActionListener onTileActionListener)` void removeOnTileActionListener( @@ -8121,10 +8827,10 @@ class MapView extends jni$_.JObject { final _$onTileActionListener = onTileActionListener?.reference ?? jni$_.jNullReference; _removeOnTileActionListener( - reference.pointer, - _id_removeOnTileActionListener as jni$_.JMethodIDPtr, - _$onTileActionListener.pointer) - .check(); + reference.pointer, + _id_removeOnTileActionListener as jni$_.JMethodIDPtr, + _$onTileActionListener.pointer, + ).check(); } static final _id_addOnSpriteLoadedListener = _class.instanceMethodId( @@ -8132,16 +8838,23 @@ class MapView extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapView$OnSpriteLoadedListener;)V', ); - static final _addOnSpriteLoadedListener = 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 _addOnSpriteLoadedListener = + 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 addOnSpriteLoadedListener(org.maplibre.android.maps.MapView$OnSpriteLoadedListener onSpriteLoadedListener)` void addOnSpriteLoadedListener( @@ -8150,10 +8863,10 @@ class MapView extends jni$_.JObject { final _$onSpriteLoadedListener = onSpriteLoadedListener?.reference ?? jni$_.jNullReference; _addOnSpriteLoadedListener( - reference.pointer, - _id_addOnSpriteLoadedListener as jni$_.JMethodIDPtr, - _$onSpriteLoadedListener.pointer) - .check(); + reference.pointer, + _id_addOnSpriteLoadedListener as jni$_.JMethodIDPtr, + _$onSpriteLoadedListener.pointer, + ).check(); } static final _id_removeOnSpriteLoadedListener = _class.instanceMethodId( @@ -8163,15 +8876,21 @@ class MapView extends jni$_.JObject { static final _removeOnSpriteLoadedListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnSpriteLoadedListener(org.maplibre.android.maps.MapView$OnSpriteLoadedListener onSpriteLoadedListener)` void removeOnSpriteLoadedListener( @@ -8180,10 +8899,10 @@ class MapView extends jni$_.JObject { final _$onSpriteLoadedListener = onSpriteLoadedListener?.reference ?? jni$_.jNullReference; _removeOnSpriteLoadedListener( - reference.pointer, - _id_removeOnSpriteLoadedListener as jni$_.JMethodIDPtr, - _$onSpriteLoadedListener.pointer) - .check(); + reference.pointer, + _id_removeOnSpriteLoadedListener as jni$_.JMethodIDPtr, + _$onSpriteLoadedListener.pointer, + ).check(); } static final _id_addOnSpriteErrorListener = _class.instanceMethodId( @@ -8191,16 +8910,23 @@ class MapView extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapView$OnSpriteErrorListener;)V', ); - static final _addOnSpriteErrorListener = 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 _addOnSpriteErrorListener = + 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 addOnSpriteErrorListener(org.maplibre.android.maps.MapView$OnSpriteErrorListener onSpriteErrorListener)` void addOnSpriteErrorListener( @@ -8209,10 +8935,10 @@ class MapView extends jni$_.JObject { final _$onSpriteErrorListener = onSpriteErrorListener?.reference ?? jni$_.jNullReference; _addOnSpriteErrorListener( - reference.pointer, - _id_addOnSpriteErrorListener as jni$_.JMethodIDPtr, - _$onSpriteErrorListener.pointer) - .check(); + reference.pointer, + _id_addOnSpriteErrorListener as jni$_.JMethodIDPtr, + _$onSpriteErrorListener.pointer, + ).check(); } static final _id_removeOnSpriteErrorListener = _class.instanceMethodId( @@ -8222,15 +8948,21 @@ class MapView extends jni$_.JObject { static final _removeOnSpriteErrorListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnSpriteErrorListener(org.maplibre.android.maps.MapView$OnSpriteErrorListener onSpriteErrorListener)` void removeOnSpriteErrorListener( @@ -8239,10 +8971,10 @@ class MapView extends jni$_.JObject { final _$onSpriteErrorListener = onSpriteErrorListener?.reference ?? jni$_.jNullReference; _removeOnSpriteErrorListener( - reference.pointer, - _id_removeOnSpriteErrorListener as jni$_.JMethodIDPtr, - _$onSpriteErrorListener.pointer) - .check(); + reference.pointer, + _id_removeOnSpriteErrorListener as jni$_.JMethodIDPtr, + _$onSpriteErrorListener.pointer, + ).check(); } static final _id_addOnSpriteRequestedListener = _class.instanceMethodId( @@ -8252,15 +8984,21 @@ class MapView extends jni$_.JObject { static final _addOnSpriteRequestedListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void addOnSpriteRequestedListener(org.maplibre.android.maps.MapView$OnSpriteRequestedListener onSpriteRequestedListener)` void addOnSpriteRequestedListener( @@ -8269,10 +9007,10 @@ class MapView extends jni$_.JObject { final _$onSpriteRequestedListener = onSpriteRequestedListener?.reference ?? jni$_.jNullReference; _addOnSpriteRequestedListener( - reference.pointer, - _id_addOnSpriteRequestedListener as jni$_.JMethodIDPtr, - _$onSpriteRequestedListener.pointer) - .check(); + reference.pointer, + _id_addOnSpriteRequestedListener as jni$_.JMethodIDPtr, + _$onSpriteRequestedListener.pointer, + ).check(); } static final _id_removeOnSpriteRequestedListener = _class.instanceMethodId( @@ -8282,15 +9020,21 @@ class MapView extends jni$_.JObject { static final _removeOnSpriteRequestedListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void removeOnSpriteRequestedListener(org.maplibre.android.maps.MapView$OnSpriteRequestedListener onSpriteRequestedListener)` void removeOnSpriteRequestedListener( @@ -8299,10 +9043,10 @@ class MapView extends jni$_.JObject { final _$onSpriteRequestedListener = onSpriteRequestedListener?.reference ?? jni$_.jNullReference; _removeOnSpriteRequestedListener( - reference.pointer, - _id_removeOnSpriteRequestedListener as jni$_.JMethodIDPtr, - _$onSpriteRequestedListener.pointer) - .check(); + reference.pointer, + _id_removeOnSpriteRequestedListener as jni$_.JMethodIDPtr, + _$onSpriteRequestedListener.pointer, + ).check(); } static final _id_getMapAsync = _class.instanceMethodId( @@ -8310,26 +9054,32 @@ class MapView extends jni$_.JObject { r'(Lorg/maplibre/android/maps/OnMapReadyCallback;)V', ); - static final _getMapAsync = 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 _getMapAsync = + 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 getMapAsync(org.maplibre.android.maps.OnMapReadyCallback onMapReadyCallback)` - void getMapAsync( - onmapreadycallback$_.OnMapReadyCallback? onMapReadyCallback, - ) { - final _$onMapReadyCallback = - onMapReadyCallback?.reference ?? jni$_.jNullReference; - _getMapAsync(reference.pointer, _id_getMapAsync as jni$_.JMethodIDPtr, - _$onMapReadyCallback.pointer) - .check(); + void getMapAsync(onmapreadycallback$_.OnMapReadyCallback onMapReadyCallback) { + final _$onMapReadyCallback = onMapReadyCallback.reference; + _getMapAsync( + reference.pointer, + _id_getMapAsync as jni$_.JMethodIDPtr, + _$onMapReadyCallback.pointer, + ).check(); } static final _id_setMapStrictModeEnabled = _class.staticMethodId( @@ -8337,22 +9087,31 @@ class MapView extends jni$_.JObject { r'(Z)V', ); - static final _setMapStrictModeEnabled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + static final _setMapStrictModeEnabled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `static public void setMapStrictModeEnabled(boolean z)` - static void setMapStrictModeEnabled( - bool z, - ) { - _setMapStrictModeEnabled(_class.reference.pointer, - _id_setMapStrictModeEnabled as jni$_.JMethodIDPtr, z ? 1 : 0) - .check(); + static void setMapStrictModeEnabled(bool z) { + _setMapStrictModeEnabled( + _class.reference.pointer, + _id_setMapStrictModeEnabled as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).check(); } } @@ -8366,11 +9125,8 @@ final class $MapView$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - MapView? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : MapView.fromReference( - reference, - ); + MapView? fromReference(jni$_.JReference reference) => + reference.isNull ? null : MapView.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -8403,9 +9159,8 @@ final class $MapView$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - MapView fromReference(jni$_.JReference reference) => MapView.fromReference( - reference, - ); + MapView fromReference(jni$_.JReference reference) => + MapView.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/maps/NativeMapOptions.dart b/lib/src/platform/android/jni/org/maplibre/android/maps/NativeMapOptions.dart new file mode 100644 index 00000000..bceab0eb --- /dev/null +++ b/lib/src/platform/android/jni/org/maplibre/android/maps/NativeMapOptions.dart @@ -0,0 +1,374 @@ +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint + +// ignore_for_file: annotate_overrides +// ignore_for_file: argument_type_not_assignable +// ignore_for_file: camel_case_extensions +// ignore_for_file: camel_case_types +// ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references +// ignore_for_file: doc_directive_unknown +// ignore_for_file: file_names +// ignore_for_file: inference_failure_on_untyped_parameter +// ignore_for_file: invalid_internal_annotation +// ignore_for_file: invalid_use_of_internal_member +// ignore_for_file: library_prefixes +// ignore_for_file: lines_longer_than_80_chars +// ignore_for_file: no_leading_underscores_for_library_prefixes +// ignore_for_file: no_leading_underscores_for_local_identifiers +// ignore_for_file: non_constant_identifier_names +// ignore_for_file: only_throw_errors +// ignore_for_file: overridden_fields +// ignore_for_file: prefer_double_quotes +// ignore_for_file: unintended_html_in_doc_comment +// ignore_for_file: unnecessary_cast +// ignore_for_file: unnecessary_non_null_assertion +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: unused_element +// ignore_for_file: unused_field +// ignore_for_file: unused_import +// ignore_for_file: unused_local_variable +// 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 'package:jni/_internal.dart' as jni$_; +import 'package:jni/jni.dart' as jni$_; + +import 'MapLibreMapOptions.dart' as maplibremapoptions$_; + +/// from: `org.maplibre.android.maps.NativeMapOptions` +class NativeMapOptions extends jni$_.JObject { + @jni$_.internal + @core$_.override + final jni$_.JObjType $type; + + @jni$_.internal + NativeMapOptions.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); + + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/maps/NativeMapOptions', + ); + + /// The type which includes information such as the signature of this class. + static const nullableType = $NativeMapOptions$NullableType(); + static const type = $NativeMapOptions$Type(); + static final _id_new$ = _class.constructorId( + r'(Lorg/maplibre/android/maps/MapLibreMapOptions;)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: `public void (org.maplibre.android.maps.MapLibreMapOptions mapLibreMapOptions)` + /// The returned object must be released after use, by calling the [release] method. + factory NativeMapOptions( + maplibremapoptions$_.MapLibreMapOptions? mapLibreMapOptions, + ) { + final _$mapLibreMapOptions = + mapLibreMapOptions?.reference ?? jni$_.jNullReference; + return NativeMapOptions.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$mapLibreMapOptions.pointer, + ).reference, + ); + } + + static final _id_new$1 = _class.constructorId(r'(FZ)V'); + + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double, jni$_.Int32)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + int, + ) + >(); + + /// from: `public void (float f, boolean z)` + /// The returned object must be released after use, by calling the [release] method. + factory NativeMapOptions.new$1(double f, bool z) { + return NativeMapOptions.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + f, + z ? 1 : 0, + ).reference, + ); + } + + static final _id_pixelRatio = _class.instanceMethodId(r'pixelRatio', r'()F'); + + static final _pixelRatio = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + > + >('globalEnv_CallFloatMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public float pixelRatio()` + double pixelRatio() { + return _pixelRatio( + reference.pointer, + _id_pixelRatio as jni$_.JMethodIDPtr, + ).float; + } + + static final _id_crossSourceCollisions = _class.instanceMethodId( + r'crossSourceCollisions', + r'()Z', + ); + + static final _crossSourceCollisions = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public boolean crossSourceCollisions()` + bool crossSourceCollisions() { + return _crossSourceCollisions( + reference.pointer, + _id_crossSourceCollisions as jni$_.JMethodIDPtr, + ).boolean; + } + + static final _id_actionJournalEnabled = _class.instanceMethodId( + r'actionJournalEnabled', + r'()Z', + ); + + static final _actionJournalEnabled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public boolean actionJournalEnabled()` + bool actionJournalEnabled() { + return _actionJournalEnabled( + reference.pointer, + _id_actionJournalEnabled as jni$_.JMethodIDPtr, + ).boolean; + } + + static final _id_actionJournalPath = _class.instanceMethodId( + r'actionJournalPath', + r'()Ljava/lang/String;', + ); + + static final _actionJournalPath = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public java.lang.String actionJournalPath()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JString? actionJournalPath() { + return _actionJournalPath( + reference.pointer, + _id_actionJournalPath as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); + } + + static final _id_actionJournalLogFileSize = _class.instanceMethodId( + r'actionJournalLogFileSize', + r'()J', + ); + + static final _actionJournalLogFileSize = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public long actionJournalLogFileSize()` + int actionJournalLogFileSize() { + return _actionJournalLogFileSize( + reference.pointer, + _id_actionJournalLogFileSize as jni$_.JMethodIDPtr, + ).long; + } + + static final _id_actionJournalLogFileCount = _class.instanceMethodId( + r'actionJournalLogFileCount', + r'()J', + ); + + static final _actionJournalLogFileCount = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public long actionJournalLogFileCount()` + int actionJournalLogFileCount() { + return _actionJournalLogFileCount( + reference.pointer, + _id_actionJournalLogFileCount as jni$_.JMethodIDPtr, + ).long; + } +} + +final class $NativeMapOptions$NullableType + extends jni$_.JObjType { + @jni$_.internal + const $NativeMapOptions$NullableType(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/maplibre/android/maps/NativeMapOptions;'; + + @jni$_.internal + @core$_.override + NativeMapOptions? fromReference(jni$_.JReference reference) => + reference.isNull ? null : NativeMapOptions.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 => ($NativeMapOptions$NullableType).hashCode; + + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == ($NativeMapOptions$NullableType) && + other is $NativeMapOptions$NullableType; + } +} + +final class $NativeMapOptions$Type extends jni$_.JObjType { + @jni$_.internal + const $NativeMapOptions$Type(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/maplibre/android/maps/NativeMapOptions;'; + + @jni$_.internal + @core$_.override + NativeMapOptions fromReference(jni$_.JReference reference) => + NativeMapOptions.fromReference(reference); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => + const $NativeMapOptions$NullableType(); + + @jni$_.internal + @core$_.override + final superCount = 1; + + @core$_.override + int get hashCode => ($NativeMapOptions$Type).hashCode; + + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == ($NativeMapOptions$Type) && + other is $NativeMapOptions$Type; + } +} diff --git a/lib/src/platform/android/jni/org/maplibre/android/maps/NativeMapView.dart b/lib/src/platform/android/jni/org/maplibre/android/maps/NativeMapView.dart index c2a738bc..ddf15a44 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/maps/NativeMapView.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/maps/NativeMapView.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -57,13 +45,13 @@ class JObject$ViewCallback extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - JObject$ViewCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + JObject$ViewCallback.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/NativeMapView$ViewCallback'); + r'org/maplibre/android/maps/NativeMapView$ViewCallback', + ); /// The type which includes information such as the signature of this class. static const nullableType = $JObject$ViewCallback$NullableType(); @@ -73,24 +61,29 @@ class JObject$ViewCallback extends jni$_.JObject { r'()Landroid/graphics/Bitmap;', ); - static final _getViewContent = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getViewContent = + 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 abstract android.graphics.Bitmap getViewContent()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getViewContent() { return _getViewContent( - reference.pointer, _id_getViewContent as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getViewContent as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } /// Maps a specific port to the implemented interface. @@ -102,19 +95,16 @@ class JObject$ViewCallback extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -162,14 +152,10 @@ class JObject$ViewCallback extends jni$_.JObject { _$impls[$a] = $impl; } - factory JObject$ViewCallback.implement( - $JObject$ViewCallback $impl, - ) { + factory JObject$ViewCallback.implement($JObject$ViewCallback $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return JObject$ViewCallback.fromReference( - $i.implementReference(), - ); + return JObject$ViewCallback.fromReference($i.implementReference()); } } @@ -182,9 +168,8 @@ abstract base mixin class $JObject$ViewCallback { } final class _$JObject$ViewCallback with $JObject$ViewCallback { - _$JObject$ViewCallback({ - required jni$_.JObject? Function() getViewContent, - }) : _getViewContent = getViewContent; + _$JObject$ViewCallback({required jni$_.JObject? Function() getViewContent}) + : _getViewContent = getViewContent; final jni$_.JObject? Function() _getViewContent; @@ -206,11 +191,7 @@ final class $JObject$ViewCallback$NullableType @jni$_.internal @core$_.override JObject$ViewCallback? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : JObject$ViewCallback.fromReference( - reference, - ); + reference.isNull ? null : JObject$ViewCallback.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -246,9 +227,7 @@ final class $JObject$ViewCallback$Type @jni$_.internal @core$_.override JObject$ViewCallback fromReference(jni$_.JReference reference) => - JObject$ViewCallback.fromReference( - reference, - ); + JObject$ViewCallback.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/maps/OnMapReadyCallback.dart b/lib/src/platform/android/jni/org/maplibre/android/maps/OnMapReadyCallback.dart index 781e6c5d..1519eee3 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/maps/OnMapReadyCallback.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/maps/OnMapReadyCallback.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -59,13 +47,13 @@ class OnMapReadyCallback extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - OnMapReadyCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + OnMapReadyCallback.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/maps/OnMapReadyCallback'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/maps/OnMapReadyCallback', + ); /// The type which includes information such as the signature of this class. static const nullableType = $OnMapReadyCallback$NullableType(); @@ -75,25 +63,32 @@ class OnMapReadyCallback extends jni$_.JObject { r'(Lorg/maplibre/android/maps/MapLibreMap;)V', ); - static final _onMapReady = 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 _onMapReady = + 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 onMapReady(org.maplibre.android.maps.MapLibreMap mapLibreMap)` - void onMapReady( - maplibremap$_.MapLibreMap? mapLibreMap, - ) { - final _$mapLibreMap = mapLibreMap?.reference ?? jni$_.jNullReference; - _onMapReady(reference.pointer, _id_onMapReady as jni$_.JMethodIDPtr, - _$mapLibreMap.pointer) - .check(); + void onMapReady(maplibremap$_.MapLibreMap mapLibreMap) { + final _$mapLibreMap = mapLibreMap.reference; + _onMapReady( + reference.pointer, + _id_onMapReady as jni$_.JMethodIDPtr, + _$mapLibreMap.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -105,19 +100,16 @@ class OnMapReadyCallback extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -128,8 +120,10 @@ class OnMapReadyCallback extends jni$_.JObject { final $a = $i.args; if ($d == r'onMapReady(Lorg/maplibre/android/maps/MapLibreMap;)V') { _$impls[$p]!.onMapReady( - $a![0]?.as(const maplibremap$_.$MapLibreMap$Type(), - releaseOriginal: true), + $a![0]!.as( + const maplibremap$_.$MapLibreMap$Type(), + releaseOriginal: true, + ), ); return jni$_.nullptr; } @@ -167,37 +161,33 @@ class OnMapReadyCallback extends jni$_.JObject { _$impls[$a] = $impl; } - factory OnMapReadyCallback.implement( - $OnMapReadyCallback $impl, - ) { + factory OnMapReadyCallback.implement($OnMapReadyCallback $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return OnMapReadyCallback.fromReference( - $i.implementReference(), - ); + return OnMapReadyCallback.fromReference($i.implementReference()); } } abstract base mixin class $OnMapReadyCallback { factory $OnMapReadyCallback({ - required void Function(maplibremap$_.MapLibreMap? mapLibreMap) onMapReady, + required void Function(maplibremap$_.MapLibreMap mapLibreMap) onMapReady, bool onMapReady$async, }) = _$OnMapReadyCallback; - void onMapReady(maplibremap$_.MapLibreMap? mapLibreMap); + void onMapReady(maplibremap$_.MapLibreMap mapLibreMap); bool get onMapReady$async => false; } final class _$OnMapReadyCallback with $OnMapReadyCallback { _$OnMapReadyCallback({ - required void Function(maplibremap$_.MapLibreMap? mapLibreMap) onMapReady, + required void Function(maplibremap$_.MapLibreMap mapLibreMap) onMapReady, this.onMapReady$async = false, }) : _onMapReady = onMapReady; - final void Function(maplibremap$_.MapLibreMap? mapLibreMap) _onMapReady; + final void Function(maplibremap$_.MapLibreMap mapLibreMap) _onMapReady; final bool onMapReady$async; - void onMapReady(maplibremap$_.MapLibreMap? mapLibreMap) { + void onMapReady(maplibremap$_.MapLibreMap mapLibreMap) { return _onMapReady(mapLibreMap); } } @@ -214,11 +204,7 @@ final class $OnMapReadyCallback$NullableType @jni$_.internal @core$_.override OnMapReadyCallback? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : OnMapReadyCallback.fromReference( - reference, - ); + reference.isNull ? null : OnMapReadyCallback.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -253,9 +239,7 @@ final class $OnMapReadyCallback$Type @jni$_.internal @core$_.override OnMapReadyCallback fromReference(jni$_.JReference reference) => - OnMapReadyCallback.fromReference( - reference, - ); + OnMapReadyCallback.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/maps/Projection.dart b/lib/src/platform/android/jni/org/maplibre/android/maps/Projection.dart index 17ece03e..8aeef24e 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/maps/Projection.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/maps/Projection.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -65,13 +53,13 @@ class Projection extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Projection.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Projection.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/maps/Projection'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/maps/Projection', + ); /// The type which includes information such as the signature of this class. static const nullableType = $Projection$NullableType(); @@ -81,23 +69,28 @@ class Projection extends jni$_.JObject { r'()V', ); - static final _invalidateContentPadding = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _invalidateContentPadding = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void invalidateContentPadding()` void invalidateContentPadding() { - _invalidateContentPadding(reference.pointer, - _id_invalidateContentPadding as jni$_.JMethodIDPtr) - .check(); + _invalidateContentPadding( + reference.pointer, + _id_invalidateContentPadding as jni$_.JMethodIDPtr, + ).check(); } static final _id_getProjectedMetersForLatLng = _class.instanceMethodId( @@ -107,28 +100,35 @@ class Projection extends jni$_.JObject { static final _getProjectedMetersForLatLng = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') + 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)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public org.maplibre.android.geometry.ProjectedMeters getProjectedMetersForLatLng(org.maplibre.android.geometry.LatLng latLng)` /// The returned object must be released after use, by calling the [release] method. - projectedmeters$_.ProjectedMeters? getProjectedMetersForLatLng( - latlng$_.LatLng? latLng, + projectedmeters$_.ProjectedMeters getProjectedMetersForLatLng( + latlng$_.LatLng latLng, ) { - final _$latLng = latLng?.reference ?? jni$_.jNullReference; + final _$latLng = latLng.reference; return _getProjectedMetersForLatLng( - reference.pointer, - _id_getProjectedMetersForLatLng as jni$_.JMethodIDPtr, - _$latLng.pointer) - .object( - const projectedmeters$_.$ProjectedMeters$NullableType()); + reference.pointer, + _id_getProjectedMetersForLatLng as jni$_.JMethodIDPtr, + _$latLng.pointer, + ).object( + const projectedmeters$_.$ProjectedMeters$Type(), + ); } static final _id_getLatLngForProjectedMeters = _class.instanceMethodId( @@ -138,28 +138,33 @@ class Projection extends jni$_.JObject { static final _getLatLngForProjectedMeters = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') + 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)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public org.maplibre.android.geometry.LatLng getLatLngForProjectedMeters(org.maplibre.android.geometry.ProjectedMeters projectedMeters)` /// The returned object must be released after use, by calling the [release] method. - latlng$_.LatLng? getLatLngForProjectedMeters( - projectedmeters$_.ProjectedMeters? projectedMeters, + latlng$_.LatLng getLatLngForProjectedMeters( + projectedmeters$_.ProjectedMeters projectedMeters, ) { - final _$projectedMeters = - projectedMeters?.reference ?? jni$_.jNullReference; + final _$projectedMeters = projectedMeters.reference; return _getLatLngForProjectedMeters( - reference.pointer, - _id_getLatLngForProjectedMeters as jni$_.JMethodIDPtr, - _$projectedMeters.pointer) - .object(const latlng$_.$LatLng$NullableType()); + reference.pointer, + _id_getLatLngForProjectedMeters as jni$_.JMethodIDPtr, + _$projectedMeters.pointer, + ).object(const latlng$_.$LatLng$Type()); } static final _id_getMetersPerPixelAtLatitude = _class.instanceMethodId( @@ -169,21 +174,29 @@ class Projection extends jni$_.JObject { static final _getMetersPerPixelAtLatitude = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Double,)>)>>( - 'globalEnv_CallDoubleMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public double getMetersPerPixelAtLatitude(double d)` - double getMetersPerPixelAtLatitude( - double d, - ) { - return _getMetersPerPixelAtLatitude(reference.pointer, - _id_getMetersPerPixelAtLatitude as jni$_.JMethodIDPtr, d) - .doubleFloat; + double getMetersPerPixelAtLatitude(double d) { + return _getMetersPerPixelAtLatitude( + reference.pointer, + _id_getMetersPerPixelAtLatitude as jni$_.JMethodIDPtr, + d, + ).doubleFloat; } static final _id_fromScreenLocation = _class.instanceMethodId( @@ -191,26 +204,33 @@ class Projection extends jni$_.JObject { r'(Landroid/graphics/PointF;)Lorg/maplibre/android/geometry/LatLng;', ); - static final _fromScreenLocation = 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)>(); + static final _fromScreenLocation = + 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 org.maplibre.android.geometry.LatLng fromScreenLocation(android.graphics.PointF pointF)` /// The returned object must be released after use, by calling the [release] method. - latlng$_.LatLng? fromScreenLocation( - pointf$_.PointF? pointF, - ) { - final _$pointF = pointF?.reference ?? jni$_.jNullReference; - return _fromScreenLocation(reference.pointer, - _id_fromScreenLocation as jni$_.JMethodIDPtr, _$pointF.pointer) - .object(const latlng$_.$LatLng$NullableType()); + latlng$_.LatLng fromScreenLocation(pointf$_.PointF pointF) { + final _$pointF = pointF.reference; + return _fromScreenLocation( + reference.pointer, + _id_fromScreenLocation as jni$_.JMethodIDPtr, + _$pointF.pointer, + ).object(const latlng$_.$LatLng$Type()); } static final _id_fromScreenLocations = _class.instanceMethodId( @@ -218,36 +238,37 @@ class Projection extends jni$_.JObject { r'([D[D)V', ); - static final _fromScreenLocations = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _fromScreenLocations = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void fromScreenLocations(double[] ds, double[] ds1)` - void fromScreenLocations( - jni$_.JDoubleArray? ds, - jni$_.JDoubleArray? ds1, - ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - final _$ds1 = ds1?.reference ?? jni$_.jNullReference; + void fromScreenLocations(jni$_.JDoubleArray ds, jni$_.JDoubleArray ds1) { + final _$ds = ds.reference; + final _$ds1 = ds1.reference; _fromScreenLocations( - reference.pointer, - _id_fromScreenLocations as jni$_.JMethodIDPtr, - _$ds.pointer, - _$ds1.pointer) - .check(); + reference.pointer, + _id_fromScreenLocations as jni$_.JMethodIDPtr, + _$ds.pointer, + _$ds1.pointer, + ).check(); } static final _id_getVisibleRegion = _class.instanceMethodId( @@ -255,25 +276,31 @@ class Projection extends jni$_.JObject { r'()Lorg/maplibre/android/geometry/VisibleRegion;', ); - static final _getVisibleRegion = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getVisibleRegion = + 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 org.maplibre.android.geometry.VisibleRegion getVisibleRegion()` /// The returned object must be released after use, by calling the [release] method. - visibleregion$_.VisibleRegion? getVisibleRegion() { + visibleregion$_.VisibleRegion getVisibleRegion() { return _getVisibleRegion( - reference.pointer, _id_getVisibleRegion as jni$_.JMethodIDPtr) - .object( - const visibleregion$_.$VisibleRegion$NullableType()); + reference.pointer, + _id_getVisibleRegion as jni$_.JMethodIDPtr, + ).object( + const visibleregion$_.$VisibleRegion$Type(), + ); } static final _id_getVisibleRegion$1 = _class.instanceMethodId( @@ -281,25 +308,34 @@ class Projection extends jni$_.JObject { r'(Z)Lorg/maplibre/android/geometry/VisibleRegion;', ); - static final _getVisibleRegion$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getVisibleRegion$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public org.maplibre.android.geometry.VisibleRegion getVisibleRegion(boolean z)` /// The returned object must be released after use, by calling the [release] method. - visibleregion$_.VisibleRegion? getVisibleRegion$1( - bool z, - ) { - return _getVisibleRegion$1(reference.pointer, - _id_getVisibleRegion$1 as jni$_.JMethodIDPtr, z ? 1 : 0) - .object( - const visibleregion$_.$VisibleRegion$NullableType()); + visibleregion$_.VisibleRegion getVisibleRegion$1(bool z) { + return _getVisibleRegion$1( + reference.pointer, + _id_getVisibleRegion$1 as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object( + const visibleregion$_.$VisibleRegion$Type(), + ); } static final _id_getVisibleCoordinateBounds = _class.instanceMethodId( @@ -309,24 +345,30 @@ class Projection extends jni$_.JObject { static final _getVisibleCoordinateBounds = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') + 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$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void getVisibleCoordinateBounds(double[] ds)` - void getVisibleCoordinateBounds( - jni$_.JDoubleArray? ds, - ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - _getVisibleCoordinateBounds(reference.pointer, - _id_getVisibleCoordinateBounds as jni$_.JMethodIDPtr, _$ds.pointer) - .check(); + void getVisibleCoordinateBounds(jni$_.JDoubleArray ds) { + final _$ds = ds.reference; + _getVisibleCoordinateBounds( + reference.pointer, + _id_getVisibleCoordinateBounds as jni$_.JMethodIDPtr, + _$ds.pointer, + ).check(); } static final _id_toScreenLocation = _class.instanceMethodId( @@ -334,26 +376,33 @@ class Projection extends jni$_.JObject { r'(Lorg/maplibre/android/geometry/LatLng;)Landroid/graphics/PointF;', ); - static final _toScreenLocation = 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)>(); + static final _toScreenLocation = + 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 android.graphics.PointF toScreenLocation(org.maplibre.android.geometry.LatLng latLng)` /// The returned object must be released after use, by calling the [release] method. - pointf$_.PointF? toScreenLocation( - latlng$_.LatLng? latLng, - ) { - final _$latLng = latLng?.reference ?? jni$_.jNullReference; - return _toScreenLocation(reference.pointer, - _id_toScreenLocation as jni$_.JMethodIDPtr, _$latLng.pointer) - .object(const pointf$_.$PointF$NullableType()); + pointf$_.PointF toScreenLocation(latlng$_.LatLng latLng) { + final _$latLng = latLng.reference; + return _toScreenLocation( + reference.pointer, + _id_toScreenLocation as jni$_.JMethodIDPtr, + _$latLng.pointer, + ).object(const pointf$_.$PointF$Type()); } static final _id_toScreenLocations = _class.instanceMethodId( @@ -361,36 +410,37 @@ class Projection extends jni$_.JObject { r'([D[D)V', ); - static final _toScreenLocations = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toScreenLocations = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void toScreenLocations(double[] ds, double[] ds1)` - void toScreenLocations( - jni$_.JDoubleArray? ds, - jni$_.JDoubleArray? ds1, - ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - final _$ds1 = ds1?.reference ?? jni$_.jNullReference; + void toScreenLocations(jni$_.JDoubleArray ds, jni$_.JDoubleArray ds1) { + final _$ds = ds.reference; + final _$ds1 = ds1.reference; _toScreenLocations( - reference.pointer, - _id_toScreenLocations as jni$_.JMethodIDPtr, - _$ds.pointer, - _$ds1.pointer) - .check(); + reference.pointer, + _id_toScreenLocations as jni$_.JMethodIDPtr, + _$ds.pointer, + _$ds1.pointer, + ).check(); } static final _id_calculateZoom = _class.instanceMethodId( @@ -398,24 +448,31 @@ class Projection extends jni$_.JObject { r'(F)D', ); - static final _calculateZoom = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _calculateZoom = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Double,)>)>>('globalEnv_CallDoubleMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Double,)>, + ) + > + >('globalEnv_CallDoubleMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + double, + ) + >(); /// from: `public double calculateZoom(float f)` - double calculateZoom( - double f, - ) { + double calculateZoom(double f) { return _calculateZoom( - reference.pointer, _id_calculateZoom as jni$_.JMethodIDPtr, f) - .doubleFloat; + reference.pointer, + _id_calculateZoom as jni$_.JMethodIDPtr, + f, + ).doubleFloat; } } @@ -429,11 +486,8 @@ final class $Projection$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - Projection? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Projection.fromReference( - reference, - ); + Projection? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Projection.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -467,9 +521,7 @@ final class $Projection$Type extends jni$_.JObjType { @jni$_.internal @core$_.override Projection fromReference(jni$_.JReference reference) => - Projection.fromReference( - reference, - ); + Projection.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/lib/src/platform/android/jni/org/maplibre/android/maps/RenderingStats.dart b/lib/src/platform/android/jni/org/maplibre/android/maps/RenderingStats.dart new file mode 100644 index 00000000..b46e644e --- /dev/null +++ b/lib/src/platform/android/jni/org/maplibre/android/maps/RenderingStats.dart @@ -0,0 +1,528 @@ +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint + +// ignore_for_file: annotate_overrides +// ignore_for_file: argument_type_not_assignable +// ignore_for_file: camel_case_extensions +// ignore_for_file: camel_case_types +// ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references +// ignore_for_file: doc_directive_unknown +// ignore_for_file: file_names +// ignore_for_file: inference_failure_on_untyped_parameter +// ignore_for_file: invalid_internal_annotation +// ignore_for_file: invalid_use_of_internal_member +// ignore_for_file: library_prefixes +// ignore_for_file: lines_longer_than_80_chars +// ignore_for_file: no_leading_underscores_for_library_prefixes +// ignore_for_file: no_leading_underscores_for_local_identifiers +// ignore_for_file: non_constant_identifier_names +// ignore_for_file: only_throw_errors +// ignore_for_file: overridden_fields +// ignore_for_file: prefer_double_quotes +// ignore_for_file: unintended_html_in_doc_comment +// ignore_for_file: unnecessary_cast +// ignore_for_file: unnecessary_non_null_assertion +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: unused_element +// ignore_for_file: unused_field +// ignore_for_file: unused_import +// ignore_for_file: unused_local_variable +// 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 'package:jni/_internal.dart' as jni$_; +import 'package:jni/jni.dart' as jni$_; + +/// from: `org.maplibre.android.maps.RenderingStats` +class RenderingStats extends jni$_.JObject { + @jni$_.internal + @core$_.override + final jni$_.JObjType $type; + + @jni$_.internal + RenderingStats.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); + + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/maps/RenderingStats', + ); + + /// The type which includes information such as the signature of this class. + static const nullableType = $RenderingStats$NullableType(); + static const type = $RenderingStats$Type(); + static final _id_encodingTime = _class.instanceFieldId(r'encodingTime', r'D'); + + /// from: `public double encodingTime` + double get encodingTime => + _id_encodingTime.get(this, const jni$_.jdoubleType()); + + /// from: `public double encodingTime` + set encodingTime(double value) => + _id_encodingTime.set(this, const jni$_.jdoubleType(), value); + + static final _id_renderingTime = _class.instanceFieldId( + r'renderingTime', + r'D', + ); + + /// from: `public double renderingTime` + double get renderingTime => + _id_renderingTime.get(this, const jni$_.jdoubleType()); + + /// from: `public double renderingTime` + set renderingTime(double value) => + _id_renderingTime.set(this, const jni$_.jdoubleType(), value); + + static final _id_numFrames = _class.instanceFieldId(r'numFrames', r'I'); + + /// from: `public int numFrames` + int get numFrames => _id_numFrames.get(this, const jni$_.jintType()); + + /// from: `public int numFrames` + set numFrames(int value) => + _id_numFrames.set(this, const jni$_.jintType(), value); + + static final _id_numDrawCalls = _class.instanceFieldId(r'numDrawCalls', r'I'); + + /// from: `public int numDrawCalls` + int get numDrawCalls => _id_numDrawCalls.get(this, const jni$_.jintType()); + + /// from: `public int numDrawCalls` + set numDrawCalls(int value) => + _id_numDrawCalls.set(this, const jni$_.jintType(), value); + + static final _id_totalDrawCalls = _class.instanceFieldId( + r'totalDrawCalls', + r'I', + ); + + /// from: `public int totalDrawCalls` + int get totalDrawCalls => + _id_totalDrawCalls.get(this, const jni$_.jintType()); + + /// from: `public int totalDrawCalls` + set totalDrawCalls(int value) => + _id_totalDrawCalls.set(this, const jni$_.jintType(), value); + + static final _id_numCreatedTextures = _class.instanceFieldId( + r'numCreatedTextures', + r'I', + ); + + /// from: `public int numCreatedTextures` + int get numCreatedTextures => + _id_numCreatedTextures.get(this, const jni$_.jintType()); + + /// from: `public int numCreatedTextures` + set numCreatedTextures(int value) => + _id_numCreatedTextures.set(this, const jni$_.jintType(), value); + + static final _id_numActiveTextures = _class.instanceFieldId( + r'numActiveTextures', + r'I', + ); + + /// from: `public int numActiveTextures` + int get numActiveTextures => + _id_numActiveTextures.get(this, const jni$_.jintType()); + + /// from: `public int numActiveTextures` + set numActiveTextures(int value) => + _id_numActiveTextures.set(this, const jni$_.jintType(), value); + + static final _id_numTextureBindings = _class.instanceFieldId( + r'numTextureBindings', + r'I', + ); + + /// from: `public int numTextureBindings` + int get numTextureBindings => + _id_numTextureBindings.get(this, const jni$_.jintType()); + + /// from: `public int numTextureBindings` + set numTextureBindings(int value) => + _id_numTextureBindings.set(this, const jni$_.jintType(), value); + + static final _id_numTextureUpdates = _class.instanceFieldId( + r'numTextureUpdates', + r'I', + ); + + /// from: `public int numTextureUpdates` + int get numTextureUpdates => + _id_numTextureUpdates.get(this, const jni$_.jintType()); + + /// from: `public int numTextureUpdates` + set numTextureUpdates(int value) => + _id_numTextureUpdates.set(this, const jni$_.jintType(), value); + + static final _id_textureUpdateBytes = _class.instanceFieldId( + r'textureUpdateBytes', + r'J', + ); + + /// from: `public long textureUpdateBytes` + int get textureUpdateBytes => + _id_textureUpdateBytes.get(this, const jni$_.jlongType()); + + /// from: `public long textureUpdateBytes` + set textureUpdateBytes(int value) => + _id_textureUpdateBytes.set(this, const jni$_.jlongType(), value); + + static final _id_totalBuffers = _class.instanceFieldId(r'totalBuffers', r'J'); + + /// from: `public long totalBuffers` + int get totalBuffers => _id_totalBuffers.get(this, const jni$_.jlongType()); + + /// from: `public long totalBuffers` + set totalBuffers(int value) => + _id_totalBuffers.set(this, const jni$_.jlongType(), value); + + static final _id_totalBufferObjs = _class.instanceFieldId( + r'totalBufferObjs', + r'J', + ); + + /// from: `public long totalBufferObjs` + int get totalBufferObjs => + _id_totalBufferObjs.get(this, const jni$_.jlongType()); + + /// from: `public long totalBufferObjs` + set totalBufferObjs(int value) => + _id_totalBufferObjs.set(this, const jni$_.jlongType(), value); + + static final _id_bufferUpdates = _class.instanceFieldId( + r'bufferUpdates', + r'J', + ); + + /// from: `public long bufferUpdates` + int get bufferUpdates => _id_bufferUpdates.get(this, const jni$_.jlongType()); + + /// from: `public long bufferUpdates` + set bufferUpdates(int value) => + _id_bufferUpdates.set(this, const jni$_.jlongType(), value); + + static final _id_bufferObjUpdates = _class.instanceFieldId( + r'bufferObjUpdates', + r'J', + ); + + /// from: `public long bufferObjUpdates` + int get bufferObjUpdates => + _id_bufferObjUpdates.get(this, const jni$_.jlongType()); + + /// from: `public long bufferObjUpdates` + set bufferObjUpdates(int value) => + _id_bufferObjUpdates.set(this, const jni$_.jlongType(), value); + + static final _id_bufferUpdateBytes = _class.instanceFieldId( + r'bufferUpdateBytes', + r'J', + ); + + /// from: `public long bufferUpdateBytes` + int get bufferUpdateBytes => + _id_bufferUpdateBytes.get(this, const jni$_.jlongType()); + + /// from: `public long bufferUpdateBytes` + set bufferUpdateBytes(int value) => + _id_bufferUpdateBytes.set(this, const jni$_.jlongType(), value); + + static final _id_numBuffers = _class.instanceFieldId(r'numBuffers', r'I'); + + /// from: `public int numBuffers` + int get numBuffers => _id_numBuffers.get(this, const jni$_.jintType()); + + /// from: `public int numBuffers` + set numBuffers(int value) => + _id_numBuffers.set(this, const jni$_.jintType(), value); + + static final _id_numFrameBuffers = _class.instanceFieldId( + r'numFrameBuffers', + r'I', + ); + + /// from: `public int numFrameBuffers` + int get numFrameBuffers => + _id_numFrameBuffers.get(this, const jni$_.jintType()); + + /// from: `public int numFrameBuffers` + set numFrameBuffers(int value) => + _id_numFrameBuffers.set(this, const jni$_.jintType(), value); + + static final _id_numIndexBuffers = _class.instanceFieldId( + r'numIndexBuffers', + r'I', + ); + + /// from: `public int numIndexBuffers` + int get numIndexBuffers => + _id_numIndexBuffers.get(this, const jni$_.jintType()); + + /// from: `public int numIndexBuffers` + set numIndexBuffers(int value) => + _id_numIndexBuffers.set(this, const jni$_.jintType(), value); + + static final _id_indexUpdateBytes = _class.instanceFieldId( + r'indexUpdateBytes', + r'J', + ); + + /// from: `public long indexUpdateBytes` + int get indexUpdateBytes => + _id_indexUpdateBytes.get(this, const jni$_.jlongType()); + + /// from: `public long indexUpdateBytes` + set indexUpdateBytes(int value) => + _id_indexUpdateBytes.set(this, const jni$_.jlongType(), value); + + static final _id_numVertexBuffers = _class.instanceFieldId( + r'numVertexBuffers', + r'I', + ); + + /// from: `public int numVertexBuffers` + int get numVertexBuffers => + _id_numVertexBuffers.get(this, const jni$_.jintType()); + + /// from: `public int numVertexBuffers` + set numVertexBuffers(int value) => + _id_numVertexBuffers.set(this, const jni$_.jintType(), value); + + static final _id_vertexUpdateBytes = _class.instanceFieldId( + r'vertexUpdateBytes', + r'J', + ); + + /// from: `public long vertexUpdateBytes` + int get vertexUpdateBytes => + _id_vertexUpdateBytes.get(this, const jni$_.jlongType()); + + /// from: `public long vertexUpdateBytes` + set vertexUpdateBytes(int value) => + _id_vertexUpdateBytes.set(this, const jni$_.jlongType(), value); + + static final _id_numUniformBuffers = _class.instanceFieldId( + r'numUniformBuffers', + r'I', + ); + + /// from: `public int numUniformBuffers` + int get numUniformBuffers => + _id_numUniformBuffers.get(this, const jni$_.jintType()); + + /// from: `public int numUniformBuffers` + set numUniformBuffers(int value) => + _id_numUniformBuffers.set(this, const jni$_.jintType(), value); + + static final _id_numUniformUpdates = _class.instanceFieldId( + r'numUniformUpdates', + r'I', + ); + + /// from: `public int numUniformUpdates` + int get numUniformUpdates => + _id_numUniformUpdates.get(this, const jni$_.jintType()); + + /// from: `public int numUniformUpdates` + set numUniformUpdates(int value) => + _id_numUniformUpdates.set(this, const jni$_.jintType(), value); + + static final _id_uniformUpdateBytes = _class.instanceFieldId( + r'uniformUpdateBytes', + r'J', + ); + + /// from: `public long uniformUpdateBytes` + int get uniformUpdateBytes => + _id_uniformUpdateBytes.get(this, const jni$_.jlongType()); + + /// from: `public long uniformUpdateBytes` + set uniformUpdateBytes(int value) => + _id_uniformUpdateBytes.set(this, const jni$_.jlongType(), value); + + static final _id_memTextures = _class.instanceFieldId(r'memTextures', r'I'); + + /// from: `public int memTextures` + int get memTextures => _id_memTextures.get(this, const jni$_.jintType()); + + /// from: `public int memTextures` + set memTextures(int value) => + _id_memTextures.set(this, const jni$_.jintType(), value); + + static final _id_memBuffers = _class.instanceFieldId(r'memBuffers', r'I'); + + /// from: `public int memBuffers` + int get memBuffers => _id_memBuffers.get(this, const jni$_.jintType()); + + /// from: `public int memBuffers` + set memBuffers(int value) => + _id_memBuffers.set(this, const jni$_.jintType(), value); + + static final _id_memIndexBuffers = _class.instanceFieldId( + r'memIndexBuffers', + r'I', + ); + + /// from: `public int memIndexBuffers` + int get memIndexBuffers => + _id_memIndexBuffers.get(this, const jni$_.jintType()); + + /// from: `public int memIndexBuffers` + set memIndexBuffers(int value) => + _id_memIndexBuffers.set(this, const jni$_.jintType(), value); + + static final _id_memVertexBuffers = _class.instanceFieldId( + r'memVertexBuffers', + r'I', + ); + + /// from: `public int memVertexBuffers` + int get memVertexBuffers => + _id_memVertexBuffers.get(this, const jni$_.jintType()); + + /// from: `public int memVertexBuffers` + set memVertexBuffers(int value) => + _id_memVertexBuffers.set(this, const jni$_.jintType(), value); + + static final _id_memUniformBuffers = _class.instanceFieldId( + r'memUniformBuffers', + r'I', + ); + + /// from: `public int memUniformBuffers` + int get memUniformBuffers => + _id_memUniformBuffers.get(this, const jni$_.jintType()); + + /// from: `public int memUniformBuffers` + set memUniformBuffers(int value) => + _id_memUniformBuffers.set(this, const jni$_.jintType(), value); + + static final _id_stencilClears = _class.instanceFieldId( + r'stencilClears', + r'I', + ); + + /// from: `public int stencilClears` + int get stencilClears => _id_stencilClears.get(this, const jni$_.jintType()); + + /// from: `public int stencilClears` + set stencilClears(int value) => + _id_stencilClears.set(this, const jni$_.jintType(), value); + + static final _id_stencilUpdates = _class.instanceFieldId( + r'stencilUpdates', + r'I', + ); + + /// from: `public int stencilUpdates` + int get stencilUpdates => + _id_stencilUpdates.get(this, const jni$_.jintType()); + + /// from: `public int stencilUpdates` + set stencilUpdates(int value) => + _id_stencilUpdates.set(this, const jni$_.jintType(), 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 RenderingStats() { + return RenderingStats.fromReference( + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); + } +} + +final class $RenderingStats$NullableType + extends jni$_.JObjType { + @jni$_.internal + const $RenderingStats$NullableType(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/maplibre/android/maps/RenderingStats;'; + + @jni$_.internal + @core$_.override + RenderingStats? fromReference(jni$_.JReference reference) => + reference.isNull ? null : RenderingStats.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 => ($RenderingStats$NullableType).hashCode; + + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == ($RenderingStats$NullableType) && + other is $RenderingStats$NullableType; + } +} + +final class $RenderingStats$Type extends jni$_.JObjType { + @jni$_.internal + const $RenderingStats$Type(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/maplibre/android/maps/RenderingStats;'; + + @jni$_.internal + @core$_.override + RenderingStats fromReference(jni$_.JReference reference) => + RenderingStats.fromReference(reference); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => + const $RenderingStats$NullableType(); + + @jni$_.internal + @core$_.override + final superCount = 1; + + @core$_.override + int get hashCode => ($RenderingStats$Type).hashCode; + + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == ($RenderingStats$Type) && + other is $RenderingStats$Type; + } +} diff --git a/lib/src/platform/android/jni/org/maplibre/android/maps/Style.dart b/lib/src/platform/android/jni/org/maplibre/android/maps/Style.dart index be965884..0e0066bb 100644 --- a/lib/src/platform/android/jni/org/maplibre/android/maps/Style.dart +++ b/lib/src/platform/android/jni/org/maplibre/android/maps/Style.dart @@ -1,25 +1,13 @@ -// Autogenerated by jnigen. DO NOT EDIT! - -// ignore_for_file: public_member_api_docs -// ignore_for_file: require_trailing_commas -// ignore_for_file: unnecessary_raw_strings -// ignore_for_file: avoid_field_initializers_in_const_classes -// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes -// ignore_for_file: sort_constructors_first -// ignore_for_file: avoid_positional_boolean_parameters -// ignore_for_file: sort_unnamed_constructors_first -// ignore_for_file: always_use_package_imports -// ignore_for_file: use_late_for_private_fields_and_variables -// ignore_for_file: one_member_abstracts -// ignore_for_file: always_put_required_named_parameters_first - -// Autogenerated by jnigen. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT! + +// ignore_for_file: type=lint // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -73,13 +61,13 @@ class Style$Builder$ImageWrapper extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Style$Builder$ImageWrapper.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Style$Builder$ImageWrapper.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/Style$Builder$ImageWrapper'); + r'org/maplibre/android/maps/Style$Builder$ImageWrapper', + ); /// The type which includes information such as the signature of this class. static const nullableType = $Style$Builder$ImageWrapper$NullableType(); @@ -88,24 +76,31 @@ class Style$Builder$ImageWrapper extends jni$_.JObject { r'(Ljava/lang/String;Landroid/graphics/Bitmap;Z)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32 - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + int, + ) + >(); /// from: `public void (java.lang.String string, android.graphics.Bitmap bitmap, boolean z)` /// The returned object must be released after use, by calling the [release] method. @@ -116,35 +111,42 @@ class Style$Builder$ImageWrapper extends jni$_.JObject { ) { final _$string = string?.reference ?? jni$_.jNullReference; final _$bitmap = bitmap?.reference ?? jni$_.jNullReference; - return Style$Builder$ImageWrapper.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$string.pointer, - _$bitmap.pointer, - z ? 1 : 0) - .reference); + return Style$Builder$ImageWrapper.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$string.pointer, + _$bitmap.pointer, + z ? 1 : 0, + ).reference, + ); } static final _id_new$1 = _class.constructorId( r'(Ljava/lang/String;Landroid/graphics/Bitmap;ZLjava/util/List;Ljava/util/List;Lorg/maplibre/android/maps/ImageContent;)V', ); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -152,9 +154,11 @@ class Style$Builder$ImageWrapper extends jni$_.JObject { int, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); - /// from: `public void (java.lang.String string, android.graphics.Bitmap bitmap, boolean z, java.util.List list, java.util.List list1, org.maplibre.android.maps.ImageContent imageContent)` + /// from: `public void (java.lang.String string, android.graphics.Bitmap bitmap, boolean z, java.util.List list, java.util.List list1, org.maplibre.android.maps.ImageContent imageContent)` /// The returned object must be released after use, by calling the [release] method. factory Style$Builder$ImageWrapper.new$1( jni$_.JString? string, @@ -169,16 +173,18 @@ class Style$Builder$ImageWrapper extends jni$_.JObject { final _$list = list?.reference ?? jni$_.jNullReference; final _$list1 = list1?.reference ?? jni$_.jNullReference; final _$imageContent = imageContent?.reference ?? jni$_.jNullReference; - return Style$Builder$ImageWrapper.fromReference(_new$1( - _class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, - _$string.pointer, - _$bitmap.pointer, - z ? 1 : 0, - _$list.pointer, - _$list1.pointer, - _$imageContent.pointer) - .reference); + return Style$Builder$ImageWrapper.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$bitmap.pointer, + z ? 1 : 0, + _$list.pointer, + _$list1.pointer, + _$imageContent.pointer, + ).reference, + ); } static final _id_getBitmap = _class.instanceMethodId( @@ -186,23 +192,29 @@ class Style$Builder$ImageWrapper extends jni$_.JObject { r'()Landroid/graphics/Bitmap;', ); - static final _getBitmap = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getBitmap = + 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 android.graphics.Bitmap getBitmap()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getBitmap() { - return _getBitmap(reference.pointer, _id_getBitmap as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _getBitmap( + reference.pointer, + _id_getBitmap as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_getId = _class.instanceMethodId( @@ -210,41 +222,48 @@ class Style$Builder$ImageWrapper extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getId = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getId = + 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 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()); + return _getId( + reference.pointer, + _id_getId as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } - static final _id_isSdf = _class.instanceMethodId( - r'isSdf', - r'()Z', - ); + static final _id_isSdf = _class.instanceMethodId(r'isSdf', r'()Z'); - static final _isSdf = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isSdf = + 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 isSdf()` bool isSdf() { @@ -256,26 +275,33 @@ class Style$Builder$ImageWrapper extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _getStretchX = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getStretchX = + 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 getStretchX()` + /// from: `public java.util.List getStretchX()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList? getStretchX() { return _getStretchX( - reference.pointer, _id_getStretchX as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - imagestretches$_.$ImageStretches$NullableType())); + reference.pointer, + _id_getStretchX as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JListNullableType( + imagestretches$_.$ImageStretches$NullableType(), + ), + ); } static final _id_getStretchY = _class.instanceMethodId( @@ -283,26 +309,33 @@ class Style$Builder$ImageWrapper extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _getStretchY = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getStretchY = + 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 getStretchY()` + /// from: `public java.util.List getStretchY()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList? getStretchY() { return _getStretchY( - reference.pointer, _id_getStretchY as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - imagestretches$_.$ImageStretches$NullableType())); + reference.pointer, + _id_getStretchY as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JListNullableType( + imagestretches$_.$ImageStretches$NullableType(), + ), + ); } static final _id_getContent = _class.instanceMethodId( @@ -310,24 +343,31 @@ class Style$Builder$ImageWrapper extends jni$_.JObject { r'()Lorg/maplibre/android/maps/ImageContent;', ); - static final _getContent = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getContent = + 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 org.maplibre.android.maps.ImageContent getContent()` /// The returned object must be released after use, by calling the [release] method. imagecontent$_.ImageContent? getContent() { - return _getContent(reference.pointer, _id_getContent as jni$_.JMethodIDPtr) - .object( - const imagecontent$_.$ImageContent$NullableType()); + return _getContent( + reference.pointer, + _id_getContent as jni$_.JMethodIDPtr, + ).object( + const imagecontent$_.$ImageContent$NullableType(), + ); } static final _id_convertToImageArray = _class.staticMethodId( @@ -335,19 +375,26 @@ class Style$Builder$ImageWrapper extends jni$_.JObject { r'(Ljava/util/HashMap;Z)[Lorg/maplibre/android/maps/Style$Builder$ImageWrapper;', ); - static final _convertToImageArray = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _convertToImageArray = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); - /// from: `static public java.lang.Object[] convertToImageArray(java.util.HashMap hashMap, boolean z)` + /// from: `static public org.maplibre.android.maps.Style$Builder$ImageWrapper[] convertToImageArray(java.util.HashMap hashMap, boolean z)` /// The returned object must be released after use, by calling the [release] method. static jni$_.JArray? convertToImageArray( jni$_.JObject? hashMap, @@ -355,13 +402,15 @@ class Style$Builder$ImageWrapper extends jni$_.JObject { ) { final _$hashMap = hashMap?.reference ?? jni$_.jNullReference; return _convertToImageArray( - _class.reference.pointer, - _id_convertToImageArray as jni$_.JMethodIDPtr, - _$hashMap.pointer, - z ? 1 : 0) - .object?>( - const jni$_.JArrayNullableType( - $Style$Builder$ImageWrapper$NullableType())); + _class.reference.pointer, + _id_convertToImageArray as jni$_.JMethodIDPtr, + _$hashMap.pointer, + z ? 1 : 0, + ).object?>( + const jni$_.JArrayNullableType( + $Style$Builder$ImageWrapper$NullableType(), + ), + ); } static final _id_convertToImageArray$1 = _class.staticMethodId( @@ -369,30 +418,37 @@ class Style$Builder$ImageWrapper extends jni$_.JObject { r'(Ljava/util/HashMap;ZLjava/util/List;Ljava/util/List;Lorg/maplibre/android/maps/ImageContent;)[Lorg/maplibre/android/maps/Style$Builder$ImageWrapper;', ); - static final _convertToImageArray$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _convertToImageArray$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); - /// from: `static public java.lang.Object[] convertToImageArray(java.util.HashMap hashMap, boolean z, java.util.List list, java.util.List list1, org.maplibre.android.maps.ImageContent imageContent)` + /// from: `static public org.maplibre.android.maps.Style$Builder$ImageWrapper[] convertToImageArray(java.util.HashMap hashMap, boolean z, java.util.List list, java.util.List list1, org.maplibre.android.maps.ImageContent imageContent)` /// The returned object must be released after use, by calling the [release] method. static jni$_.JArray? convertToImageArray$1( jni$_.JObject? hashMap, @@ -406,16 +462,18 @@ class Style$Builder$ImageWrapper extends jni$_.JObject { final _$list1 = list1?.reference ?? jni$_.jNullReference; final _$imageContent = imageContent?.reference ?? jni$_.jNullReference; return _convertToImageArray$1( - _class.reference.pointer, - _id_convertToImageArray$1 as jni$_.JMethodIDPtr, - _$hashMap.pointer, - z ? 1 : 0, - _$list.pointer, - _$list1.pointer, - _$imageContent.pointer) - .object?>( - const jni$_.JArrayNullableType( - $Style$Builder$ImageWrapper$NullableType())); + _class.reference.pointer, + _id_convertToImageArray$1 as jni$_.JMethodIDPtr, + _$hashMap.pointer, + z ? 1 : 0, + _$list.pointer, + _$list1.pointer, + _$imageContent.pointer, + ).object?>( + const jni$_.JArrayNullableType( + $Style$Builder$ImageWrapper$NullableType(), + ), + ); } } @@ -433,10 +491,8 @@ final class $Style$Builder$ImageWrapper$NullableType @core$_.override Style$Builder$ImageWrapper? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Style$Builder$ImageWrapper.fromReference( - reference, - ); + ? null + : Style$Builder$ImageWrapper.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -472,9 +528,7 @@ final class $Style$Builder$ImageWrapper$Type @jni$_.internal @core$_.override Style$Builder$ImageWrapper fromReference(jni$_.JReference reference) => - Style$Builder$ImageWrapper.fromReference( - reference, - ); + Style$Builder$ImageWrapper.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -505,13 +559,13 @@ class Style$Builder$LayerAboveWrapper extends Style$Builder$LayerWrapper { final jni$_.JObjType $type; @jni$_.internal - Style$Builder$LayerAboveWrapper.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Style$Builder$LayerAboveWrapper.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/Style$Builder$LayerAboveWrapper'); + r'org/maplibre/android/maps/Style$Builder$LayerAboveWrapper', + ); /// The type which includes information such as the signature of this class. static const nullableType = $Style$Builder$LayerAboveWrapper$NullableType(); @@ -521,24 +575,29 @@ class Style$Builder$LayerAboveWrapper extends Style$Builder$LayerWrapper { r'()Ljava/lang/String;', ); - static final _getAboveLayer = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAboveLayer = + 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 getAboveLayer()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getAboveLayer() { return _getAboveLayer( - reference.pointer, _id_getAboveLayer as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getAboveLayer as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } } @@ -556,10 +615,8 @@ final class $Style$Builder$LayerAboveWrapper$NullableType @core$_.override Style$Builder$LayerAboveWrapper? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Style$Builder$LayerAboveWrapper.fromReference( - reference, - ); + ? null + : Style$Builder$LayerAboveWrapper.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => @@ -597,9 +654,7 @@ final class $Style$Builder$LayerAboveWrapper$Type @jni$_.internal @core$_.override Style$Builder$LayerAboveWrapper fromReference(jni$_.JReference reference) => - Style$Builder$LayerAboveWrapper.fromReference( - reference, - ); + Style$Builder$LayerAboveWrapper.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => @@ -631,38 +686,41 @@ class Style$Builder$LayerAtWrapper extends Style$Builder$LayerWrapper { final jni$_.JObjType $type; @jni$_.internal - Style$Builder$LayerAtWrapper.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Style$Builder$LayerAtWrapper.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/Style$Builder$LayerAtWrapper'); + r'org/maplibre/android/maps/Style$Builder$LayerAtWrapper', + ); /// The type which includes information such as the signature of this class. static const nullableType = $Style$Builder$LayerAtWrapper$NullableType(); static const type = $Style$Builder$LayerAtWrapper$Type(); - static final _id_getIndex = _class.instanceMethodId( - r'getIndex', - r'()I', - ); + static final _id_getIndex = _class.instanceMethodId(r'getIndex', r'()I'); - static final _getIndex = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getIndex = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int getIndex()` int getIndex() { - return _getIndex(reference.pointer, _id_getIndex as jni$_.JMethodIDPtr) - .integer; + return _getIndex( + reference.pointer, + _id_getIndex as jni$_.JMethodIDPtr, + ).integer; } } @@ -680,10 +738,8 @@ final class $Style$Builder$LayerAtWrapper$NullableType @core$_.override Style$Builder$LayerAtWrapper? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Style$Builder$LayerAtWrapper.fromReference( - reference, - ); + ? null + : Style$Builder$LayerAtWrapper.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => @@ -720,9 +776,7 @@ final class $Style$Builder$LayerAtWrapper$Type @jni$_.internal @core$_.override Style$Builder$LayerAtWrapper fromReference(jni$_.JReference reference) => - Style$Builder$LayerAtWrapper.fromReference( - reference, - ); + Style$Builder$LayerAtWrapper.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => @@ -754,13 +808,13 @@ class Style$Builder$LayerBelowWrapper extends Style$Builder$LayerWrapper { final jni$_.JObjType $type; @jni$_.internal - Style$Builder$LayerBelowWrapper.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Style$Builder$LayerBelowWrapper.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/Style$Builder$LayerBelowWrapper'); + r'org/maplibre/android/maps/Style$Builder$LayerBelowWrapper', + ); /// The type which includes information such as the signature of this class. static const nullableType = $Style$Builder$LayerBelowWrapper$NullableType(); @@ -770,24 +824,29 @@ class Style$Builder$LayerBelowWrapper extends Style$Builder$LayerWrapper { r'()Ljava/lang/String;', ); - static final _getBelowLayer = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getBelowLayer = + 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 getBelowLayer()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getBelowLayer() { return _getBelowLayer( - reference.pointer, _id_getBelowLayer as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getBelowLayer as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } } @@ -805,10 +864,8 @@ final class $Style$Builder$LayerBelowWrapper$NullableType @core$_.override Style$Builder$LayerBelowWrapper? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Style$Builder$LayerBelowWrapper.fromReference( - reference, - ); + ? null + : Style$Builder$LayerBelowWrapper.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => @@ -846,9 +903,7 @@ final class $Style$Builder$LayerBelowWrapper$Type @jni$_.internal @core$_.override Style$Builder$LayerBelowWrapper fromReference(jni$_.JReference reference) => - Style$Builder$LayerBelowWrapper.fromReference( - reference, - ); + Style$Builder$LayerBelowWrapper.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => @@ -880,13 +935,13 @@ class Style$Builder$LayerWrapper extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Style$Builder$LayerWrapper.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Style$Builder$LayerWrapper.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/maplibre/android/maps/Style$Builder$LayerWrapper'); + r'org/maplibre/android/maps/Style$Builder$LayerWrapper', + ); /// The type which includes information such as the signature of this class. static const nullableType = $Style$Builder$LayerWrapper$NullableType(); @@ -896,23 +951,29 @@ class Style$Builder$LayerWrapper extends jni$_.JObject { r'()Lorg/maplibre/android/style/layers/Layer;', ); - static final _getLayer = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLayer = + 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 org.maplibre.android.style.layers.Layer getLayer()` /// The returned object must be released after use, by calling the [release] method. layer$_.Layer? getLayer() { - return _getLayer(reference.pointer, _id_getLayer as jni$_.JMethodIDPtr) - .object(const layer$_.$Layer$NullableType()); + return _getLayer( + reference.pointer, + _id_getLayer as jni$_.JMethodIDPtr, + ).object(const layer$_.$Layer$NullableType()); } } @@ -930,10 +991,8 @@ final class $Style$Builder$LayerWrapper$NullableType @core$_.override Style$Builder$LayerWrapper? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Style$Builder$LayerWrapper.fromReference( - reference, - ); + ? null + : Style$Builder$LayerWrapper.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -969,9 +1028,7 @@ final class $Style$Builder$LayerWrapper$Type @jni$_.internal @core$_.override Style$Builder$LayerWrapper fromReference(jni$_.JReference reference) => - Style$Builder$LayerWrapper.fromReference( - reference, - ); + Style$Builder$LayerWrapper.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -1002,39 +1059,41 @@ class Style$Builder extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Style$Builder.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Style$Builder.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/maps/Style$Builder'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/maps/Style$Builder', + ); /// The type which includes information such as the signature of this class. static const nullableType = $Style$Builder$NullableType(); static const type = $Style$Builder$Type(); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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, - )>(); + ) + > + >('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 Style$Builder() { return Style$Builder.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } static final _id_fromUrl = _class.instanceMethodId( @@ -1042,26 +1101,33 @@ class Style$Builder extends jni$_.JObject { r'(Ljava/lang/String;)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _fromUrl = 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)>(); + static final _fromUrl = + 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 org.maplibre.android.maps.Style$Builder fromUrl(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? fromUrl( - jni$_.JString? string, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; - return _fromUrl(reference.pointer, _id_fromUrl as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $Style$Builder$NullableType()); + Style$Builder fromUrl(jni$_.JString string) { + final _$string = string.reference; + return _fromUrl( + reference.pointer, + _id_fromUrl as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $Style$Builder$Type()); } static final _id_fromUri = _class.instanceMethodId( @@ -1069,26 +1135,33 @@ class Style$Builder extends jni$_.JObject { r'(Ljava/lang/String;)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _fromUri = 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)>(); + static final _fromUri = + 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 org.maplibre.android.maps.Style$Builder fromUri(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? fromUri( - jni$_.JString? string, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; - return _fromUri(reference.pointer, _id_fromUri as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $Style$Builder$NullableType()); + Style$Builder fromUri(jni$_.JString string) { + final _$string = string.reference; + return _fromUri( + reference.pointer, + _id_fromUri as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $Style$Builder$Type()); } static final _id_fromJson = _class.instanceMethodId( @@ -1096,26 +1169,33 @@ class Style$Builder extends jni$_.JObject { r'(Ljava/lang/String;)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _fromJson = 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)>(); + static final _fromJson = + 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 org.maplibre.android.maps.Style$Builder fromJson(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? fromJson( - jni$_.JString? string, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; - return _fromJson(reference.pointer, _id_fromJson as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $Style$Builder$NullableType()); + Style$Builder fromJson(jni$_.JString string) { + final _$string = string.reference; + return _fromJson( + reference.pointer, + _id_fromJson as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $Style$Builder$Type()); } static final _id_withSource = _class.instanceMethodId( @@ -1123,26 +1203,33 @@ class Style$Builder extends jni$_.JObject { r'(Lorg/maplibre/android/style/sources/Source;)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _withSource = 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)>(); + static final _withSource = + 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 org.maplibre.android.maps.Style$Builder withSource(org.maplibre.android.style.sources.Source source)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? withSource( - source$_.Source? source, - ) { - final _$source = source?.reference ?? jni$_.jNullReference; - return _withSource(reference.pointer, _id_withSource as jni$_.JMethodIDPtr, - _$source.pointer) - .object(const $Style$Builder$NullableType()); + Style$Builder withSource(source$_.Source source) { + final _$source = source.reference; + return _withSource( + reference.pointer, + _id_withSource as jni$_.JMethodIDPtr, + _$source.pointer, + ).object(const $Style$Builder$Type()); } static final _id_withSources = _class.instanceMethodId( @@ -1150,26 +1237,33 @@ class Style$Builder extends jni$_.JObject { r'([Lorg/maplibre/android/style/sources/Source;)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _withSources = 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)>(); + static final _withSources = + 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 org.maplibre.android.maps.Style$Builder withSources(org.maplibre.android.style.sources.Source[] sources)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? withSources( - jni$_.JArray? sources, - ) { - final _$sources = sources?.reference ?? jni$_.jNullReference; - return _withSources(reference.pointer, - _id_withSources as jni$_.JMethodIDPtr, _$sources.pointer) - .object(const $Style$Builder$NullableType()); + Style$Builder withSources(jni$_.JArray sources) { + final _$sources = sources.reference; + return _withSources( + reference.pointer, + _id_withSources as jni$_.JMethodIDPtr, + _$sources.pointer, + ).object(const $Style$Builder$Type()); } static final _id_withLayer = _class.instanceMethodId( @@ -1177,26 +1271,33 @@ class Style$Builder extends jni$_.JObject { r'(Lorg/maplibre/android/style/layers/Layer;)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _withLayer = 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)>(); + static final _withLayer = + 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 org.maplibre.android.maps.Style$Builder withLayer(org.maplibre.android.style.layers.Layer layer)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? withLayer( - layer$_.Layer? layer, - ) { - final _$layer = layer?.reference ?? jni$_.jNullReference; - return _withLayer(reference.pointer, _id_withLayer as jni$_.JMethodIDPtr, - _$layer.pointer) - .object(const $Style$Builder$NullableType()); + Style$Builder withLayer(layer$_.Layer layer) { + final _$layer = layer.reference; + return _withLayer( + reference.pointer, + _id_withLayer as jni$_.JMethodIDPtr, + _$layer.pointer, + ).object(const $Style$Builder$Type()); } static final _id_withLayers = _class.instanceMethodId( @@ -1204,26 +1305,33 @@ class Style$Builder extends jni$_.JObject { r'([Lorg/maplibre/android/style/layers/Layer;)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _withLayers = 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)>(); + static final _withLayers = + 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 org.maplibre.android.maps.Style$Builder withLayers(org.maplibre.android.style.layers.Layer[] layers)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? withLayers( - jni$_.JArray? layers, - ) { - final _$layers = layers?.reference ?? jni$_.jNullReference; - return _withLayers(reference.pointer, _id_withLayers as jni$_.JMethodIDPtr, - _$layers.pointer) - .object(const $Style$Builder$NullableType()); + Style$Builder withLayers(jni$_.JArray layers) { + final _$layers = layers.reference; + return _withLayers( + reference.pointer, + _id_withLayers as jni$_.JMethodIDPtr, + _$layers.pointer, + ).object(const $Style$Builder$Type()); } static final _id_withLayerAt = _class.instanceMethodId( @@ -1231,28 +1339,35 @@ class Style$Builder extends jni$_.JObject { r'(Lorg/maplibre/android/style/layers/Layer;I)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _withLayerAt = 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)>(); + static final _withLayerAt = + 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 org.maplibre.android.maps.Style$Builder withLayerAt(org.maplibre.android.style.layers.Layer layer, int i)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? withLayerAt( - layer$_.Layer? layer, - int i, - ) { - final _$layer = layer?.reference ?? jni$_.jNullReference; - return _withLayerAt(reference.pointer, - _id_withLayerAt as jni$_.JMethodIDPtr, _$layer.pointer, i) - .object(const $Style$Builder$NullableType()); + Style$Builder withLayerAt(layer$_.Layer layer, int i) { + final _$layer = layer.reference; + return _withLayerAt( + reference.pointer, + _id_withLayerAt as jni$_.JMethodIDPtr, + _$layer.pointer, + i, + ).object(const $Style$Builder$Type()); } static final _id_withLayerAbove = _class.instanceMethodId( @@ -1260,37 +1375,38 @@ class Style$Builder extends jni$_.JObject { r'(Lorg/maplibre/android/style/layers/Layer;Ljava/lang/String;)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _withLayerAbove = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _withLayerAbove = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public org.maplibre.android.maps.Style$Builder withLayerAbove(org.maplibre.android.style.layers.Layer layer, java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? withLayerAbove( - layer$_.Layer? layer, - jni$_.JString? string, - ) { - final _$layer = layer?.reference ?? jni$_.jNullReference; - final _$string = string?.reference ?? jni$_.jNullReference; + Style$Builder withLayerAbove(layer$_.Layer layer, jni$_.JString string) { + final _$layer = layer.reference; + final _$string = string.reference; return _withLayerAbove( - reference.pointer, - _id_withLayerAbove as jni$_.JMethodIDPtr, - _$layer.pointer, - _$string.pointer) - .object(const $Style$Builder$NullableType()); + reference.pointer, + _id_withLayerAbove as jni$_.JMethodIDPtr, + _$layer.pointer, + _$string.pointer, + ).object(const $Style$Builder$Type()); } static final _id_withLayerBelow = _class.instanceMethodId( @@ -1298,37 +1414,38 @@ class Style$Builder extends jni$_.JObject { r'(Lorg/maplibre/android/style/layers/Layer;Ljava/lang/String;)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _withLayerBelow = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _withLayerBelow = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public org.maplibre.android.maps.Style$Builder withLayerBelow(org.maplibre.android.style.layers.Layer layer, java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? withLayerBelow( - layer$_.Layer? layer, - jni$_.JString? string, - ) { - final _$layer = layer?.reference ?? jni$_.jNullReference; - final _$string = string?.reference ?? jni$_.jNullReference; + Style$Builder withLayerBelow(layer$_.Layer layer, jni$_.JString string) { + final _$layer = layer.reference; + final _$string = string.reference; return _withLayerBelow( - reference.pointer, - _id_withLayerBelow as jni$_.JMethodIDPtr, - _$layer.pointer, - _$string.pointer) - .object(const $Style$Builder$NullableType()); + reference.pointer, + _id_withLayerBelow as jni$_.JMethodIDPtr, + _$layer.pointer, + _$string.pointer, + ).object(const $Style$Builder$Type()); } static final _id_withTransition = _class.instanceMethodId( @@ -1336,29 +1453,35 @@ class Style$Builder extends jni$_.JObject { r'(Lorg/maplibre/android/style/layers/TransitionOptions;)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _withTransition = 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)>(); + static final _withTransition = + 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 org.maplibre.android.maps.Style$Builder withTransition(org.maplibre.android.style.layers.TransitionOptions transitionOptions)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? withTransition( - transitionoptions$_.TransitionOptions? transitionOptions, + Style$Builder withTransition( + transitionoptions$_.TransitionOptions transitionOptions, ) { - final _$transitionOptions = - transitionOptions?.reference ?? jni$_.jNullReference; + final _$transitionOptions = transitionOptions.reference; return _withTransition( - reference.pointer, - _id_withTransition as jni$_.JMethodIDPtr, - _$transitionOptions.pointer) - .object(const $Style$Builder$NullableType()); + reference.pointer, + _id_withTransition as jni$_.JMethodIDPtr, + _$transitionOptions.pointer, + ).object(const $Style$Builder$Type()); } static final _id_withImage = _class.instanceMethodId( @@ -1366,34 +1489,38 @@ class Style$Builder extends jni$_.JObject { r'(Ljava/lang/String;Landroid/graphics/drawable/Drawable;)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _withImage = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _withImage = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public org.maplibre.android.maps.Style$Builder withImage(java.lang.String string, android.graphics.drawable.Drawable drawable)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? withImage( - jni$_.JString? string, - jni$_.JObject? drawable, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; - final _$drawable = drawable?.reference ?? jni$_.jNullReference; - return _withImage(reference.pointer, _id_withImage as jni$_.JMethodIDPtr, - _$string.pointer, _$drawable.pointer) - .object(const $Style$Builder$NullableType()); + Style$Builder withImage(jni$_.JString string, jni$_.JObject drawable) { + final _$string = string.reference; + final _$drawable = drawable.reference; + return _withImage( + reference.pointer, + _id_withImage as jni$_.JMethodIDPtr, + _$string.pointer, + _$drawable.pointer, + ).object(const $Style$Builder$Type()); } static final _id_withImage$1 = _class.instanceMethodId( @@ -1401,52 +1528,59 @@ class Style$Builder extends jni$_.JObject { r'(Ljava/lang/String;Landroid/graphics/drawable/Drawable;Ljava/util/List;Ljava/util/List;Lorg/maplibre/android/maps/ImageContent;)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _withImage$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _withImage$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); - /// from: `public org.maplibre.android.maps.Style$Builder withImage(java.lang.String string, android.graphics.drawable.Drawable drawable, java.util.List list, java.util.List list1, org.maplibre.android.maps.ImageContent imageContent)` + /// from: `public org.maplibre.android.maps.Style$Builder withImage(java.lang.String string, android.graphics.drawable.Drawable drawable, java.util.List list, java.util.List list1, org.maplibre.android.maps.ImageContent imageContent)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? withImage$1( - jni$_.JString? string, - jni$_.JObject? drawable, - jni$_.JList? list, - jni$_.JList? list1, + Style$Builder withImage$1( + jni$_.JString string, + jni$_.JObject drawable, + jni$_.JList list, + jni$_.JList list1, imagecontent$_.ImageContent? imageContent, ) { - final _$string = string?.reference ?? jni$_.jNullReference; - final _$drawable = drawable?.reference ?? jni$_.jNullReference; - final _$list = list?.reference ?? jni$_.jNullReference; - final _$list1 = list1?.reference ?? jni$_.jNullReference; + final _$string = string.reference; + final _$drawable = drawable.reference; + final _$list = list.reference; + final _$list1 = list1.reference; final _$imageContent = imageContent?.reference ?? jni$_.jNullReference; return _withImage$1( - reference.pointer, - _id_withImage$1 as jni$_.JMethodIDPtr, - _$string.pointer, - _$drawable.pointer, - _$list.pointer, - _$list1.pointer, - _$imageContent.pointer) - .object(const $Style$Builder$NullableType()); + reference.pointer, + _id_withImage$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$drawable.pointer, + _$list.pointer, + _$list1.pointer, + _$imageContent.pointer, + ).object(const $Style$Builder$Type()); } static final _id_withDrawableImages = _class.instanceMethodId( @@ -1454,26 +1588,33 @@ class Style$Builder extends jni$_.JObject { r'([Landroid/util/Pair;)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _withDrawableImages = 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)>(); + static final _withDrawableImages = + 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 org.maplibre.android.maps.Style$Builder withDrawableImages(java.lang.Object[] pairs)` + /// from: `public org.maplibre.android.maps.Style$Builder withDrawableImages(android.util.Pair[] pairs)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? withDrawableImages( - jni$_.JArray? pairs, - ) { - final _$pairs = pairs?.reference ?? jni$_.jNullReference; - return _withDrawableImages(reference.pointer, - _id_withDrawableImages as jni$_.JMethodIDPtr, _$pairs.pointer) - .object(const $Style$Builder$NullableType()); + Style$Builder withDrawableImages(jni$_.JArray pairs) { + final _$pairs = pairs.reference; + return _withDrawableImages( + reference.pointer, + _id_withDrawableImages as jni$_.JMethodIDPtr, + _$pairs.pointer, + ).object(const $Style$Builder$Type()); } static final _id_withImage$2 = _class.instanceMethodId( @@ -1481,37 +1622,38 @@ class Style$Builder extends jni$_.JObject { r'(Ljava/lang/String;Landroid/graphics/Bitmap;)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _withImage$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _withImage$2 = + 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$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public org.maplibre.android.maps.Style$Builder withImage(java.lang.String string, android.graphics.Bitmap bitmap)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? withImage$2( - jni$_.JString? string, - jni$_.JObject? bitmap, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; - final _$bitmap = bitmap?.reference ?? jni$_.jNullReference; + Style$Builder withImage$2(jni$_.JString string, jni$_.JObject bitmap) { + final _$string = string.reference; + final _$bitmap = bitmap.reference; return _withImage$2( - reference.pointer, - _id_withImage$2 as jni$_.JMethodIDPtr, - _$string.pointer, - _$bitmap.pointer) - .object(const $Style$Builder$NullableType()); + reference.pointer, + _id_withImage$2 as jni$_.JMethodIDPtr, + _$string.pointer, + _$bitmap.pointer, + ).object(const $Style$Builder$Type()); } static final _id_withImage$3 = _class.instanceMethodId( @@ -1519,52 +1661,59 @@ class Style$Builder extends jni$_.JObject { r'(Ljava/lang/String;Landroid/graphics/Bitmap;Ljava/util/List;Ljava/util/List;Lorg/maplibre/android/maps/ImageContent;)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _withImage$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _withImage$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); - /// from: `public org.maplibre.android.maps.Style$Builder withImage(java.lang.String string, android.graphics.Bitmap bitmap, java.util.List list, java.util.List list1, org.maplibre.android.maps.ImageContent imageContent)` + /// from: `public org.maplibre.android.maps.Style$Builder withImage(java.lang.String string, android.graphics.Bitmap bitmap, java.util.List list, java.util.List list1, org.maplibre.android.maps.ImageContent imageContent)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? withImage$3( - jni$_.JString? string, - jni$_.JObject? bitmap, - jni$_.JList? list, - jni$_.JList? list1, + Style$Builder withImage$3( + jni$_.JString string, + jni$_.JObject bitmap, + jni$_.JList list, + jni$_.JList list1, imagecontent$_.ImageContent? imageContent, ) { - final _$string = string?.reference ?? jni$_.jNullReference; - final _$bitmap = bitmap?.reference ?? jni$_.jNullReference; - final _$list = list?.reference ?? jni$_.jNullReference; - final _$list1 = list1?.reference ?? jni$_.jNullReference; + final _$string = string.reference; + final _$bitmap = bitmap.reference; + final _$list = list.reference; + final _$list1 = list1.reference; final _$imageContent = imageContent?.reference ?? jni$_.jNullReference; return _withImage$3( - reference.pointer, - _id_withImage$3 as jni$_.JMethodIDPtr, - _$string.pointer, - _$bitmap.pointer, - _$list.pointer, - _$list1.pointer, - _$imageContent.pointer) - .object(const $Style$Builder$NullableType()); + reference.pointer, + _id_withImage$3 as jni$_.JMethodIDPtr, + _$string.pointer, + _$bitmap.pointer, + _$list.pointer, + _$list1.pointer, + _$imageContent.pointer, + ).object(const $Style$Builder$Type()); } static final _id_withBitmapImages = _class.instanceMethodId( @@ -1572,26 +1721,33 @@ class Style$Builder extends jni$_.JObject { r'([Landroid/util/Pair;)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _withBitmapImages = 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)>(); + static final _withBitmapImages = + 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 org.maplibre.android.maps.Style$Builder withBitmapImages(java.lang.Object[] pairs)` + /// from: `public org.maplibre.android.maps.Style$Builder withBitmapImages(android.util.Pair[] pairs)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? withBitmapImages( - jni$_.JArray? pairs, - ) { - final _$pairs = pairs?.reference ?? jni$_.jNullReference; - return _withBitmapImages(reference.pointer, - _id_withBitmapImages as jni$_.JMethodIDPtr, _$pairs.pointer) - .object(const $Style$Builder$NullableType()); + Style$Builder withBitmapImages(jni$_.JArray pairs) { + final _$pairs = pairs.reference; + return _withBitmapImages( + reference.pointer, + _id_withBitmapImages as jni$_.JMethodIDPtr, + _$pairs.pointer, + ).object(const $Style$Builder$Type()); } static final _id_withImage$4 = _class.instanceMethodId( @@ -1599,41 +1755,48 @@ class Style$Builder extends jni$_.JObject { r'(Ljava/lang/String;Landroid/graphics/drawable/Drawable;Z)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _withImage$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _withImage$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32 - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + int, + ) + >(); /// from: `public org.maplibre.android.maps.Style$Builder withImage(java.lang.String string, android.graphics.drawable.Drawable drawable, boolean z)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? withImage$4( - jni$_.JString? string, - jni$_.JObject? drawable, + Style$Builder withImage$4( + jni$_.JString string, + jni$_.JObject drawable, bool z, ) { - final _$string = string?.reference ?? jni$_.jNullReference; - final _$drawable = drawable?.reference ?? jni$_.jNullReference; + final _$string = string.reference; + final _$drawable = drawable.reference; return _withImage$4( - reference.pointer, - _id_withImage$4 as jni$_.JMethodIDPtr, - _$string.pointer, - _$drawable.pointer, - z ? 1 : 0) - .object(const $Style$Builder$NullableType()); + reference.pointer, + _id_withImage$4 as jni$_.JMethodIDPtr, + _$string.pointer, + _$drawable.pointer, + z ? 1 : 0, + ).object(const $Style$Builder$Type()); } static final _id_withImage$5 = _class.instanceMethodId( @@ -1641,22 +1804,27 @@ class Style$Builder extends jni$_.JObject { r'(Ljava/lang/String;Landroid/graphics/drawable/Drawable;ZLjava/util/List;Ljava/util/List;Lorg/maplibre/android/maps/ImageContent;)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _withImage$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _withImage$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -1664,33 +1832,35 @@ class Style$Builder extends jni$_.JObject { int, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); - /// from: `public org.maplibre.android.maps.Style$Builder withImage(java.lang.String string, android.graphics.drawable.Drawable drawable, boolean z, java.util.List list, java.util.List list1, org.maplibre.android.maps.ImageContent imageContent)` + /// from: `public org.maplibre.android.maps.Style$Builder withImage(java.lang.String string, android.graphics.drawable.Drawable drawable, boolean z, java.util.List list, java.util.List list1, org.maplibre.android.maps.ImageContent imageContent)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? withImage$5( - jni$_.JString? string, - jni$_.JObject? drawable, + Style$Builder withImage$5( + jni$_.JString string, + jni$_.JObject drawable, bool z, - jni$_.JList? list, - jni$_.JList? list1, + jni$_.JList list, + jni$_.JList list1, imagecontent$_.ImageContent? imageContent, ) { - final _$string = string?.reference ?? jni$_.jNullReference; - final _$drawable = drawable?.reference ?? jni$_.jNullReference; - final _$list = list?.reference ?? jni$_.jNullReference; - final _$list1 = list1?.reference ?? jni$_.jNullReference; + final _$string = string.reference; + final _$drawable = drawable.reference; + final _$list = list.reference; + final _$list1 = list1.reference; final _$imageContent = imageContent?.reference ?? jni$_.jNullReference; return _withImage$5( - reference.pointer, - _id_withImage$5 as jni$_.JMethodIDPtr, - _$string.pointer, - _$drawable.pointer, - z ? 1 : 0, - _$list.pointer, - _$list1.pointer, - _$imageContent.pointer) - .object(const $Style$Builder$NullableType()); + reference.pointer, + _id_withImage$5 as jni$_.JMethodIDPtr, + _$string.pointer, + _$drawable.pointer, + z ? 1 : 0, + _$list.pointer, + _$list1.pointer, + _$imageContent.pointer, + ).object(const $Style$Builder$Type()); } static final _id_withDrawableImages$1 = _class.instanceMethodId( @@ -1698,31 +1868,38 @@ class Style$Builder extends jni$_.JObject { r'(Z[Landroid/util/Pair;)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _withDrawableImages$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int32, jni$_.Pointer)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + static final _withDrawableImages$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32, jni$_.Pointer)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + ) + >(); - /// from: `public org.maplibre.android.maps.Style$Builder withDrawableImages(boolean z, java.lang.Object[] pairs)` + /// from: `public org.maplibre.android.maps.Style$Builder withDrawableImages(boolean z, android.util.Pair[] pairs)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? withDrawableImages$1( + Style$Builder withDrawableImages$1( bool z, - jni$_.JArray? pairs, + jni$_.JArray pairs, ) { - final _$pairs = pairs?.reference ?? jni$_.jNullReference; + final _$pairs = pairs.reference; return _withDrawableImages$1( - reference.pointer, - _id_withDrawableImages$1 as jni$_.JMethodIDPtr, - z ? 1 : 0, - _$pairs.pointer) - .object(const $Style$Builder$NullableType()); + reference.pointer, + _id_withDrawableImages$1 as jni$_.JMethodIDPtr, + z ? 1 : 0, + _$pairs.pointer, + ).object(const $Style$Builder$Type()); } static final _id_withImage$6 = _class.instanceMethodId( @@ -1730,41 +1907,48 @@ class Style$Builder extends jni$_.JObject { r'(Ljava/lang/String;Landroid/graphics/Bitmap;Z)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _withImage$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _withImage$6 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32 - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + int, + ) + >(); /// from: `public org.maplibre.android.maps.Style$Builder withImage(java.lang.String string, android.graphics.Bitmap bitmap, boolean z)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? withImage$6( - jni$_.JString? string, - jni$_.JObject? bitmap, + Style$Builder withImage$6( + jni$_.JString string, + jni$_.JObject bitmap, bool z, ) { - final _$string = string?.reference ?? jni$_.jNullReference; - final _$bitmap = bitmap?.reference ?? jni$_.jNullReference; + final _$string = string.reference; + final _$bitmap = bitmap.reference; return _withImage$6( - reference.pointer, - _id_withImage$6 as jni$_.JMethodIDPtr, - _$string.pointer, - _$bitmap.pointer, - z ? 1 : 0) - .object(const $Style$Builder$NullableType()); + reference.pointer, + _id_withImage$6 as jni$_.JMethodIDPtr, + _$string.pointer, + _$bitmap.pointer, + z ? 1 : 0, + ).object(const $Style$Builder$Type()); } static final _id_withImage$7 = _class.instanceMethodId( @@ -1772,22 +1956,27 @@ class Style$Builder extends jni$_.JObject { r'(Ljava/lang/String;Landroid/graphics/Bitmap;ZLjava/util/List;Ljava/util/List;Lorg/maplibre/android/maps/ImageContent;)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _withImage$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _withImage$7 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -1795,33 +1984,35 @@ class Style$Builder extends jni$_.JObject { int, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); - /// from: `public org.maplibre.android.maps.Style$Builder withImage(java.lang.String string, android.graphics.Bitmap bitmap, boolean z, java.util.List list, java.util.List list1, org.maplibre.android.maps.ImageContent imageContent)` + /// from: `public org.maplibre.android.maps.Style$Builder withImage(java.lang.String string, android.graphics.Bitmap bitmap, boolean z, java.util.List list, java.util.List list1, org.maplibre.android.maps.ImageContent imageContent)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? withImage$7( - jni$_.JString? string, - jni$_.JObject? bitmap, + Style$Builder withImage$7( + jni$_.JString string, + jni$_.JObject bitmap, bool z, - jni$_.JList? list, - jni$_.JList? list1, + jni$_.JList list, + jni$_.JList list1, imagecontent$_.ImageContent? imageContent, ) { - final _$string = string?.reference ?? jni$_.jNullReference; - final _$bitmap = bitmap?.reference ?? jni$_.jNullReference; - final _$list = list?.reference ?? jni$_.jNullReference; - final _$list1 = list1?.reference ?? jni$_.jNullReference; + final _$string = string.reference; + final _$bitmap = bitmap.reference; + final _$list = list.reference; + final _$list1 = list1.reference; final _$imageContent = imageContent?.reference ?? jni$_.jNullReference; return _withImage$7( - reference.pointer, - _id_withImage$7 as jni$_.JMethodIDPtr, - _$string.pointer, - _$bitmap.pointer, - z ? 1 : 0, - _$list.pointer, - _$list1.pointer, - _$imageContent.pointer) - .object(const $Style$Builder$NullableType()); + reference.pointer, + _id_withImage$7 as jni$_.JMethodIDPtr, + _$string.pointer, + _$bitmap.pointer, + z ? 1 : 0, + _$list.pointer, + _$list1.pointer, + _$imageContent.pointer, + ).object(const $Style$Builder$Type()); } static final _id_withBitmapImages$1 = _class.instanceMethodId( @@ -1829,31 +2020,35 @@ class Style$Builder extends jni$_.JObject { r'(Z[Landroid/util/Pair;)Lorg/maplibre/android/maps/Style$Builder;', ); - static final _withBitmapImages$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int32, jni$_.Pointer)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + static final _withBitmapImages$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32, jni$_.Pointer)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + ) + >(); - /// from: `public org.maplibre.android.maps.Style$Builder withBitmapImages(boolean z, java.lang.Object[] pairs)` + /// from: `public org.maplibre.android.maps.Style$Builder withBitmapImages(boolean z, android.util.Pair[] pairs)` /// The returned object must be released after use, by calling the [release] method. - Style$Builder? withBitmapImages$1( - bool z, - jni$_.JArray? pairs, - ) { - final _$pairs = pairs?.reference ?? jni$_.jNullReference; + Style$Builder withBitmapImages$1(bool z, jni$_.JArray pairs) { + final _$pairs = pairs.reference; return _withBitmapImages$1( - reference.pointer, - _id_withBitmapImages$1 as jni$_.JMethodIDPtr, - z ? 1 : 0, - _$pairs.pointer) - .object(const $Style$Builder$NullableType()); + reference.pointer, + _id_withBitmapImages$1 as jni$_.JMethodIDPtr, + z ? 1 : 0, + _$pairs.pointer, + ).object(const $Style$Builder$Type()); } static final _id_getUri = _class.instanceMethodId( @@ -1861,23 +2056,29 @@ class Style$Builder extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getUri = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getUri = + 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 getUri()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getUri() { - return _getUri(reference.pointer, _id_getUri as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getUri( + reference.pointer, + _id_getUri as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getJson = _class.instanceMethodId( @@ -1885,23 +2086,29 @@ class Style$Builder extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getJson = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getJson = + 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 getJson()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getJson() { - return _getJson(reference.pointer, _id_getJson as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getJson( + reference.pointer, + _id_getJson as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getSources = _class.instanceMethodId( @@ -1909,25 +2116,33 @@ class Style$Builder extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _getSources = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getSources = + 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 getSources()` + /// from: `public java.util.List getSources()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList? getSources() { - return _getSources(reference.pointer, _id_getSources as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - source$_.$Source$NullableType())); + return _getSources( + reference.pointer, + _id_getSources as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JListNullableType( + source$_.$Source$NullableType(), + ), + ); } static final _id_getLayers = _class.instanceMethodId( @@ -1935,51 +2150,67 @@ class Style$Builder extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _getLayers = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getLayers = + 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 getLayers()` + /// from: `public java.util.List getLayers()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList? getLayers() { - return _getLayers(reference.pointer, _id_getLayers as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - $Style$Builder$LayerWrapper$NullableType())); - } + return _getLayers( + reference.pointer, + _id_getLayers as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JListNullableType( + $Style$Builder$LayerWrapper$NullableType(), + ), + ); + } static final _id_getImages = _class.instanceMethodId( r'getImages', r'()Ljava/util/List;', ); - static final _getImages = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getImages = + 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 getImages()` + /// from: `public java.util.List getImages()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList? getImages() { - return _getImages(reference.pointer, _id_getImages as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - $Style$Builder$ImageWrapper$NullableType())); + return _getImages( + reference.pointer, + _id_getImages as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JListNullableType( + $Style$Builder$ImageWrapper$NullableType(), + ), + ); } } @@ -1993,11 +2224,8 @@ final class $Style$Builder$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - Style$Builder? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Style$Builder.fromReference( - reference, - ); + Style$Builder? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Style$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2031,9 +2259,7 @@ final class $Style$Builder$Type extends jni$_.JObjType { @jni$_.internal @core$_.override Style$Builder fromReference(jni$_.JReference reference) => - Style$Builder.fromReference( - reference, - ); + Style$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2064,13 +2290,13 @@ class Style$OnStyleLoaded extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Style$OnStyleLoaded.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Style$OnStyleLoaded.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/maplibre/android/maps/Style$OnStyleLoaded'); + static final _class = jni$_.JClass.forName( + r'org/maplibre/android/maps/Style$OnStyleLoaded', + ); /// The type which includes information such as the signature of this class. static const nullableType = $Style$OnStyleLoaded$NullableType(); @@ -2080,25 +2306,32 @@ class Style$OnStyleLoaded extends jni$_.JObject { r'(Lorg/maplibre/android/maps/Style;)V', ); - static final _onStyleLoaded = 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 _onStyleLoaded = + 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 onStyleLoaded(org.maplibre.android.maps.Style style)` - void onStyleLoaded( - Style? style, - ) { - final _$style = style?.reference ?? jni$_.jNullReference; - _onStyleLoaded(reference.pointer, _id_onStyleLoaded as jni$_.JMethodIDPtr, - _$style.pointer) - .check(); + void onStyleLoaded(Style style) { + final _$style = style.reference; + _onStyleLoaded( + reference.pointer, + _id_onStyleLoaded as jni$_.JMethodIDPtr, + _$style.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -2110,19 +2343,16 @@ class Style$OnStyleLoaded extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + 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); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -2133,7 +2363,7 @@ class Style$OnStyleLoaded extends jni$_.JObject { final $a = $i.args; if ($d == r'onStyleLoaded(Lorg/maplibre/android/maps/Style;)V') { _$impls[$p]!.onStyleLoaded( - $a![0]?.as(const $Style$Type(), releaseOriginal: true), + $a![0]!.as(const $Style$Type(), releaseOriginal: true), ); return jni$_.nullptr; } @@ -2171,37 +2401,33 @@ class Style$OnStyleLoaded extends jni$_.JObject { _$impls[$a] = $impl; } - factory Style$OnStyleLoaded.implement( - $Style$OnStyleLoaded $impl, - ) { + factory Style$OnStyleLoaded.implement($Style$OnStyleLoaded $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return Style$OnStyleLoaded.fromReference( - $i.implementReference(), - ); + return Style$OnStyleLoaded.fromReference($i.implementReference()); } } abstract base mixin class $Style$OnStyleLoaded { factory $Style$OnStyleLoaded({ - required void Function(Style? style) onStyleLoaded, + required void Function(Style style) onStyleLoaded, bool onStyleLoaded$async, }) = _$Style$OnStyleLoaded; - void onStyleLoaded(Style? style); + void onStyleLoaded(Style style); bool get onStyleLoaded$async => false; } final class _$Style$OnStyleLoaded with $Style$OnStyleLoaded { _$Style$OnStyleLoaded({ - required void Function(Style? style) onStyleLoaded, + required void Function(Style style) onStyleLoaded, this.onStyleLoaded$async = false, }) : _onStyleLoaded = onStyleLoaded; - final void Function(Style? style) _onStyleLoaded; + final void Function(Style style) _onStyleLoaded; final bool onStyleLoaded$async; - void onStyleLoaded(Style? style) { + void onStyleLoaded(Style style) { return _onStyleLoaded(style); } } @@ -2218,11 +2444,7 @@ final class $Style$OnStyleLoaded$NullableType @jni$_.internal @core$_.override Style$OnStyleLoaded? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : Style$OnStyleLoaded.fromReference( - reference, - ); + reference.isNull ? null : Style$OnStyleLoaded.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2257,9 +2479,7 @@ final class $Style$OnStyleLoaded$Type @jni$_.internal @core$_.override Style$OnStyleLoaded fromReference(jni$_.JReference reference) => - Style$OnStyleLoaded.fromReference( - reference, - ); + Style$OnStyleLoaded.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -2290,13 +2510,13 @@ class Style extends jni$_.JObject { final jni$_.JObjType