Outcome enum

Inheritance
Available extensions

Values

positiveAdTapped → const Outcome

Optional outcome: The user has tapped on the ad, and followed any external link provided.

const Outcome(4)
positiveConverted → const Outcome

Optional outcome: The user ended up successfully purchasing the product (all the way through the payment flow)

const Outcome(3)
positiveInteracted → const Outcome

Optional outcome: The user has tapped on the banner, and started the purchase flow, or read more about the offer

const Outcome(2)
positive → const Outcome

A generic, positive signal. Use this for the basic ContextSDK integration, e.g. when showing an upsell prompt.

const Outcome(1)
skipped → const Outcome

Log this when ContextSDK has recommended to skip showing an upsell prompt (.shouldUpsell is false). Logging this explicitly is not required if you use ContextManager.optimize() or ContextManager.calibrate() as it will be handled by ContextSDK automatically.

const Outcome(0)
negative → const Outcome

A generic, negative signal. Use this for the basic ContextSDK integration, on a user e.g. declining or dismissing an upsell prompt

const Outcome(-1)
negativeNotInteracted → const Outcome

Optional outcome: Use this as a negative signal of a user not interacting with e.g. a banner. Depending on your app, we may recommend to log this when the app is put into the background, and hasn't interacted with a banner in any way. This can be done using the logIfNotLoggedYet method

const Outcome(-2)
negativeDismissed → const Outcome

Optional outcome: The user has actively dismissed the banner (e.g. using a close button)

const Outcome(-3)
attNotDetermined → const Outcome
const Outcome(20)
attRestricted → const Outcome
const Outcome(21)
attDenied → const Outcome
const Outcome(22)
attAuthorized → const Outcome
const Outcome(23)
attUnsupportedValue → const Outcome
const Outcome(19)

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 int
final

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<Outcome>
A constant List of the values in this enum, in order of their declaration.