OnDeviceExtension
Extension class for performing on-device operations.
Extension class for performing on-device operations.
The on-device model of a GenerativeModel. The platforms other than Android have none (as Android without the firebase-ai-ondevice library), so GenerativeModel.onDeviceExtension is always null there and no instance exists; its members report the model as unavailable.
Functions
Checks the current status / availability of the on-device AI model.
Checks the current status / availability of the on-device AI model.
Checks the current status / availability of the on-device AI model.
Initiates the download of the on-device AI model.
Initiates the download of the on-device AI model.
Initiates the download of the on-device AI model.
Returns the name of the on-device model.
Returns the name of the on-device model.
Returns the name of the on-device model.