Enumerations
The following enumerations are available globally.
- 
                    
                    
Undocumented
See moreDeclaration
Swift
public enum CAIMessageType : String, Decodable - 
                    
                    
Enums for supported menu action type
See moreDeclaration
Swift
public enum MenuActionType : String, Equatable - 
                    
                    
An enum representing the kind of messages and its underlying content / data.
See moreDeclaration
Swift
public enum MessageType - 
                    
                    
Enums for supported postback type
See moreDeclaration
Swift
public enum PostbackType : String - 
                    
                    
Enumeration for possible postback types
See moreDeclaration
Swift
public enum PostbackDataType : String 
- 
                    
                    
Available Visualization type of CAI cards
See moreDeclaration
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 moreDeclaration
Swift
public enum CAITheme : CustomStringConvertible 
- 
                    
                    
Undocumented
See moreDeclaration
Swift
public enum SAPFontName : String - 
                    
                    
Type for
See moreBannerViewDeclaration
Swift
public enum BannerViewType