Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public enum SystemLlmStatus

  1. Object
  2. Enum<SystemLlmStatus>
  3. 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

UNSUPPORTEDThe OS, the device or this build cannot offer the feature.
DISABLEDThe device supports the feature but the user has turned it off, for example Apple Intelligence disabled in Settings.
DOWNLOADABLESupported, but the model is not on the device yet.
DOWNLOADINGThe model is being downloaded or prepared by the OS.
AVAILABLEReady 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

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

DISABLED
The device supports the feature but the user has turned it off, for example Apple Intelligence disabled in Settings.

DOWNLOADABLE

DOWNLOADABLE
Supported, but the model is not on the device yet. Call SystemLlmClient.download(SystemLlmFeature).

DOWNLOADING

DOWNLOADING
The model is being downloaded or prepared by the OS. Ask again later.

AVAILABLE

AVAILABLE
Ready to use.

Method details

values

public static SystemLlmStatus[] values()

valueOf

public static SystemLlmStatus valueOf(String name)

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