ejenix_flutter library

Classes

AssetNativeBridge
The native entry points this bundle needs.
Ejenix
Entry point for the Ejenix Flutter SDK.
EjenixAssetBundle
A drop-in AssetBundle backed by Ejenix, falling back to another bundle.
EjenixAssetEntry
One entry of the active bundle's manifest, without its bytes.
EjenixBootstrapPayload
A verified LiveOps bootstrap payload: config, flags and metadata.
EjenixCacheStore
Persists the last verified LiveOps payload for offline/fallback reads.
EjenixClient
A live Ejenix session — the object returned by Ejenix.initialize.
EjenixCodePush
Code push: checking for a patch, applying it, and the background cadence.
EjenixCodePushOptions
Options controlling the native code-push updater (channel, mode, keys).
EjenixCodePushUpdate
The result of one code-push check: whether an update is available, and the runtime status and reason behind that answer.
EjenixEd25519Verifier
An EjenixSignatureVerifier using Ed25519 over the payload.
EjenixEvents
Analytics events, queued on the device and sent in batches.
EjenixFeatureFlags
Feature flags carried by the current bootstrap payload.
EjenixFileCacheStore
A file-backed EjenixCacheStore for on-device persistence.
EjenixHmacSha256Verifier
An EjenixSignatureVerifier using HMAC-SHA256 over the payload.
EjenixInitOptions
Everything needed to initialize an EjenixClient.
EjenixMemoryCacheStore
An in-memory EjenixCacheStore (tests and ephemeral sessions).
EjenixMethodChannelUpdaterRuntime
An EjenixUpdaterRuntime backed by a platform MethodChannel.
EjenixNativeUpdaterConfig
Configuration passed to the native updater bridge.
EjenixPatchInfo
The updater's account of the patch state for this launch: a runtime status, the reason behind it, and the patch number when one is installed.
EjenixRemoteConfig
Typed reads of the remote config carried by the current bootstrap payload.
EjenixSduiActionDispatcher
Dispatches the six actions.
EjenixSduiActionHost
What a dispatcher needs from the rest of the SDK.
EjenixSduiNative
The native SDUI surface.
EjenixSduiRenderer
The renderer.
EjenixSduiScreen
Renders one server-driven screen, and keeps it current.
EjenixSduiSource
What the widget needs from the native side.
EjenixSduiValidationResult
The outcome of EjenixSduiValidator.validate: whether the document passed, and every error found if it did not.
EjenixSduiValidator
Checks a server-driven UI document against an allowlist before it renders.
EjenixSignatureVerifier
Verifies the signature on a LiveOps payload before it is trusted.
EjenixUpdaterRuntime
The native updater runtime an EjenixClient drives for code-push.
FeatureFlagBuilder
Builds different UI depending on a feature flag's value.
LiveImage
An image whose source URL is resolved from the signed LiveOps payload's asset map, falling back to fallback when the asset is absent or malformed.
LiveScreenRenderer
Renders a signed server-driven UI (SDUI) screen as a widget tree.
LiveText
A Text whose content comes from remote config, with a fallback.
RemoteConfigBuilder<T>
Rebuilds from a remote-config value, falling back when absent.
SduiAction
One action, with its typed parameters.
SduiActionValue
An action, for a property that takes one (onPressed and the like).
SduiBool
A boolean value from the wire format.
SduiColor
An ARGB colour, as the wire format carries it.
SduiDouble
A floating-point value from the wire format.
SduiEdgeInsets
Four edge offsets, in logical pixels.
SduiEnum
A named enum member, carried as its name rather than its index so a reordered enum cannot change the meaning of an already-published screen.
SduiInt
An integer value from the wire format.
SduiNode
One node of a resolved tree.
SduiRenderBudget
The render budget.
SduiRenderSample
One render, timed. The disclosure publishes the last ten of these.
SduiRenderScope
What a builder needs besides its node.
SduiScreen
A screen ready to render, with everything the disclosure publishes.
SduiText
A string value from the wire format.
SduiTextStyle
A text style: size, weight, ARGB colour and alignment.
SduiWidgetList
An ordered list of nested widgets, for a property that takes children.
SduiWidgetValue
A single nested widget, for a property that takes one child.

Enums

EjenixPlatform
The platform an Ejenix client is running on.
EjenixUpdateMode
Whether code-push updates install automatically or on demand.

Properties

currentPlatform → EjenixPlatform
The platform this build is running on, from dart:io.
no setter
defaultApiBaseUrl → Uri
The API the SDK uses when Ejenix.initialize is not given one.
no setter

Functions

ejenixVerifyAssetBytes({required Uint8List bytes, required String sha256Hex}) → bool

Typedefs

SduiWidgetBuilder = Widget Function(BuildContext context, SduiNode node, SduiRenderScope scope)
Builds one widget from one node.

Exceptions / Errors

EjenixAssetIntegrityException
Thrown when an asset IS Ejenix's and its bytes did not match the signed manifest.
EjenixSignatureVerificationException
Thrown when a payload's signature fails verification.
SduiMalformed
Thrown when the resolved JSON is not the shape this build expects.