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
ASAPPConfigwith the given parameters.Declaration
Swift
public init(appId: String, apiHostName: String, clientSecret: String, supportedLanguages: [String] = ["en"], regionCode: String = "US")Parameters
appIdYour app identifier. Also known as the company marker.
apiHostNameHost name for connecting to the API.
clientSecretYour app’s client secret used when connecting to the API.
supportedLanguagesYour 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”].
regionCodeYour app’s region code. Defaults to “US”.
ASAPPConfig Class Reference