Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public enum SystemLlmStatus
- Object
- Enum<SystemLlmStatus>
- SystemLlmStatus
ImplementsComparable<SystemLlmStatus>
What the operating system’s own language model can do on this device, for
one
SystemLlmFeature. Returned by SystemLlmClient.getStatus(SystemLlmFeature).Enum constants
UNSUPPORTED | The OS, the device or this build cannot offer the feature. |
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. |
DOWNLOADING | The model is being downloaded or prepared by the OS. |
AVAILABLE | Ready to use. |
Methods
public static SystemLlmStatus[] values() | |
public static SystemLlmStatus valueOf(String name) | |
public boolean isAvailable() | |
public boolean isSupported() |
Inherited methods
Enum constant details
UNSUPPORTED
UNSUPPORTEDThe 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
DISABLEDThe device supports the feature but the user has turned it off, for
example Apple Intelligence disabled in Settings.
DOWNLOADABLE
DOWNLOADABLESupported, but the model is not on the device yet. Call
SystemLlmClient.download(SystemLlmFeature).DOWNLOADING
DOWNLOADINGThe model is being downloaded or prepared by the OS. Ask again later.
AVAILABLE
AVAILABLEReady to use.
Method details
values
public static SystemLlmStatus[] values()valueOf
public static SystemLlmStatus valueOf(String name)isAvailable
public boolean isAvailable()Returns
true for AVAILABLEisSupported
public boolean isSupported()Returns
true when the feature will work on this device once the model
is present: AVAILABLE, DOWNLOADABLE or DOWNLOADING