DevicePerformanceClassifier

public class DevicePerformanceClassifier

Undocumented

  • Determines the capability class of the device based on hardware specifications. This method evaluates various aspects of the device’s hardware, including:

    • Total RAM (in GB)
    • Number of CPU cores
    • Support MTLGPUFamily (Apple chips)

    Declaration

    Swift

    public static func getDeviceCapabilities() -> DeviceCapability
  • Undocumented

    Declaration

    Swift

    public static func getTotalCPUCoreCount() -> Int
  • Undocumented

    Declaration

    Swift

    public static func getAllSupportedGPUFamily() -> [MTLGPUFamily]
  • Undocumented

    Declaration

    Swift

    public static func getTotalRamInGB() -> Double
  • Determines if the device is a higher-end device based on its specifications.

    Declaration

    Swift

    public static func isHigherEndDevice(_ specification: DeviceSpecification) -> Bool
  • Determines if the device is a mid-range device based on its specifications.

    Declaration

    Swift

    public static func isMidRangeDevice(_ specification: DeviceSpecification) -> Bool
  • Determines if the device is a low-end device based on its specifications.

    Declaration

    Swift

    public static func isLowEndDevice(_ specification: DeviceSpecification) -> Bool