Enumerations

The following enumerations are available globally.

  • Undocumented

    See more

    Declaration

    Swift

    public enum CAIMessageType : String, Decodable
  • Enums for supported menu action type

    See more

    Declaration

    Swift

    public enum MenuActionType : String, Equatable
  • An enum representing the kind of messages and its underlying content / data.

    See more

    Declaration

    Swift

    public enum MessageType
  • Enums for supported postback type

    See more

    Declaration

    Swift

    public enum PostbackType : String
  • Enumeration for possible postback types

    See more

    Declaration

    Swift

    public enum PostbackDataType : String

UIModelData format

  • Available Visualization type of CAI cards

    See more

    Declaration

    Swift

    public enum VisualizationType : String, CaseIterable
  • Available themes to consume by your application

    CAI provides 2 themes:

    • Fiori. Follows SAP Fiori Design Language. Mostly used in Enterprise context
    • Casual. Mostly used in Community context

    Both provide support light & dark mode.

    You can also provide you own custom theme.

    For Casual and Fiori, you only need to provide a Color palette. We have a default color palette for both of them but you can provide your own Color palette.

    If you want to use a custom theme, you need to provide a Theme struct as well as a Color palette for it and it’s your responsibility to support light & dark mode. @see Theme.Key to know what keys you can configure.

    See more

    Declaration

    Swift

    public enum CAITheme : CustomStringConvertible

Public