Config
public struct Config
The proton config object which is a required param for initialisation of Proton
-
Undocumented
See moreDeclaration
Swift
public enum Environment : String -
The base url used for api requests to proton sdk api’s
Declaration
Swift
public var baseUrl: String -
The name of your app. This will be used in certain places like handling Signing requests
Declaration
Swift
public var appDisplayName: String -
Custom uri schemes that your app has registered
Declaration
Swift
public var signingRequestSchemes: [String] -
Use this function as your starting point to initialize the singleton class Proton
Declaration
Swift
public init(baseUrl: String = Environment.testnet.rawValue, appDisplayName: String = "", signingRequestSchemes: [String])Parameters
baseUrlThe base url used for api requests to proton sdk api’s
appDisplayNameThe name of your app. This will be used in certain places like handling Signing requests
signingRequestSchemesAn array of custom schemes that your app has registered for siging requests
-
Use this function as your starting point to initialize the singleton class Proton
Declaration
Swift
public init(environment: Environment = Environment.testnet, appDisplayName: String = "", signingRequestSchemes: [String])Parameters
environmentThe environment used for api requests to proton sdk api’s
appDisplayNameThe name of your app. This will be used in certain places like handling Signing requests
signingRequestSchemesAn array of custom schemes that your app has registered for siging requests
Config Structure Reference