Config

public struct Config

The proton config object which is a required param for initialisation of Proton

  • Undocumented

    See more

    Declaration

    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

    baseUrl

    The base url used for api requests to proton sdk api’s

    appDisplayName

    The name of your app. This will be used in certain places like handling Signing requests

    signingRequestSchemes

    An 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

    environment

    The environment used for api requests to proton sdk api’s

    appDisplayName

    The name of your app. This will be used in certain places like handling Signing requests

    signingRequestSchemes

    An array of custom schemes that your app has registered for siging requests