Files
Main/Assets/Plugins/References/FuncellSDK/SDK/SDKBridge.cs

66 lines
1.9 KiB
C#
Raw Normal View History

2025-01-25 04:38:09 +08:00
using Thousandto.CoreSDK;
namespace Thousandto.CoreSDK
{
/// <summary>
/// SDK桥接类作为数据和逻辑处理的中转枢纽
/// </summary>
public class SDKBridge
{
public static SDKPlatform SDKPlatform = SDKPlatform.EDITOR;
//平台id
public static int PlatformID { get; set; }
public static string GetPlatformName()
{
//现在直接返回渠道ID
return PlatformID.ToString();
}
#region
//是否韩国GP平台
public static bool IsKRGP()
{
return PlatformID == (int)ChannelID.KR_Android_Funcell || PlatformID == (int)ChannelID.KR_Android_OneStore || PlatformID == (int)ChannelID.KR_IOS;
}
//判断是否东南亚sdk
public static bool IsDongNanYaSDK()
{
//东南亚android和ios的渠道ID
return PlatformID == (int)ChannelID.SouthEastAsia_Android || PlatformID == (int)ChannelID.SouthEastAsia_IOS || PlatformID == (int)ChannelID.SouthEastAsia_GP;
}
//判断是否港澳台sdk
public static bool IsGangAoTai()
{
return PlatformID == (int)ChannelID.TW_Android || PlatformID == (int)ChannelID.TW_IOS;
}
//国内的
public static bool IsChina()
{
return PlatformID == (int)ChannelID.CN_Android;
}
/// <summary>
/// 4399渠道
/// </summary>
/// <returns></returns>
public static bool Is4399()
{
return PlatformID == (int)ChannelID.CN_CHNID_4399;
}
/// <summary>
/// 欧美渠道
/// </summary>
/// <returns></returns>
public static bool IsOccident()
{
return PlatformID == (int)ChannelID.Occident_Android || PlatformID == (int)ChannelID.Occident_IOS;
}
#endregion
}
}