类 PlatformDetector

java.lang.Object
io.github.amsonix.molt.internal.reschiper.android.PlatformDetector

public class PlatformDetector extends Object
Utility class for detecting the current platform/operating system.
  • 字段详细资料

    • PLATFORM_UNKNOWN

      public static final int PLATFORM_UNKNOWN
      Constant representing an unknown platform.
      另请参阅:
    • PLATFORM_LINUX

      public static final int PLATFORM_LINUX
      Constant representing the Linux platform.
      另请参阅:
    • PLATFORM_WINDOWS

      public static final int PLATFORM_WINDOWS
      Constant representing the Windows platform.
      另请参阅:
    • PLATFORM_DARWIN

      public static final int PLATFORM_DARWIN
      Constant representing the macOS (Darwin) platform.
      另请参阅:
  • 构造器详细资料

    • PlatformDetector

      public PlatformDetector()
  • 方法详细资料

    • currentPlatform

      public static int currentPlatform()
      Detects and returns the current platform/operating system.
      返回:
      An integer representing the current platform: - PLATFORM_UNKNOWN if the platform cannot be determined. - PLATFORM_LINUX if the platform is Linux. - PLATFORM_WINDOWS if the platform is Windows. - PLATFORM_DARWIN if the platform is macOS (Darwin).