Enum SystemLlmStatus

java.lang.Object
java.lang.Enum<SystemLlmStatus>
com.codename1.ai.SystemLlmStatus
All Implemented Interfaces:
Comparable<SystemLlmStatus>

public enum SystemLlmStatus extends Enum<SystemLlmStatus>
What the operating system's own language model can do on this device, for one SystemLlmFeature. Returned by SystemLlmClient.getStatus(SystemLlmFeature).
  • Enum Constant Details

    • UNSUPPORTED

      public static final SystemLlmStatus UNSUPPORTED
      The OS, the device or this build cannot offer the feature. Older OS versions, devices without enough memory, the simulator and the desktop all answer this.
    • DISABLED

      public static final SystemLlmStatus DISABLED
      The device supports the feature but the user has turned it off, for example Apple Intelligence disabled in Settings.
    • DOWNLOADABLE

      public static final SystemLlmStatus DOWNLOADABLE
      Supported, but the model is not on the device yet. Call SystemLlmClient.download(SystemLlmFeature).
    • DOWNLOADING

      public static final SystemLlmStatus DOWNLOADING
      The model is being downloaded or prepared by the OS. Ask again later.
    • AVAILABLE

      public static final SystemLlmStatus AVAILABLE
      Ready to use.
  • Method Details

    • values

      public static SystemLlmStatus[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SystemLlmStatus valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • isAvailable

      public boolean isAvailable()
      Returns:
      true for AVAILABLE
    • isSupported

      public boolean isSupported()
      Returns:
      true when the feature will work on this device once the model is present: AVAILABLE, DOWNLOADABLE or DOWNLOADING