Files
k3vinb5_aniyomi_bridge/lib/jmodels/janiyomibridge.dart

619 lines
20 KiB
Dart

// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT!
// 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: `dev.k3vinb5.aniyomibridge.AniyomiBridge`
class JAniyomiBridge extends jni$_.JObject {
@jni$_.internal
@core$_.override
final jni$_.JObjType<JAniyomiBridge> $type;
@jni$_.internal
JAniyomiBridge.fromReference(jni$_.JReference reference)
: $type = type,
super.fromReference(reference);
static final _class = jni$_.JClass.forName(
r'dev/k3vinb5/aniyomibridge/AniyomiBridge',
);
/// The type which includes information such as the signature of this class.
static const nullableType = $AniyomiBridge$NullableType();
static const type = $AniyomiBridge$Type();
static final _id_COROUTINE_UTILS = _class.staticFieldId(
r'COROUTINE_UTILS',
r'Ldev/k3vinb5/aniyomibridge/utils/CoroutineUtils;',
);
/// from: `static public final dev.k3vinb5.aniyomibridge.utils.CoroutineUtils COROUTINE_UTILS`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JObject? get COROUTINE_UTILS =>
_id_COROUTINE_UTILS.get(_class, const jni$_.JObjectNullableType());
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 JAniyomiBridge() {
return JAniyomiBridge.fromReference(
_new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference,
);
}
static final _id_init = _class.staticMethodId(r'init', r'()V');
static final _init =
jni$_.ProtectedJniExtensions.lookup<
jni$_.NativeFunction<
jni$_.JThrowablePtr Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
)
>
>('globalEnv_CallStaticVoidMethod')
.asFunction<
jni$_.JThrowablePtr Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
)
>();
/// from: `static public void init()`
static void init() {
_init(_class.reference.pointer, _id_init as jni$_.JMethodIDPtr).check();
}
static final _id_loadAnimeExtension = _class.instanceMethodId(
r'loadAnimeExtension',
r'(Ljava/lang/String;Ljava/lang/String;)V',
);
static final _loadAnimeExtension =
jni$_.ProtectedJniExtensions.lookup<
jni$_.NativeFunction<
jni$_.JThrowablePtr Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
jni$_.VarArgs<
(jni$_.Pointer<jni$_.Void>, jni$_.Pointer<jni$_.Void>)
>,
)
>
>('globalEnv_CallVoidMethod')
.asFunction<
jni$_.JThrowablePtr Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
jni$_.Pointer<jni$_.Void>,
jni$_.Pointer<jni$_.Void>,
)
>();
/// from: `public void loadAnimeExtension(java.lang.String string, java.lang.String string1)`
void loadAnimeExtension(jni$_.JString? string, jni$_.JString? string1) {
final _$string = string?.reference ?? jni$_.jNullReference;
final _$string1 = string1?.reference ?? jni$_.jNullReference;
_loadAnimeExtension(
reference.pointer,
_id_loadAnimeExtension as jni$_.JMethodIDPtr,
_$string.pointer,
_$string1.pointer,
).check();
}
static final _id_loadMangaExtension = _class.instanceMethodId(
r'loadMangaExtension',
r'(Ljava/lang/String;Ljava/lang/String;)V',
);
static final _loadMangaExtension =
jni$_.ProtectedJniExtensions.lookup<
jni$_.NativeFunction<
jni$_.JThrowablePtr Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
jni$_.VarArgs<
(jni$_.Pointer<jni$_.Void>, jni$_.Pointer<jni$_.Void>)
>,
)
>
>('globalEnv_CallVoidMethod')
.asFunction<
jni$_.JThrowablePtr Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
jni$_.Pointer<jni$_.Void>,
jni$_.Pointer<jni$_.Void>,
)
>();
/// from: `public void loadMangaExtension(java.lang.String string, java.lang.String string1)`
void loadMangaExtension(jni$_.JString? string, jni$_.JString? string1) {
final _$string = string?.reference ?? jni$_.jNullReference;
final _$string1 = string1?.reference ?? jni$_.jNullReference;
_loadMangaExtension(
reference.pointer,
_id_loadMangaExtension as jni$_.JMethodIDPtr,
_$string.pointer,
_$string1.pointer,
).check();
}
static final _id_getAnimeLoadedExtensions = _class.instanceMethodId(
r'getAnimeLoadedExtensions',
r'()Ljava/util/List;',
);
static final _getAnimeLoadedExtensions =
jni$_.ProtectedJniExtensions.lookup<
jni$_.NativeFunction<
jni$_.JniResult Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
)
>
>('globalEnv_CallObjectMethod')
.asFunction<
jni$_.JniResult Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
)
>();
/// from: `public java.util.List<java.lang.String> getAnimeLoadedExtensions()`
/// The returned object must be released after use, by calling the [release] method.
jni$_.JList<jni$_.JString?>? getAnimeLoadedExtensions() {
return _getAnimeLoadedExtensions(
reference.pointer,
_id_getAnimeLoadedExtensions as jni$_.JMethodIDPtr,
).object<jni$_.JList<jni$_.JString?>?>(
const jni$_.JListNullableType<jni$_.JString?>(
jni$_.JStringNullableType(),
),
);
}
static final _id_getMangaLoadedExtensions = _class.instanceMethodId(
r'getMangaLoadedExtensions',
r'()Ljava/util/List;',
);
static final _getMangaLoadedExtensions =
jni$_.ProtectedJniExtensions.lookup<
jni$_.NativeFunction<
jni$_.JniResult Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
)
>
>('globalEnv_CallObjectMethod')
.asFunction<
jni$_.JniResult Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
)
>();
/// from: `public java.util.List<java.lang.String> getMangaLoadedExtensions()`
/// The returned object must be released after use, by calling the [release] method.
jni$_.JList<jni$_.JString?>? getMangaLoadedExtensions() {
return _getMangaLoadedExtensions(
reference.pointer,
_id_getMangaLoadedExtensions as jni$_.JMethodIDPtr,
).object<jni$_.JList<jni$_.JString?>?>(
const jni$_.JListNullableType<jni$_.JString?>(
jni$_.JStringNullableType(),
),
);
}
static final _id_getAnimeSearchResults = _class.instanceMethodId(
r'getAnimeSearchResults',
r'(Ljava/lang/String;ILjava/lang/String;)Ljava/util/List;',
);
static final _getAnimeSearchResults =
jni$_.ProtectedJniExtensions.lookup<
jni$_.NativeFunction<
jni$_.JniResult Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
jni$_.VarArgs<
(
jni$_.Pointer<jni$_.Void>,
jni$_.Int32,
jni$_.Pointer<jni$_.Void>,
)
>,
)
>
>('globalEnv_CallObjectMethod')
.asFunction<
jni$_.JniResult Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
jni$_.Pointer<jni$_.Void>,
int,
jni$_.Pointer<jni$_.Void>,
)
>();
/// from: `public java.util.List<eu.kanade.tachiyomi.animesource.model.SAnime> getAnimeSearchResults(java.lang.String string, int i, java.lang.String string1)`
/// The returned object must be released after use, by calling the [release] method.
jni$_.JList<jni$_.JObject?>? getAnimeSearchResults(
jni$_.JString? string,
int i,
jni$_.JString? string1,
) {
final _$string = string?.reference ?? jni$_.jNullReference;
final _$string1 = string1?.reference ?? jni$_.jNullReference;
return _getAnimeSearchResults(
reference.pointer,
_id_getAnimeSearchResults as jni$_.JMethodIDPtr,
_$string.pointer,
i,
_$string1.pointer,
).object<jni$_.JList<jni$_.JObject?>?>(
const jni$_.JListNullableType<jni$_.JObject?>(
jni$_.JObjectNullableType(),
),
);
}
static final _id_getMangaSearchResults = _class.instanceMethodId(
r'getMangaSearchResults',
r'(Ljava/lang/String;ILjava/lang/String;)Ljava/util/List;',
);
static final _getMangaSearchResults =
jni$_.ProtectedJniExtensions.lookup<
jni$_.NativeFunction<
jni$_.JniResult Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
jni$_.VarArgs<
(
jni$_.Pointer<jni$_.Void>,
jni$_.Int32,
jni$_.Pointer<jni$_.Void>,
)
>,
)
>
>('globalEnv_CallObjectMethod')
.asFunction<
jni$_.JniResult Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
jni$_.Pointer<jni$_.Void>,
int,
jni$_.Pointer<jni$_.Void>,
)
>();
/// from: `public java.util.List<eu.kanade.tachiyomi.source.model.SManga> getMangaSearchResults(java.lang.String string, int i, java.lang.String string1)`
/// The returned object must be released after use, by calling the [release] method.
jni$_.JList<jni$_.JObject?>? getMangaSearchResults(
jni$_.JString? string,
int i,
jni$_.JString? string1,
) {
final _$string = string?.reference ?? jni$_.jNullReference;
final _$string1 = string1?.reference ?? jni$_.jNullReference;
return _getMangaSearchResults(
reference.pointer,
_id_getMangaSearchResults as jni$_.JMethodIDPtr,
_$string.pointer,
i,
_$string1.pointer,
).object<jni$_.JList<jni$_.JObject?>?>(
const jni$_.JListNullableType<jni$_.JObject?>(
jni$_.JObjectNullableType(),
),
);
}
static final _id_getEpisodeList = _class.instanceMethodId(
r'getEpisodeList',
r'(Leu/kanade/tachiyomi/animesource/model/SAnime;Ljava/lang/String;)Ljava/util/List;',
);
static final _getEpisodeList =
jni$_.ProtectedJniExtensions.lookup<
jni$_.NativeFunction<
jni$_.JniResult Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
jni$_.VarArgs<
(jni$_.Pointer<jni$_.Void>, jni$_.Pointer<jni$_.Void>)
>,
)
>
>('globalEnv_CallObjectMethod')
.asFunction<
jni$_.JniResult Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
jni$_.Pointer<jni$_.Void>,
jni$_.Pointer<jni$_.Void>,
)
>();
/// from: `public java.util.List<eu.kanade.tachiyomi.animesource.model.SEpisode> getEpisodeList(eu.kanade.tachiyomi.animesource.model.SAnime sAnime, java.lang.String string)`
/// The returned object must be released after use, by calling the [release] method.
jni$_.JList<jni$_.JObject?>? getEpisodeList(
jni$_.JObject? sAnime,
jni$_.JString? string,
) {
final _$sAnime = sAnime?.reference ?? jni$_.jNullReference;
final _$string = string?.reference ?? jni$_.jNullReference;
return _getEpisodeList(
reference.pointer,
_id_getEpisodeList as jni$_.JMethodIDPtr,
_$sAnime.pointer,
_$string.pointer,
).object<jni$_.JList<jni$_.JObject?>?>(
const jni$_.JListNullableType<jni$_.JObject?>(
jni$_.JObjectNullableType(),
),
);
}
static final _id_getChapterList = _class.instanceMethodId(
r'getChapterList',
r'(Leu/kanade/tachiyomi/source/model/SManga;Ljava/lang/String;)Ljava/util/List;',
);
static final _getChapterList =
jni$_.ProtectedJniExtensions.lookup<
jni$_.NativeFunction<
jni$_.JniResult Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
jni$_.VarArgs<
(jni$_.Pointer<jni$_.Void>, jni$_.Pointer<jni$_.Void>)
>,
)
>
>('globalEnv_CallObjectMethod')
.asFunction<
jni$_.JniResult Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
jni$_.Pointer<jni$_.Void>,
jni$_.Pointer<jni$_.Void>,
)
>();
/// from: `public java.util.List<eu.kanade.tachiyomi.source.model.SChapter> getChapterList(eu.kanade.tachiyomi.source.model.SManga sManga, java.lang.String string)`
/// The returned object must be released after use, by calling the [release] method.
jni$_.JList<jni$_.JObject?>? getChapterList(
jni$_.JObject? sManga,
jni$_.JString? string,
) {
final _$sManga = sManga?.reference ?? jni$_.jNullReference;
final _$string = string?.reference ?? jni$_.jNullReference;
return _getChapterList(
reference.pointer,
_id_getChapterList as jni$_.JMethodIDPtr,
_$sManga.pointer,
_$string.pointer,
).object<jni$_.JList<jni$_.JObject?>?>(
const jni$_.JListNullableType<jni$_.JObject?>(
jni$_.JObjectNullableType(),
),
);
}
static final _id_getVideoList = _class.instanceMethodId(
r'getVideoList',
r'(Leu/kanade/tachiyomi/animesource/model/SEpisode;Ljava/lang/String;)Ljava/util/List;',
);
static final _getVideoList =
jni$_.ProtectedJniExtensions.lookup<
jni$_.NativeFunction<
jni$_.JniResult Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
jni$_.VarArgs<
(jni$_.Pointer<jni$_.Void>, jni$_.Pointer<jni$_.Void>)
>,
)
>
>('globalEnv_CallObjectMethod')
.asFunction<
jni$_.JniResult Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
jni$_.Pointer<jni$_.Void>,
jni$_.Pointer<jni$_.Void>,
)
>();
/// from: `public java.util.List<eu.kanade.tachiyomi.animesource.model.Video> getVideoList(eu.kanade.tachiyomi.animesource.model.SEpisode sEpisode, java.lang.String string)`
/// The returned object must be released after use, by calling the [release] method.
jni$_.JList<jni$_.JObject?>? getVideoList(
jni$_.JObject? sEpisode,
jni$_.JString? string,
) {
final _$sEpisode = sEpisode?.reference ?? jni$_.jNullReference;
final _$string = string?.reference ?? jni$_.jNullReference;
return _getVideoList(
reference.pointer,
_id_getVideoList as jni$_.JMethodIDPtr,
_$sEpisode.pointer,
_$string.pointer,
).object<jni$_.JList<jni$_.JObject?>?>(
const jni$_.JListNullableType<jni$_.JObject?>(
jni$_.JObjectNullableType(),
),
);
}
static final _id_getPageList = _class.instanceMethodId(
r'getPageList',
r'(Leu/kanade/tachiyomi/source/model/SChapter;Ljava/lang/String;)Ljava/util/List;',
);
static final _getPageList =
jni$_.ProtectedJniExtensions.lookup<
jni$_.NativeFunction<
jni$_.JniResult Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
jni$_.VarArgs<
(jni$_.Pointer<jni$_.Void>, jni$_.Pointer<jni$_.Void>)
>,
)
>
>('globalEnv_CallObjectMethod')
.asFunction<
jni$_.JniResult Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
jni$_.Pointer<jni$_.Void>,
jni$_.Pointer<jni$_.Void>,
)
>();
/// from: `public java.util.List<eu.kanade.tachiyomi.source.model.Page> getPageList(eu.kanade.tachiyomi.source.model.SChapter sChapter, java.lang.String string)`
/// The returned object must be released after use, by calling the [release] method.
jni$_.JList<jni$_.JObject?>? getPageList(
jni$_.JObject? sChapter,
jni$_.JString? string,
) {
final _$sChapter = sChapter?.reference ?? jni$_.jNullReference;
final _$string = string?.reference ?? jni$_.jNullReference;
return _getPageList(
reference.pointer,
_id_getPageList as jni$_.JMethodIDPtr,
_$sChapter.pointer,
_$string.pointer,
).object<jni$_.JList<jni$_.JObject?>?>(
const jni$_.JListNullableType<jni$_.JObject?>(
jni$_.JObjectNullableType(),
),
);
}
}
final class $AniyomiBridge$NullableType extends jni$_.JObjType<JAniyomiBridge?> {
@jni$_.internal
const $AniyomiBridge$NullableType();
@jni$_.internal
@core$_.override
String get signature => r'Ldev/k3vinb5/aniyomibridge/AniyomiBridge;';
@jni$_.internal
@core$_.override
JAniyomiBridge? fromReference(jni$_.JReference reference) =>
reference.isNull ? null : JAniyomiBridge.fromReference(reference);
@jni$_.internal
@core$_.override
jni$_.JObjType get superType => const jni$_.JObjectNullableType();
@jni$_.internal
@core$_.override
jni$_.JObjType<JAniyomiBridge?> get nullableType => this;
@jni$_.internal
@core$_.override
final superCount = 1;
@core$_.override
int get hashCode => ($AniyomiBridge$NullableType).hashCode;
@core$_.override
bool operator ==(Object other) {
return other.runtimeType == ($AniyomiBridge$NullableType) &&
other is $AniyomiBridge$NullableType;
}
}
final class $AniyomiBridge$Type extends jni$_.JObjType<JAniyomiBridge> {
@jni$_.internal
const $AniyomiBridge$Type();
@jni$_.internal
@core$_.override
String get signature => r'Ldev/k3vinb5/aniyomibridge/AniyomiBridge;';
@jni$_.internal
@core$_.override
JAniyomiBridge fromReference(jni$_.JReference reference) =>
JAniyomiBridge.fromReference(reference);
@jni$_.internal
@core$_.override
jni$_.JObjType get superType => const jni$_.JObjectNullableType();
@jni$_.internal
@core$_.override
jni$_.JObjType<JAniyomiBridge?> get nullableType =>
const $AniyomiBridge$NullableType();
@jni$_.internal
@core$_.override
final superCount = 1;
@core$_.override
int get hashCode => ($AniyomiBridge$Type).hashCode;
@core$_.override
bool operator ==(Object other) {
return other.runtimeType == ($AniyomiBridge$Type) &&
other is $AniyomiBridge$Type;
}
}