Initializing
Overloads:
Initialization is two-phase. Phase 1 is the initialize() call and is all local inference
needs. Phase 2 handles authentication, device registration, and telemetry in the background;
completeServicesInitialization() awaits it when you need to be sure it finished.
Call it from Application.onCreate().
Reading state
getUserId() and getOrganizationId() return String?.
isInitialized, areServicesReady, and isActive are deprecated. Use isReady.
Capabilities
Reports the modalities, backends, and audio formats this build can run, plus an unavailable
list explaining anything missing.
Models
You rarely need load directly. Generation auto-loads what it needs and downloads when
options.model names a model that is absent.
LoadOptions
Registering your own model
Three builders exist:
Hugging Face token
Needed for gated or private repositories. Hold it in encrypted storage, not in source.
Events
Resetting
Unloads models, closes sessions, and clears state.