We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f920ecc commit a5e2b8fCopy full SHA for a5e2b8f
1 file changed
Plugins/CS/Device.cs
@@ -41,8 +41,6 @@ public static class Device
41
/// <returns></returns>
42
public static bool IsIPhoneNotchScreen() => Device_IsIPhoneNotchScreen();
43
44
- // 是否在 iPad 运行
45
- public static bool IsIPad() => Device_IsIPad();
46
47
/// <summary>
48
/// 获取当前设备的物理朝向
@@ -74,11 +72,11 @@ public static bool IsRunningOnMac()
74
72
=> Device_IsMacCatalyst() || UnityEngine.iOS.Device.iosAppOnMac;
75
73
76
77
- /// 判断当前app是否运行在iPad环境下
+ /// 判断当前 app 是否运行在iPad环境下
78
/// </summary>
79
80
public static bool IsRunningOnIpad()
81
- => !IsRunningOnMac() && UnityEngine.iOS.Device.generation.ToString().StartsWith("iPad");
+ => !IsRunningOnMac() && Device_IsIPad();
82
83
84
/// 判断当前设备是否越狱
0 commit comments