ASAPPConfig
@objc(ASAPPConfig)
@objcMembers
public class ASAPPConfig : NSObject
Configuration for the SDK’s connection to the API.
-
Your app identifier.
Declaration
Swift
public let appId: String
-
Host name for connecting to the API.
Declaration
Swift
public let apiHostName: String
-
Your app’s client secret.
Declaration
Swift
public let clientSecret: String
-
Your app’s supported languages.
Declaration
Swift
public let supportedLanguages: [String]
-
Your app’s region code.
Declaration
Swift
public let regionCode: String
-
Creates an instance of
ASAPPConfig
with the given parameters.Declaration
Swift
public init(appId: String, apiHostName: String, clientSecret: String, supportedLanguages: [String] = ["en"], regionCode: String = "US")
Parameters
appId
Your app identifier. Also known as the company marker.
apiHostName
Host name for connecting to the API.
clientSecret
Your app’s client secret used when connecting to the API.
supportedLanguages
Your app’s supported languages, in order of preference, as an array of language tag strings. Strings can be in the format “{ISO 639-1 Code}-{ISO 3166-1 Code}” or “{ISO 639-1 Code}”, such as “en-us” or “en”. Defaults to [“en”].
regionCode
Your app’s region code. Defaults to “US”.