SDK Lifecycle

InitializationConfig

Class for additional initialization parameters.

Declared In:
lib/main/initialization_config.dart

Declaration:

class InitializationConfig

Properties

Property Type Description
requestValidationSalt String Simple Authentication salt


Synerise

Main SDK class responsible for managing all Synerise modules and core features.

Declared In:
lib/synerise.dart

Related To:
SyneriseInitializer
SettingsImpl
NotificationsImpl
ClientImpl
TrackerImpl
InjectorImpl
ContentImpl

Declaration:

class Synerise

Properties:

Property Type Description
settings SettingsImpl Returns the Settings module
notifications NotificationsImpl Returns the Notifications module
client ClientImpl Returns the Client module
tracker TrackerImpl Returns the Tracker module
injector InjectorImpl Returns the Injector module
content ContentImpl Returns the Content module

Methods:

This method initializes Synerise.

static SyneriseInitializer initializer()
(Click for more details)


This method changes a Profile (formerly Client) API key dynamically.

SyneriseInitializer changeApiKey(String apiKey)
(Click for more details)




SyneriseInitializer

Class responsible for initialization of the SDK.

Declared In:
lib/main/synerise_initializer.dart

Declaration:

class SyneriseInitializer

Methods:

This method sets Profile API Key (formerly Client API Key) for the SDK initialization.

SyneriseInitializer withClientApiKey(String clientApiKey)


This method sets the Synerise API base URL for SDK initialization in a custom environment.

SyneriseInitializer withBaseUrl(String baseUrl)


This method sets the salt string for request validation.

  SyneriseInitializer setRequestValidationSalt(String requestValidationSalt)

This method enables or disables console logs from Synerise SDK.

SyneriseInitializer withDebugModeEnabled(bool debugModeEnabled)

This method enables or disables crash handling by Synerise SDK.

SyneriseInitializer withCrashHandlingEnabled(bool crashHandlingEnabled)

This method sets the salt string for request validation.

SyneriseInitializer setRequestValidationSalt(String requestValidationSalt)

This method initializes Synerise.

Future<void> init() async



😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker