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); }