添加接口
This commit is contained in:
parent
a19538fab7
commit
b7be5ed1b6
|
@ -14,7 +14,6 @@ public class AppSDKManager : D_MonoSingleton<AppSDKManager>
|
|||
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<AppSDKManager>
|
|||
}
|
||||
else
|
||||
{
|
||||
callback?.Invoke(0);
|
||||
callback?.Invoke(-1);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
callback?.Invoke(0);
|
||||
callback?.Invoke(-1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -131,6 +130,25 @@ public class AppSDKManager : D_MonoSingleton<AppSDKManager>
|
|||
AdsSDKManager.Instance.HideBanner();
|
||||
}
|
||||
|
||||
public bool IsNativeFullReady()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public void ShowFullNative(string position, Action<bool, double> 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<AppSDKManager>
|
|||
EFSdk.get().Refresh();
|
||||
}
|
||||
|
||||
public void CanGoback(Action<bool> canGobackAction)
|
||||
{
|
||||
EFSdk.get().CanGoback(canGobackAction);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 回上一页
|
||||
/// </summary>
|
||||
|
@ -353,13 +376,12 @@ public class AppSDKManager : D_MonoSingleton<AppSDKManager>
|
|||
/// 消息类通知弹出间隔,SDK默认设置为60秒(在线参数控制)-Key: messagenotif Value:60
|
||||
/// </summary>
|
||||
/// <param name="timeSeconds"></param>
|
||||
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<AppSDKManager>
|
|||
/// 持续性通知在进入游戏时弹出的时间间隔,SDK默认设置为300秒(在线参数控制 )-Key:persistentnotif Value:300
|
||||
/// </summary>
|
||||
/// <param name="timeSeconds"></param>
|
||||
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<AppSDKManager>
|
|||
/// 3 进入对应小游戏1界面
|
||||
/// 4 进入对应小游戏2界面
|
||||
/// </returns>
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -540,6 +545,14 @@ public class AppSDKManager : D_MonoSingleton<AppSDKManager>
|
|||
EFSdk.get().ShowToast(message);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 定时远程推送
|
||||
/// </summary>
|
||||
public void AutoLocalPush(bool isOpen)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
|
@ -550,4 +563,39 @@ public class AppSDKManager : D_MonoSingleton<AppSDKManager>
|
|||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue