AiutaConfiguration class
This class is used to configure the Aiuta SDK. It contains the authentication configuration, user interface configuration, features configuration, analytics configuration, and debug settings.
- Annotations
-
- @JsonSerializable()
Constructors
- AiutaConfiguration.new({required AiutaAuth auth, required AiutaUserInterfaceConfiguration userInterface, required AiutaFeatures features, AiutaAnalytics? analytics, required AiutaDebugSettings debugSettings})
-
Creates an AiutaConfiguration with
auth
to authenticate Aiuta to use digital try-on API with your credentials,userInterface
to configure the user interface behavior, themes, and colors,features
to configure the features of the SDK and the interaction with thw app,analytics
to receive events from the SDK and send them to your analytics provider, anddebugSettings
to configure the logging and validation of the parameters. - AiutaConfiguration.builtIn({required AiutaAuth auth, required String termsOfServiceUrl, required AiutaTryOnCartHandler cartHandler, AiutaAnalytics? analytics})
-
Creates a built-in configuration with default settings.
factory
-
AiutaConfiguration.fromJson(Map<
String, dynamic> json) -
factory
Properties
- analytics → AiutaAnalytics?
-
Configuration of the analytics handler to receive events from the SDK.
final
- auth → AiutaAuth
-
Authentication configuration.
This is required to authenticate Aiuta to use digital try-on API with your credentials.
Supported authentication methods are AiutaApiKeyAuth or AiutaJwtAuth.
final
- debugSettings → AiutaDebugSettings
-
Configuration of the debug settings of the SDK.
It contains the logging settings and validation policies for various parameters.
final
- features → AiutaFeatures
-
Configuration of the features of the SDK and the interaction with the app.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userInterface → AiutaUserInterfaceConfiguration
-
Configuration of the user interface presentation style, swipe-to-dismiss
policy, and UI components themes for the Aiuta SDK.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited