Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-31 18:40:29 +08:00
parent bee04fb2b0
commit 90590faaaf
10 changed files with 126 additions and 74 deletions

View File

@@ -73,12 +73,18 @@ abstract final class PiliAndroidHelper {
}
@pragma('vm:prefer-inline')
static void setPipAutoEnterEnabled(bool autoEnable) =>
AndroidHelper.setPipAutoEnterEnabled(
autoEnable,
static void enterPip(int width, int height, bool autoEnter) =>
AndroidHelper.enterPip(
width,
height,
autoEnter,
PlatformDispatcher.instance.engineId!,
);
@pragma('vm:prefer-inline')
static void disableAutoEnterPip() =>
AndroidHelper.disableAutoEnterPip(PlatformDispatcher.instance.engineId!);
static (int, int)? maxScreenSize() {
final jIArr = AndroidHelper.maxScreenSize();
if (jIArr != null) {