| // AUTO GENERATED BY JNIGEN 1.0.1. DO NOT EDIT! | |
| // Copyright (c) 2026, the Dart project authors. Please see the AUTHORS file | |
| // for details. All rights reserved. Use of this source code is governed by a | |
| // BSD-style license that can be found in the LICENSE file. | |
| // coverage:ignore-file | |
| // ignore_for_file: prefer_relative_imports | |
| // 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' as core$_; | |
| import 'dart:core' show Object, String; | |
| import 'package:jni/_internal.dart' as jni$_; | |
| import 'package:jni/jni.dart' as jni$_; | |
| const _$jniVersionCheck = jni$_.JniVersionCheck(1, 0); | |
| /// from: `com.github.dart_lang.jni_flutter.JniFlutterPlugin` | |
| extension type JniFlutterPlugin._(jni$_.JObject _$this) | |
| implements jni$_.JObject { | |
| static final _class = jni$_.JClass.forName( | |
| r'com/github/dart_lang/jni_flutter/JniFlutterPlugin'); | |
| /// The type which includes information such as the signature of this class. | |
| static const jni$_.JType<JniFlutterPlugin> type = $JniFlutterPlugin$Type$(); | |
| static final _id_new$ = _class.constructorId( | |
| r'()V', | |
| ); | |
| static final _new$ = jni$_.ProtectedJniExtensions.lookup< | |
| jni$_.NativeFunction< | |
| jni$_.JniResult Function( | |
| jni$_.Pointer<jni$_.Void>, | |
| jni$_.JMethodIDPtr, | |
| )>>('globalEnv_NewObject') | |
| .asFunction< | |
| jni$_.JniResult Function( | |
| jni$_.Pointer<jni$_.Void>, | |
| jni$_.JMethodIDPtr, | |
| )>(); | |
| /// from: `public void <init>()` | |
| /// The returned object must be released after use, by calling the [release] method. | |
| factory JniFlutterPlugin() { | |
| final _$$classRef = _class.reference; | |
| return _new$(_$$classRef.pointer, _id_new$.pointer) | |
| .object<JniFlutterPlugin>(); | |
| } | |
| static final _id_get$applicationContext = _class.staticMethodId( | |
| r'getApplicationContext', | |
| r'()Landroid/content/Context;', | |
| ); | |
| static final _get$applicationContext = jni$_.ProtectedJniExtensions.lookup< | |
| jni$_.NativeFunction< | |
| jni$_.JniResult Function( | |
| jni$_.Pointer<jni$_.Void>, | |
| jni$_.JMethodIDPtr, | |
| )>>('globalEnv_CallStaticObjectMethod') | |
| .asFunction< | |
| jni$_.JniResult Function( | |
| jni$_.Pointer<jni$_.Void>, | |
| 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 get applicationContext { | |
| final _$$classRef = _class.reference; | |
| return _get$applicationContext( | |
| _$$classRef.pointer, _id_get$applicationContext.pointer) | |
| .object<jni$_.JObject>(); | |
| } | |
| static final _id_getActivity = _class.staticMethodId( | |
| r'getActivity', | |
| r'(J)Landroid/app/Activity;', | |
| ); | |
| static final _getActivity = jni$_.ProtectedJniExtensions.lookup< | |
| jni$_.NativeFunction< | |
| jni$_.JniResult Function(jni$_.Pointer<jni$_.Void>, | |
| jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int64,)>)>>( | |
| 'globalEnv_CallStaticObjectMethod') | |
| .asFunction< | |
| jni$_.JniResult Function( | |
| jni$_.Pointer<jni$_.Void>, jni$_.JMethodIDPtr, core$_.int)>(); | |
| /// from: `static public android.app.Activity getActivity(long j)` | |
| /// The returned object must be released after use, by calling the [release] method. | |
| static jni$_.JObject? getActivity( | |
| core$_.int j, | |
| ) { | |
| final _$$classRef = _class.reference; | |
| return _getActivity(_$$classRef.pointer, _id_getActivity.pointer, j) | |
| .object<jni$_.JObject?>(); | |
| } | |
| } | |
| extension JniFlutterPlugin$$Methods on JniFlutterPlugin { | |
| static final _id_onAttachedToEngine = | |
| JniFlutterPlugin._class.instanceMethodId( | |
| r'onAttachedToEngine', | |
| r'(Lio/flutter/embedding/engine/plugins/FlutterPlugin$FlutterPluginBinding;)V', | |
| ); | |
| static final _onAttachedToEngine = jni$_.ProtectedJniExtensions.lookup< | |
| jni$_.NativeFunction< | |
| jni$_.JThrowablePtr Function( | |
| jni$_.Pointer<jni$_.Void>, | |
| jni$_.JMethodIDPtr, | |
| jni$_.VarArgs<(jni$_.Pointer<jni$_.Void>,)>)>>( | |
| 'globalEnv_CallVoidMethod') | |
| .asFunction< | |
| jni$_.JThrowablePtr Function(jni$_.Pointer<jni$_.Void>, | |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); | |
| /// from: `public void onAttachedToEngine(io.flutter.embedding.engine.plugins.FlutterPlugin$FlutterPluginBinding flutterPluginBinding)` | |
| void onAttachedToEngine( | |
| jni$_.JObject flutterPluginBinding, | |
| ) { | |
| final _$$selfRef = reference; | |
| final _$flutterPluginBinding = flutterPluginBinding.reference; | |
| _onAttachedToEngine(_$$selfRef.pointer, _id_onAttachedToEngine.pointer, | |
| _$flutterPluginBinding.pointer) | |
| .check(); | |
| } | |
| static final _id_onDetachedFromEngine = | |
| JniFlutterPlugin._class.instanceMethodId( | |
| r'onDetachedFromEngine', | |
| r'(Lio/flutter/embedding/engine/plugins/FlutterPlugin$FlutterPluginBinding;)V', | |
| ); | |
| static final _onDetachedFromEngine = jni$_.ProtectedJniExtensions.lookup< | |
| jni$_.NativeFunction< | |
| jni$_.JThrowablePtr Function( | |
| jni$_.Pointer<jni$_.Void>, | |
| jni$_.JMethodIDPtr, | |
| jni$_.VarArgs<(jni$_.Pointer<jni$_.Void>,)>)>>( | |
| 'globalEnv_CallVoidMethod') | |
| .asFunction< | |
| jni$_.JThrowablePtr Function(jni$_.Pointer<jni$_.Void>, | |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); | |
| /// from: `public void onDetachedFromEngine(io.flutter.embedding.engine.plugins.FlutterPlugin$FlutterPluginBinding flutterPluginBinding)` | |
| void onDetachedFromEngine( | |
| jni$_.JObject flutterPluginBinding, | |
| ) { | |
| final _$$selfRef = reference; | |
| final _$flutterPluginBinding = flutterPluginBinding.reference; | |
| _onDetachedFromEngine(_$$selfRef.pointer, _id_onDetachedFromEngine.pointer, | |
| _$flutterPluginBinding.pointer) | |
| .check(); | |
| } | |
| static final _id_onAttachedToActivity = | |
| JniFlutterPlugin._class.instanceMethodId( | |
| r'onAttachedToActivity', | |
| r'(Lio/flutter/embedding/engine/plugins/activity/ActivityPluginBinding;)V', | |
| ); | |
| static final _onAttachedToActivity = jni$_.ProtectedJniExtensions.lookup< | |
| jni$_.NativeFunction< | |
| jni$_.JThrowablePtr Function( | |
| jni$_.Pointer<jni$_.Void>, | |
| jni$_.JMethodIDPtr, | |
| jni$_.VarArgs<(jni$_.Pointer<jni$_.Void>,)>)>>( | |
| 'globalEnv_CallVoidMethod') | |
| .asFunction< | |
| jni$_.JThrowablePtr Function(jni$_.Pointer<jni$_.Void>, | |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); | |
| /// from: `public void onAttachedToActivity(io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding activityPluginBinding)` | |
| void onAttachedToActivity( | |
| jni$_.JObject activityPluginBinding, | |
| ) { | |
| final _$$selfRef = reference; | |
| final _$activityPluginBinding = activityPluginBinding.reference; | |
| _onAttachedToActivity(_$$selfRef.pointer, _id_onAttachedToActivity.pointer, | |
| _$activityPluginBinding.pointer) | |
| .check(); | |
| } | |
| static final _id_onDetachedFromActivityForConfigChanges = | |
| JniFlutterPlugin._class.instanceMethodId( | |
| r'onDetachedFromActivityForConfigChanges', | |
| r'()V', | |
| ); | |
| static final _onDetachedFromActivityForConfigChanges = | |
| jni$_.ProtectedJniExtensions.lookup< | |
| jni$_.NativeFunction< | |
| jni$_.JThrowablePtr Function( | |
| jni$_.Pointer<jni$_.Void>, | |
| jni$_.JMethodIDPtr, | |
| )>>('globalEnv_CallVoidMethod') | |
| .asFunction< | |
| jni$_.JThrowablePtr Function( | |
| jni$_.Pointer<jni$_.Void>, | |
| jni$_.JMethodIDPtr, | |
| )>(); | |
| /// from: `public void onDetachedFromActivityForConfigChanges()` | |
| void onDetachedFromActivityForConfigChanges() { | |
| final _$$selfRef = reference; | |
| _onDetachedFromActivityForConfigChanges(_$$selfRef.pointer, | |
| _id_onDetachedFromActivityForConfigChanges.pointer) | |
| .check(); | |
| } | |
| static final _id_onReattachedToActivityForConfigChanges = | |
| JniFlutterPlugin._class.instanceMethodId( | |
| r'onReattachedToActivityForConfigChanges', | |
| r'(Lio/flutter/embedding/engine/plugins/activity/ActivityPluginBinding;)V', | |
| ); | |
| static final _onReattachedToActivityForConfigChanges = | |
| jni$_.ProtectedJniExtensions.lookup< | |
| jni$_.NativeFunction< | |
| jni$_.JThrowablePtr Function( | |
| jni$_.Pointer<jni$_.Void>, | |
| jni$_.JMethodIDPtr, | |
| jni$_.VarArgs<(jni$_.Pointer<jni$_.Void>,)>)>>( | |
| 'globalEnv_CallVoidMethod') | |
| .asFunction< | |
| jni$_.JThrowablePtr Function(jni$_.Pointer<jni$_.Void>, | |
| jni$_.JMethodIDPtr, jni$_.Pointer<jni$_.Void>)>(); | |
| /// from: `public void onReattachedToActivityForConfigChanges(io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding activityPluginBinding)` | |
| void onReattachedToActivityForConfigChanges( | |
| jni$_.JObject activityPluginBinding, | |
| ) { | |
| final _$$selfRef = reference; | |
| final _$activityPluginBinding = activityPluginBinding.reference; | |
| _onReattachedToActivityForConfigChanges( | |
| _$$selfRef.pointer, | |
| _id_onReattachedToActivityForConfigChanges.pointer, | |
| _$activityPluginBinding.pointer) | |
| .check(); | |
| } | |
| static final _id_onDetachedFromActivity = | |
| JniFlutterPlugin._class.instanceMethodId( | |
| r'onDetachedFromActivity', | |
| r'()V', | |
| ); | |
| static final _onDetachedFromActivity = jni$_.ProtectedJniExtensions.lookup< | |
| jni$_.NativeFunction< | |
| jni$_.JThrowablePtr Function( | |
| jni$_.Pointer<jni$_.Void>, | |
| jni$_.JMethodIDPtr, | |
| )>>('globalEnv_CallVoidMethod') | |
| .asFunction< | |
| jni$_.JThrowablePtr Function( | |
| jni$_.Pointer<jni$_.Void>, | |
| jni$_.JMethodIDPtr, | |
| )>(); | |
| /// from: `public void onDetachedFromActivity()` | |
| void onDetachedFromActivity() { | |
| final _$$selfRef = reference; | |
| _onDetachedFromActivity( | |
| _$$selfRef.pointer, _id_onDetachedFromActivity.pointer) | |
| .check(); | |
| } | |
| } | |
| final class $JniFlutterPlugin$Type$ extends jni$_.JType<JniFlutterPlugin> { | |
| @jni$_.internal | |
| const $JniFlutterPlugin$Type$(); | |
| @jni$_.internal | |
| @core$_.override | |
| String get signature => | |
| r'Lcom/github/dart_lang/jni_flutter/JniFlutterPlugin;'; | |
| } |