Enum SystemLlmStatus
- All Implemented Interfaces:
Comparable<SystemLlmStatus>
What the operating system's own language model can do on this device, for
one
SystemLlmFeature. Returned by SystemLlmClient.getStatus(SystemLlmFeature).-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReady to use.The device supports the feature but the user has turned it off, for example Apple Intelligence disabled in Settings.Supported, but the model is not on the device yet.The model is being downloaded or prepared by the OS.The OS, the device or this build cannot offer the feature. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanstatic SystemLlmStatusReturns the enum constant of this type with the specified name.static SystemLlmStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
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
The device supports the feature but the user has turned it off, for example Apple Intelligence disabled in Settings. -
DOWNLOADABLE
Supported, but the model is not on the device yet. CallSystemLlmClient.download(SystemLlmFeature). -
DOWNLOADING
The model is being downloaded or prepared by the OS. Ask again later. -
AVAILABLE
Ready to use.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
isAvailable
public boolean isAvailable()- Returns:
trueforAVAILABLE
-
isSupported
public boolean isSupported()- Returns:
truewhen the feature will work on this device once the model is present:AVAILABLE,DOWNLOADABLEorDOWNLOADING
-