AirshipAi
Entry point for Airship's on-device AI features, reached via com.urbanairship.Airship.ai.
Gated by com.urbanairship.PrivacyManager.Feature.ON_DEVICE_AI — disabled, no model resolves and every evaluation is skipped.
These APIs are Kotlin-only: supplying context or a model means implementing a suspend function, which Java can't express usefully.
Properties
Functions
Returns the model resolved for usage, or null when none is configured.
Registers the context provider for a usage.
Registers a fallback provider for usages with no provider of their own.
Registers an observer called once per evaluation, whatever the outcome — including evaluations skipped before a model was consulted, such as when none is configured.
Registers a resolver that routes each usage to a model backend.