From b1a7167ca71c902427f103d11952cb8a53ae1612 Mon Sep 17 00:00:00 2001 From: changyunjia <905640960@qq.com> Date: Wed, 15 Jul 2026 15:11:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/BrigdeIOS.cs | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/BrigdeIOS.cs b/Assets/Scripts/BrigdeIOS.cs index d2ab519..954b5e2 100644 --- a/Assets/Scripts/BrigdeIOS.cs +++ b/Assets/Scripts/BrigdeIOS.cs @@ -6,10 +6,38 @@ using UnityEditor; public class BrigdeIOS { + [DllImport("__Internal")] + public static extern void addH5Field(int field1, int field2, int field3, int field4, int field5, string field6, string field7, string dark_url, string light_url, bool is_gift, string web_through_str, string click_add_time); + // [DllImport("__Internal")] + // public static extern void SetTouchWebview(bool flag, bool force = false); + + // [DllImport("__Internal")] + // public static extern void ScrollWebview(float dx, float dy); + + [DllImport("__Internal")] + public static extern void SetPadding(float left, float top, float right, float bottom); [DllImport("__Internal")] public static extern void SetDarkThough(bool though); [DllImport("__Internal")] - public static extern void openWebview(); + public static extern void SetBtn(int left, int top, int right, int bottom); + + [DllImport("__Internal")] + public static extern void ShowH5View(bool flag); + + [DllImport("__Internal")] + public static extern void SetIconProgress(float val); + + [DllImport("__Internal")] + public static extern void ShowFlyBtn(bool flag); + + [DllImport("__Internal")] + public static extern void setFlyBtnTag(bool flag); + [DllImport("__Internal")] + public static extern void setRewardBtnTag(bool flag); + [DllImport("__Internal")] + public static extern void copyText(string text); + [DllImport("__Internal")] + public static extern void OpenWv(); [DllImport("__Internal")] public static extern void showGameA(bool flag); }