DigiaEndpoints class

Centralised URL resolver for all Digia SDK endpoints.

Call configure once at SDK init (before any network call). All endpoint getters then return the fully-qualified URL without needing a DigiaConfig.

Constructors

DigiaEndpoints()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Static Properties

apiBase → String
The API base the rewards page calls (same host the SDK uses, /api/v1 included). Port of Android's DigiaEndpoints.apiBase.
no setter
baseUrl → String
The API base URL in use (environment root or Test Kit override). Skin bundles over http are accepted only on this exact origin.
no setter
campaignBundle → String
no setter
gamificationGetRewards → String
no setter
gamificationGrantChance → String
no setter
gamificationState → String
no setter
isTestMode → bool
no setter
liveTestAck → String
no setter
liveTestConnect → String
no setter
liveTestEvent → String
Live-only colour for an in-flight test — a survey's answers, how a nudge was dismissed. Stored nowhere; relayed to the dashboard that started the test and dropped if nobody is watching.
no setter
recordComponents → String
no setter
recordPageCapture → String
no setter
rewardsPageUrl → String
The hosted rewards page when getRewards names none: prod, else the dev build. Port of Android's rewardsPageUrl and iOS's RewardsPageURL defaults.
no setter
sdkConfig → String
no setter
session → String
no setter
submission → String
no setter
track → String
no setter
userContext → String
no setter

Static Methods

configure(DigiaConfig config) → void
gamificationEndpoint(String path) → String
The gamification SDK API path the skin bridge http pass-through uses.
resetForTest() → void
Resets all endpoint state. Use in tests only.
setTestRoot(String rootUrl, {required bool allowInRelease}) → void