Api

public struct Api

Undocumented

  • env

    Specify which XMTP network to connect to. Defaults to .dev

    Declaration

    Swift

    public var env: XMTPEnvironment
  • Optional: Specify self-reported version e.g. XMTPInbox/v1.0.0.

    Declaration

    Swift

    public var isSecure: Bool
  • Specify whether the API client should use TLS security. In general this should only be false when using the .local environment.

    Declaration

    Swift

    public var appVersion: String?
  • Undocumented

    Declaration

    Swift

    public init(env: XMTPEnvironment = .dev, isSecure: Bool = true, appVersion: String? = nil)