DropReason enum
Why a presentation ended without ever displaying.
The value strings are a cross-stack contract: they reach the Digia
analytics backend from three runtimes (Dart, Kotlin, Swift) and must match
character for character. cep_interface_enum_values_test.dart pins them.
- Inheritance
- Implemented types
- Available extensions
Values
- notInitialized → const DropReason
-
Digia.initialize()has not been called.const DropReason('not_initialized') - notReady → const DropReason
-
Digia.initialize()was called but the campaign fetch is still running. Core never holds a trigger that arrives before the SDK is ready.const DropReason('not_ready') - initializationFailed → const DropReason
-
The campaign fetch failed; the SDK stays unusable until the host calls
Digia.initialize()again.const DropReason('initialization_failed') - unknownCampaignKey → const DropReason
-
The key is not in the campaign store.
const DropReason('unknown_campaign_key') - invalidConfig → const DropReason
-
Template unparseable, no steps, or an illegal combination of options.
const DropReason('invalid_config') - anchorNotRegistered → const DropReason
-
A guide's first anchor is absent from this screen.
const DropReason('anchor_not_registered') - frequencyCapped → const DropReason
-
The frequency gate said no.
const DropReason('frequency_capped') - screenNotTargeted → const DropReason
-
The campaign is scoped to screens the host is not currently on. Nothing is wrong with it — the user is somewhere else.
const DropReason('screen_not_targeted') - surfaceBusy → const DropReason
-
Another experience already occupies the surface this one needs. The incumbent wins; this trigger is the one turned away. (Contrast superseded, where a newer trigger displaces this one.)
const DropReason('surface_busy') - superseded → const DropReason
-
Displaced by a newer trigger before it displayed.
const DropReason('superseded') - hostNotMounted → const DropReason
-
No host was mounted when the render was due.
const DropReason('host_not_mounted') - timeout → const DropReason
-
Watchdog: no verdict, or no layout, in time.
const DropReason('timeout') - cancelled → const DropReason
-
The owner called
cancel()before it displayed.const DropReason('cancelled') - pluginDetached → const DropReason
-
The owning plugin was unregistered.
const DropReason('plugin_detached') - pendingExpired → const DropReason
-
The plugin held the trigger while core was not ready, for more than 5 minutes.
const DropReason('pending_expired') - digiaManaged → const DropReason
-
A CEP triggered a campaign that Digia decides. Only Digia shows it.
const DropReason('digia_managed') - hostSuppressed → const DropReason
-
The host app suppressed overlays while its own UI was up (see
Digia.setCampaignsSuppressed). Overlay types only — inline keeps rendering — and new deliveries only.const DropReason('host_suppressed') - error → const DropReason
-
An unexpected exception — specifics in PresentationDropped.detail.
const DropReason('error') - userNotVerified → const DropReason
-
The gamification server refused the chance: the user is not verified (
notVerified). Port of Android'sUSER_NOT_VERIFIED.const DropReason('user_not_verified') - campaignNotLive → const DropReason
-
The gamification server refused the chance: the campaign is not live (
notLive). Port of Android'sCAMPAIGN_NOT_LIVE.const DropReason('campaign_not_live') - notInAudience → const DropReason
-
The gamification server refused the chance: the user is not in the campaign's audience (
notInAudience).const DropReason('not_in_audience') - budgetExhausted → const DropReason
-
The gamification server refused the chance: the campaign's budget is exhausted (
budgetUsed).const DropReason('budget_exhausted') - chanceExpired → const DropReason
-
The gamification server refused the chance: the chance expired (
chanceExpired).const DropReason('chance_expired') - notEligible → const DropReason
-
The gamification server refused the chance for any other named reason, or none, or granted it without asking the SDK to show it. Never a cap. Port of Android's
NOT_ELIGIBLE(user_held_out): the wire keeps the historical holdout string, which predates the enum member.const DropReason('user_held_out')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
The pinned string form. Never derive this from name; the two differ.
final
- wire → String
-
DiagnosticReason.wire is this same pinned string.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
DropReason> - A constant List of the values in this enum, in order of their declaration.