androidchatsdk / Sidekick Android SDK / Gladly / initialize


fun initialize(context:Context, settings:Settings, ei:EventInterface):Unit

Initializes Gladly, this must be called before any other function is called. This should be called in your application’s onCreate. Note that this should be at the Application level. This is so the SDK can properly use your EventInterface even when started from a Push Notification.


context - Activity/application context to be initialized with.

settings - The configuration settings for the Gladly Chat SDK to be used with.


GladlyError.InternalError - if initialization fails.