InitializationEvents class mixin

An interface that exposes SDK's initialization phases. Below is the order of methods that are called during the initialization process. onStartedInitialization This method called at the beginning of initialization. onStartedDataFetch This method get called when SDK started to fetch data in accordance of provided initialization configs, calls onDataFetchSuccess or onDataFetchFailed next. onStartedCMP This method get called when the CMP phase is started, however does not necessary means that CMP screen is displayed to user, it can be skipped if CMP is accepted previously, eventually the onCmpFinished will be called next. onInitializationFinished This method is called after successfully initialization of the SDK.

Constructors

InitializationEvents.callbacks({InitializationVoidCallback? onCmpFinishedCallback, InitializationVoidCallback? onDataFetchFailedCallback, InitializationVoidCallback? onDataFetchSuccessCallback, InitializationVoidCallback? onInitializationFinishedCallback, InitializationVoidCallback? onStartedCMPCallback, InitializationVoidCallback? onStartedDataFetchCallback, InitializationVoidCallback? onStartedInitializationCallback})
The helper factory constructor, which can be used to listen directly and in-place to specific events without the need to extend, mix, or implement InitializationEvents.
factory

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
onCmpFinished() → void
Called when CMP phase of initialization finishes, by that CMP accepted, rejected, or was accepted or rejected during previous initialization sessions.
onDataFetchFailed() → void
This method get called when SDK failed to fetch data due to configuration or connection issues.
onDataFetchSuccess() → void
This method get called after successfully fetching the configuration data.
onInitializationFinished() → void
Called when SDK successfully finishes the initialization process.
onStartedCMP() → void
Called when CMP phase started, but does not necessarily means that the CMP prompt will be displayed to user (it can be skipped if has previously accepted or rejected), however this method will be called.
onStartedDataFetch() → void
This method get called when SDK started to fetch data in accordance of provided initialization configs
onStartedInitialization() → void
This method called at the beginning of initialization.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited