Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-31 18:03:13 +08:00
parent fef508ced6
commit 8713af4290
7 changed files with 80 additions and 47 deletions

View File

@@ -357,6 +357,47 @@ extension type AndroidHelper._(jni$_.JObject _$this) implements jni$_.JObject {
_$icon.pointer,
).check();
}
static final _id_enterPip = _class.staticMethodId(
r'enterPip',
r'(JII)V',
);
static final _enterPip =
jni$_.ProtectedJniExtensions.lookup<
jni$_.NativeFunction<
jni$_.JThrowablePtr Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
jni$_.VarArgs<(jni$_.Int64, jni$_.Int32, jni$_.Int32)>,
)
>
>('globalEnv_CallStaticVoidMethod')
.asFunction<
jni$_.JThrowablePtr Function(
jni$_.Pointer<jni$_.Void>,
jni$_.JMethodIDPtr,
core$_.int,
core$_.int,
core$_.int,
)
>();
/// from: `static public void enterPip(long engineId, int width, int height)`
static void enterPip(
core$_.int engineId,
core$_.int width,
core$_.int height,
) {
final _$$classRef = _class.reference;
_enterPip(
_$$classRef.pointer,
_id_enterPip.pointer,
engineId,
width,
height,
).check();
}
}
final class $AndroidHelper$Type$ extends jni$_.JType<AndroidHelper> {