Skip to content

Commit a5e2b8f

Browse files
committed
移除Device.IsIPad
1 parent f920ecc commit a5e2b8f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Plugins/CS/Device.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ public static class Device
4141
/// <returns></returns>
4242
public static bool IsIPhoneNotchScreen() => Device_IsIPhoneNotchScreen();
4343

44-
// 是否在 iPad 运行
45-
public static bool IsIPad() => Device_IsIPad();
4644

4745
/// <summary>
4846
/// 获取当前设备的物理朝向
@@ -74,11 +72,11 @@ public static bool IsRunningOnMac()
7472
=> Device_IsMacCatalyst() || UnityEngine.iOS.Device.iosAppOnMac;
7573

7674
/// <summary>
77-
/// 判断当前app是否运行在iPad环境下
75+
/// 判断当前 app 是否运行在iPad环境下
7876
/// </summary>
7977
/// <returns></returns>
8078
public static bool IsRunningOnIpad()
81-
=> !IsRunningOnMac() && UnityEngine.iOS.Device.generation.ToString().StartsWith("iPad");
79+
=> !IsRunningOnMac() && Device_IsIPad();
8280

8381
/// <summary>
8482
/// 判断当前设备是否越狱

0 commit comments

Comments
 (0)