#Configuration

While the default configuration works for most use cases, you might want to configure some custom behaviors.
ℹ️ Your Dashboard configuration will override these configuration values unless they have been set with a read-only mode.

#Usage

func config(_ config: [String: Any], _ readOnly: Bool = false)

#Options

#app_name

  • Type: String
  • Default: ''
Used to set your media's display name for some elements. This value may be overridden by Dashboard configuration.

#locale

  • Type: String
  • Accepted values: 'fr', 'en'
  • Default: 'fr'
Sets the locale you want to use.

#keyboardSettings

  • Type: [String: EngageKeyboardSettings]
  • Default: nil
Sets the scroll view to use when the content will disappear below the keyboard frame. If that happens, the SDK will move up the current field for it to be visible to the user.
⚠️ Setting this property will override every other SDK keyboard related behaviors. The elements's internal scroll handling or a previously set .keyboard event wouldn't have any effect anymore on elements created with this instance of Engage.