diff --git a/Assets/Script/SDKManager/AppSDKManager.cs b/Assets/Script/SDKManager/AppSDKManager.cs index 71bbba2..dc7a1a4 100644 --- a/Assets/Script/SDKManager/AppSDKManager.cs +++ b/Assets/Script/SDKManager/AppSDKManager.cs @@ -14,7 +14,6 @@ public class AppSDKManager : D_MonoSingleton public void Init(Action action, bool showLog) { LoggerUtils.Enabled = showLog; - FileParse.Parse(); // AdConfigParser.Parse(); FireBaseSDKManager.Instance.Init(); @@ -112,12 +111,12 @@ public class AppSDKManager : D_MonoSingleton } else { - callback?.Invoke(0); + callback?.Invoke(-1); } } else { - callback?.Invoke(0); + callback?.Invoke(-1); } } @@ -131,6 +130,25 @@ public class AppSDKManager : D_MonoSingleton AdsSDKManager.Instance.HideBanner(); } + public bool IsNativeFullReady() + { + return false; + } + + public void ShowFullNative(string position, Action callback = null) + { + + } + + public void ShowNative(RectTransform rectTransform, Camera camera = null, string position = "") + { + + } + + public void HideNative() + { + + } #endregion @@ -263,6 +281,11 @@ public class AppSDKManager : D_MonoSingleton EFSdk.get().Refresh(); } + public void CanGoback(Action canGobackAction) + { + EFSdk.get().CanGoback(canGobackAction); + } + /// /// 回上一页 /// @@ -353,13 +376,12 @@ public class AppSDKManager : D_MonoSingleton /// 消息类通知弹出间隔,SDK默认设置为60秒(在线参数控制)-Key: messagenotif Value:60 /// /// - public void SetPushMessagenotif() + public void SetPushMessagenotif(int timeSeconds) { if (Application.isEditor) { return; } - int timeSeconds = FireBaseRemoteConfigManager.Instance.GetRemoteConfigInt("messagenotif", 60); EFSdk.get().SetPushMessagenotif(timeSeconds); } @@ -367,13 +389,12 @@ public class AppSDKManager : D_MonoSingleton /// 持续性通知在进入游戏时弹出的时间间隔,SDK默认设置为300秒(在线参数控制 )-Key:persistentnotif Value:300 /// /// - public void SetPushPersistentnotif() + public void SetPushPersistentnotif(int timeSeconds) { if (Application.isEditor) { return; } - int timeSeconds = FireBaseRemoteConfigManager.Instance.GetRemoteConfigInt("persistentnotif", 300); EFSdk.get().SetPushPersistentnotif(timeSeconds); } @@ -387,31 +408,15 @@ public class AppSDKManager : D_MonoSingleton /// 3 进入对应小游戏1界面 /// 4 进入对应小游戏2界面 /// - public void GetJumpPage() + public int GetJumpPage() { if (Application.isEditor) { - return; + return 0; } int pageId = EFSdk.get().GetJumpPage(); - switch (pageId) - { - case 0: - // Nothing to do - break; - case 1: - // 回到游戏主页 - break; - case 2: - // 进入游戏的金币提现界面 - break; - case 3: - // 进入对应小游戏1界面 - break; - case 4: - // 进入对应小游戏2界面 - break; - } + return pageId; + } /// @@ -539,6 +544,14 @@ public class AppSDKManager : D_MonoSingleton } EFSdk.get().ShowToast(message); } + + /// + /// 定时远程推送 + /// + public void AutoLocalPush(bool isOpen) + { + + } #endregion @@ -550,4 +563,39 @@ public class AppSDKManager : D_MonoSingleton { return AdjustNetwork.Instance.InOrganic(); } + + public string GetGaid() + { + return null; + } + + public string GetAndroidId() + { + return null; + } + + public string GetAdid() + { + return null; + } + + public string GetUserAgent() + { + return null; + } + + public string GetSSAccountId() + { + return null; + } + + public string GetSSDistinctId() + { + return null; + } + + public string GetSSSuperProperties() + { + return null; + } }