GladlySettings
public struct GladlySettings
GladAppSettings contains configuration options that can be passed when initializing Gladly.
-
The environment specifies where Gladly should connect. Possible values are:
- “PROD” - Gladly Production cluster
- “STAGING” - Gladly integration test cluster
Declaration
Swift
public var environment: String
-
A configurable time interval (in seconds) that specifies how often the unread count is fetched. Updated unread counts can be handled by implementing the GladlyUnreadCountDelegate. The polling mechanism for the unread message count will only run when unreadCountInterval is > 0. Set unreadCountInterval to be 0 to disable the polling mechanism. Default value is 0 and is disabled.
Declaration
Swift
public var unreadCountInterval: Int
-
The customizable UI configurations. See
UIConfiguration
for detailsDeclaration
Swift
public var uiConfiguration: UIConfiguration
-
Initializes the GladlySettings with a specified appId. This also initializes the uiConfiguration with default values.
Declaration
Swift
public init(appId: String)
Parameters
appId
The id specifying your own application.