Structures

The following structures are available globally.

  • Setup the Kindly SDK with your configuration.

    Declaration

    Swift

    public struct CoreSDKConfig : Loggable

    Parameters

    botKey

    The key for your application. See the Kindly API docs for more.

    environment

    Select the ServerEnvironment the API should target. Default value is production.

  • Setup the Kindly SDK with your configuration.

    See more

    Declaration

    Swift

    public struct KindlySDKConfig : Loggable

    Parameters

    botKey

    The key for your application. See the Kindly API docs for more.

    environment

    Select the ServerEnvironment the API should target. Default value is production.

  • A chat button passed to the delegate when a user interacts with buttons in the chat.

    Declaration

    Swift

    public struct ExternalChatButton
  • ChatMessage represents both sent and received messages.

    Messages supports a variety of different content. For example images, buttons and attachments.

    See more

    Declaration

    Swift

    public struct ExternalChatMessage : Hashable, Identifiable, Comparable

Public Event Models

  • Main event structure emitted by the Kindly SDK

    See more

    Declaration

    Swift

    public struct KindlyEvent

Public Event Data Models

Custom Themes

  • A custom theme for the Kindly Chat UI. Only non-nil colors override the default or API theme. Pass an instance to KindlySDK/setCustomTheme(_:) to apply.

    See more

    Declaration

    Swift

    public struct CustomTheme : Theme