androidchatsdk / Glad App Android SDK / Gladly / initialize

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.

Parameters

context - Activity/application context to be initialized with.

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

Exceptions

GladlyError.InternalError - if initialization fails.