koah_flutter library

Classes

AdClicked
Emitted when the user clicks the CTA button.
AdServed
Emitted when an ad has been successfully fetched and will be displayed.
AdViewed
Emitted when the ad has been viewed (1 second at 50%+ visibility).
ArticleContext
ConversationContext
FeedContext
ImpressionTracked
Emitted when the ad impression has been successfully tracked with the server.
Koah
Handles API requests for the Koah ad component
KoahAdContext
Discriminator the server uses to match inventory, copy, and eligible formats for an ad request.
KoahAdLoader
Observe ad state for a request from a Flutter widget. Triggers a prefetch on construction if the messageId isn't already cached or in flight, then notifies listeners on transitions (idle → loading → filled | noFill).
KoahAdResult
Outcome of a Koah.requestAd call. Mirrors KoahAdResult on iOS and Android.
KoahCard
A widget that displays a card-style ad. Appearance is driven by the ambient KoahTheme — wrap your subtree in KoahThemeProvider to customize accent, color scheme, font, and card radius.
KoahDimensions
Slot dimensions for an ad request. Mirrors the web SDK's Dimensions.
KoahEvent
Sealed class representing events emitted by Koah widgets.
KoahSampleAd
A hand-constructable sample ad for previews, demo galleries, and snapshot fixtures. This is the public mirror of the SDK's internal, server-decoded ad model: it carries the same renderable fields but can never be produced from a network response, which keeps the contract clear — publishers render ads through KoahCard/Koah.requestAd, they do not fetch ad content and lay it out themselves.
KoahSampleAds
Namespace for the ready-made KoahSampleAd specimens. Access via KoahSampleAd.samples — e.g. KoahSampleAd.samples.poll.
KoahSampleAdvertiser
KoahSampleImage
KoahSampleImageVariant
KoahSamplePollOption
KoahSamplePollResult
Public mirror of a poll vote outcome used to seed a poll sample's result state.
KoahSampleProduct
KoahTheme
Public theming surface for Koah ad components. Wrap your subtree with a KoahThemeProvider passing one of these to customize the look-and-feel of every Koah ad below it in the widget tree. Mirrors Android's KoahTheme and iOS's KoahTheme, plus the web SDK's publisher token surface.
KoahThemeProvider
Provide a KoahTheme to all Koah components below this point in the widget tree. Nesting calls scopes the inner theme to its subtree.
NoAdFill
Emitted when no ad is available for the given query context.
StaticContext

Enums

KoahAdSize
T-shirt size that gates which ad formats the server is allowed to serve for a given request. Mirrors KoahAdSize on iOS and Android.
KoahAdState
Observable projection of an ad request's lifecycle. Callers hold this via KoahAdLoader (or read it once from Koah.resolveAd) to drive feed layout decisions before committing to a view — collapse no-fills, reserve height for pending fills, etc.
KoahCardChrome
Visual chrome of a KoahCard. Mirrors iOS's KoahCardChrome and Android's split between KoahCard (chrome-wrapped) and KoahAd (borderless).
KoahColorScheme
Light, dark, or follow the device.
KoahLogLevel
Logging level for the Koah SDK
KoahPreviewFormat
Publisher-side preview formats. When supplied to Koah.requestPreviewAd, the server short-circuits the ad pipeline and returns a canned specimen for the requested format — useful for previewing every format/size combo during integration without seeding ads in the dashboard. Specimens are not impressions and do not record events.