AegisFlutter class

Constructors

AegisFlutter()

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

Phase 4 consent (GDPR/CCPA categories). Default state per libs/mobile-sdk/tests/drift/consent-default-state.json. Host app's CMP is the persistent source of truth — re-apply on every app start.
final
ecommerce AegisEcommerce
E-commerce helper. Canonical 15-method tracker; parity with libs/web-sdk EcommerceTracker. Method + event-name contract pinned by libs/mobile-sdk/tests/drift/ecommerce-event-names.json.
final
metaPixel MetaPixelCompanion
Phase 4.5 Meta Pixel companion. Records the messageId of every track() call under marketing consent so the host can dedup client-side Meta Pixel events with server-side CAPI via AegisFlutter.lastEventId(eventName). Pinned by libs/mobile-sdk/tests/drift/meta-pixel-companion-contract.json.
final
placements AegisPlacement
Inline content placements module. Parity with libs/web-sdk AegisPlacementManager + the Android PlacementManager — fetches operator-authored inline content via /v1/placements/content and tracks impression/click/conversion via /v1/placements/track-event. Initialized by initialize.
final
plugins PluginRegistry
Phase 4.5 plugin runtime. Register Aegis-shipped plugins or your own integrations. Contract pinned by libs/mobile-sdk/tests/drift/plugin-system-contract.json.
final
push AegisPush
Push lifecycle module (Phase 2). Parity with libs/web-sdk AegisWebPush — POSTs push.delivered/clicked/dismissed to /v1/push/engagement, registers tokens via /v1/devices/register. Wire shape pinned by libs/mobile-sdk/tests/drift/push-engagement-payload.json.
final
user AegisUser
AegisFlutter.user namespace (Phase 4, web 1.13 parity). Typed PII + per-channel opt-in setters with pre-login buffering. Pinned by libs/mobile-sdk/tests/drift/user-namespace-contract.json.
final
workspaceId String?
no setter

Static Methods

alias(String newUserId) Future<void>
bootstrap() Future<AegisBootstrapResult>
Perform the /v1/sdk/bootstrap handshake against the configured control-plane. On success, returns the AegisBootstrapResult AND applies the contained EventGovernanceHint to the NameGovernor.
flush() Future<void>
getAnonymousId() Future<String?>
getSessionId() Future<String?>
getUserId() Future<String?>
group(String groupId, {Map<String, dynamic>? traits}) Future<void>
identify(String userId, {Map<String, dynamic>? traits}) Future<void>
ingestGovernanceHint(EventGovernanceHint? hint) → void
Ingest the event-governance hint directly (advanced — most callers should use bootstrap which does this automatically).
initialize(String writeKey, {String? apiHost, List<CellEndpoint>? cellEndpoints, CellRegion? preferredRegion, bool autoRegionDetection = true, String? workspaceId, String? locationId, bool enableRemoteConfig = true, int batchSize = 20, int batchInterval = 30000, bool enableAdaptiveBatching = false, bool autoSessionTracking = true, int sessionTimeout = 1800000, bool encryptLocalStorage = true, bool debugMode = false}) Future<void>
lastEventId(String eventName) String?
Phase 4.5 Meta Pixel companion. Returns the messageId of the most recent track(eventName) call (only events tracked while marketing consent was granted).
reset() Future<void>
screen(String screenName, {Map<String, dynamic>? properties}) Future<void>
setDebugMode(bool enabled) Future<void>
setSurface(String surfaceKey) → void
In-App Surface Filter tracker — explicitly declare the in-app placement surface (one of the 8 canonical keys). Equivalent to calling screen() with a surface key, but without emitting an analytics screen event. Threads current_surface to /v1/in-app/active and gates render.
track(String eventName, {Map<String, dynamic>? properties}) Future<void>